blob: 6db98d60e791630a68177015d5ec3d67c5d9d364 [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Dan O'Mearadd494642020-05-01 07:42:23 -070075<h1><a href="ml_v1.html">AI Platform Training & Prediction API</a> . <a href="ml_v1.projects.html">projects</a> . <a href="ml_v1.projects.jobs.html">jobs</a></h1>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070078 <code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040079<p class="firstline">Cancels a running job.</p>
80<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070081 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040085<p class="firstline">Creates a training or a batch prediction job.</p>
86<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070087 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040088<p class="firstline">Describes a job.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080093 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Lists the jobs in the project. If there are no jobs that match the request parameters, the list request returns an empty response body: {}.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040095<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100<p class="firstline">Updates a specific job resource. Currently the only supported fields to update are `labels`.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106<p class="firstline">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.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400107<h3>Method Details</h3>
108<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109 <code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400110 <pre>Cancels a running job.
111
112Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 name: string, Required. The name of the job to cancel. (required)
114 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400115 The object takes the form of:
116
117{ # Request message for the CancelJob method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800118}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400119
120 x__xgafv: string, V1 error format.
121 Allowed values
122 1 - v1 error format
123 2 - v2 error format
124
125Returns:
126 An object of the form:
127
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700128 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800129}</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400130</div>
131
132<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700133 <code class="details" id="close">close()</code>
134 <pre>Close httplib2 connections.</pre>
135</div>
136
137<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700138 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400139 <pre>Creates a training or a batch prediction job.
140
141Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700142 parent: string, Required. The project name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400144 The object takes the form of:
145
146{ # Represents a training or prediction job.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800147 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the job was created.
148 &quot;endTime&quot;: &quot;A String&quot;, # Output only. When the job processing was completed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800149 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The details of a failure or a cancellation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800150 &quot;etag&quot;: &quot;A String&quot;, # `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.
151 &quot;jobId&quot;: &quot;A String&quot;, # Required. The user-specified id of the job.
152 &quot;labels&quot;: { # 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.
153 &quot;a_key&quot;: &quot;A String&quot;,
154 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800155 &quot;predictionInput&quot;: { # Represents input parameters for a prediction job. # Input parameters to create a prediction job.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800156 &quot;batchSize&quot;: &quot;A String&quot;, # 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.
157 &quot;dataFormat&quot;: &quot;A String&quot;, # Required. The format of the input data files.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800158 &quot;inputPaths&quot;: [ # Required. The Cloud Storage location of the input data files. May contain wildcards.
159 &quot;A String&quot;,
160 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800161 &quot;maxWorkerCount&quot;: &quot;A String&quot;, # Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800162 &quot;modelName&quot;: &quot;A String&quot;, # Use this field if you want to use the default version for the specified model. The string must use the following format: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL&quot;`
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800163 &quot;outputDataFormat&quot;: &quot;A String&quot;, # Optional. Format of the output data files, defaults to JSON.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800164 &quot;outputPath&quot;: &quot;A String&quot;, # Required. The output Google Cloud Storage location.
165 &quot;region&quot;: &quot;A String&quot;, # Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services.
166 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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.
167 &quot;signatureName&quot;: &quot;A String&quot;, # 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_SIGNATURE_DEF_KEY](https://www.tensorflow.org/api_docs/python/tf/saved_model/signature_constants) , which is &quot;serving_default&quot;.
168 &quot;uri&quot;: &quot;A String&quot;, # Use this field if you want to specify a Google Cloud Storage path for the model to use.
169 &quot;versionName&quot;: &quot;A String&quot;, # 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: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION&quot;`
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800170 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800171 &quot;predictionOutput&quot;: { # Represents results of a prediction job. # The current prediction job result.
172 &quot;errorCount&quot;: &quot;A String&quot;, # The number of data instances which resulted in errors.
173 &quot;nodeHours&quot;: 3.14, # Node hours used by the batch prediction job.
174 &quot;outputPath&quot;: &quot;A String&quot;, # The output Google Cloud Storage location provided at the job creation time.
175 &quot;predictionCount&quot;: &quot;A String&quot;, # The number of generated predictions.
176 },
177 &quot;startTime&quot;: &quot;A String&quot;, # Output only. When the job processing was started.
178 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of a job.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800179 &quot;trainingInput&quot;: { # Represents input parameters for a training job. When using the gcloud command to submit your training job, you can specify the input parameters as command-line arguments and/or in a YAML configuration file referenced from the --config command-line argument. For details, see the guide to [submitting a training job](/ai-platform/training/docs/training-jobs). # Input parameters to create a training job.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800180 &quot;args&quot;: [ # 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&#x27;s `ENTRYPOINT` command.
181 &quot;A String&quot;,
182 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700183 &quot;enableWebAccess&quot;: True or False, # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800184 &quot;encryptionConfig&quot;: { # Represents a custom encryption key configuration that can be applied to a resource. # Optional. Options for using customer-managed encryption keys (CMEK) to protect resources created by a training job, instead of using Google&#x27;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).
185 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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}`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700186 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800187 &quot;evaluatorConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
188 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
189 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
190 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
191 },
192 &quot;containerArgs&quot;: [ # 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.
193 &quot;A String&quot;,
194 ],
195 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
196 &quot;A String&quot;,
197 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800198 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
199 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
200 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
201 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800202 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
203 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
204 },
205 &quot;evaluatorCount&quot;: &quot;A String&quot;, # 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.
206 &quot;evaluatorType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800207 &quot;hyperparameters&quot;: { # Represents a set of hyperparameters to optimize. # Optional. The set of Hyperparameters to tune.
208 &quot;algorithm&quot;: &quot;A String&quot;, # Optional. The search algorithm specified for the hyperparameter tuning job. Uses the default AI Platform hyperparameter tuning algorithm if unspecified.
209 &quot;enableTrialEarlyStopping&quot;: True or False, # Optional. Indicates if the hyperparameter tuning job enables auto trial early stopping.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800210 &quot;goal&quot;: &quot;A String&quot;, # Required. The type of goal to use for tuning. Available types are `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`.
211 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # 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, &quot;training/hptuning/metric&quot; will be used.
212 &quot;maxFailedTrials&quot;: 42, # 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.
213 &quot;maxParallelTrials&quot;: 42, # 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.
214 &quot;maxTrials&quot;: 42, # Optional. How many training trials should be attempted to optimize the specified hyperparameters. Defaults to one.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800215 &quot;params&quot;: [ # Required. The set of parameters to tune.
216 { # Represents a single hyperparameter to optimize.
217 &quot;categoricalValues&quot;: [ # Required if type is `CATEGORICAL`. The list of possible categories.
218 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800219 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800220 &quot;discreteValues&quot;: [ # 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.
221 3.14,
222 ],
223 &quot;maxValue&quot;: 3.14, # 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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800224 &quot;minValue&quot;: 3.14, # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800225 &quot;parameterName&quot;: &quot;A String&quot;, # Required. The parameter name must be unique amongst all ParameterConfigs in a HyperparameterSpec message. E.g., &quot;learning_rate&quot;.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800226 &quot;scaleType&quot;: &quot;A String&quot;, # 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`).
227 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the parameter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800228 },
229 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800230 &quot;resumePreviousJobId&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800231 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800232 &quot;jobDir&quot;: &quot;A String&quot;, # 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 &#x27;--job-dir&#x27; command-line argument. The benefit of specifying this field is that Cloud ML validates the path for use in training.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800233 &quot;masterConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800234 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
235 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
236 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
237 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800238 &quot;containerArgs&quot;: [ # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800239 &quot;A String&quot;,
240 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800241 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
242 &quot;A String&quot;,
243 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800244 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
245 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
246 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
247 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800248 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800249 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800250 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800251 &quot;masterType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800252 &quot;network&quot;: &quot;A String&quot;, # 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800253 &quot;packageUris&quot;: [ # 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.
254 &quot;A String&quot;,
255 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800256 &quot;parameterServerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800257 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
258 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
259 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
260 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800261 &quot;containerArgs&quot;: [ # 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.
262 &quot;A String&quot;,
263 ],
264 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
265 &quot;A String&quot;,
266 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800267 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
268 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
269 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
270 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800271 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800272 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800273 },
274 &quot;parameterServerCount&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800275 &quot;parameterServerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
276 &quot;pythonModule&quot;: &quot;A String&quot;, # Required. The Python module name to run after installing the packages.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800277 &quot;pythonVersion&quot;: &quot;A String&quot;, # 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 &#x27;3.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or later. * Python &#x27;3.5&#x27; is available when `runtime_version` is set to a version from &#x27;1.4&#x27; to &#x27;1.14&#x27;. * Python &#x27;2.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or earlier. Read more about the Python versions available for [each runtime version](/ml-engine/docs/runtime-version-list).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800278 &quot;region&quot;: &quot;A String&quot;, # Required. The region to run the training job in. See the [available regions](/ai-platform/training/docs/regions) for AI Platform Training.
279 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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).
280 &quot;scaleTier&quot;: &quot;A String&quot;, # Required. Specifies the machine types, the number of replicas for workers and parameter servers.
281 &quot;scheduling&quot;: { # All parameters related to scheduling of training jobs. # Optional. Scheduling options for a training job.
282 &quot;maxRunningTime&quot;: &quot;A String&quot;, # 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 ```
283 &quot;maxWaitTime&quot;: &quot;A String&quot;, # 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&#x27;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 ```
yoshi-code-bot07708072021-07-20 00:20:24 -0700284 &quot;priority&quot;: 42, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800285 },
286 &quot;serviceAccount&quot;: &quot;A String&quot;, # 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.
287 &quot;useChiefInTfConfig&quot;: True or False, # 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&#x27;t use a custom container.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800288 &quot;workerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800289 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
290 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
291 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
292 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800293 &quot;containerArgs&quot;: [ # 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.
294 &quot;A String&quot;,
295 ],
296 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
297 &quot;A String&quot;,
298 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800299 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
300 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
301 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
302 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800303 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800304 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800305 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800306 &quot;workerCount&quot;: &quot;A String&quot;, # 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.
307 &quot;workerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800308 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800309 &quot;trainingOutput&quot;: { # Represents results of a training job. Output only. # The current training job result.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800310 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for built-in algorithms jobs.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800311 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800312 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800313 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
314 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800315 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800316 &quot;completedTrialCount&quot;: &quot;A String&quot;, # The number of hyperparameter tuning trials that completed successfully. Only set for hyperparameter tuning jobs.
317 &quot;consumedMLUnits&quot;: 3.14, # The amount of ML units consumed by the job.
318 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # The TensorFlow summary tag name used for optimizing hyperparameter tuning trials. See [`HyperparameterSpec.hyperparameterMetricTag`](#HyperparameterSpec.FIELDS.hyperparameter_metric_tag) for more information. Only set for hyperparameter tuning jobs.
319 &quot;isBuiltInAlgorithmJob&quot;: True or False, # Whether this job is a built-in Algorithm job.
320 &quot;isHyperparameterTuningJob&quot;: True or False, # Whether this job is a hyperparameter tuning job.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800321 &quot;trials&quot;: [ # Results for individual Hyperparameter trials. Only set for hyperparameter tuning jobs.
322 { # Represents the result of a single hyperparameter tuning trial from a training job. The TrainingOutput object that is returned on successful completion of a training job with hyperparameter tuning includes a list of HyperparameterOutput objects, one for each successful trial.
323 &quot;allMetrics&quot;: [ # All recorded object metrics for this trial. This field is not currently populated.
324 { # An observed value of a metric.
325 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
326 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800327 },
328 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800329 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for trials of built-in algorithms jobs that have succeeded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800330 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800331 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800332 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
333 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800334 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800335 &quot;endTime&quot;: &quot;A String&quot;, # Output only. End time for the trial.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800336 &quot;finalMetric&quot;: { # An observed value of a metric. # The final objective metric seen for this trial.
337 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
338 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
339 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800340 &quot;hyperparameters&quot;: { # The hyperparameters given to this trial.
341 &quot;a_key&quot;: &quot;A String&quot;,
342 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800343 &quot;isTrialStoppedEarly&quot;: True or False, # True if the trial is stopped early.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800344 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Start time for the trial.
345 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the trial.
346 &quot;trialId&quot;: &quot;A String&quot;, # The trial id for these results.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700347 &quot;webAccessUris&quot;: { # 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&#x27;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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700348 &quot;a_key&quot;: &quot;A String&quot;,
349 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800350 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800351 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700352 &quot;webAccessUris&quot;: { # 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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700353 &quot;a_key&quot;: &quot;A String&quot;,
354 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800355 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800356}
Bu Sun Kim65020912020-05-20 12:08:20 -0700357
358 x__xgafv: string, V1 error format.
359 Allowed values
360 1 - v1 error format
361 2 - v2 error format
362
363Returns:
364 An object of the form:
365
366 { # Represents a training or prediction job.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800367 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the job was created.
368 &quot;endTime&quot;: &quot;A String&quot;, # Output only. When the job processing was completed.
369 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The details of a failure or a cancellation.
370 &quot;etag&quot;: &quot;A String&quot;, # `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.
371 &quot;jobId&quot;: &quot;A String&quot;, # Required. The user-specified id of the job.
372 &quot;labels&quot;: { # 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.
373 &quot;a_key&quot;: &quot;A String&quot;,
374 },
375 &quot;predictionInput&quot;: { # Represents input parameters for a prediction job. # Input parameters to create a prediction job.
376 &quot;batchSize&quot;: &quot;A String&quot;, # 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.
377 &quot;dataFormat&quot;: &quot;A String&quot;, # Required. The format of the input data files.
378 &quot;inputPaths&quot;: [ # Required. The Cloud Storage location of the input data files. May contain wildcards.
379 &quot;A String&quot;,
380 ],
381 &quot;maxWorkerCount&quot;: &quot;A String&quot;, # Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified.
382 &quot;modelName&quot;: &quot;A String&quot;, # Use this field if you want to use the default version for the specified model. The string must use the following format: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL&quot;`
383 &quot;outputDataFormat&quot;: &quot;A String&quot;, # Optional. Format of the output data files, defaults to JSON.
384 &quot;outputPath&quot;: &quot;A String&quot;, # Required. The output Google Cloud Storage location.
385 &quot;region&quot;: &quot;A String&quot;, # Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services.
386 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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.
387 &quot;signatureName&quot;: &quot;A String&quot;, # 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_SIGNATURE_DEF_KEY](https://www.tensorflow.org/api_docs/python/tf/saved_model/signature_constants) , which is &quot;serving_default&quot;.
388 &quot;uri&quot;: &quot;A String&quot;, # Use this field if you want to specify a Google Cloud Storage path for the model to use.
389 &quot;versionName&quot;: &quot;A String&quot;, # 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: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION&quot;`
390 },
391 &quot;predictionOutput&quot;: { # Represents results of a prediction job. # The current prediction job result.
392 &quot;errorCount&quot;: &quot;A String&quot;, # The number of data instances which resulted in errors.
393 &quot;nodeHours&quot;: 3.14, # Node hours used by the batch prediction job.
394 &quot;outputPath&quot;: &quot;A String&quot;, # The output Google Cloud Storage location provided at the job creation time.
395 &quot;predictionCount&quot;: &quot;A String&quot;, # The number of generated predictions.
396 },
397 &quot;startTime&quot;: &quot;A String&quot;, # Output only. When the job processing was started.
398 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of a job.
399 &quot;trainingInput&quot;: { # Represents input parameters for a training job. When using the gcloud command to submit your training job, you can specify the input parameters as command-line arguments and/or in a YAML configuration file referenced from the --config command-line argument. For details, see the guide to [submitting a training job](/ai-platform/training/docs/training-jobs). # Input parameters to create a training job.
400 &quot;args&quot;: [ # 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&#x27;s `ENTRYPOINT` command.
401 &quot;A String&quot;,
402 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700403 &quot;enableWebAccess&quot;: True or False, # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800404 &quot;encryptionConfig&quot;: { # Represents a custom encryption key configuration that can be applied to a resource. # Optional. Options for using customer-managed encryption keys (CMEK) to protect resources created by a training job, instead of using Google&#x27;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).
405 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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}`
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800406 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800407 &quot;evaluatorConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
408 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
409 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
410 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700411 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800412 &quot;containerArgs&quot;: [ # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800413 &quot;A String&quot;,
414 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800415 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800416 &quot;A String&quot;,
417 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800418 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
419 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
420 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
421 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800422 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
423 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800424 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800425 &quot;evaluatorCount&quot;: &quot;A String&quot;, # 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.
426 &quot;evaluatorType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
427 &quot;hyperparameters&quot;: { # Represents a set of hyperparameters to optimize. # Optional. The set of Hyperparameters to tune.
428 &quot;algorithm&quot;: &quot;A String&quot;, # Optional. The search algorithm specified for the hyperparameter tuning job. Uses the default AI Platform hyperparameter tuning algorithm if unspecified.
429 &quot;enableTrialEarlyStopping&quot;: True or False, # Optional. Indicates if the hyperparameter tuning job enables auto trial early stopping.
430 &quot;goal&quot;: &quot;A String&quot;, # Required. The type of goal to use for tuning. Available types are `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`.
431 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # 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, &quot;training/hptuning/metric&quot; will be used.
432 &quot;maxFailedTrials&quot;: 42, # 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.
433 &quot;maxParallelTrials&quot;: 42, # 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.
434 &quot;maxTrials&quot;: 42, # Optional. How many training trials should be attempted to optimize the specified hyperparameters. Defaults to one.
435 &quot;params&quot;: [ # Required. The set of parameters to tune.
436 { # Represents a single hyperparameter to optimize.
437 &quot;categoricalValues&quot;: [ # Required if type is `CATEGORICAL`. The list of possible categories.
438 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800439 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800440 &quot;discreteValues&quot;: [ # 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.
441 3.14,
442 ],
443 &quot;maxValue&quot;: 3.14, # 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`.
444 &quot;minValue&quot;: 3.14, # 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.
445 &quot;parameterName&quot;: &quot;A String&quot;, # Required. The parameter name must be unique amongst all ParameterConfigs in a HyperparameterSpec message. E.g., &quot;learning_rate&quot;.
446 &quot;scaleType&quot;: &quot;A String&quot;, # 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`).
447 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the parameter.
448 },
449 ],
450 &quot;resumePreviousJobId&quot;: &quot;A String&quot;, # 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.
451 },
452 &quot;jobDir&quot;: &quot;A String&quot;, # 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 &#x27;--job-dir&#x27; command-line argument. The benefit of specifying this field is that Cloud ML validates the path for use in training.
453 &quot;masterConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
454 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
455 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
456 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
457 },
458 &quot;containerArgs&quot;: [ # 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.
459 &quot;A String&quot;,
460 ],
461 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
462 &quot;A String&quot;,
463 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800464 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
465 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
466 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
467 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800468 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
469 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
470 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800471 &quot;masterType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800472 &quot;network&quot;: &quot;A String&quot;, # 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).
473 &quot;packageUris&quot;: [ # 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.
474 &quot;A String&quot;,
475 ],
476 &quot;parameterServerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
477 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
478 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
479 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
480 },
481 &quot;containerArgs&quot;: [ # 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.
482 &quot;A String&quot;,
483 ],
484 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
485 &quot;A String&quot;,
486 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800487 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
488 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
489 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
490 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800491 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
492 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
493 },
494 &quot;parameterServerCount&quot;: &quot;A String&quot;, # 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.
495 &quot;parameterServerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
496 &quot;pythonModule&quot;: &quot;A String&quot;, # Required. The Python module name to run after installing the packages.
497 &quot;pythonVersion&quot;: &quot;A String&quot;, # 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 &#x27;3.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or later. * Python &#x27;3.5&#x27; is available when `runtime_version` is set to a version from &#x27;1.4&#x27; to &#x27;1.14&#x27;. * Python &#x27;2.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or earlier. Read more about the Python versions available for [each runtime version](/ml-engine/docs/runtime-version-list).
498 &quot;region&quot;: &quot;A String&quot;, # Required. The region to run the training job in. See the [available regions](/ai-platform/training/docs/regions) for AI Platform Training.
499 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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).
500 &quot;scaleTier&quot;: &quot;A String&quot;, # Required. Specifies the machine types, the number of replicas for workers and parameter servers.
501 &quot;scheduling&quot;: { # All parameters related to scheduling of training jobs. # Optional. Scheduling options for a training job.
502 &quot;maxRunningTime&quot;: &quot;A String&quot;, # 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 ```
503 &quot;maxWaitTime&quot;: &quot;A String&quot;, # 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&#x27;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 ```
yoshi-code-bot07708072021-07-20 00:20:24 -0700504 &quot;priority&quot;: 42, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800505 },
506 &quot;serviceAccount&quot;: &quot;A String&quot;, # 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.
507 &quot;useChiefInTfConfig&quot;: True or False, # 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&#x27;t use a custom container.
508 &quot;workerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
509 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
510 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
511 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
512 },
513 &quot;containerArgs&quot;: [ # 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.
514 &quot;A String&quot;,
515 ],
516 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
517 &quot;A String&quot;,
518 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800519 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
520 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
521 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
522 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800523 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
524 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
525 },
526 &quot;workerCount&quot;: &quot;A String&quot;, # 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.
527 &quot;workerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
528 },
529 &quot;trainingOutput&quot;: { # Represents results of a training job. Output only. # The current training job result.
530 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for built-in algorithms jobs.
531 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
532 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
533 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
534 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
535 },
536 &quot;completedTrialCount&quot;: &quot;A String&quot;, # The number of hyperparameter tuning trials that completed successfully. Only set for hyperparameter tuning jobs.
537 &quot;consumedMLUnits&quot;: 3.14, # The amount of ML units consumed by the job.
538 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # The TensorFlow summary tag name used for optimizing hyperparameter tuning trials. See [`HyperparameterSpec.hyperparameterMetricTag`](#HyperparameterSpec.FIELDS.hyperparameter_metric_tag) for more information. Only set for hyperparameter tuning jobs.
539 &quot;isBuiltInAlgorithmJob&quot;: True or False, # Whether this job is a built-in Algorithm job.
540 &quot;isHyperparameterTuningJob&quot;: True or False, # Whether this job is a hyperparameter tuning job.
541 &quot;trials&quot;: [ # Results for individual Hyperparameter trials. Only set for hyperparameter tuning jobs.
542 { # Represents the result of a single hyperparameter tuning trial from a training job. The TrainingOutput object that is returned on successful completion of a training job with hyperparameter tuning includes a list of HyperparameterOutput objects, one for each successful trial.
543 &quot;allMetrics&quot;: [ # All recorded object metrics for this trial. This field is not currently populated.
544 { # An observed value of a metric.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800545 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
546 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
547 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800548 ],
549 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for trials of built-in algorithms jobs that have succeeded.
550 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
551 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
552 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
553 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800554 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800555 &quot;endTime&quot;: &quot;A String&quot;, # Output only. End time for the trial.
556 &quot;finalMetric&quot;: { # An observed value of a metric. # The final objective metric seen for this trial.
557 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
558 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
559 },
560 &quot;hyperparameters&quot;: { # The hyperparameters given to this trial.
561 &quot;a_key&quot;: &quot;A String&quot;,
562 },
563 &quot;isTrialStoppedEarly&quot;: True or False, # True if the trial is stopped early.
564 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Start time for the trial.
565 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the trial.
566 &quot;trialId&quot;: &quot;A String&quot;, # The trial id for these results.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700567 &quot;webAccessUris&quot;: { # 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&#x27;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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700568 &quot;a_key&quot;: &quot;A String&quot;,
569 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800570 },
571 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700572 &quot;webAccessUris&quot;: { # 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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700573 &quot;a_key&quot;: &quot;A String&quot;,
574 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800575 },
576}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700577</div>
578
579<div class="method">
580 <code class="details" id="get">get(name, x__xgafv=None)</code>
581 <pre>Describes a job.
582
583Args:
584 name: string, Required. The name of the job to get the description of. (required)
585 x__xgafv: string, V1 error format.
586 Allowed values
587 1 - v1 error format
588 2 - v2 error format
589
590Returns:
591 An object of the form:
592
593 { # Represents a training or prediction job.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800594 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the job was created.
595 &quot;endTime&quot;: &quot;A String&quot;, # Output only. When the job processing was completed.
596 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The details of a failure or a cancellation.
597 &quot;etag&quot;: &quot;A String&quot;, # `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.
598 &quot;jobId&quot;: &quot;A String&quot;, # Required. The user-specified id of the job.
599 &quot;labels&quot;: { # 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.
600 &quot;a_key&quot;: &quot;A String&quot;,
601 },
602 &quot;predictionInput&quot;: { # Represents input parameters for a prediction job. # Input parameters to create a prediction job.
603 &quot;batchSize&quot;: &quot;A String&quot;, # 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.
604 &quot;dataFormat&quot;: &quot;A String&quot;, # Required. The format of the input data files.
605 &quot;inputPaths&quot;: [ # Required. The Cloud Storage location of the input data files. May contain wildcards.
606 &quot;A String&quot;,
607 ],
608 &quot;maxWorkerCount&quot;: &quot;A String&quot;, # Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified.
609 &quot;modelName&quot;: &quot;A String&quot;, # Use this field if you want to use the default version for the specified model. The string must use the following format: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL&quot;`
610 &quot;outputDataFormat&quot;: &quot;A String&quot;, # Optional. Format of the output data files, defaults to JSON.
611 &quot;outputPath&quot;: &quot;A String&quot;, # Required. The output Google Cloud Storage location.
612 &quot;region&quot;: &quot;A String&quot;, # Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services.
613 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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.
614 &quot;signatureName&quot;: &quot;A String&quot;, # 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_SIGNATURE_DEF_KEY](https://www.tensorflow.org/api_docs/python/tf/saved_model/signature_constants) , which is &quot;serving_default&quot;.
615 &quot;uri&quot;: &quot;A String&quot;, # Use this field if you want to specify a Google Cloud Storage path for the model to use.
616 &quot;versionName&quot;: &quot;A String&quot;, # 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: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION&quot;`
617 },
618 &quot;predictionOutput&quot;: { # Represents results of a prediction job. # The current prediction job result.
619 &quot;errorCount&quot;: &quot;A String&quot;, # The number of data instances which resulted in errors.
620 &quot;nodeHours&quot;: 3.14, # Node hours used by the batch prediction job.
621 &quot;outputPath&quot;: &quot;A String&quot;, # The output Google Cloud Storage location provided at the job creation time.
622 &quot;predictionCount&quot;: &quot;A String&quot;, # The number of generated predictions.
623 },
624 &quot;startTime&quot;: &quot;A String&quot;, # Output only. When the job processing was started.
625 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of a job.
626 &quot;trainingInput&quot;: { # Represents input parameters for a training job. When using the gcloud command to submit your training job, you can specify the input parameters as command-line arguments and/or in a YAML configuration file referenced from the --config command-line argument. For details, see the guide to [submitting a training job](/ai-platform/training/docs/training-jobs). # Input parameters to create a training job.
627 &quot;args&quot;: [ # 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&#x27;s `ENTRYPOINT` command.
628 &quot;A String&quot;,
629 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700630 &quot;enableWebAccess&quot;: True or False, # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800631 &quot;encryptionConfig&quot;: { # Represents a custom encryption key configuration that can be applied to a resource. # Optional. Options for using customer-managed encryption keys (CMEK) to protect resources created by a training job, instead of using Google&#x27;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).
632 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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}`
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800633 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800634 &quot;evaluatorConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
635 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
636 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
637 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700638 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800639 &quot;containerArgs&quot;: [ # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800640 &quot;A String&quot;,
641 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800642 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800643 &quot;A String&quot;,
644 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800645 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
646 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
647 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
648 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800649 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
650 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800651 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800652 &quot;evaluatorCount&quot;: &quot;A String&quot;, # 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.
653 &quot;evaluatorType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
654 &quot;hyperparameters&quot;: { # Represents a set of hyperparameters to optimize. # Optional. The set of Hyperparameters to tune.
655 &quot;algorithm&quot;: &quot;A String&quot;, # Optional. The search algorithm specified for the hyperparameter tuning job. Uses the default AI Platform hyperparameter tuning algorithm if unspecified.
656 &quot;enableTrialEarlyStopping&quot;: True or False, # Optional. Indicates if the hyperparameter tuning job enables auto trial early stopping.
657 &quot;goal&quot;: &quot;A String&quot;, # Required. The type of goal to use for tuning. Available types are `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`.
658 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # 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, &quot;training/hptuning/metric&quot; will be used.
659 &quot;maxFailedTrials&quot;: 42, # 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.
660 &quot;maxParallelTrials&quot;: 42, # 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.
661 &quot;maxTrials&quot;: 42, # Optional. How many training trials should be attempted to optimize the specified hyperparameters. Defaults to one.
662 &quot;params&quot;: [ # Required. The set of parameters to tune.
663 { # Represents a single hyperparameter to optimize.
664 &quot;categoricalValues&quot;: [ # Required if type is `CATEGORICAL`. The list of possible categories.
665 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800666 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800667 &quot;discreteValues&quot;: [ # 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.
668 3.14,
669 ],
670 &quot;maxValue&quot;: 3.14, # 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`.
671 &quot;minValue&quot;: 3.14, # 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.
672 &quot;parameterName&quot;: &quot;A String&quot;, # Required. The parameter name must be unique amongst all ParameterConfigs in a HyperparameterSpec message. E.g., &quot;learning_rate&quot;.
673 &quot;scaleType&quot;: &quot;A String&quot;, # 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`).
674 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the parameter.
675 },
676 ],
677 &quot;resumePreviousJobId&quot;: &quot;A String&quot;, # 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.
678 },
679 &quot;jobDir&quot;: &quot;A String&quot;, # 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 &#x27;--job-dir&#x27; command-line argument. The benefit of specifying this field is that Cloud ML validates the path for use in training.
680 &quot;masterConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
681 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
682 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
683 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
684 },
685 &quot;containerArgs&quot;: [ # 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.
686 &quot;A String&quot;,
687 ],
688 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
689 &quot;A String&quot;,
690 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800691 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
692 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
693 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
694 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800695 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
696 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
697 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800698 &quot;masterType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800699 &quot;network&quot;: &quot;A String&quot;, # 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).
700 &quot;packageUris&quot;: [ # 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.
701 &quot;A String&quot;,
702 ],
703 &quot;parameterServerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
704 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
705 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
706 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
707 },
708 &quot;containerArgs&quot;: [ # 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.
709 &quot;A String&quot;,
710 ],
711 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
712 &quot;A String&quot;,
713 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800714 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
715 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
716 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
717 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800718 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
719 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
720 },
721 &quot;parameterServerCount&quot;: &quot;A String&quot;, # 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.
722 &quot;parameterServerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
723 &quot;pythonModule&quot;: &quot;A String&quot;, # Required. The Python module name to run after installing the packages.
724 &quot;pythonVersion&quot;: &quot;A String&quot;, # 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 &#x27;3.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or later. * Python &#x27;3.5&#x27; is available when `runtime_version` is set to a version from &#x27;1.4&#x27; to &#x27;1.14&#x27;. * Python &#x27;2.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or earlier. Read more about the Python versions available for [each runtime version](/ml-engine/docs/runtime-version-list).
725 &quot;region&quot;: &quot;A String&quot;, # Required. The region to run the training job in. See the [available regions](/ai-platform/training/docs/regions) for AI Platform Training.
726 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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).
727 &quot;scaleTier&quot;: &quot;A String&quot;, # Required. Specifies the machine types, the number of replicas for workers and parameter servers.
728 &quot;scheduling&quot;: { # All parameters related to scheduling of training jobs. # Optional. Scheduling options for a training job.
729 &quot;maxRunningTime&quot;: &quot;A String&quot;, # 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 ```
730 &quot;maxWaitTime&quot;: &quot;A String&quot;, # 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&#x27;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 ```
yoshi-code-bot07708072021-07-20 00:20:24 -0700731 &quot;priority&quot;: 42, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800732 },
733 &quot;serviceAccount&quot;: &quot;A String&quot;, # 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.
734 &quot;useChiefInTfConfig&quot;: True or False, # 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&#x27;t use a custom container.
735 &quot;workerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
736 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
737 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
738 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
739 },
740 &quot;containerArgs&quot;: [ # 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.
741 &quot;A String&quot;,
742 ],
743 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
744 &quot;A String&quot;,
745 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800746 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
747 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
748 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
749 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800750 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
751 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
752 },
753 &quot;workerCount&quot;: &quot;A String&quot;, # 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.
754 &quot;workerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
755 },
756 &quot;trainingOutput&quot;: { # Represents results of a training job. Output only. # The current training job result.
757 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for built-in algorithms jobs.
758 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
759 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
760 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
761 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
762 },
763 &quot;completedTrialCount&quot;: &quot;A String&quot;, # The number of hyperparameter tuning trials that completed successfully. Only set for hyperparameter tuning jobs.
764 &quot;consumedMLUnits&quot;: 3.14, # The amount of ML units consumed by the job.
765 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # The TensorFlow summary tag name used for optimizing hyperparameter tuning trials. See [`HyperparameterSpec.hyperparameterMetricTag`](#HyperparameterSpec.FIELDS.hyperparameter_metric_tag) for more information. Only set for hyperparameter tuning jobs.
766 &quot;isBuiltInAlgorithmJob&quot;: True or False, # Whether this job is a built-in Algorithm job.
767 &quot;isHyperparameterTuningJob&quot;: True or False, # Whether this job is a hyperparameter tuning job.
768 &quot;trials&quot;: [ # Results for individual Hyperparameter trials. Only set for hyperparameter tuning jobs.
769 { # Represents the result of a single hyperparameter tuning trial from a training job. The TrainingOutput object that is returned on successful completion of a training job with hyperparameter tuning includes a list of HyperparameterOutput objects, one for each successful trial.
770 &quot;allMetrics&quot;: [ # All recorded object metrics for this trial. This field is not currently populated.
771 { # An observed value of a metric.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800772 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
773 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
774 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800775 ],
776 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for trials of built-in algorithms jobs that have succeeded.
777 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
778 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
779 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
780 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800781 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800782 &quot;endTime&quot;: &quot;A String&quot;, # Output only. End time for the trial.
783 &quot;finalMetric&quot;: { # An observed value of a metric. # The final objective metric seen for this trial.
784 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
785 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
786 },
787 &quot;hyperparameters&quot;: { # The hyperparameters given to this trial.
788 &quot;a_key&quot;: &quot;A String&quot;,
789 },
790 &quot;isTrialStoppedEarly&quot;: True or False, # True if the trial is stopped early.
791 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Start time for the trial.
792 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the trial.
793 &quot;trialId&quot;: &quot;A String&quot;, # The trial id for these results.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700794 &quot;webAccessUris&quot;: { # 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&#x27;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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700795 &quot;a_key&quot;: &quot;A String&quot;,
796 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800797 },
798 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700799 &quot;webAccessUris&quot;: { # 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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700800 &quot;a_key&quot;: &quot;A String&quot;,
801 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800802 },
803}</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400804</div>
805
806<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700807 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700808 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400809
810Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700811 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
812 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value 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).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400813 x__xgafv: string, V1 error format.
814 Allowed values
815 1 - v1 error format
816 2 - v2 error format
817
818Returns:
819 An object of the form:
820
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700821 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800822 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
823 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
824 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
825 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
826 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
827 &quot;A String&quot;,
828 ],
829 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800830 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800831 ],
832 &quot;service&quot;: &quot;A String&quot;, # 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.
833 },
834 ],
835 &quot;bindings&quot;: [ # Associates a list of `members` to 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 member.
836 { # Associates `members` with a `role`.
837 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # 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 members 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).
838 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
839 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
840 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
841 &quot;title&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800842 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800843 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform 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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
844 &quot;A String&quot;,
845 ],
846 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
847 },
848 ],
849 &quot;etag&quot;: &quot;A String&quot;, # `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.
850 &quot;version&quot;: 42, # 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).
851}</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400852</div>
853
854<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800855 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700856 <pre>Lists the jobs in the project. If there are no jobs that match the request parameters, the list request returns an empty response body: {}.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700857
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400858Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700859 parent: string, Required. The name of the project for which to list jobs. (required)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800860 filter: string, 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 &#x27;census&#x27;: gcloud ai-platform jobs list --filter=&#x27;jobId:census*&#x27; List all failed jobs with names that start with &#x27;rnn&#x27;: gcloud ai-platform jobs list --filter=&#x27;jobId:rnn* AND state:FAILED&#x27; For more examples, see the guide to monitoring jobs.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800861 pageSize: integer, Optional. The number of jobs to retrieve per &quot;page&quot; 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700862 pageToken: string, 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400863 x__xgafv: string, V1 error format.
864 Allowed values
865 1 - v1 error format
866 2 - v2 error format
867
868Returns:
869 An object of the form:
870
871 { # Response message for the ListJobs method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800872 &quot;jobs&quot;: [ # The list of jobs.
873 { # Represents a training or prediction job.
874 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the job was created.
875 &quot;endTime&quot;: &quot;A String&quot;, # Output only. When the job processing was completed.
876 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The details of a failure or a cancellation.
877 &quot;etag&quot;: &quot;A String&quot;, # `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.
878 &quot;jobId&quot;: &quot;A String&quot;, # Required. The user-specified id of the job.
879 &quot;labels&quot;: { # 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.
880 &quot;a_key&quot;: &quot;A String&quot;,
881 },
882 &quot;predictionInput&quot;: { # Represents input parameters for a prediction job. # Input parameters to create a prediction job.
883 &quot;batchSize&quot;: &quot;A String&quot;, # 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.
884 &quot;dataFormat&quot;: &quot;A String&quot;, # Required. The format of the input data files.
885 &quot;inputPaths&quot;: [ # Required. The Cloud Storage location of the input data files. May contain wildcards.
886 &quot;A String&quot;,
887 ],
888 &quot;maxWorkerCount&quot;: &quot;A String&quot;, # Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified.
889 &quot;modelName&quot;: &quot;A String&quot;, # Use this field if you want to use the default version for the specified model. The string must use the following format: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL&quot;`
890 &quot;outputDataFormat&quot;: &quot;A String&quot;, # Optional. Format of the output data files, defaults to JSON.
891 &quot;outputPath&quot;: &quot;A String&quot;, # Required. The output Google Cloud Storage location.
892 &quot;region&quot;: &quot;A String&quot;, # Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services.
893 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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.
894 &quot;signatureName&quot;: &quot;A String&quot;, # 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_SIGNATURE_DEF_KEY](https://www.tensorflow.org/api_docs/python/tf/saved_model/signature_constants) , which is &quot;serving_default&quot;.
895 &quot;uri&quot;: &quot;A String&quot;, # Use this field if you want to specify a Google Cloud Storage path for the model to use.
896 &quot;versionName&quot;: &quot;A String&quot;, # 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: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION&quot;`
897 },
898 &quot;predictionOutput&quot;: { # Represents results of a prediction job. # The current prediction job result.
899 &quot;errorCount&quot;: &quot;A String&quot;, # The number of data instances which resulted in errors.
900 &quot;nodeHours&quot;: 3.14, # Node hours used by the batch prediction job.
901 &quot;outputPath&quot;: &quot;A String&quot;, # The output Google Cloud Storage location provided at the job creation time.
902 &quot;predictionCount&quot;: &quot;A String&quot;, # The number of generated predictions.
903 },
904 &quot;startTime&quot;: &quot;A String&quot;, # Output only. When the job processing was started.
905 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of a job.
906 &quot;trainingInput&quot;: { # Represents input parameters for a training job. When using the gcloud command to submit your training job, you can specify the input parameters as command-line arguments and/or in a YAML configuration file referenced from the --config command-line argument. For details, see the guide to [submitting a training job](/ai-platform/training/docs/training-jobs). # Input parameters to create a training job.
907 &quot;args&quot;: [ # 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&#x27;s `ENTRYPOINT` command.
908 &quot;A String&quot;,
909 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700910 &quot;enableWebAccess&quot;: True or False, # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800911 &quot;encryptionConfig&quot;: { # Represents a custom encryption key configuration that can be applied to a resource. # Optional. Options for using customer-managed encryption keys (CMEK) to protect resources created by a training job, instead of using Google&#x27;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).
912 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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}`
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400913 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800914 &quot;evaluatorConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
915 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
916 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
917 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800918 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800919 &quot;containerArgs&quot;: [ # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800920 &quot;A String&quot;,
921 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800922 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800923 &quot;A String&quot;,
924 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800925 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
926 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
927 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
928 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800929 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
930 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800931 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800932 &quot;evaluatorCount&quot;: &quot;A String&quot;, # 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.
933 &quot;evaluatorType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
934 &quot;hyperparameters&quot;: { # Represents a set of hyperparameters to optimize. # Optional. The set of Hyperparameters to tune.
935 &quot;algorithm&quot;: &quot;A String&quot;, # Optional. The search algorithm specified for the hyperparameter tuning job. Uses the default AI Platform hyperparameter tuning algorithm if unspecified.
936 &quot;enableTrialEarlyStopping&quot;: True or False, # Optional. Indicates if the hyperparameter tuning job enables auto trial early stopping.
937 &quot;goal&quot;: &quot;A String&quot;, # Required. The type of goal to use for tuning. Available types are `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`.
938 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # 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, &quot;training/hptuning/metric&quot; will be used.
939 &quot;maxFailedTrials&quot;: 42, # 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.
940 &quot;maxParallelTrials&quot;: 42, # 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.
941 &quot;maxTrials&quot;: 42, # Optional. How many training trials should be attempted to optimize the specified hyperparameters. Defaults to one.
942 &quot;params&quot;: [ # Required. The set of parameters to tune.
943 { # Represents a single hyperparameter to optimize.
944 &quot;categoricalValues&quot;: [ # Required if type is `CATEGORICAL`. The list of possible categories.
945 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800946 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800947 &quot;discreteValues&quot;: [ # 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.
948 3.14,
949 ],
950 &quot;maxValue&quot;: 3.14, # 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`.
951 &quot;minValue&quot;: 3.14, # 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.
952 &quot;parameterName&quot;: &quot;A String&quot;, # Required. The parameter name must be unique amongst all ParameterConfigs in a HyperparameterSpec message. E.g., &quot;learning_rate&quot;.
953 &quot;scaleType&quot;: &quot;A String&quot;, # 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`).
954 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the parameter.
955 },
956 ],
957 &quot;resumePreviousJobId&quot;: &quot;A String&quot;, # 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.
958 },
959 &quot;jobDir&quot;: &quot;A String&quot;, # 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 &#x27;--job-dir&#x27; command-line argument. The benefit of specifying this field is that Cloud ML validates the path for use in training.
960 &quot;masterConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
961 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
962 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
963 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
964 },
965 &quot;containerArgs&quot;: [ # 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.
966 &quot;A String&quot;,
967 ],
968 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
969 &quot;A String&quot;,
970 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800971 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
972 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
973 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
974 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800975 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
976 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
977 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800978 &quot;masterType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800979 &quot;network&quot;: &quot;A String&quot;, # 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).
980 &quot;packageUris&quot;: [ # 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.
981 &quot;A String&quot;,
982 ],
983 &quot;parameterServerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
984 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
985 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
986 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
987 },
988 &quot;containerArgs&quot;: [ # 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.
989 &quot;A String&quot;,
990 ],
991 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
992 &quot;A String&quot;,
993 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800994 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
995 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
996 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
997 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800998 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
999 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
1000 },
1001 &quot;parameterServerCount&quot;: &quot;A String&quot;, # 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.
1002 &quot;parameterServerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
1003 &quot;pythonModule&quot;: &quot;A String&quot;, # Required. The Python module name to run after installing the packages.
1004 &quot;pythonVersion&quot;: &quot;A String&quot;, # 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 &#x27;3.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or later. * Python &#x27;3.5&#x27; is available when `runtime_version` is set to a version from &#x27;1.4&#x27; to &#x27;1.14&#x27;. * Python &#x27;2.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or earlier. Read more about the Python versions available for [each runtime version](/ml-engine/docs/runtime-version-list).
1005 &quot;region&quot;: &quot;A String&quot;, # Required. The region to run the training job in. See the [available regions](/ai-platform/training/docs/regions) for AI Platform Training.
1006 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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).
1007 &quot;scaleTier&quot;: &quot;A String&quot;, # Required. Specifies the machine types, the number of replicas for workers and parameter servers.
1008 &quot;scheduling&quot;: { # All parameters related to scheduling of training jobs. # Optional. Scheduling options for a training job.
1009 &quot;maxRunningTime&quot;: &quot;A String&quot;, # 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 ```
1010 &quot;maxWaitTime&quot;: &quot;A String&quot;, # 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&#x27;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 ```
yoshi-code-bot07708072021-07-20 00:20:24 -07001011 &quot;priority&quot;: 42, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001012 },
1013 &quot;serviceAccount&quot;: &quot;A String&quot;, # 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.
1014 &quot;useChiefInTfConfig&quot;: True or False, # 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&#x27;t use a custom container.
1015 &quot;workerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
1016 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
1017 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
1018 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
1019 },
1020 &quot;containerArgs&quot;: [ # 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.
1021 &quot;A String&quot;,
1022 ],
1023 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
1024 &quot;A String&quot;,
1025 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001026 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
1027 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
1028 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1029 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001030 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
1031 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
1032 },
1033 &quot;workerCount&quot;: &quot;A String&quot;, # 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.
1034 &quot;workerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
1035 },
1036 &quot;trainingOutput&quot;: { # Represents results of a training job. Output only. # The current training job result.
1037 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for built-in algorithms jobs.
1038 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
1039 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
1040 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
1041 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
1042 },
1043 &quot;completedTrialCount&quot;: &quot;A String&quot;, # The number of hyperparameter tuning trials that completed successfully. Only set for hyperparameter tuning jobs.
1044 &quot;consumedMLUnits&quot;: 3.14, # The amount of ML units consumed by the job.
1045 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # The TensorFlow summary tag name used for optimizing hyperparameter tuning trials. See [`HyperparameterSpec.hyperparameterMetricTag`](#HyperparameterSpec.FIELDS.hyperparameter_metric_tag) for more information. Only set for hyperparameter tuning jobs.
1046 &quot;isBuiltInAlgorithmJob&quot;: True or False, # Whether this job is a built-in Algorithm job.
1047 &quot;isHyperparameterTuningJob&quot;: True or False, # Whether this job is a hyperparameter tuning job.
1048 &quot;trials&quot;: [ # Results for individual Hyperparameter trials. Only set for hyperparameter tuning jobs.
1049 { # Represents the result of a single hyperparameter tuning trial from a training job. The TrainingOutput object that is returned on successful completion of a training job with hyperparameter tuning includes a list of HyperparameterOutput objects, one for each successful trial.
1050 &quot;allMetrics&quot;: [ # All recorded object metrics for this trial. This field is not currently populated.
1051 { # An observed value of a metric.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001052 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
1053 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
1054 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001055 ],
1056 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for trials of built-in algorithms jobs that have succeeded.
1057 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
1058 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
1059 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
1060 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001061 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001062 &quot;endTime&quot;: &quot;A String&quot;, # Output only. End time for the trial.
1063 &quot;finalMetric&quot;: { # An observed value of a metric. # The final objective metric seen for this trial.
1064 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
1065 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
1066 },
1067 &quot;hyperparameters&quot;: { # The hyperparameters given to this trial.
1068 &quot;a_key&quot;: &quot;A String&quot;,
1069 },
1070 &quot;isTrialStoppedEarly&quot;: True or False, # True if the trial is stopped early.
1071 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Start time for the trial.
1072 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the trial.
1073 &quot;trialId&quot;: &quot;A String&quot;, # The trial id for these results.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001074 &quot;webAccessUris&quot;: { # 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&#x27;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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001075 &quot;a_key&quot;: &quot;A String&quot;,
1076 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001077 },
1078 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001079 &quot;webAccessUris&quot;: { # 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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001080 &quot;a_key&quot;: &quot;A String&quot;,
1081 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001082 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001083 },
1084 ],
1085 &quot;nextPageToken&quot;: &quot;A String&quot;, # Optional. Pass this token as the `page_token` field of the request for a subsequent call.
1086}</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001087</div>
1088
1089<div class="method">
1090 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1091 <pre>Retrieves the next page of results.
1092
1093Args:
1094 previous_request: The request for the previous page. (required)
1095 previous_response: The response from the request for the previous page. (required)
1096
1097Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001098 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001099 page. Returns None if there are no more items in the collection.
1100 </pre>
1101</div>
1102
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001103<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001104 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001105 <pre>Updates a specific job resource. Currently the only supported fields to update are `labels`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001106
1107Args:
1108 name: string, Required. The job name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001109 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001110 The object takes the form of:
1111
1112{ # Represents a training or prediction job.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001113 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the job was created.
1114 &quot;endTime&quot;: &quot;A String&quot;, # Output only. When the job processing was completed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001115 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The details of a failure or a cancellation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001116 &quot;etag&quot;: &quot;A String&quot;, # `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.
1117 &quot;jobId&quot;: &quot;A String&quot;, # Required. The user-specified id of the job.
1118 &quot;labels&quot;: { # 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.
1119 &quot;a_key&quot;: &quot;A String&quot;,
1120 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001121 &quot;predictionInput&quot;: { # Represents input parameters for a prediction job. # Input parameters to create a prediction job.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001122 &quot;batchSize&quot;: &quot;A String&quot;, # 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.
1123 &quot;dataFormat&quot;: &quot;A String&quot;, # Required. The format of the input data files.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001124 &quot;inputPaths&quot;: [ # Required. The Cloud Storage location of the input data files. May contain wildcards.
1125 &quot;A String&quot;,
1126 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001127 &quot;maxWorkerCount&quot;: &quot;A String&quot;, # Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001128 &quot;modelName&quot;: &quot;A String&quot;, # Use this field if you want to use the default version for the specified model. The string must use the following format: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL&quot;`
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001129 &quot;outputDataFormat&quot;: &quot;A String&quot;, # Optional. Format of the output data files, defaults to JSON.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001130 &quot;outputPath&quot;: &quot;A String&quot;, # Required. The output Google Cloud Storage location.
1131 &quot;region&quot;: &quot;A String&quot;, # Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services.
1132 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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.
1133 &quot;signatureName&quot;: &quot;A String&quot;, # 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_SIGNATURE_DEF_KEY](https://www.tensorflow.org/api_docs/python/tf/saved_model/signature_constants) , which is &quot;serving_default&quot;.
1134 &quot;uri&quot;: &quot;A String&quot;, # Use this field if you want to specify a Google Cloud Storage path for the model to use.
1135 &quot;versionName&quot;: &quot;A String&quot;, # 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: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION&quot;`
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001136 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001137 &quot;predictionOutput&quot;: { # Represents results of a prediction job. # The current prediction job result.
1138 &quot;errorCount&quot;: &quot;A String&quot;, # The number of data instances which resulted in errors.
1139 &quot;nodeHours&quot;: 3.14, # Node hours used by the batch prediction job.
1140 &quot;outputPath&quot;: &quot;A String&quot;, # The output Google Cloud Storage location provided at the job creation time.
1141 &quot;predictionCount&quot;: &quot;A String&quot;, # The number of generated predictions.
1142 },
1143 &quot;startTime&quot;: &quot;A String&quot;, # Output only. When the job processing was started.
1144 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of a job.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001145 &quot;trainingInput&quot;: { # Represents input parameters for a training job. When using the gcloud command to submit your training job, you can specify the input parameters as command-line arguments and/or in a YAML configuration file referenced from the --config command-line argument. For details, see the guide to [submitting a training job](/ai-platform/training/docs/training-jobs). # Input parameters to create a training job.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001146 &quot;args&quot;: [ # 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&#x27;s `ENTRYPOINT` command.
1147 &quot;A String&quot;,
1148 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001149 &quot;enableWebAccess&quot;: True or False, # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001150 &quot;encryptionConfig&quot;: { # Represents a custom encryption key configuration that can be applied to a resource. # Optional. Options for using customer-managed encryption keys (CMEK) to protect resources created by a training job, instead of using Google&#x27;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).
1151 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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}`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001152 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001153 &quot;evaluatorConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
1154 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
1155 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
1156 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
1157 },
1158 &quot;containerArgs&quot;: [ # 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.
1159 &quot;A String&quot;,
1160 ],
1161 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
1162 &quot;A String&quot;,
1163 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001164 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
1165 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
1166 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1167 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001168 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
1169 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
1170 },
1171 &quot;evaluatorCount&quot;: &quot;A String&quot;, # 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.
1172 &quot;evaluatorType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001173 &quot;hyperparameters&quot;: { # Represents a set of hyperparameters to optimize. # Optional. The set of Hyperparameters to tune.
1174 &quot;algorithm&quot;: &quot;A String&quot;, # Optional. The search algorithm specified for the hyperparameter tuning job. Uses the default AI Platform hyperparameter tuning algorithm if unspecified.
1175 &quot;enableTrialEarlyStopping&quot;: True or False, # Optional. Indicates if the hyperparameter tuning job enables auto trial early stopping.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001176 &quot;goal&quot;: &quot;A String&quot;, # Required. The type of goal to use for tuning. Available types are `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`.
1177 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # 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, &quot;training/hptuning/metric&quot; will be used.
1178 &quot;maxFailedTrials&quot;: 42, # 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.
1179 &quot;maxParallelTrials&quot;: 42, # 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.
1180 &quot;maxTrials&quot;: 42, # Optional. How many training trials should be attempted to optimize the specified hyperparameters. Defaults to one.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001181 &quot;params&quot;: [ # Required. The set of parameters to tune.
1182 { # Represents a single hyperparameter to optimize.
1183 &quot;categoricalValues&quot;: [ # Required if type is `CATEGORICAL`. The list of possible categories.
1184 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001185 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001186 &quot;discreteValues&quot;: [ # 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.
1187 3.14,
1188 ],
1189 &quot;maxValue&quot;: 3.14, # 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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001190 &quot;minValue&quot;: 3.14, # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001191 &quot;parameterName&quot;: &quot;A String&quot;, # Required. The parameter name must be unique amongst all ParameterConfigs in a HyperparameterSpec message. E.g., &quot;learning_rate&quot;.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001192 &quot;scaleType&quot;: &quot;A String&quot;, # 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`).
1193 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the parameter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001194 },
1195 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001196 &quot;resumePreviousJobId&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001197 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001198 &quot;jobDir&quot;: &quot;A String&quot;, # 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 &#x27;--job-dir&#x27; command-line argument. The benefit of specifying this field is that Cloud ML validates the path for use in training.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001199 &quot;masterConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001200 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
1201 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
1202 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
1203 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001204 &quot;containerArgs&quot;: [ # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001205 &quot;A String&quot;,
1206 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001207 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
1208 &quot;A String&quot;,
1209 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001210 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
1211 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
1212 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1213 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001214 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001215 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001216 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001217 &quot;masterType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001218 &quot;network&quot;: &quot;A String&quot;, # 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001219 &quot;packageUris&quot;: [ # 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.
1220 &quot;A String&quot;,
1221 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001222 &quot;parameterServerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001223 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
1224 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
1225 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
1226 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001227 &quot;containerArgs&quot;: [ # 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.
1228 &quot;A String&quot;,
1229 ],
1230 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
1231 &quot;A String&quot;,
1232 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001233 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
1234 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
1235 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1236 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001237 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001238 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001239 },
1240 &quot;parameterServerCount&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001241 &quot;parameterServerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
1242 &quot;pythonModule&quot;: &quot;A String&quot;, # Required. The Python module name to run after installing the packages.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001243 &quot;pythonVersion&quot;: &quot;A String&quot;, # 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 &#x27;3.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or later. * Python &#x27;3.5&#x27; is available when `runtime_version` is set to a version from &#x27;1.4&#x27; to &#x27;1.14&#x27;. * Python &#x27;2.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or earlier. Read more about the Python versions available for [each runtime version](/ml-engine/docs/runtime-version-list).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001244 &quot;region&quot;: &quot;A String&quot;, # Required. The region to run the training job in. See the [available regions](/ai-platform/training/docs/regions) for AI Platform Training.
1245 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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).
1246 &quot;scaleTier&quot;: &quot;A String&quot;, # Required. Specifies the machine types, the number of replicas for workers and parameter servers.
1247 &quot;scheduling&quot;: { # All parameters related to scheduling of training jobs. # Optional. Scheduling options for a training job.
1248 &quot;maxRunningTime&quot;: &quot;A String&quot;, # 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 ```
1249 &quot;maxWaitTime&quot;: &quot;A String&quot;, # 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&#x27;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 ```
yoshi-code-bot07708072021-07-20 00:20:24 -07001250 &quot;priority&quot;: 42, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001251 },
1252 &quot;serviceAccount&quot;: &quot;A String&quot;, # 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.
1253 &quot;useChiefInTfConfig&quot;: True or False, # 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&#x27;t use a custom container.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001254 &quot;workerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001255 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
1256 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
1257 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
1258 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001259 &quot;containerArgs&quot;: [ # 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.
1260 &quot;A String&quot;,
1261 ],
1262 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
1263 &quot;A String&quot;,
1264 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001265 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
1266 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
1267 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1268 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001269 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001270 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001271 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001272 &quot;workerCount&quot;: &quot;A String&quot;, # 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.
1273 &quot;workerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001274 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001275 &quot;trainingOutput&quot;: { # Represents results of a training job. Output only. # The current training job result.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001276 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for built-in algorithms jobs.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001277 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001278 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001279 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
1280 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001281 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001282 &quot;completedTrialCount&quot;: &quot;A String&quot;, # The number of hyperparameter tuning trials that completed successfully. Only set for hyperparameter tuning jobs.
1283 &quot;consumedMLUnits&quot;: 3.14, # The amount of ML units consumed by the job.
1284 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # The TensorFlow summary tag name used for optimizing hyperparameter tuning trials. See [`HyperparameterSpec.hyperparameterMetricTag`](#HyperparameterSpec.FIELDS.hyperparameter_metric_tag) for more information. Only set for hyperparameter tuning jobs.
1285 &quot;isBuiltInAlgorithmJob&quot;: True or False, # Whether this job is a built-in Algorithm job.
1286 &quot;isHyperparameterTuningJob&quot;: True or False, # Whether this job is a hyperparameter tuning job.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001287 &quot;trials&quot;: [ # Results for individual Hyperparameter trials. Only set for hyperparameter tuning jobs.
1288 { # Represents the result of a single hyperparameter tuning trial from a training job. The TrainingOutput object that is returned on successful completion of a training job with hyperparameter tuning includes a list of HyperparameterOutput objects, one for each successful trial.
1289 &quot;allMetrics&quot;: [ # All recorded object metrics for this trial. This field is not currently populated.
1290 { # An observed value of a metric.
1291 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
1292 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001293 },
1294 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001295 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for trials of built-in algorithms jobs that have succeeded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001296 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001297 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001298 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
1299 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001300 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001301 &quot;endTime&quot;: &quot;A String&quot;, # Output only. End time for the trial.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001302 &quot;finalMetric&quot;: { # An observed value of a metric. # The final objective metric seen for this trial.
1303 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
1304 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
1305 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001306 &quot;hyperparameters&quot;: { # The hyperparameters given to this trial.
1307 &quot;a_key&quot;: &quot;A String&quot;,
1308 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001309 &quot;isTrialStoppedEarly&quot;: True or False, # True if the trial is stopped early.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001310 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Start time for the trial.
1311 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the trial.
1312 &quot;trialId&quot;: &quot;A String&quot;, # The trial id for these results.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001313 &quot;webAccessUris&quot;: { # 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&#x27;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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001314 &quot;a_key&quot;: &quot;A String&quot;,
1315 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001316 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001317 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001318 &quot;webAccessUris&quot;: { # 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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001319 &quot;a_key&quot;: &quot;A String&quot;,
1320 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001321 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001322}
Bu Sun Kim65020912020-05-20 12:08:20 -07001323
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001324 updateMask: string, 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: { &quot;labels&quot;: { &quot;owner&quot;: &quot;Google&quot;, &quot;color&quot;: &quot;Blue&quot; } &quot;etag&quot;: &quot;33a64df551425fcc55e4d42a148795d9f25f89d4&quot; } 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`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001325 x__xgafv: string, V1 error format.
1326 Allowed values
1327 1 - v1 error format
1328 2 - v2 error format
1329
1330Returns:
1331 An object of the form:
1332
1333 { # Represents a training or prediction job.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001334 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the job was created.
1335 &quot;endTime&quot;: &quot;A String&quot;, # Output only. When the job processing was completed.
1336 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. The details of a failure or a cancellation.
1337 &quot;etag&quot;: &quot;A String&quot;, # `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.
1338 &quot;jobId&quot;: &quot;A String&quot;, # Required. The user-specified id of the job.
1339 &quot;labels&quot;: { # 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.
1340 &quot;a_key&quot;: &quot;A String&quot;,
1341 },
1342 &quot;predictionInput&quot;: { # Represents input parameters for a prediction job. # Input parameters to create a prediction job.
1343 &quot;batchSize&quot;: &quot;A String&quot;, # 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.
1344 &quot;dataFormat&quot;: &quot;A String&quot;, # Required. The format of the input data files.
1345 &quot;inputPaths&quot;: [ # Required. The Cloud Storage location of the input data files. May contain wildcards.
1346 &quot;A String&quot;,
1347 ],
1348 &quot;maxWorkerCount&quot;: &quot;A String&quot;, # Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified.
1349 &quot;modelName&quot;: &quot;A String&quot;, # Use this field if you want to use the default version for the specified model. The string must use the following format: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL&quot;`
1350 &quot;outputDataFormat&quot;: &quot;A String&quot;, # Optional. Format of the output data files, defaults to JSON.
1351 &quot;outputPath&quot;: &quot;A String&quot;, # Required. The output Google Cloud Storage location.
1352 &quot;region&quot;: &quot;A String&quot;, # Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services.
1353 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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.
1354 &quot;signatureName&quot;: &quot;A String&quot;, # 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_SIGNATURE_DEF_KEY](https://www.tensorflow.org/api_docs/python/tf/saved_model/signature_constants) , which is &quot;serving_default&quot;.
1355 &quot;uri&quot;: &quot;A String&quot;, # Use this field if you want to specify a Google Cloud Storage path for the model to use.
1356 &quot;versionName&quot;: &quot;A String&quot;, # 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: `&quot;projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION&quot;`
1357 },
1358 &quot;predictionOutput&quot;: { # Represents results of a prediction job. # The current prediction job result.
1359 &quot;errorCount&quot;: &quot;A String&quot;, # The number of data instances which resulted in errors.
1360 &quot;nodeHours&quot;: 3.14, # Node hours used by the batch prediction job.
1361 &quot;outputPath&quot;: &quot;A String&quot;, # The output Google Cloud Storage location provided at the job creation time.
1362 &quot;predictionCount&quot;: &quot;A String&quot;, # The number of generated predictions.
1363 },
1364 &quot;startTime&quot;: &quot;A String&quot;, # Output only. When the job processing was started.
1365 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of a job.
1366 &quot;trainingInput&quot;: { # Represents input parameters for a training job. When using the gcloud command to submit your training job, you can specify the input parameters as command-line arguments and/or in a YAML configuration file referenced from the --config command-line argument. For details, see the guide to [submitting a training job](/ai-platform/training/docs/training-jobs). # Input parameters to create a training job.
1367 &quot;args&quot;: [ # 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&#x27;s `ENTRYPOINT` command.
1368 &quot;A String&quot;,
1369 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001370 &quot;enableWebAccess&quot;: True or False, # 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001371 &quot;encryptionConfig&quot;: { # Represents a custom encryption key configuration that can be applied to a resource. # Optional. Options for using customer-managed encryption keys (CMEK) to protect resources created by a training job, instead of using Google&#x27;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).
1372 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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}`
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001373 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001374 &quot;evaluatorConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
1375 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
1376 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
1377 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001378 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001379 &quot;containerArgs&quot;: [ # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001380 &quot;A String&quot;,
1381 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001382 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001383 &quot;A String&quot;,
1384 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001385 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
1386 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
1387 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1388 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001389 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
1390 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001391 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001392 &quot;evaluatorCount&quot;: &quot;A String&quot;, # 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.
1393 &quot;evaluatorType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
1394 &quot;hyperparameters&quot;: { # Represents a set of hyperparameters to optimize. # Optional. The set of Hyperparameters to tune.
1395 &quot;algorithm&quot;: &quot;A String&quot;, # Optional. The search algorithm specified for the hyperparameter tuning job. Uses the default AI Platform hyperparameter tuning algorithm if unspecified.
1396 &quot;enableTrialEarlyStopping&quot;: True or False, # Optional. Indicates if the hyperparameter tuning job enables auto trial early stopping.
1397 &quot;goal&quot;: &quot;A String&quot;, # Required. The type of goal to use for tuning. Available types are `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`.
1398 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # 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, &quot;training/hptuning/metric&quot; will be used.
1399 &quot;maxFailedTrials&quot;: 42, # 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.
1400 &quot;maxParallelTrials&quot;: 42, # 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.
1401 &quot;maxTrials&quot;: 42, # Optional. How many training trials should be attempted to optimize the specified hyperparameters. Defaults to one.
1402 &quot;params&quot;: [ # Required. The set of parameters to tune.
1403 { # Represents a single hyperparameter to optimize.
1404 &quot;categoricalValues&quot;: [ # Required if type is `CATEGORICAL`. The list of possible categories.
1405 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001406 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001407 &quot;discreteValues&quot;: [ # 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.
1408 3.14,
1409 ],
1410 &quot;maxValue&quot;: 3.14, # 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`.
1411 &quot;minValue&quot;: 3.14, # 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.
1412 &quot;parameterName&quot;: &quot;A String&quot;, # Required. The parameter name must be unique amongst all ParameterConfigs in a HyperparameterSpec message. E.g., &quot;learning_rate&quot;.
1413 &quot;scaleType&quot;: &quot;A String&quot;, # 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`).
1414 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the parameter.
1415 },
1416 ],
1417 &quot;resumePreviousJobId&quot;: &quot;A String&quot;, # 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.
1418 },
1419 &quot;jobDir&quot;: &quot;A String&quot;, # 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 &#x27;--job-dir&#x27; command-line argument. The benefit of specifying this field is that Cloud ML validates the path for use in training.
1420 &quot;masterConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
1421 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
1422 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
1423 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
1424 },
1425 &quot;containerArgs&quot;: [ # 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.
1426 &quot;A String&quot;,
1427 ],
1428 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
1429 &quot;A String&quot;,
1430 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001431 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
1432 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
1433 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1434 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001435 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
1436 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
1437 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001438 &quot;masterType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001439 &quot;network&quot;: &quot;A String&quot;, # 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).
1440 &quot;packageUris&quot;: [ # 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.
1441 &quot;A String&quot;,
1442 ],
1443 &quot;parameterServerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
1444 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
1445 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
1446 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
1447 },
1448 &quot;containerArgs&quot;: [ # 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.
1449 &quot;A String&quot;,
1450 ],
1451 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
1452 &quot;A String&quot;,
1453 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001454 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
1455 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
1456 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1457 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001458 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
1459 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
1460 },
1461 &quot;parameterServerCount&quot;: &quot;A String&quot;, # 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.
1462 &quot;parameterServerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
1463 &quot;pythonModule&quot;: &quot;A String&quot;, # Required. The Python module name to run after installing the packages.
1464 &quot;pythonVersion&quot;: &quot;A String&quot;, # 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 &#x27;3.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or later. * Python &#x27;3.5&#x27; is available when `runtime_version` is set to a version from &#x27;1.4&#x27; to &#x27;1.14&#x27;. * Python &#x27;2.7&#x27; is available when `runtime_version` is set to &#x27;1.15&#x27; or earlier. Read more about the Python versions available for [each runtime version](/ml-engine/docs/runtime-version-list).
1465 &quot;region&quot;: &quot;A String&quot;, # Required. The region to run the training job in. See the [available regions](/ai-platform/training/docs/regions) for AI Platform Training.
1466 &quot;runtimeVersion&quot;: &quot;A String&quot;, # 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).
1467 &quot;scaleTier&quot;: &quot;A String&quot;, # Required. Specifies the machine types, the number of replicas for workers and parameter servers.
1468 &quot;scheduling&quot;: { # All parameters related to scheduling of training jobs. # Optional. Scheduling options for a training job.
1469 &quot;maxRunningTime&quot;: &quot;A String&quot;, # 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 ```
1470 &quot;maxWaitTime&quot;: &quot;A String&quot;, # 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&#x27;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 ```
yoshi-code-bot07708072021-07-20 00:20:24 -07001471 &quot;priority&quot;: 42, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001472 },
1473 &quot;serviceAccount&quot;: &quot;A String&quot;, # 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.
1474 &quot;useChiefInTfConfig&quot;: True or False, # 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&#x27;t use a custom container.
1475 &quot;workerConfig&quot;: { # Represents the configuration for a replica in a cluster. # 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).
1476 &quot;acceleratorConfig&quot;: { # Represents a hardware accelerator request config. Note that the AcceleratorConfig can be used in both Jobs and Versions. Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and [accelerators for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus). # 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)
1477 &quot;count&quot;: &quot;A String&quot;, # The number of accelerators to attach to each machine running the job.
1478 &quot;type&quot;: &quot;A String&quot;, # The type of accelerator to use.
1479 },
1480 &quot;containerArgs&quot;: [ # 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.
1481 &quot;A String&quot;,
1482 ],
1483 &quot;containerCommand&quot;: [ # The command with which the replica&#x27;s custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image&#x27;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.
1484 &quot;A String&quot;,
1485 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001486 &quot;diskConfig&quot;: { # Represents the config of disk options. # Represents the configuration of disk options.
1487 &quot;bootDiskSizeGb&quot;: 42, # Size in GB of the boot disk (default is 100GB).
1488 &quot;bootDiskType&quot;: &quot;A String&quot;, # Type of the boot disk (default is &quot;pd-ssd&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1489 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001490 &quot;imageUri&quot;: &quot;A String&quot;, # 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).
1491 &quot;tpuTfVersion&quot;: &quot;A String&quot;, # 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_compat#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`.
1492 },
1493 &quot;workerCount&quot;: &quot;A String&quot;, # 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.
1494 &quot;workerType&quot;: &quot;A String&quot;, # Optional. Specifies the type of virtual machine to use for your training job&#x27;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.
1495 },
1496 &quot;trainingOutput&quot;: { # Represents results of a training job. Output only. # The current training job result.
1497 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for built-in algorithms jobs.
1498 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
1499 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
1500 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
1501 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
1502 },
1503 &quot;completedTrialCount&quot;: &quot;A String&quot;, # The number of hyperparameter tuning trials that completed successfully. Only set for hyperparameter tuning jobs.
1504 &quot;consumedMLUnits&quot;: 3.14, # The amount of ML units consumed by the job.
1505 &quot;hyperparameterMetricTag&quot;: &quot;A String&quot;, # The TensorFlow summary tag name used for optimizing hyperparameter tuning trials. See [`HyperparameterSpec.hyperparameterMetricTag`](#HyperparameterSpec.FIELDS.hyperparameter_metric_tag) for more information. Only set for hyperparameter tuning jobs.
1506 &quot;isBuiltInAlgorithmJob&quot;: True or False, # Whether this job is a built-in Algorithm job.
1507 &quot;isHyperparameterTuningJob&quot;: True or False, # Whether this job is a hyperparameter tuning job.
1508 &quot;trials&quot;: [ # Results for individual Hyperparameter trials. Only set for hyperparameter tuning jobs.
1509 { # Represents the result of a single hyperparameter tuning trial from a training job. The TrainingOutput object that is returned on successful completion of a training job with hyperparameter tuning includes a list of HyperparameterOutput objects, one for each successful trial.
1510 &quot;allMetrics&quot;: [ # All recorded object metrics for this trial. This field is not currently populated.
1511 { # An observed value of a metric.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001512 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
1513 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
1514 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001515 ],
1516 &quot;builtInAlgorithmOutput&quot;: { # Represents output related to a built-in algorithm Job. # Details related to built-in algorithms jobs. Only set for trials of built-in algorithms jobs that have succeeded.
1517 &quot;framework&quot;: &quot;A String&quot;, # Framework on which the built-in algorithm was trained.
1518 &quot;modelPath&quot;: &quot;A String&quot;, # The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don&#x27;t use hyperparameter tuning.
1519 &quot;pythonVersion&quot;: &quot;A String&quot;, # Python version on which the built-in algorithm was trained.
1520 &quot;runtimeVersion&quot;: &quot;A String&quot;, # AI Platform runtime version on which the built-in algorithm was trained.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001521 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001522 &quot;endTime&quot;: &quot;A String&quot;, # Output only. End time for the trial.
1523 &quot;finalMetric&quot;: { # An observed value of a metric. # The final objective metric seen for this trial.
1524 &quot;objectiveValue&quot;: 3.14, # The objective value at this training step.
1525 &quot;trainingStep&quot;: &quot;A String&quot;, # The global training step for this metric.
1526 },
1527 &quot;hyperparameters&quot;: { # The hyperparameters given to this trial.
1528 &quot;a_key&quot;: &quot;A String&quot;,
1529 },
1530 &quot;isTrialStoppedEarly&quot;: True or False, # True if the trial is stopped early.
1531 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Start time for the trial.
1532 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the trial.
1533 &quot;trialId&quot;: &quot;A String&quot;, # The trial id for these results.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001534 &quot;webAccessUris&quot;: { # 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&#x27;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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001535 &quot;a_key&quot;: &quot;A String&quot;,
1536 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001537 },
1538 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001539 &quot;webAccessUris&quot;: { # 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&#x27;s interactive shell.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001540 &quot;a_key&quot;: &quot;A String&quot;,
1541 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001542 },
1543}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001544</div>
1545
1546<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001547 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001548 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
Dan O'Mearadd494642020-05-01 07:42:23 -07001549
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001550Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001551 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001552 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001553 The object takes the form of:
1554
1555{ # Request message for `SetIamPolicy` method.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001556 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # 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 Cloud Platform services (such as Projects) might reject them.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001557 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1558 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
1559 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1560 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
1561 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
1562 &quot;A String&quot;,
1563 ],
1564 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001565 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001566 ],
1567 &quot;service&quot;: &quot;A String&quot;, # 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.
1568 },
1569 ],
1570 &quot;bindings&quot;: [ # Associates a list of `members` to 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 member.
1571 { # Associates `members` with a `role`.
1572 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # 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 members 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).
1573 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1574 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1575 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1576 &quot;title&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001577 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001578 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform 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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1579 &quot;A String&quot;,
1580 ],
1581 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1582 },
1583 ],
1584 &quot;etag&quot;: &quot;A String&quot;, # `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.
1585 &quot;version&quot;: 42, # 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).
1586 },
1587 &quot;updateMask&quot;: &quot;A String&quot;, # 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: &quot;bindings, etag&quot;`
1588}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001589
1590 x__xgafv: string, V1 error format.
1591 Allowed values
1592 1 - v1 error format
1593 2 - v2 error format
1594
1595Returns:
1596 An object of the form:
1597
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001598 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001599 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1600 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
1601 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1602 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
1603 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
1604 &quot;A String&quot;,
1605 ],
1606 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001607 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001608 ],
1609 &quot;service&quot;: &quot;A String&quot;, # 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.
1610 },
1611 ],
1612 &quot;bindings&quot;: [ # Associates a list of `members` to 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 member.
1613 { # Associates `members` with a `role`.
1614 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # 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 members 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).
1615 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1616 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1617 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1618 &quot;title&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001619 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001620 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform 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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1621 &quot;A String&quot;,
1622 ],
1623 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1624 },
1625 ],
1626 &quot;etag&quot;: &quot;A String&quot;, # `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.
1627 &quot;version&quot;: 42, # 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).
1628}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001629</div>
1630
1631<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001632 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001633 <pre>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 &quot;fail open&quot; without warning.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001634
1635Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001636 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001637 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001638 The object takes the form of:
1639
1640{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001641 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1642 &quot;A String&quot;,
1643 ],
1644}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001645
1646 x__xgafv: string, V1 error format.
1647 Allowed values
1648 1 - v1 error format
1649 2 - v2 error format
1650
1651Returns:
1652 An object of the form:
1653
1654 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001655 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1656 &quot;A String&quot;,
1657 ],
1658}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001659</div>
1660
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001661</body></html>