@maxim_mazurok/gapi.client.ml-v1 0.0.20220728

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,3221 @@
1
+ /* Type definitions for non-npm package AI Platform Training & Prediction API v1 0.0 */
2
+ // Project: https://cloud.google.com/ml/
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+ // TypeScript Version: 2.8
8
+
9
+ // IMPORTANT
10
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
+ // Generated from: https://ml.googleapis.com/$discovery/rest?version=v1
13
+ // Revision: 20220728
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load AI Platform Training & Prediction API v1 */
19
+ function load(urlOrObject: "https://ml.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "ml", version: "v1"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "ml", version: "v1", callback: () => any): void;
24
+
25
+ namespace ml {
26
+ interface GoogleApi__HttpBody {
27
+ /** The HTTP Content-Type header value specifying the content type of the body. */
28
+ contentType?: string;
29
+ /** The HTTP request/response body as raw binary. */
30
+ data?: string;
31
+ /** Application specific response metadata. Must be set in the first response for streaming APIs. */
32
+ extensions?: Array<{ [P in string]: any }>;
33
+ }
34
+ interface GoogleCloudMlV1__AcceleratorConfig {
35
+ /** The number of accelerators to attach to each machine running the job. */
36
+ count?: string;
37
+ /** The type of accelerator to use. */
38
+ type?: string;
39
+ }
40
+ interface GoogleCloudMlV1__AddTrialMeasurementRequest {
41
+ /** Required. The measurement to be added to a trial. */
42
+ measurement?: GoogleCloudMlV1__Measurement;
43
+ }
44
+ interface GoogleCloudMlV1__AutomatedStoppingConfig {
45
+ decayCurveStoppingConfig?: GoogleCloudMlV1_AutomatedStoppingConfig_DecayCurveAutomatedStoppingConfig;
46
+ medianAutomatedStoppingConfig?: GoogleCloudMlV1_AutomatedStoppingConfig_MedianAutomatedStoppingConfig;
47
+ }
48
+ interface GoogleCloudMlV1__AutoScaling {
49
+ /** The maximum number of nodes to scale this model under load. The actual value will depend on resource quota and availability. */
50
+ maxNodes?: number;
51
+ /** MetricSpec contains the specifications to use to calculate the desired nodes count. */
52
+ metrics?: GoogleCloudMlV1__MetricSpec[];
53
+ /**
54
+ * Optional. The minimum number of nodes to allocate for this model. These nodes are always up, starting from the time the model is deployed. Therefore, the cost of operating this
55
+ * model will be at least `rate` * `min_nodes` * number of hours since last billing cycle, where `rate` is the cost per node-hour as documented in the [pricing
56
+ * guide](/ml-engine/docs/pricing), even if no predictions are performed. There is additional cost for each prediction performed. Unlike manual scaling, if the load gets too heavy for
57
+ * the nodes that are up, the service will automatically add nodes to handle the increased load as well as scale back as traffic drops, always maintaining at least `min_nodes`. You
58
+ * will be charged for the time in which additional nodes are used. If `min_nodes` is not specified and AutoScaling is used with a [legacy (MLS1) machine
59
+ * type](/ml-engine/docs/machine-types-online-prediction), `min_nodes` defaults to 0, in which case, when traffic to a model stops (and after a cool-down period), nodes will be shut
60
+ * down and no charges will be incurred until traffic to the model resumes. If `min_nodes` is not specified and AutoScaling is used with a [Compute Engine (N1) machine
61
+ * type](/ml-engine/docs/machine-types-online-prediction), `min_nodes` defaults to 1. `min_nodes` must be at least 1 for use with a Compute Engine machine type. You can set `min_nodes`
62
+ * when creating the model version, and you can also update `min_nodes` for an existing version: update_body.json: { 'autoScaling': { 'minNodes': 5 } } HTTP request: PATCH
63
+ * https://ml.googleapis.com/v1/{name=projects/*‍/models/*‍/versions/*}?update_mask=autoScaling.minNodes -d @./update_body.json
64
+ */
65
+ minNodes?: number;
66
+ }
67
+ interface GoogleCloudMlV1__BuiltInAlgorithmOutput {
68
+ /** Framework on which the built-in algorithm was trained. */
69
+ framework?: string;
70
+ /** The Cloud Storage path to the `model/` directory where the training job saves the trained model. Only set for successful jobs that don't use hyperparameter tuning. */
71
+ modelPath?: string;
72
+ /** Python version on which the built-in algorithm was trained. */
73
+ pythonVersion?: string;
74
+ /** AI Platform runtime version on which the built-in algorithm was trained. */
75
+ runtimeVersion?: string;
76
+ }
77
+ // tslint:disable-next-line:no-empty-interface
78
+ interface GoogleCloudMlV1__CancelJobRequest {
79
+ }
80
+ interface GoogleCloudMlV1__Capability {
81
+ /** Available accelerators for the capability. */
82
+ availableAccelerators?: string[];
83
+ type?: string;
84
+ }
85
+ interface GoogleCloudMlV1__CheckTrialEarlyStoppingStateMetatdata {
86
+ /** The time at which the operation was submitted. */
87
+ createTime?: string;
88
+ /** The name of the study that the trial belongs to. */
89
+ study?: string;
90
+ /** The trial name. */
91
+ trial?: string;
92
+ }
93
+ // tslint:disable-next-line:no-empty-interface
94
+ interface GoogleCloudMlV1__CheckTrialEarlyStoppingStateRequest {
95
+ }
96
+ interface GoogleCloudMlV1__CheckTrialEarlyStoppingStateResponse {
97
+ /** The time at which operation processing completed. */
98
+ endTime?: string;
99
+ /** True if the Trial should stop. */
100
+ shouldStop?: boolean;
101
+ /** The time at which the operation was started. */
102
+ startTime?: string;
103
+ }
104
+ interface GoogleCloudMlV1__CompleteTrialRequest {
105
+ /** Optional. If provided, it will be used as the completed trial's final_measurement; Otherwise, the service will auto-select a previously reported measurement as the final-measurement */
106
+ finalMeasurement?: GoogleCloudMlV1__Measurement;
107
+ /** Optional. A human readable reason why the trial was infeasible. This should only be provided if `trial_infeasible` is true. */
108
+ infeasibleReason?: string;
109
+ /** Optional. True if the trial cannot be run with the given Parameter, and final_measurement will be ignored. */
110
+ trialInfeasible?: boolean;
111
+ }
112
+ interface GoogleCloudMlV1__Config {
113
+ /** The service account Cloud ML uses to run on TPU node. */
114
+ tpuServiceAccount?: string;
115
+ }
116
+ interface GoogleCloudMlV1__ContainerPort {
117
+ /** Number of the port to expose on the container. This must be a valid port number: 0 < PORT_NUMBER < 65536. */
118
+ containerPort?: number;
119
+ }
120
+ interface GoogleCloudMlV1__ContainerSpec {
121
+ /**
122
+ * Immutable. Specifies arguments for the command that runs when the container starts. This overrides the container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd).
123
+ * Specify this field as an array of executable and arguments, similar to a Docker `CMD`'s "default parameters" form. If you don't specify this field but do specify the command field,
124
+ * then the command from the `command` field runs without any additional arguments. See the [Kubernetes documentation about how the `command` and `args` fields interact with a
125
+ * container's `ENTRYPOINT` and `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). If you don't specify this field and don't
126
+ * specify the `commmand` field, then the container's [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and `CMD` determine what runs based on their default
127
+ * behavior. See the [Docker documentation about how `CMD` and `ENTRYPOINT` interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). In
128
+ * this field, you can reference [environment variables set by AI Platform Prediction](/ai-platform/prediction/docs/custom-container-requirements#aip-variables) and environment
129
+ * variables set in the env field. You cannot reference environment variables set in the Docker image. In order for environment variables to be expanded, reference them by using the
130
+ * following syntax: $( VARIABLE_NAME) Note that this differs from Bash variable expansion, which does not use parentheses. If a variable cannot be resolved, the reference in the input
131
+ * string is used unchanged. To avoid variable expansion, you can escape this syntax with `$$`; for example: $$(VARIABLE_NAME) This field corresponds to the `args` field of the
132
+ * [Kubernetes Containers v1 core API](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
133
+ */
134
+ args?: string[];
135
+ /**
136
+ * Immutable. Specifies the command that runs when the container starts. This overrides the container's [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#entrypoint).
137
+ * Specify this field as an array of executable and arguments, similar to a Docker `ENTRYPOINT`'s "exec" form, not its "shell" form. If you do not specify this field, then the
138
+ * container's `ENTRYPOINT` runs, in conjunction with the args field or the container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), if either exists. If this field
139
+ * is not specified and the container does not have an `ENTRYPOINT`, then refer to the [Docker documentation about how `CMD` and `ENTRYPOINT`
140
+ * interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). If you specify this field, then you can also specify the `args` field to
141
+ * provide additional arguments for this command. However, if you specify this field, then the container's `CMD` is ignored. See the [Kubernetes documentation about how the `command`
142
+ * and `args` fields interact with a container's `ENTRYPOINT` and `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). In this
143
+ * field, you can reference [environment variables set by AI Platform Prediction](/ai-platform/prediction/docs/custom-container-requirements#aip-variables) and environment variables
144
+ * set in the env field. You cannot reference environment variables set in the Docker image. In order for environment variables to be expanded, reference them by using the following
145
+ * syntax: $( VARIABLE_NAME) Note that this differs from Bash variable expansion, which does not use parentheses. If a variable cannot be resolved, the reference in the input string is
146
+ * used unchanged. To avoid variable expansion, you can escape this syntax with `$$`; for example: $$(VARIABLE_NAME) This field corresponds to the `command` field of the [Kubernetes
147
+ * Containers v1 core API](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
148
+ */
149
+ command?: string[];
150
+ /**
151
+ * Immutable. List of environment variables to set in the container. After the container starts running, code running in the container can read these environment variables.
152
+ * Additionally, the command and args fields can reference these variables. Later entries in this list can also reference earlier entries. For example, the following example sets the
153
+ * variable `VAR_2` to have the value `foo bar`: ```json [ { "name": "VAR_1", "value": "foo" }, { "name": "VAR_2", "value": "$(VAR_1) bar" } ] ``` If you switch the order of the
154
+ * variables in the example, then the expansion does not occur. This field corresponds to the `env` field of the [Kubernetes Containers v1 core
155
+ * API](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
156
+ */
157
+ env?: GoogleCloudMlV1__EnvVar[];
158
+ /**
159
+ * URI of the Docker image to be used as the custom container for serving predictions. This URI must identify [an image in Artifact Registry](/artifact-registry/docs/overview) and
160
+ * begin with the hostname `{REGION}-docker.pkg.dev`, where `{REGION}` is replaced by the region that matches AI Platform Prediction [regional
161
+ * endpoint](/ai-platform/prediction/docs/regional-endpoints) that you are using. For example, if you are using the `us-central1-ml.googleapis.com` endpoint, then this URI must begin
162
+ * with `us-central1-docker.pkg.dev`. To use a custom container, the [AI Platform Google-managed service account](/ai-platform/prediction/docs/custom-service-account#default) must have
163
+ * permission to pull (read) the Docker image at this URI. The AI Platform Google-managed service account has the following format:
164
+ * `service-{PROJECT_NUMBER}@cloud-ml.google.com.iam.gserviceaccount.com` {PROJECT_NUMBER} is replaced by your Google Cloud project number. By default, this service account has
165
+ * necessary permissions to pull an Artifact Registry image in the same Google Cloud project where you are using AI Platform Prediction. In this case, no configuration is necessary. If
166
+ * you want to use an image from a different Google Cloud project, learn how to [grant the Artifact Registry Reader (roles/artifactregistry.reader) role for a
167
+ * repository](/artifact-registry/docs/access-control#grant-repo) to your projet's AI Platform Google-managed service account. To learn about the requirements for the Docker image
168
+ * itself, read [Custom container requirements](/ai-platform/prediction/docs/custom-container-requirements).
169
+ */
170
+ image?: string;
171
+ /**
172
+ * Immutable. List of ports to expose from the container. AI Platform Prediction sends any prediction requests that it receives to the first port on this list. AI Platform Prediction
173
+ * also sends [liveness and health checks](/ai-platform/prediction/docs/custom-container-requirements#health) to this port. If you do not specify this field, it defaults to following
174
+ * value: ```json [ { "containerPort": 8080 } ] ``` AI Platform Prediction does not use ports other than the first one listed. This field corresponds to the `ports` field of the
175
+ * [Kubernetes Containers v1 core API](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
176
+ */
177
+ ports?: GoogleCloudMlV1__ContainerPort[];
178
+ }
179
+ interface GoogleCloudMlV1__DiskConfig {
180
+ /** Size in GB of the boot disk (default is 100GB). */
181
+ bootDiskSizeGb?: number;
182
+ /** Type of the boot disk (default is "pd-ssd"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). */
183
+ bootDiskType?: string;
184
+ }
185
+ interface GoogleCloudMlV1__EncryptionConfig {
186
+ /**
187
+ * 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:
188
+ * `projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}`
189
+ */
190
+ kmsKeyName?: string;
191
+ }
192
+ interface GoogleCloudMlV1__EnvVar {
193
+ /**
194
+ * Name of the environment variable. Must be a [valid C
195
+ * identifier](https://github.com/kubernetes/kubernetes/blob/v1.18.8/staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go#L258) and must not begin with the prefix `AIP_`.
196
+ */
197
+ name?: string;
198
+ /**
199
+ * Value of the environment variable. Defaults to an empty string. In this field, you can reference [environment variables set by AI Platform
200
+ * Prediction](/ai-platform/prediction/docs/custom-container-requirements#aip-variables) and environment variables set earlier in the same env field as where this message occurs. You
201
+ * cannot reference environment variables set in the Docker image. In order for environment variables to be expanded, reference them by using the following syntax: $(VARIABLE_NAME)
202
+ * Note that this differs from Bash variable expansion, which does not use parentheses. If a variable cannot be resolved, the reference in the input string is used unchanged. To avoid
203
+ * variable expansion, you can escape this syntax with `$$`; for example: $$(VARIABLE_NAME)
204
+ */
205
+ value?: string;
206
+ }
207
+ interface GoogleCloudMlV1__ExplainRequest {
208
+ /** Required. The explanation request body. */
209
+ httpBody?: GoogleApi__HttpBody;
210
+ }
211
+ interface GoogleCloudMlV1__ExplanationConfig {
212
+ /**
213
+ * Attributes credit by computing the Aumann-Shapley value taking advantage of the model's fully differentiable structure. Refer to this paper for more details:
214
+ * https://arxiv.org/abs/1703.01365
215
+ */
216
+ integratedGradientsAttribution?: GoogleCloudMlV1__IntegratedGradientsAttribution;
217
+ /**
218
+ * An attribution method that approximates Shapley values for features that contribute to the label being predicted. A sampling strategy is used to approximate the value rather than
219
+ * considering all subsets of features.
220
+ */
221
+ sampledShapleyAttribution?: GoogleCloudMlV1__SampledShapleyAttribution;
222
+ /**
223
+ * Attributes credit by computing the XRAI taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1906.02825
224
+ * Currently only implemented for models with natural image inputs.
225
+ */
226
+ xraiAttribution?: GoogleCloudMlV1__XraiAttribution;
227
+ }
228
+ interface GoogleCloudMlV1__GetConfigResponse {
229
+ config?: GoogleCloudMlV1__Config;
230
+ /** The service account Cloud ML uses to access resources in the project. */
231
+ serviceAccount?: string;
232
+ /** The project number for `service_account`. */
233
+ serviceAccountProject?: string;
234
+ }
235
+ interface GoogleCloudMlV1__HyperparameterOutput {
236
+ /** All recorded object metrics for this trial. This field is not currently populated. */
237
+ allMetrics?: GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric[];
238
+ /** Details related to built-in algorithms jobs. Only set for trials of built-in algorithms jobs that have succeeded. */
239
+ builtInAlgorithmOutput?: GoogleCloudMlV1__BuiltInAlgorithmOutput;
240
+ /** Output only. End time for the trial. */
241
+ endTime?: string;
242
+ /** The final objective metric seen for this trial. */
243
+ finalMetric?: GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric;
244
+ /** The hyperparameters given to this trial. */
245
+ hyperparameters?: { [P in string]: string };
246
+ /** True if the trial is stopped early. */
247
+ isTrialStoppedEarly?: boolean;
248
+ /** Output only. Start time for the trial. */
249
+ startTime?: string;
250
+ /** Output only. The detailed state of the trial. */
251
+ state?: string;
252
+ /** The trial id for these results. */
253
+ trialId?: string;
254
+ /**
255
+ * 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
256
+ * trial is part of a hyperparameter tuning job and the job's training_input.enable_web_access is `true`. The keys are names of each node in the training job; for example,
257
+ * `master-replica-0` for the master node, `worker-replica-0` for the first worker, and `ps-replica-0` for the first parameter server. The values are the URIs for each node's
258
+ * interactive shell.
259
+ */
260
+ webAccessUris?: { [P in string]: string };
261
+ }
262
+ interface GoogleCloudMlV1__HyperparameterSpec {
263
+ /** Optional. The search algorithm specified for the hyperparameter tuning job. Uses the default AI Platform hyperparameter tuning algorithm if unspecified. */
264
+ algorithm?: string;
265
+ /** Optional. Indicates if the hyperparameter tuning job enables auto trial early stopping. */
266
+ enableTrialEarlyStopping?: boolean;
267
+ /** Required. The type of goal to use for tuning. Available types are `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`. */
268
+ goal?: string;
269
+ /**
270
+ * 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,
271
+ * including all scopes. For versions of TensorFlow prior to 0.12, this should be only the tag passed to tf.Summary. By default, "training/hptuning/metric" will be used.
272
+ */
273
+ hyperparameterMetricTag?: string;
274
+ /**
275
+ * 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
276
+ * Platform hyperparameter tuning jobs. Defaults to zero, which means the service decides when a hyperparameter job should fail.
277
+ */
278
+ maxFailedTrials?: number;
279
+ /**
280
+ * 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
281
+ * 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
282
+ * quality of the overall optimization. Each trial will use the same scale tier and machine types. Defaults to one.
283
+ */
284
+ maxParallelTrials?: number;
285
+ /** Optional. How many training trials should be attempted to optimize the specified hyperparameters. Defaults to one. */
286
+ maxTrials?: number;
287
+ /** Required. The set of parameters to tune. */
288
+ params?: GoogleCloudMlV1__ParameterSpec[];
289
+ /** 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. */
290
+ resumePreviousJobId?: string;
291
+ }
292
+ interface GoogleCloudMlV1__IntegratedGradientsAttribution {
293
+ /** Number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is met within the desired error range. */
294
+ numIntegralSteps?: number;
295
+ }
296
+ interface GoogleCloudMlV1__Job {
297
+ /** Output only. When the job was created. */
298
+ createTime?: string;
299
+ /** Output only. When the job processing was completed. */
300
+ endTime?: string;
301
+ /** Output only. The details of a failure or a cancellation. */
302
+ errorMessage?: string;
303
+ /**
304
+ * `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
305
+ * 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
306
+ * put that etag in the request to `UpdateJob` to ensure that their change will be applied to the same version of the job.
307
+ */
308
+ etag?: string;
309
+ /** Required. The user-specified id of the job. */
310
+ jobId?: string;
311
+ /** Output only. It's only effect when the job is in QUEUED state. If it's positive, it indicates the job's position in the job scheduler. It's 0 when the job is already scheduled. */
312
+ jobPosition?: string;
313
+ /**
314
+ * 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
315
+ * more information, see the documentation on using labels.
316
+ */
317
+ labels?: { [P in string]: string };
318
+ /** Input parameters to create a prediction job. */
319
+ predictionInput?: GoogleCloudMlV1__PredictionInput;
320
+ /** The current prediction job result. */
321
+ predictionOutput?: GoogleCloudMlV1__PredictionOutput;
322
+ /** Output only. When the job processing was started. */
323
+ startTime?: string;
324
+ /** Output only. The detailed state of a job. */
325
+ state?: string;
326
+ /** Input parameters to create a training job. */
327
+ trainingInput?: GoogleCloudMlV1__TrainingInput;
328
+ /** The current training job result. */
329
+ trainingOutput?: GoogleCloudMlV1__TrainingOutput;
330
+ }
331
+ interface GoogleCloudMlV1__ListJobsResponse {
332
+ /** The list of jobs. */
333
+ jobs?: GoogleCloudMlV1__Job[];
334
+ /** Optional. Pass this token as the `page_token` field of the request for a subsequent call. */
335
+ nextPageToken?: string;
336
+ }
337
+ interface GoogleCloudMlV1__ListLocationsResponse {
338
+ /** Locations where at least one type of CMLE capability is available. */
339
+ locations?: GoogleCloudMlV1__Location[];
340
+ /** Optional. Pass this token as the `page_token` field of the request for a subsequent call. */
341
+ nextPageToken?: string;
342
+ }
343
+ interface GoogleCloudMlV1__ListModelsResponse {
344
+ /** The list of models. */
345
+ models?: GoogleCloudMlV1__Model[];
346
+ /** Optional. Pass this token as the `page_token` field of the request for a subsequent call. */
347
+ nextPageToken?: string;
348
+ }
349
+ // tslint:disable-next-line:no-empty-interface
350
+ interface GoogleCloudMlV1__ListOptimalTrialsRequest {
351
+ }
352
+ interface GoogleCloudMlV1__ListOptimalTrialsResponse {
353
+ /**
354
+ * The pareto-optimal trials for multiple objective study or the optimal trial for single objective study. The definition of pareto-optimal can be checked in wiki page.
355
+ * https://en.wikipedia.org/wiki/Pareto_efficiency
356
+ */
357
+ trials?: GoogleCloudMlV1__Trial[];
358
+ }
359
+ interface GoogleCloudMlV1__ListStudiesResponse {
360
+ /** The studies associated with the project. */
361
+ studies?: GoogleCloudMlV1__Study[];
362
+ }
363
+ interface GoogleCloudMlV1__ListTrialsResponse {
364
+ /** The trials associated with the study. */
365
+ trials?: GoogleCloudMlV1__Trial[];
366
+ }
367
+ interface GoogleCloudMlV1__ListVersionsResponse {
368
+ /** Optional. Pass this token as the `page_token` field of the request for a subsequent call. */
369
+ nextPageToken?: string;
370
+ /** The list of versions. */
371
+ versions?: GoogleCloudMlV1__Version[];
372
+ }
373
+ interface GoogleCloudMlV1__Location {
374
+ /** Capabilities available in the location. */
375
+ capabilities?: GoogleCloudMlV1__Capability[];
376
+ name?: string;
377
+ }
378
+ interface GoogleCloudMlV1__ManualScaling {
379
+ /**
380
+ * The number of nodes to allocate for this model. These nodes are always up, starting from the time the model is deployed, so the cost of operating this model will be proportional to
381
+ * `nodes` * number of hours since last billing cycle plus the cost for each prediction performed.
382
+ */
383
+ nodes?: number;
384
+ }
385
+ interface GoogleCloudMlV1__Measurement {
386
+ /** Output only. Time that the trial has been running at the point of this measurement. */
387
+ elapsedTime?: string;
388
+ /** Provides a list of metrics that act as inputs into the objective function. */
389
+ metrics?: GoogleCloudMlV1_Measurement_Metric[];
390
+ /** The number of steps a machine learning model has been trained for. Must be non-negative. */
391
+ stepCount?: string;
392
+ }
393
+ interface GoogleCloudMlV1__MetricSpec {
394
+ /** metric name. */
395
+ name?: string;
396
+ /** Target specifies the target value for the given metric; once real metric deviates from the threshold by a certain percentage, the node count changes. */
397
+ target?: number;
398
+ }
399
+ interface GoogleCloudMlV1__Model {
400
+ /**
401
+ * Output only. The default version of the model. This version will be used to handle prediction requests that do not specify a version. You can change the default version by calling
402
+ * projects.models.versions.setDefault.
403
+ */
404
+ defaultVersion?: GoogleCloudMlV1__Version;
405
+ /** Optional. The description specified for the model when it was created. */
406
+ description?: string;
407
+ /**
408
+ * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a model from overwriting each other. It is strongly suggested that systems make
409
+ * use of the `etag` in the read-modify-write cycle to perform model updates in order to avoid race conditions: An `etag` is returned in the response to `GetModel`, and systems are
410
+ * expected to put that etag in the request to `UpdateModel` to ensure that their change will be applied to the model as intended.
411
+ */
412
+ etag?: string;
413
+ /**
414
+ * Optional. One or more labels that you can add, to organize your models. Each label is a key-value pair, where both the key and the value are arbitrary strings that you supply. For
415
+ * more information, see the documentation on using labels. Note that this field is not updatable for mls1* models.
416
+ */
417
+ labels?: { [P in string]: string };
418
+ /** Required. The name specified for the model when it was created. The model name must be unique within the project it is created in. */
419
+ name?: string;
420
+ /**
421
+ * Optional. If true, online prediction nodes send `stderr` and `stdout` streams to Cloud Logging. These can be more verbose than the standard access logs (see
422
+ * `onlinePredictionLogging`) and can incur higher cost. However, they are helpful for debugging. Note that [logs may incur a cost](/stackdriver/pricing), especially if your project
423
+ * receives prediction requests at a high QPS. Estimate your costs before enabling this option. Default is false.
424
+ */
425
+ onlinePredictionConsoleLogging?: boolean;
426
+ /**
427
+ * Optional. If true, online prediction access logs are sent to Cloud Logging. These logs are like standard server access logs, containing information like timestamp and latency for
428
+ * each request. Note that [logs may incur a cost](/stackdriver/pricing), especially if your project receives prediction requests at a high queries per second rate (QPS). Estimate your
429
+ * costs before enabling this option. Default is false.
430
+ */
431
+ onlinePredictionLogging?: boolean;
432
+ /**
433
+ * Optional. The list of regions where the model is going to be deployed. Only one region per model is supported. Defaults to 'us-central1' if nothing is set. See the available regions
434
+ * for AI Platform services. Note: * No matter where a model is deployed, it can always be accessed by users from anywhere, both for online and batch prediction. * The region for a
435
+ * batch prediction job is set by the region field when submitting the batch prediction job and does not take its value from this field.
436
+ */
437
+ regions?: string[];
438
+ }
439
+ interface GoogleCloudMlV1__OperationMetadata {
440
+ /** The time the operation was submitted. */
441
+ createTime?: string;
442
+ /** The time operation processing completed. */
443
+ endTime?: string;
444
+ /** Indicates whether a request to cancel this operation has been made. */
445
+ isCancellationRequested?: boolean;
446
+ /** The user labels, inherited from the model or the model version being operated on. */
447
+ labels?: { [P in string]: string };
448
+ /** Contains the name of the model associated with the operation. */
449
+ modelName?: string;
450
+ /** The operation type. */
451
+ operationType?: string;
452
+ /** Contains the project number associated with the operation. */
453
+ projectNumber?: string;
454
+ /** The time operation processing started. */
455
+ startTime?: string;
456
+ /** Contains the version associated with the operation. */
457
+ version?: GoogleCloudMlV1__Version;
458
+ }
459
+ interface GoogleCloudMlV1__ParameterSpec {
460
+ /** Required if type is `CATEGORICAL`. The list of possible categories. */
461
+ categoricalValues?: string[];
462
+ /**
463
+ * 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,
464
+ * and 4.0. This list should not contain more than 1,000 values.
465
+ */
466
+ discreteValues?: number[];
467
+ /** 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`. */
468
+ maxValue?: number;
469
+ /** 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. */
470
+ minValue?: number;
471
+ /** Required. The parameter name must be unique amongst all ParameterConfigs in a HyperparameterSpec message. E.g., "learning_rate". */
472
+ parameterName?: string;
473
+ /**
474
+ * 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
475
+ * (e.g., `UNIT_LINEAR_SCALE`).
476
+ */
477
+ scaleType?: string;
478
+ /** Required. The type of the parameter. */
479
+ type?: string;
480
+ }
481
+ interface GoogleCloudMlV1__PredictionInput {
482
+ /**
483
+ * 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
484
+ * take the record size and memory available into consideration when setting this parameter.
485
+ */
486
+ batchSize?: string;
487
+ /** Required. The format of the input data files. */
488
+ dataFormat?: string;
489
+ /** Required. The Cloud Storage location of the input data files. May contain wildcards. */
490
+ inputPaths?: string[];
491
+ /** Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified. */
492
+ maxWorkerCount?: string;
493
+ /** Use this field if you want to use the default version for the specified model. The string must use the following format: `"projects/YOUR_PROJECT/models/YOUR_MODEL"` */
494
+ modelName?: string;
495
+ /** Optional. Format of the output data files, defaults to JSON. */
496
+ outputDataFormat?: string;
497
+ /** Required. The output Google Cloud Storage location. */
498
+ outputPath?: string;
499
+ /** Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services. */
500
+ region?: string;
501
+ /**
502
+ * 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
503
+ * model version, or choose the latest stable version when model version information is not available such as when the model is specified by uri.
504
+ */
505
+ runtimeVersion?: string;
506
+ /**
507
+ * 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
508
+ * 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
509
+ * "serving_default".
510
+ */
511
+ signatureName?: string;
512
+ /** Use this field if you want to specify a Google Cloud Storage path for the model to use. */
513
+ uri?: string;
514
+ /**
515
+ * 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:
516
+ * `"projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION"`
517
+ */
518
+ versionName?: string;
519
+ }
520
+ interface GoogleCloudMlV1__PredictionOutput {
521
+ /** The number of data instances which resulted in errors. */
522
+ errorCount?: string;
523
+ /** Node hours used by the batch prediction job. */
524
+ nodeHours?: number;
525
+ /** The output Google Cloud Storage location provided at the job creation time. */
526
+ outputPath?: string;
527
+ /** The number of generated predictions. */
528
+ predictionCount?: string;
529
+ }
530
+ interface GoogleCloudMlV1__PredictRequest {
531
+ /** Required. The prediction request body. Refer to the [request body details section](#request-body-details) for more information on how to structure your request. */
532
+ httpBody?: GoogleApi__HttpBody;
533
+ }
534
+ interface GoogleCloudMlV1__ReplicaConfig {
535
+ /**
536
+ * Represents the type and number of accelerators used by the replica. [Learn about restrictions on accelerator configurations for
537
+ * training.](/ai-platform/training/docs/using-gpus#compute-engine-machine-types-with-gpu)
538
+ */
539
+ acceleratorConfig?: GoogleCloudMlV1__AcceleratorConfig;
540
+ /**
541
+ * 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
542
+ * 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.
543
+ * - 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
544
+ * 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
545
+ * [TrainingInput.args] are mutually exclusive, i.e., both cannot be set at the same time.
546
+ */
547
+ containerArgs?: string[];
548
+ /**
549
+ * The command with which the replica's custom container is run. If provided, it will override default ENTRYPOINT of the docker image. If not provided, the docker image's ENTRYPOINT is
550
+ * 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.
551
+ */
552
+ containerCommand?: string[];
553
+ /** Represents the configuration of disk options. */
554
+ diskConfig?: GoogleCloudMlV1__DiskConfig;
555
+ /**
556
+ * The Docker image to run on the replica. This image must be in Container Registry. Learn more about [configuring custom
557
+ * containers](/ai-platform/training/docs/distributed-training-containers).
558
+ */
559
+ imageUri?: string;
560
+ /**
561
+ * 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
562
+ * custom container. Otherwise, do not specify this field. This must be a [runtime version that currently supports training with
563
+ * 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
564
+ * 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
565
+ * version (TensorFlow minor version). For example, if your custom container runs TensorFlow `1.x.y`, specify `1.x`.
566
+ */
567
+ tpuTfVersion?: string;
568
+ }
569
+ interface GoogleCloudMlV1__RequestLoggingConfig {
570
+ /**
571
+ * Required. Fully qualified BigQuery table name in the following format: " project_id.dataset_name.table_name" The specified table must already exist, and the "Cloud ML Service Agent"
572
+ * for your project must have permission to write to it. The table must have the following [schema](/bigquery/docs/schemas): Field nameType Mode model STRING REQUIRED model_version
573
+ * STRING REQUIRED time TIMESTAMP REQUIRED raw_data STRING REQUIRED raw_prediction STRING NULLABLE groundtruth STRING NULLABLE
574
+ */
575
+ bigqueryTableName?: string;
576
+ /**
577
+ * Percentage of requests to be logged, expressed as a fraction from 0 to 1. For example, if you want to log 10% of requests, enter `0.1`. The sampling window is the lifetime of the
578
+ * model version. Defaults to 0.
579
+ */
580
+ samplingPercentage?: number;
581
+ }
582
+ interface GoogleCloudMlV1__RouteMap {
583
+ /**
584
+ * HTTP path on the container to send health checkss to. AI Platform Prediction intermittently sends GET requests to this path on the container's IP address and port to check that the
585
+ * container is healthy. Read more about [health checks](/ai-platform/prediction/docs/custom-container-requirements#checks). For example, if you set this field to `/bar`, then AI
586
+ * Platform Prediction intermittently sends a GET request to the `/bar` path on the port of your container specified by the first value of Version.container.ports. If you don't specify
587
+ * this field, it defaults to the following value: /v1/models/ MODEL/versions/VERSION The placeholders in this value are replaced as follows: * MODEL: The name of the parent Model.
588
+ * This does not include the "projects/PROJECT_ID/models/" prefix that the API returns in output; it is the bare model name, as provided to projects.models.create. * VERSION: The name
589
+ * of the model version. This does not include the "projects/PROJECT_ID /models/MODEL/versions/" prefix that the API returns in output; it is the bare version name, as provided to
590
+ * projects.models.versions.create.
591
+ */
592
+ health?: string;
593
+ /**
594
+ * HTTP path on the container to send prediction requests to. AI Platform Prediction forwards requests sent using projects.predict to this path on the container's IP address and port.
595
+ * AI Platform Prediction then returns the container's response in the API response. For example, if you set this field to `/foo`, then when AI Platform Prediction receives a
596
+ * prediction request, it forwards the request body in a POST request to the `/foo` path on the port of your container specified by the first value of Version.container.ports. If you
597
+ * don't specify this field, it defaults to the following value: /v1/models/MODEL/versions/VERSION:predict The placeholders in this value are replaced as follows: * MODEL: The name of
598
+ * the parent Model. This does not include the "projects/PROJECT_ID/models/" prefix that the API returns in output; it is the bare model name, as provided to projects.models.create. *
599
+ * VERSION: The name of the model version. This does not include the "projects/PROJECT_ID/models/MODEL/versions/" prefix that the API returns in output; it is the bare version name, as
600
+ * provided to projects.models.versions.create.
601
+ */
602
+ predict?: string;
603
+ }
604
+ interface GoogleCloudMlV1__SampledShapleyAttribution {
605
+ /** The number of feature permutations to consider when approximating the Shapley values. */
606
+ numPaths?: number;
607
+ }
608
+ interface GoogleCloudMlV1__Scheduling {
609
+ /**
610
+ * 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
611
+ * `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`
612
+ * 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
613
+ * 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`
614
+ * file](/ai-platform/training/docs/training-jobs#formatting_your_configuration_parameters). For example: ```yaml trainingInput: scheduling: maxRunningTime: 7200s ```
615
+ */
616
+ maxRunningTime?: string;
617
+ /**
618
+ * 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
619
+ * 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
620
+ * 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
621
+ * 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
622
+ * 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
623
+ * region. The following example describes how you might use this field: To cancel your job if it doesn't start running within 1 hour, set this field to `3600s` (1 hour * 60 minutes /
624
+ * 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
625
+ * 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:
626
+ * ```yaml trainingInput: scheduling: maxWaitTime: 3600s ```
627
+ */
628
+ maxWaitTime?: string;
629
+ /**
630
+ * 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
631
+ * jobs requesting same type of accelerators, the high priority job will be scheduled prior to ones with low priority.
632
+ */
633
+ priority?: number;
634
+ }
635
+ // tslint:disable-next-line:no-empty-interface
636
+ interface GoogleCloudMlV1__SetDefaultVersionRequest {
637
+ }
638
+ // tslint:disable-next-line:no-empty-interface
639
+ interface GoogleCloudMlV1__StopTrialRequest {
640
+ }
641
+ interface GoogleCloudMlV1__Study {
642
+ /** Output only. Time at which the study was created. */
643
+ createTime?: string;
644
+ /** Output only. A human readable reason why the Study is inactive. This should be empty if a study is ACTIVE or COMPLETED. */
645
+ inactiveReason?: string;
646
+ /** Output only. The name of a study. */
647
+ name?: string;
648
+ /** Output only. The detailed state of a study. */
649
+ state?: string;
650
+ /** Required. Configuration of the study. */
651
+ studyConfig?: GoogleCloudMlV1__StudyConfig;
652
+ }
653
+ interface GoogleCloudMlV1__StudyConfig {
654
+ /** The search algorithm specified for the study. */
655
+ algorithm?: string;
656
+ /** Configuration for automated stopping of unpromising Trials. */
657
+ automatedStoppingConfig?: GoogleCloudMlV1__AutomatedStoppingConfig;
658
+ /** Metric specs for the study. */
659
+ metrics?: GoogleCloudMlV1_StudyConfig_MetricSpec[];
660
+ /** Required. The set of parameters to tune. */
661
+ parameters?: GoogleCloudMlV1_StudyConfig_ParameterSpec[];
662
+ }
663
+ interface GoogleCloudMlV1__SuggestTrialsMetadata {
664
+ /** The identifier of the client that is requesting the suggestion. */
665
+ clientId?: string;
666
+ /** The time operation was submitted. */
667
+ createTime?: string;
668
+ /** The name of the study that the trial belongs to. */
669
+ study?: string;
670
+ /** The number of suggestions requested. */
671
+ suggestionCount?: number;
672
+ }
673
+ interface GoogleCloudMlV1__SuggestTrialsRequest {
674
+ /**
675
+ * Required. The identifier of the client that is requesting the suggestion. If multiple SuggestTrialsRequests have the same `client_id`, the service will return the identical
676
+ * suggested trial if the trial is pending, and provide a new trial if the last suggested trial was completed.
677
+ */
678
+ clientId?: string;
679
+ /** Required. The number of suggestions requested. */
680
+ suggestionCount?: number;
681
+ }
682
+ interface GoogleCloudMlV1__SuggestTrialsResponse {
683
+ /** The time at which operation processing completed. */
684
+ endTime?: string;
685
+ /** The time at which the operation was started. */
686
+ startTime?: string;
687
+ /** The state of the study. */
688
+ studyState?: string;
689
+ /** A list of trials. */
690
+ trials?: GoogleCloudMlV1__Trial[];
691
+ }
692
+ interface GoogleCloudMlV1__TrainingInput {
693
+ /**
694
+ * Optional. Command-line arguments passed to the training application when it starts. If your job uses a custom container, then the arguments are passed to the container's
695
+ * `ENTRYPOINT` command.
696
+ */
697
+ args?: string[];
698
+ /**
699
+ * 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
700
+ * 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
701
+ * TrainingOutput.trials).
702
+ */
703
+ enableWebAccess?: boolean;
704
+ /**
705
+ * Optional. Options for using customer-managed encryption keys (CMEK) to protect resources created by a training job, instead of using Google's default encryption. If this is set,
706
+ * 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
707
+ * Training](/ai-platform/training/docs/cmek).
708
+ */
709
+ encryptionConfig?: GoogleCloudMlV1__EncryptionConfig;
710
+ /**
711
+ * Optional. The configuration for evaluators. You should only set `evaluatorConfig.acceleratorConfig` if `evaluatorType` is set to a Compute Engine machine type. [Learn about
712
+ * restrictions on accelerator configurations for training.](/ai-platform/training/docs/using-gpus#compute-engine-machine-types-with-gpu) Set `evaluatorConfig.imageUri` only if you
713
+ * 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
714
+ * containers](/ai-platform/training/docs/distributed-training-containers).
715
+ */
716
+ evaluatorConfig?: GoogleCloudMlV1__ReplicaConfig;
717
+ /**
718
+ * 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
719
+ * when `scale_tier` is set to `CUSTOM`. If you set this value, you must also set `evaluator_type`. The default value is zero.
720
+ */
721
+ evaluatorCount?: string;
722
+ /**
723
+ * Optional. Specifies the type of virtual machine to use for your training job's evaluator nodes. The supported values are the same as those described in the entry for `masterType`.
724
+ * 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
725
+ * types. This value must be present when `scaleTier` is set to `CUSTOM` and `evaluatorCount` is greater than zero.
726
+ */
727
+ evaluatorType?: string;
728
+ /** Optional. The set of Hyperparameters to tune. */
729
+ hyperparameters?: GoogleCloudMlV1__HyperparameterSpec;
730
+ /**
731
+ * Optional. A Google Cloud Storage path in which to store training outputs and other data needed for training. This path is passed to your TensorFlow program as the '--job-dir'
732
+ * command-line argument. The benefit of specifying this field is that Cloud ML validates the path for use in training.
733
+ */
734
+ jobDir?: string;
735
+ /**
736
+ * 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
737
+ * [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
738
+ * a custom image. Only one of `masterConfig.imageUri` and `runtimeVersion` should be set. Learn more about [configuring custom
739
+ * containers](/ai-platform/training/docs/distributed-training-containers).
740
+ */
741
+ masterConfig?: GoogleCloudMlV1__ReplicaConfig;
742
+ /**
743
+ * Optional. Specifies the type of virtual machine to use for your training job's master worker. You must specify this field when `scaleTier` is set to `CUSTOM`. You can use certain
744
+ * Compute Engine machine types directly in this field. See the [list of compatible Compute Engine machine
745
+ * 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
746
+ * 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
747
+ * the [special configuration options for training with TPUs](/ai-platform/training/docs/using-tpus#configuring_a_custom_tpu_machine).
748
+ */
749
+ masterType?: string;
750
+ /**
751
+ * 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
752
+ * `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
753
+ * 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).
754
+ */
755
+ network?: string;
756
+ /** 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. */
757
+ packageUris?: string[];
758
+ /**
759
+ * Optional. The configuration for parameter servers. You should only set `parameterServerConfig.acceleratorConfig` if `parameterServerType` is set to a Compute Engine machine type.
760
+ * [Learn about restrictions on accelerator configurations for training.](/ai-platform/training/docs/using-gpus#compute-engine-machine-types-with-gpu) Set
761
+ * `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
762
+ * `masterConfig.imageUri`. Learn more about [configuring custom containers](/ai-platform/training/docs/distributed-training-containers).
763
+ */
764
+ parameterServerConfig?: GoogleCloudMlV1__ReplicaConfig;
765
+ /**
766
+ * 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
767
+ * 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.
768
+ */
769
+ parameterServerCount?: string;
770
+ /**
771
+ * Optional. Specifies the type of virtual machine to use for your training job's parameter server. The supported values are the same as those described in the entry for `master_type`.
772
+ * 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
773
+ * types. This value must be present when `scaleTier` is set to `CUSTOM` and `parameter_server_count` is greater than zero.
774
+ */
775
+ parameterServerType?: string;
776
+ /** Required. The Python module name to run after installing the packages. */
777
+ pythonModule?: string;
778
+ /**
779
+ * Optional. The version of Python used in training. You must either specify this field or specify `masterConfig.imageUri`. The following Python versions are available: * Python '3.7'
780
+ * is available when `runtime_version` is set to '1.15' or later. * Python '3.5' is available when `runtime_version` is set to a version from '1.4' to '1.14'. * Python '2.7' is
781
+ * available when `runtime_version` is set to '1.15' or earlier. Read more about the Python versions available for [each runtime version](/ml-engine/docs/runtime-version-list).
782
+ */
783
+ pythonVersion?: string;
784
+ /** Required. The region to run the training job in. See the [available regions](/ai-platform/training/docs/regions) for AI Platform Training. */
785
+ region?: string;
786
+ /**
787
+ * 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
788
+ * list](/ai-platform/training/docs/runtime-version-list) and learn [how to manage runtime versions](/ai-platform/training/docs/versioning).
789
+ */
790
+ runtimeVersion?: string;
791
+ /** Required. Specifies the machine types, the number of replicas for workers and parameter servers. */
792
+ scaleTier?: string;
793
+ /** Optional. Scheduling options for a training job. */
794
+ scheduling?: GoogleCloudMlV1__Scheduling;
795
+ /**
796
+ * 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
797
+ * 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
798
+ * 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.
799
+ */
800
+ serviceAccount?: string;
801
+ /**
802
+ * 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
803
+ * field.](/ai-platform/training/docs/distributed-training-details#chief-versus-master) This field has no effect for training jobs that don't use a custom container.
804
+ */
805
+ useChiefInTfConfig?: boolean;
806
+ /**
807
+ * 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
808
+ * 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
809
+ * for your worker. If `workerConfig.imageUri` has not been set, AI Platform uses the value of `masterConfig.imageUri`. Learn more about [configuring custom
810
+ * containers](/ai-platform/training/docs/distributed-training-containers).
811
+ */
812
+ workerConfig?: GoogleCloudMlV1__ReplicaConfig;
813
+ /**
814
+ * 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
815
+ * `scale_tier` is set to `CUSTOM`. If you set this value, you must also set `worker_type`. The default value is zero.
816
+ */
817
+ workerCount?: string;
818
+ /**
819
+ * Optional. Specifies the type of virtual machine to use for your training job's worker nodes. The supported values are the same as those described in the entry for `masterType`. This
820
+ * 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
821
+ * 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
822
+ * value must be present when `scaleTier` is set to `CUSTOM` and `workerCount` is greater than zero.
823
+ */
824
+ workerType?: string;
825
+ }
826
+ interface GoogleCloudMlV1__TrainingOutput {
827
+ /** Details related to built-in algorithms jobs. Only set for built-in algorithms jobs. */
828
+ builtInAlgorithmOutput?: GoogleCloudMlV1__BuiltInAlgorithmOutput;
829
+ /** The number of hyperparameter tuning trials that completed successfully. Only set for hyperparameter tuning jobs. */
830
+ completedTrialCount?: string;
831
+ /** The amount of ML units consumed by the job. */
832
+ consumedMLUnits?: number;
833
+ /**
834
+ * The TensorFlow summary tag name used for optimizing hyperparameter tuning trials. See
835
+ * [`HyperparameterSpec.hyperparameterMetricTag`](#HyperparameterSpec.FIELDS.hyperparameter_metric_tag) for more information. Only set for hyperparameter tuning jobs.
836
+ */
837
+ hyperparameterMetricTag?: string;
838
+ /** Whether this job is a built-in Algorithm job. */
839
+ isBuiltInAlgorithmJob?: boolean;
840
+ /** Whether this job is a hyperparameter tuning job. */
841
+ isHyperparameterTuningJob?: boolean;
842
+ /** Results for individual Hyperparameter trials. Only set for hyperparameter tuning jobs. */
843
+ trials?: GoogleCloudMlV1__HyperparameterOutput[];
844
+ /**
845
+ * 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
846
+ * 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`
847
+ * for the first worker, and `ps-replica-0` for the first parameter server. The values are the URIs for each node's interactive shell.
848
+ */
849
+ webAccessUris?: { [P in string]: string };
850
+ }
851
+ interface GoogleCloudMlV1__Trial {
852
+ /** Output only. The identifier of the client that originally requested this trial. */
853
+ clientId?: string;
854
+ /** Output only. Time at which the trial's status changed to COMPLETED. */
855
+ endTime?: string;
856
+ /** The final measurement containing the objective value. */
857
+ finalMeasurement?: GoogleCloudMlV1__Measurement;
858
+ /** Output only. A human readable string describing why the trial is infeasible. This should only be set if trial_infeasible is true. */
859
+ infeasibleReason?: string;
860
+ /** A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_time). These are used for early stopping computations. */
861
+ measurements?: GoogleCloudMlV1__Measurement[];
862
+ /** Output only. Name of the trial assigned by the service. */
863
+ name?: string;
864
+ /** The parameters of the trial. */
865
+ parameters?: GoogleCloudMlV1_Trial_Parameter[];
866
+ /** Output only. Time at which the trial was started. */
867
+ startTime?: string;
868
+ /** The detailed state of a trial. */
869
+ state?: string;
870
+ /** Output only. If true, the parameters in this trial are not attempted again. */
871
+ trialInfeasible?: boolean;
872
+ }
873
+ interface GoogleCloudMlV1__Version {
874
+ /**
875
+ * Optional. Accelerator config for using GPUs for online prediction (beta). Only specify this field if you have specified a Compute Engine (N1) machine type in the `machineType`
876
+ * field. Learn more about [using GPUs for online prediction](/ml-engine/docs/machine-types-online-prediction#gpus).
877
+ */
878
+ acceleratorConfig?: GoogleCloudMlV1__AcceleratorConfig;
879
+ /**
880
+ * Automatically scale the number of nodes used to serve the model in response to increases and decreases in traffic. Care should be taken to ramp up traffic according to the model's
881
+ * ability to scale or you will start seeing increases in latency and 429 response codes.
882
+ */
883
+ autoScaling?: GoogleCloudMlV1__AutoScaling;
884
+ /**
885
+ * Optional. Specifies a custom container to use for serving predictions. If you specify this field, then `machineType` is required. If you specify this field, then `deploymentUri` is
886
+ * optional. If you specify this field, then you must not specify `runtimeVersion`, `packageUris`, `framework`, `pythonVersion`, or `predictionClass`.
887
+ */
888
+ container?: GoogleCloudMlV1__ContainerSpec;
889
+ /** Output only. The time the version was created. */
890
+ createTime?: string;
891
+ /**
892
+ * The Cloud Storage URI of a directory containing trained model artifacts to be used to create the model version. See the [guide to deploying
893
+ * models](/ai-platform/prediction/docs/deploying-models) for more information. The total number of files under this directory must not exceed 1000. During
894
+ * projects.models.versions.create, AI Platform Prediction copies all files from the specified directory to a location managed by the service. From then on, AI Platform Prediction uses
895
+ * these copies of the model artifacts to serve predictions, not the original files in Cloud Storage, so this location is useful only as a historical record. If you specify container,
896
+ * then this field is optional. Otherwise, it is required. Learn [how to use this field with a custom container](/ai-platform/prediction/docs/custom-container-requirements#artifacts).
897
+ */
898
+ deploymentUri?: string;
899
+ /** Optional. The description specified for the version when it was created. */
900
+ description?: string;
901
+ /** Output only. The details of a failure or a cancellation. */
902
+ errorMessage?: string;
903
+ /**
904
+ * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a model from overwriting each other. It is strongly suggested that systems make
905
+ * use of the `etag` in the read-modify-write cycle to perform model updates in order to avoid race conditions: An `etag` is returned in the response to `GetVersion`, and systems are
906
+ * expected to put that etag in the request to `UpdateVersion` to ensure that their change will be applied to the model as intended.
907
+ */
908
+ etag?: string;
909
+ /** Optional. Configures explainability features on the model's version. Some explanation features require additional metadata to be loaded as part of the model payload. */
910
+ explanationConfig?: GoogleCloudMlV1__ExplanationConfig;
911
+ /**
912
+ * Optional. The machine learning framework AI Platform uses to train this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`, `XGBOOST`. If you do not specify a
913
+ * framework, AI Platform will analyze files in the deployment_uri to determine a framework. If you choose `SCIKIT_LEARN` or `XGBOOST`, you must also set the runtime version of the
914
+ * model to 1.4 or greater. Do **not** specify a framework if you're deploying a [custom prediction routine](/ai-platform/prediction/docs/custom-prediction-routines) or if you're using
915
+ * a [custom container](/ai-platform/prediction/docs/use-custom-container).
916
+ */
917
+ framework?: string;
918
+ /**
919
+ * Output only. If true, this version will be used to handle prediction requests that do not specify a version. You can change the default version by calling
920
+ * projects.methods.versions.setDefault.
921
+ */
922
+ isDefault?: boolean;
923
+ /**
924
+ * Optional. One or more labels that you can add, to organize your model versions. Each label is a key-value pair, where both the key and the value are arbitrary strings that you
925
+ * supply. For more information, see the documentation on using labels. Note that this field is not updatable for mls1* models.
926
+ */
927
+ labels?: { [P in string]: string };
928
+ /**
929
+ * Output only. The [AI Platform (Unified) `Model`](https://cloud.google.com/ai-platform-unified/docs/reference/rest/v1beta1/projects.locations.models) ID for the last [model
930
+ * migration](https://cloud.google.com/ai-platform-unified/docs/start/migrating-to-ai-platform-unified).
931
+ */
932
+ lastMigrationModelId?: string;
933
+ /**
934
+ * Output only. The last time this version was successfully [migrated to AI Platform
935
+ * (Unified)](https://cloud.google.com/ai-platform-unified/docs/start/migrating-to-ai-platform-unified).
936
+ */
937
+ lastMigrationTime?: string;
938
+ /** Output only. The time the version was last used for prediction. */
939
+ lastUseTime?: string;
940
+ /**
941
+ * Optional. The type of machine on which to serve the model. Currently only applies to online prediction service. To learn about valid values for this field, read [Choosing a machine
942
+ * type for online prediction](/ai-platform/prediction/docs/machine-types-online-prediction). If this field is not specified and you are using a [regional
943
+ * endpoint](/ai-platform/prediction/docs/regional-endpoints), then the machine type defaults to `n1-standard-2`. If this field is not specified and you are using the global endpoint
944
+ * (`ml.googleapis.com`), then the machine type defaults to `mls1-c1-m2`.
945
+ */
946
+ machineType?: string;
947
+ /**
948
+ * Manually select the number of nodes to use for serving the model. You should generally use `auto_scaling` with an appropriate `min_nodes` instead, but this option is available if
949
+ * you want more predictable billing. Beware that latency and error rates will increase if the traffic exceeds that capability of the system to serve it based on the selected number of
950
+ * nodes.
951
+ */
952
+ manualScaling?: GoogleCloudMlV1__ManualScaling;
953
+ /** Required. The name specified for the version when it was created. The version name must be unique within the model it is created in. */
954
+ name?: string;
955
+ /**
956
+ * Optional. Cloud Storage paths (`gs://…`) of packages for [custom prediction routines](/ml-engine/docs/tensorflow/custom-prediction-routines) or [scikit-learn pipelines with custom
957
+ * code](/ml-engine/docs/scikit/exporting-for-prediction#custom-pipeline-code). For a custom prediction routine, one of these packages must contain your Predictor class (see
958
+ * [`predictionClass`](#Version.FIELDS.prediction_class)). Additionally, include any dependencies used by your Predictor or scikit-learn pipeline uses that are not already included in
959
+ * your selected [runtime version](/ml-engine/docs/tensorflow/runtime-version-list). If you specify this field, you must also set [`runtimeVersion`](#Version.FIELDS.runtime_version) to
960
+ * 1.4 or greater.
961
+ */
962
+ packageUris?: string[];
963
+ /**
964
+ * Optional. The fully qualified name (module_name.class_name) of a class that implements the Predictor interface described in this reference field. The module containing this class
965
+ * should be included in a package provided to the [`packageUris` field](#Version.FIELDS.package_uris). Specify this field if and only if you are deploying a [custom prediction routine
966
+ * (beta)](/ml-engine/docs/tensorflow/custom-prediction-routines). If you specify this field, you must set [`runtimeVersion`](#Version.FIELDS.runtime_version) to 1.4 or greater and you
967
+ * must set `machineType` to a [legacy (MLS1) machine type](/ml-engine/docs/machine-types-online-prediction). The following code sample provides the Predictor interface: class
968
+ * Predictor(object): """Interface for constructing custom predictors.""" def predict(self, instances, **kwargs): """Performs custom prediction. Instances are the decoded values from
969
+ * the request. They have already been deserialized from JSON. Args: instances: A list of prediction input instances. **kwargs: A dictionary of keyword args provided as additional
970
+ * fields on the predict request body. Returns: A list of outputs containing the prediction results. This list must be JSON serializable. """ raise NotImplementedError() @‍classmethod
971
+ * def from_path(cls, model_dir): """Creates an instance of Predictor using the given path. Loading of the predictor should be done in this method. Args: model_dir: The local directory
972
+ * that contains the exported model file along with any additional files uploaded when creating the version resource. Returns: An instance implementing this Predictor class. """ raise
973
+ * NotImplementedError() Learn more about [the Predictor interface and custom prediction routines](/ml-engine/docs/tensorflow/custom-prediction-routines).
974
+ */
975
+ predictionClass?: string;
976
+ /**
977
+ * Required. The version of Python used in prediction. The following Python versions are available: * Python '3.7' is available when `runtime_version` is set to '1.15' or later. *
978
+ * Python '3.5' is available when `runtime_version` is set to a version from '1.4' to '1.14'. * Python '2.7' is available when `runtime_version` is set to '1.15' or earlier. Read more
979
+ * about the Python versions available for [each runtime version](/ml-engine/docs/runtime-version-list).
980
+ */
981
+ pythonVersion?: string;
982
+ /**
983
+ * Optional. *Only* specify this field in a projects.models.versions.patch request. Specifying it in a projects.models.versions.create request has no effect. Configures the
984
+ * request-response pair logging on predictions from this Version.
985
+ */
986
+ requestLoggingConfig?: GoogleCloudMlV1__RequestLoggingConfig;
987
+ /**
988
+ * Optional. Specifies paths on a custom container's HTTP server where AI Platform Prediction sends certain requests. If you specify this field, then you must also specify the
989
+ * `container` field. If you specify the `container` field and do not specify this field, it defaults to the following: ```json { "predict":
990
+ * "/v1/models/MODEL/versions/VERSION:predict", "health": "/v1/models/MODEL/versions/VERSION" } ``` See RouteMap for more details about these default values.
991
+ */
992
+ routes?: GoogleCloudMlV1__RouteMap;
993
+ /**
994
+ * Required. The AI Platform runtime version to use for this deployment. For more information, see the [runtime version list](/ml-engine/docs/runtime-version-list) and [how to manage
995
+ * runtime versions](/ml-engine/docs/versioning).
996
+ */
997
+ runtimeVersion?: string;
998
+ /**
999
+ * Optional. Specifies the service account for resource access control. If you specify this field, then you must also specify either the `containerSpec` or the `predictionClass` field.
1000
+ * Learn more about [using a custom service account](/ai-platform/prediction/docs/custom-service-account).
1001
+ */
1002
+ serviceAccount?: string;
1003
+ /** Output only. The state of a version. */
1004
+ state?: string;
1005
+ }
1006
+ interface GoogleCloudMlV1__XraiAttribution {
1007
+ /** Number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is met within the desired error range. */
1008
+ numIntegralSteps?: number;
1009
+ }
1010
+ interface GoogleCloudMlV1_AutomatedStoppingConfig_DecayCurveAutomatedStoppingConfig {
1011
+ /** If true, measurement.elapsed_time is used as the x-axis of each Trials Decay Curve. Otherwise, Measurement.steps will be used as the x-axis. */
1012
+ useElapsedTime?: boolean;
1013
+ }
1014
+ interface GoogleCloudMlV1_AutomatedStoppingConfig_MedianAutomatedStoppingConfig {
1015
+ /**
1016
+ * If true, the median automated stopping rule applies to measurement.use_elapsed_time, which means the elapsed_time field of the current trial's latest measurement is used to compute
1017
+ * the median objective value for each completed trial.
1018
+ */
1019
+ useElapsedTime?: boolean;
1020
+ }
1021
+ interface GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric {
1022
+ /** The objective value at this training step. */
1023
+ objectiveValue?: number;
1024
+ /** The global training step for this metric. */
1025
+ trainingStep?: string;
1026
+ }
1027
+ interface GoogleCloudMlV1_Measurement_Metric {
1028
+ /** Required. Metric name. */
1029
+ metric?: string;
1030
+ /** Required. The value for this metric. */
1031
+ value?: number;
1032
+ }
1033
+ interface GoogleCloudMlV1_StudyConfig_MetricSpec {
1034
+ /** Required. The optimization goal of the metric. */
1035
+ goal?: string;
1036
+ /** Required. The name of the metric. */
1037
+ metric?: string;
1038
+ }
1039
+ interface GoogleCloudMlV1_StudyConfig_ParameterSpec {
1040
+ /** The value spec for a 'CATEGORICAL' parameter. */
1041
+ categoricalValueSpec?: GoogleCloudMlV1_StudyConfigParameterSpec_CategoricalValueSpec;
1042
+ /**
1043
+ * A child node is active if the parameter's value matches the child node's matching_parent_values. If two items in child_parameter_specs have the same name, they must have disjoint
1044
+ * matching_parent_values.
1045
+ */
1046
+ childParameterSpecs?: GoogleCloudMlV1_StudyConfig_ParameterSpec[];
1047
+ /** The value spec for a 'DISCRETE' parameter. */
1048
+ discreteValueSpec?: GoogleCloudMlV1_StudyConfigParameterSpec_DiscreteValueSpec;
1049
+ /** The value spec for a 'DOUBLE' parameter. */
1050
+ doubleValueSpec?: GoogleCloudMlV1_StudyConfigParameterSpec_DoubleValueSpec;
1051
+ /** The value spec for an 'INTEGER' parameter. */
1052
+ integerValueSpec?: GoogleCloudMlV1_StudyConfigParameterSpec_IntegerValueSpec;
1053
+ /** Required. The parameter name must be unique amongst all ParameterSpecs. */
1054
+ parameter?: string;
1055
+ parentCategoricalValues?: GoogleCloudMlV1_StudyConfigParameterSpec_MatchingParentCategoricalValueSpec;
1056
+ parentDiscreteValues?: GoogleCloudMlV1_StudyConfigParameterSpec_MatchingParentDiscreteValueSpec;
1057
+ parentIntValues?: GoogleCloudMlV1_StudyConfigParameterSpec_MatchingParentIntValueSpec;
1058
+ /** How the parameter should be scaled. Leave unset for categorical parameters. */
1059
+ scaleType?: string;
1060
+ /** Required. The type of the parameter. */
1061
+ type?: string;
1062
+ }
1063
+ interface GoogleCloudMlV1_StudyConfigParameterSpec_CategoricalValueSpec {
1064
+ /** Must be specified if type is `CATEGORICAL`. The list of possible categories. */
1065
+ values?: string[];
1066
+ }
1067
+ interface GoogleCloudMlV1_StudyConfigParameterSpec_DiscreteValueSpec {
1068
+ /**
1069
+ * Must be specified if type is `DISCRETE`. A list of feasible points. The list should be in strictly increasing order. For instance, this parameter might have possible settings of
1070
+ * 1.5, 2.5, and 4.0. This list should not contain more than 1,000 values.
1071
+ */
1072
+ values?: number[];
1073
+ }
1074
+ interface GoogleCloudMlV1_StudyConfigParameterSpec_DoubleValueSpec {
1075
+ /** Must be specified if type is `DOUBLE`. Maximum value of the parameter. */
1076
+ maxValue?: number;
1077
+ /** Must be specified if type is `DOUBLE`. Minimum value of the parameter. */
1078
+ minValue?: number;
1079
+ }
1080
+ interface GoogleCloudMlV1_StudyConfigParameterSpec_IntegerValueSpec {
1081
+ /** Must be specified if type is `INTEGER`. Maximum value of the parameter. */
1082
+ maxValue?: string;
1083
+ /** Must be specified if type is `INTEGER`. Minimum value of the parameter. */
1084
+ minValue?: string;
1085
+ }
1086
+ interface GoogleCloudMlV1_StudyConfigParameterSpec_MatchingParentCategoricalValueSpec {
1087
+ /** Matches values of the parent parameter with type 'CATEGORICAL'. All values must exist in `categorical_value_spec` of parent parameter. */
1088
+ values?: string[];
1089
+ }
1090
+ interface GoogleCloudMlV1_StudyConfigParameterSpec_MatchingParentDiscreteValueSpec {
1091
+ /** Matches values of the parent parameter with type 'DISCRETE'. All values must exist in `discrete_value_spec` of parent parameter. */
1092
+ values?: number[];
1093
+ }
1094
+ interface GoogleCloudMlV1_StudyConfigParameterSpec_MatchingParentIntValueSpec {
1095
+ /** Matches values of the parent parameter with type 'INTEGER'. All values must lie in `integer_value_spec` of parent parameter. */
1096
+ values?: string[];
1097
+ }
1098
+ interface GoogleCloudMlV1_Trial_Parameter {
1099
+ /** Must be set if ParameterType is DOUBLE or DISCRETE. */
1100
+ floatValue?: number;
1101
+ /** Must be set if ParameterType is INTEGER */
1102
+ intValue?: string;
1103
+ /** The name of the parameter. */
1104
+ parameter?: string;
1105
+ /** Must be set if ParameterTypeis CATEGORICAL */
1106
+ stringValue?: string;
1107
+ }
1108
+ interface GoogleIamV1__AuditConfig {
1109
+ /** The configuration for logging of each type of permission. */
1110
+ auditLogConfigs?: GoogleIamV1__AuditLogConfig[];
1111
+ /**
1112
+ * 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
1113
+ * services.
1114
+ */
1115
+ service?: string;
1116
+ }
1117
+ interface GoogleIamV1__AuditLogConfig {
1118
+ /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
1119
+ exemptedMembers?: string[];
1120
+ /** The log type that this config enables. */
1121
+ logType?: string;
1122
+ }
1123
+ interface GoogleIamV1__Binding {
1124
+ /**
1125
+ * 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`,
1126
+ * then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which
1127
+ * resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1128
+ */
1129
+ condition?: GoogleType__Expr;
1130
+ /**
1131
+ * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on
1132
+ * 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
1133
+ * account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
1134
+ * represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example,
1135
+ * `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
1136
+ * `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. *
1137
+ * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
1138
+ * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
1139
+ * 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
1140
+ * 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
1141
+ * the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1142
+ */
1143
+ members?: string[];
1144
+ /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
1145
+ role?: string;
1146
+ }
1147
+ interface GoogleIamV1__Policy {
1148
+ /** Specifies cloud audit logging configuration for this policy. */
1149
+ auditConfigs?: GoogleIamV1__AuditConfig[];
1150
+ /**
1151
+ * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings`
1152
+ * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a
1153
+ * principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another
1154
+ * 1,450 principals to the `bindings` in the `Policy`.
1155
+ */
1156
+ bindings?: GoogleIamV1__Binding[];
1157
+ /**
1158
+ * `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
1159
+ * 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
1160
+ * 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
1161
+ * 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`
1162
+ * policy, and all of the conditions in the version `3` policy are lost.
1163
+ */
1164
+ etag?: string;
1165
+ /**
1166
+ * 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
1167
+ * 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
1168
+ * 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
1169
+ * 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`
1170
+ * 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
1171
+ * 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).
1172
+ */
1173
+ version?: number;
1174
+ }
1175
+ interface GoogleIamV1__SetIamPolicyRequest {
1176
+ /**
1177
+ * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
1178
+ * services (such as Projects) might reject them.
1179
+ */
1180
+ policy?: GoogleIamV1__Policy;
1181
+ /**
1182
+ * 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:
1183
+ * `paths: "bindings, etag"`
1184
+ */
1185
+ updateMask?: string;
1186
+ }
1187
+ interface GoogleIamV1__TestIamPermissionsRequest {
1188
+ /**
1189
+ * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
1190
+ * Overview](https://cloud.google.com/iam/docs/overview#permissions).
1191
+ */
1192
+ permissions?: string[];
1193
+ }
1194
+ interface GoogleIamV1__TestIamPermissionsResponse {
1195
+ /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
1196
+ permissions?: string[];
1197
+ }
1198
+ interface GoogleLongrunning__ListOperationsResponse {
1199
+ /** The standard List next-page token. */
1200
+ nextPageToken?: string;
1201
+ /** A list of operations that matches the specified filter in the request. */
1202
+ operations?: GoogleLongrunning__Operation[];
1203
+ }
1204
+ interface GoogleLongrunning__Operation {
1205
+ /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
1206
+ done?: boolean;
1207
+ /** The error result of the operation in case of failure or cancellation. */
1208
+ error?: GoogleRpc__Status;
1209
+ /**
1210
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
1211
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
1212
+ */
1213
+ metadata?: { [P in string]: any };
1214
+ /**
1215
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
1216
+ * with `operations/{unique_id}`.
1217
+ */
1218
+ name?: string;
1219
+ /**
1220
+ * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
1221
+ * original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
1222
+ * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1223
+ */
1224
+ response?: { [P in string]: any };
1225
+ }
1226
+ // tslint:disable-next-line:no-empty-interface
1227
+ interface GoogleProtobuf__Empty {
1228
+ }
1229
+ interface GoogleRpc__Status {
1230
+ /** The status code, which should be an enum value of google.rpc.Code. */
1231
+ code?: number;
1232
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
1233
+ details?: Array<{ [P in string]: any }>;
1234
+ /**
1235
+ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
1236
+ * client.
1237
+ */
1238
+ message?: string;
1239
+ }
1240
+ interface GoogleType__Expr {
1241
+ /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
1242
+ description?: string;
1243
+ /** Textual representation of an expression in Common Expression Language syntax. */
1244
+ expression?: string;
1245
+ /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
1246
+ location?: string;
1247
+ /** 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. */
1248
+ title?: string;
1249
+ }
1250
+ interface JobsResource {
1251
+ /** Cancels a running job. */
1252
+ cancel(request: {
1253
+ /** V1 error format. */
1254
+ "$.xgafv"?: string;
1255
+ /** OAuth access token. */
1256
+ access_token?: string;
1257
+ /** Data format for response. */
1258
+ alt?: string;
1259
+ /** JSONP */
1260
+ callback?: string;
1261
+ /** Selector specifying which fields to include in a partial response. */
1262
+ fields?: string;
1263
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1264
+ key?: string;
1265
+ /** Required. The name of the job to cancel. */
1266
+ name: string;
1267
+ /** OAuth 2.0 token for the current user. */
1268
+ oauth_token?: string;
1269
+ /** Returns response with indentations and line breaks. */
1270
+ prettyPrint?: boolean;
1271
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1272
+ quotaUser?: string;
1273
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1274
+ upload_protocol?: string;
1275
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1276
+ uploadType?: string;
1277
+ /** Request body */
1278
+ resource: GoogleCloudMlV1__CancelJobRequest;
1279
+ }): Request<{}>;
1280
+ cancel(request: {
1281
+ /** V1 error format. */
1282
+ "$.xgafv"?: string;
1283
+ /** OAuth access token. */
1284
+ access_token?: string;
1285
+ /** Data format for response. */
1286
+ alt?: string;
1287
+ /** JSONP */
1288
+ callback?: string;
1289
+ /** Selector specifying which fields to include in a partial response. */
1290
+ fields?: string;
1291
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1292
+ key?: string;
1293
+ /** Required. The name of the job to cancel. */
1294
+ name: string;
1295
+ /** OAuth 2.0 token for the current user. */
1296
+ oauth_token?: string;
1297
+ /** Returns response with indentations and line breaks. */
1298
+ prettyPrint?: boolean;
1299
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1300
+ quotaUser?: string;
1301
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1302
+ upload_protocol?: string;
1303
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1304
+ uploadType?: string;
1305
+ },
1306
+ body: GoogleCloudMlV1__CancelJobRequest): Request<{}>;
1307
+ /** Creates a training or a batch prediction job. */
1308
+ create(request: {
1309
+ /** V1 error format. */
1310
+ "$.xgafv"?: string;
1311
+ /** OAuth access token. */
1312
+ access_token?: string;
1313
+ /** Data format for response. */
1314
+ alt?: string;
1315
+ /** JSONP */
1316
+ callback?: string;
1317
+ /** Selector specifying which fields to include in a partial response. */
1318
+ fields?: string;
1319
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1320
+ key?: string;
1321
+ /** OAuth 2.0 token for the current user. */
1322
+ oauth_token?: string;
1323
+ /** Required. The project name. */
1324
+ parent: string;
1325
+ /** Returns response with indentations and line breaks. */
1326
+ prettyPrint?: boolean;
1327
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1328
+ quotaUser?: string;
1329
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1330
+ upload_protocol?: string;
1331
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1332
+ uploadType?: string;
1333
+ /** Request body */
1334
+ resource: GoogleCloudMlV1__Job;
1335
+ }): Request<GoogleCloudMlV1__Job>;
1336
+ create(request: {
1337
+ /** V1 error format. */
1338
+ "$.xgafv"?: string;
1339
+ /** OAuth access token. */
1340
+ access_token?: string;
1341
+ /** Data format for response. */
1342
+ alt?: string;
1343
+ /** JSONP */
1344
+ callback?: string;
1345
+ /** Selector specifying which fields to include in a partial response. */
1346
+ fields?: string;
1347
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1348
+ key?: string;
1349
+ /** OAuth 2.0 token for the current user. */
1350
+ oauth_token?: string;
1351
+ /** Required. The project name. */
1352
+ parent: string;
1353
+ /** Returns response with indentations and line breaks. */
1354
+ prettyPrint?: boolean;
1355
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1356
+ quotaUser?: string;
1357
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1358
+ upload_protocol?: string;
1359
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1360
+ uploadType?: string;
1361
+ },
1362
+ body: GoogleCloudMlV1__Job): Request<GoogleCloudMlV1__Job>;
1363
+ /** Describes a job. */
1364
+ get(request?: {
1365
+ /** V1 error format. */
1366
+ "$.xgafv"?: string;
1367
+ /** OAuth access token. */
1368
+ access_token?: string;
1369
+ /** Data format for response. */
1370
+ alt?: string;
1371
+ /** JSONP */
1372
+ callback?: string;
1373
+ /** Selector specifying which fields to include in a partial response. */
1374
+ fields?: string;
1375
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1376
+ key?: string;
1377
+ /** Required. The name of the job to get the description of. */
1378
+ name: string;
1379
+ /** OAuth 2.0 token for the current user. */
1380
+ oauth_token?: string;
1381
+ /** Returns response with indentations and line breaks. */
1382
+ prettyPrint?: boolean;
1383
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1384
+ quotaUser?: string;
1385
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1386
+ upload_protocol?: string;
1387
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1388
+ uploadType?: string;
1389
+ }): Request<GoogleCloudMlV1__Job>;
1390
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1391
+ getIamPolicy(request?: {
1392
+ /** V1 error format. */
1393
+ "$.xgafv"?: string;
1394
+ /** OAuth access token. */
1395
+ access_token?: string;
1396
+ /** Data format for response. */
1397
+ alt?: string;
1398
+ /** JSONP */
1399
+ callback?: string;
1400
+ /** Selector specifying which fields to include in a partial response. */
1401
+ fields?: string;
1402
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1403
+ key?: string;
1404
+ /** OAuth 2.0 token for the current user. */
1405
+ oauth_token?: string;
1406
+ /**
1407
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
1408
+ * policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
1409
+ * in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
1410
+ * role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
1411
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1412
+ */
1413
+ "options.requestedPolicyVersion"?: number;
1414
+ /** Returns response with indentations and line breaks. */
1415
+ prettyPrint?: boolean;
1416
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1417
+ quotaUser?: string;
1418
+ /**
1419
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1420
+ * field.
1421
+ */
1422
+ resource: string;
1423
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1424
+ upload_protocol?: string;
1425
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1426
+ uploadType?: string;
1427
+ }): Request<GoogleIamV1__Policy>;
1428
+ /** Lists the jobs in the project. If there are no jobs that match the request parameters, the list request returns an empty response body: {}. */
1429
+ list(request?: {
1430
+ /** V1 error format. */
1431
+ "$.xgafv"?: string;
1432
+ /** OAuth access token. */
1433
+ access_token?: string;
1434
+ /** Data format for response. */
1435
+ alt?: string;
1436
+ /** JSONP */
1437
+ callback?: string;
1438
+ /** Selector specifying which fields to include in a partial response. */
1439
+ fields?: string;
1440
+ /**
1441
+ * 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
1442
+ * that starts with 'census': gcloud ai-platform jobs list --filter='jobId:census*' List all failed jobs with names that start with 'rnn': gcloud ai-platform jobs list
1443
+ * --filter='jobId:rnn* AND state:FAILED' For more examples, see the guide to monitoring jobs.
1444
+ */
1445
+ filter?: string;
1446
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1447
+ key?: string;
1448
+ /** OAuth 2.0 token for the current user. */
1449
+ oauth_token?: string;
1450
+ /**
1451
+ * Optional. The number of jobs to retrieve per "page" of results. If there are more remaining results than this number, the response message will contain a valid value in the
1452
+ * `next_page_token` field. The default value is 20, and the maximum page size is 100.
1453
+ */
1454
+ pageSize?: number;
1455
+ /** 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. */
1456
+ pageToken?: string;
1457
+ /** Required. The name of the project for which to list jobs. */
1458
+ parent: string;
1459
+ /** Returns response with indentations and line breaks. */
1460
+ prettyPrint?: boolean;
1461
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1462
+ quotaUser?: string;
1463
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1464
+ upload_protocol?: string;
1465
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1466
+ uploadType?: string;
1467
+ }): Request<GoogleCloudMlV1__ListJobsResponse>;
1468
+ /** Updates a specific job resource. Currently the only supported fields to update are `labels`. */
1469
+ patch(request: {
1470
+ /** V1 error format. */
1471
+ "$.xgafv"?: string;
1472
+ /** OAuth access token. */
1473
+ access_token?: string;
1474
+ /** Data format for response. */
1475
+ alt?: string;
1476
+ /** JSONP */
1477
+ callback?: string;
1478
+ /** Selector specifying which fields to include in a partial response. */
1479
+ fields?: string;
1480
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1481
+ key?: string;
1482
+ /** Required. The job name. */
1483
+ name: string;
1484
+ /** OAuth 2.0 token for the current user. */
1485
+ oauth_token?: string;
1486
+ /** Returns response with indentations and line breaks. */
1487
+ prettyPrint?: boolean;
1488
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1489
+ quotaUser?: string;
1490
+ /**
1491
+ * 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
1492
+ * 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
1493
+ * value, as follows: { "labels": { "owner": "Google", "color": "Blue" } "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4" } If `etag` matches the one on the server, the labels of
1494
+ * 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`.
1495
+ */
1496
+ updateMask?: string;
1497
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1498
+ upload_protocol?: string;
1499
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1500
+ uploadType?: string;
1501
+ /** Request body */
1502
+ resource: GoogleCloudMlV1__Job;
1503
+ }): Request<GoogleCloudMlV1__Job>;
1504
+ patch(request: {
1505
+ /** V1 error format. */
1506
+ "$.xgafv"?: string;
1507
+ /** OAuth access token. */
1508
+ access_token?: string;
1509
+ /** Data format for response. */
1510
+ alt?: string;
1511
+ /** JSONP */
1512
+ callback?: string;
1513
+ /** Selector specifying which fields to include in a partial response. */
1514
+ fields?: string;
1515
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1516
+ key?: string;
1517
+ /** Required. The job name. */
1518
+ name: string;
1519
+ /** OAuth 2.0 token for the current user. */
1520
+ oauth_token?: string;
1521
+ /** Returns response with indentations and line breaks. */
1522
+ prettyPrint?: boolean;
1523
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1524
+ quotaUser?: string;
1525
+ /**
1526
+ * 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
1527
+ * 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
1528
+ * value, as follows: { "labels": { "owner": "Google", "color": "Blue" } "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4" } If `etag` matches the one on the server, the labels of
1529
+ * 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`.
1530
+ */
1531
+ updateMask?: string;
1532
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1533
+ upload_protocol?: string;
1534
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1535
+ uploadType?: string;
1536
+ },
1537
+ body: GoogleCloudMlV1__Job): Request<GoogleCloudMlV1__Job>;
1538
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
1539
+ setIamPolicy(request: {
1540
+ /** V1 error format. */
1541
+ "$.xgafv"?: string;
1542
+ /** OAuth access token. */
1543
+ access_token?: string;
1544
+ /** Data format for response. */
1545
+ alt?: string;
1546
+ /** JSONP */
1547
+ callback?: string;
1548
+ /** Selector specifying which fields to include in a partial response. */
1549
+ fields?: string;
1550
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1551
+ key?: string;
1552
+ /** OAuth 2.0 token for the current user. */
1553
+ oauth_token?: string;
1554
+ /** Returns response with indentations and line breaks. */
1555
+ prettyPrint?: boolean;
1556
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1557
+ quotaUser?: string;
1558
+ /**
1559
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1560
+ * field.
1561
+ */
1562
+ resource: string;
1563
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1564
+ upload_protocol?: string;
1565
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1566
+ uploadType?: string;
1567
+ },
1568
+ body: GoogleIamV1__SetIamPolicyRequest): Request<GoogleIamV1__Policy>;
1569
+ /**
1570
+ * 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
1571
+ * 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.
1572
+ */
1573
+ testIamPermissions(request: {
1574
+ /** V1 error format. */
1575
+ "$.xgafv"?: string;
1576
+ /** OAuth access token. */
1577
+ access_token?: string;
1578
+ /** Data format for response. */
1579
+ alt?: string;
1580
+ /** JSONP */
1581
+ callback?: string;
1582
+ /** Selector specifying which fields to include in a partial response. */
1583
+ fields?: string;
1584
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1585
+ key?: string;
1586
+ /** OAuth 2.0 token for the current user. */
1587
+ oauth_token?: string;
1588
+ /** Returns response with indentations and line breaks. */
1589
+ prettyPrint?: boolean;
1590
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1591
+ quotaUser?: string;
1592
+ /**
1593
+ * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
1594
+ * this field.
1595
+ */
1596
+ resource: string;
1597
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1598
+ upload_protocol?: string;
1599
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1600
+ uploadType?: string;
1601
+ },
1602
+ body: GoogleIamV1__TestIamPermissionsRequest): Request<GoogleIamV1__TestIamPermissionsResponse>;
1603
+ }
1604
+ interface OperationsResource {
1605
+ /**
1606
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
1607
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
1608
+ * operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
1609
+ * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
1610
+ */
1611
+ cancel(request?: {
1612
+ /** V1 error format. */
1613
+ "$.xgafv"?: string;
1614
+ /** OAuth access token. */
1615
+ access_token?: string;
1616
+ /** Data format for response. */
1617
+ alt?: string;
1618
+ /** JSONP */
1619
+ callback?: string;
1620
+ /** Selector specifying which fields to include in a partial response. */
1621
+ fields?: string;
1622
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1623
+ key?: string;
1624
+ /** The name of the operation resource to be cancelled. */
1625
+ name: string;
1626
+ /** OAuth 2.0 token for the current user. */
1627
+ oauth_token?: string;
1628
+ /** Returns response with indentations and line breaks. */
1629
+ prettyPrint?: boolean;
1630
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1631
+ quotaUser?: string;
1632
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1633
+ upload_protocol?: string;
1634
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1635
+ uploadType?: string;
1636
+ }): Request<{}>;
1637
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1638
+ get(request?: {
1639
+ /** V1 error format. */
1640
+ "$.xgafv"?: string;
1641
+ /** OAuth access token. */
1642
+ access_token?: string;
1643
+ /** Data format for response. */
1644
+ alt?: string;
1645
+ /** JSONP */
1646
+ callback?: string;
1647
+ /** Selector specifying which fields to include in a partial response. */
1648
+ fields?: string;
1649
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1650
+ key?: string;
1651
+ /** The name of the operation resource. */
1652
+ name: string;
1653
+ /** OAuth 2.0 token for the current user. */
1654
+ oauth_token?: string;
1655
+ /** Returns response with indentations and line breaks. */
1656
+ prettyPrint?: boolean;
1657
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1658
+ quotaUser?: string;
1659
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1660
+ upload_protocol?: string;
1661
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1662
+ uploadType?: string;
1663
+ }): Request<GoogleLongrunning__Operation>;
1664
+ }
1665
+ interface TrialsResource {
1666
+ /** Adds a measurement of the objective metrics to a trial. This measurement is assumed to have been taken before the trial is complete. */
1667
+ addMeasurement(request: {
1668
+ /** V1 error format. */
1669
+ "$.xgafv"?: string;
1670
+ /** OAuth access token. */
1671
+ access_token?: string;
1672
+ /** Data format for response. */
1673
+ alt?: string;
1674
+ /** JSONP */
1675
+ callback?: string;
1676
+ /** Selector specifying which fields to include in a partial response. */
1677
+ fields?: string;
1678
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1679
+ key?: string;
1680
+ /** Required. The trial name. */
1681
+ name: string;
1682
+ /** OAuth 2.0 token for the current user. */
1683
+ oauth_token?: string;
1684
+ /** Returns response with indentations and line breaks. */
1685
+ prettyPrint?: boolean;
1686
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1687
+ quotaUser?: string;
1688
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1689
+ upload_protocol?: string;
1690
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1691
+ uploadType?: string;
1692
+ /** Request body */
1693
+ resource: GoogleCloudMlV1__AddTrialMeasurementRequest;
1694
+ }): Request<GoogleCloudMlV1__Trial>;
1695
+ addMeasurement(request: {
1696
+ /** V1 error format. */
1697
+ "$.xgafv"?: string;
1698
+ /** OAuth access token. */
1699
+ access_token?: string;
1700
+ /** Data format for response. */
1701
+ alt?: string;
1702
+ /** JSONP */
1703
+ callback?: string;
1704
+ /** Selector specifying which fields to include in a partial response. */
1705
+ fields?: string;
1706
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1707
+ key?: string;
1708
+ /** Required. The trial name. */
1709
+ name: string;
1710
+ /** OAuth 2.0 token for the current user. */
1711
+ oauth_token?: string;
1712
+ /** Returns response with indentations and line breaks. */
1713
+ prettyPrint?: boolean;
1714
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1715
+ quotaUser?: string;
1716
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1717
+ upload_protocol?: string;
1718
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1719
+ uploadType?: string;
1720
+ },
1721
+ body: GoogleCloudMlV1__AddTrialMeasurementRequest): Request<GoogleCloudMlV1__Trial>;
1722
+ /** Checks whether a trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a CheckTrialEarlyStoppingStateResponse. */
1723
+ checkEarlyStoppingState(request: {
1724
+ /** V1 error format. */
1725
+ "$.xgafv"?: string;
1726
+ /** OAuth access token. */
1727
+ access_token?: string;
1728
+ /** Data format for response. */
1729
+ alt?: string;
1730
+ /** JSONP */
1731
+ callback?: string;
1732
+ /** Selector specifying which fields to include in a partial response. */
1733
+ fields?: string;
1734
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1735
+ key?: string;
1736
+ /** Required. The trial name. */
1737
+ name: string;
1738
+ /** OAuth 2.0 token for the current user. */
1739
+ oauth_token?: string;
1740
+ /** Returns response with indentations and line breaks. */
1741
+ prettyPrint?: boolean;
1742
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1743
+ quotaUser?: string;
1744
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1745
+ upload_protocol?: string;
1746
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1747
+ uploadType?: string;
1748
+ /** Request body */
1749
+ resource: GoogleCloudMlV1__CheckTrialEarlyStoppingStateRequest;
1750
+ }): Request<GoogleLongrunning__Operation>;
1751
+ checkEarlyStoppingState(request: {
1752
+ /** V1 error format. */
1753
+ "$.xgafv"?: string;
1754
+ /** OAuth access token. */
1755
+ access_token?: string;
1756
+ /** Data format for response. */
1757
+ alt?: string;
1758
+ /** JSONP */
1759
+ callback?: string;
1760
+ /** Selector specifying which fields to include in a partial response. */
1761
+ fields?: string;
1762
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1763
+ key?: string;
1764
+ /** Required. The trial name. */
1765
+ name: string;
1766
+ /** OAuth 2.0 token for the current user. */
1767
+ oauth_token?: string;
1768
+ /** Returns response with indentations and line breaks. */
1769
+ prettyPrint?: boolean;
1770
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1771
+ quotaUser?: string;
1772
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1773
+ upload_protocol?: string;
1774
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1775
+ uploadType?: string;
1776
+ },
1777
+ body: GoogleCloudMlV1__CheckTrialEarlyStoppingStateRequest): Request<GoogleLongrunning__Operation>;
1778
+ /** Marks a trial as complete. */
1779
+ complete(request: {
1780
+ /** V1 error format. */
1781
+ "$.xgafv"?: string;
1782
+ /** OAuth access token. */
1783
+ access_token?: string;
1784
+ /** Data format for response. */
1785
+ alt?: string;
1786
+ /** JSONP */
1787
+ callback?: string;
1788
+ /** Selector specifying which fields to include in a partial response. */
1789
+ fields?: string;
1790
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1791
+ key?: string;
1792
+ /** Required. The trial name.metat */
1793
+ name: string;
1794
+ /** OAuth 2.0 token for the current user. */
1795
+ oauth_token?: string;
1796
+ /** Returns response with indentations and line breaks. */
1797
+ prettyPrint?: boolean;
1798
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1799
+ quotaUser?: string;
1800
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1801
+ upload_protocol?: string;
1802
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1803
+ uploadType?: string;
1804
+ /** Request body */
1805
+ resource: GoogleCloudMlV1__CompleteTrialRequest;
1806
+ }): Request<GoogleCloudMlV1__Trial>;
1807
+ complete(request: {
1808
+ /** V1 error format. */
1809
+ "$.xgafv"?: string;
1810
+ /** OAuth access token. */
1811
+ access_token?: string;
1812
+ /** Data format for response. */
1813
+ alt?: string;
1814
+ /** JSONP */
1815
+ callback?: string;
1816
+ /** Selector specifying which fields to include in a partial response. */
1817
+ fields?: string;
1818
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1819
+ key?: string;
1820
+ /** Required. The trial name.metat */
1821
+ name: string;
1822
+ /** OAuth 2.0 token for the current user. */
1823
+ oauth_token?: string;
1824
+ /** Returns response with indentations and line breaks. */
1825
+ prettyPrint?: boolean;
1826
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1827
+ quotaUser?: string;
1828
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1829
+ upload_protocol?: string;
1830
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1831
+ uploadType?: string;
1832
+ },
1833
+ body: GoogleCloudMlV1__CompleteTrialRequest): Request<GoogleCloudMlV1__Trial>;
1834
+ /** Adds a user provided trial to a study. */
1835
+ create(request: {
1836
+ /** V1 error format. */
1837
+ "$.xgafv"?: string;
1838
+ /** OAuth access token. */
1839
+ access_token?: string;
1840
+ /** Data format for response. */
1841
+ alt?: string;
1842
+ /** JSONP */
1843
+ callback?: string;
1844
+ /** Selector specifying which fields to include in a partial response. */
1845
+ fields?: string;
1846
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1847
+ key?: string;
1848
+ /** OAuth 2.0 token for the current user. */
1849
+ oauth_token?: string;
1850
+ /** Required. The name of the study that the trial belongs to. */
1851
+ parent: string;
1852
+ /** Returns response with indentations and line breaks. */
1853
+ prettyPrint?: boolean;
1854
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1855
+ quotaUser?: string;
1856
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1857
+ upload_protocol?: string;
1858
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1859
+ uploadType?: string;
1860
+ /** Request body */
1861
+ resource: GoogleCloudMlV1__Trial;
1862
+ }): Request<GoogleCloudMlV1__Trial>;
1863
+ create(request: {
1864
+ /** V1 error format. */
1865
+ "$.xgafv"?: string;
1866
+ /** OAuth access token. */
1867
+ access_token?: string;
1868
+ /** Data format for response. */
1869
+ alt?: string;
1870
+ /** JSONP */
1871
+ callback?: string;
1872
+ /** Selector specifying which fields to include in a partial response. */
1873
+ fields?: string;
1874
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1875
+ key?: string;
1876
+ /** OAuth 2.0 token for the current user. */
1877
+ oauth_token?: string;
1878
+ /** Required. The name of the study that the trial belongs to. */
1879
+ parent: string;
1880
+ /** Returns response with indentations and line breaks. */
1881
+ prettyPrint?: boolean;
1882
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1883
+ quotaUser?: string;
1884
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1885
+ upload_protocol?: string;
1886
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1887
+ uploadType?: string;
1888
+ },
1889
+ body: GoogleCloudMlV1__Trial): Request<GoogleCloudMlV1__Trial>;
1890
+ /** Deletes a trial. */
1891
+ delete(request?: {
1892
+ /** V1 error format. */
1893
+ "$.xgafv"?: string;
1894
+ /** OAuth access token. */
1895
+ access_token?: string;
1896
+ /** Data format for response. */
1897
+ alt?: string;
1898
+ /** JSONP */
1899
+ callback?: string;
1900
+ /** Selector specifying which fields to include in a partial response. */
1901
+ fields?: string;
1902
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1903
+ key?: string;
1904
+ /** Required. The trial name. */
1905
+ name: string;
1906
+ /** OAuth 2.0 token for the current user. */
1907
+ oauth_token?: string;
1908
+ /** Returns response with indentations and line breaks. */
1909
+ prettyPrint?: boolean;
1910
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1911
+ quotaUser?: string;
1912
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1913
+ upload_protocol?: string;
1914
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1915
+ uploadType?: string;
1916
+ }): Request<{}>;
1917
+ /** Gets a trial. */
1918
+ get(request?: {
1919
+ /** V1 error format. */
1920
+ "$.xgafv"?: string;
1921
+ /** OAuth access token. */
1922
+ access_token?: string;
1923
+ /** Data format for response. */
1924
+ alt?: string;
1925
+ /** JSONP */
1926
+ callback?: string;
1927
+ /** Selector specifying which fields to include in a partial response. */
1928
+ fields?: string;
1929
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1930
+ key?: string;
1931
+ /** Required. The trial name. */
1932
+ name: string;
1933
+ /** OAuth 2.0 token for the current user. */
1934
+ oauth_token?: string;
1935
+ /** Returns response with indentations and line breaks. */
1936
+ prettyPrint?: boolean;
1937
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1938
+ quotaUser?: string;
1939
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1940
+ upload_protocol?: string;
1941
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1942
+ uploadType?: string;
1943
+ }): Request<GoogleCloudMlV1__Trial>;
1944
+ /** Lists the trials associated with a study. */
1945
+ list(request?: {
1946
+ /** V1 error format. */
1947
+ "$.xgafv"?: string;
1948
+ /** OAuth access token. */
1949
+ access_token?: string;
1950
+ /** Data format for response. */
1951
+ alt?: string;
1952
+ /** JSONP */
1953
+ callback?: string;
1954
+ /** Selector specifying which fields to include in a partial response. */
1955
+ fields?: string;
1956
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1957
+ key?: string;
1958
+ /** OAuth 2.0 token for the current user. */
1959
+ oauth_token?: string;
1960
+ /** Required. The name of the study that the trial belongs to. */
1961
+ parent: string;
1962
+ /** Returns response with indentations and line breaks. */
1963
+ prettyPrint?: boolean;
1964
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1965
+ quotaUser?: string;
1966
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1967
+ upload_protocol?: string;
1968
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1969
+ uploadType?: string;
1970
+ }): Request<GoogleCloudMlV1__ListTrialsResponse>;
1971
+ /**
1972
+ * Lists the pareto-optimal trials for multi-objective study or the optimal trials for single-objective study. The definition of pareto-optimal can be checked in wiki page.
1973
+ * https://en.wikipedia.org/wiki/Pareto_efficiency
1974
+ */
1975
+ listOptimalTrials(request: {
1976
+ /** V1 error format. */
1977
+ "$.xgafv"?: string;
1978
+ /** OAuth access token. */
1979
+ access_token?: string;
1980
+ /** Data format for response. */
1981
+ alt?: string;
1982
+ /** JSONP */
1983
+ callback?: string;
1984
+ /** Selector specifying which fields to include in a partial response. */
1985
+ fields?: string;
1986
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1987
+ key?: string;
1988
+ /** OAuth 2.0 token for the current user. */
1989
+ oauth_token?: string;
1990
+ /** Required. The name of the study that the pareto-optimal trial belongs to. */
1991
+ parent: string;
1992
+ /** Returns response with indentations and line breaks. */
1993
+ prettyPrint?: boolean;
1994
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1995
+ quotaUser?: string;
1996
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1997
+ upload_protocol?: string;
1998
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1999
+ uploadType?: string;
2000
+ /** Request body */
2001
+ resource: GoogleCloudMlV1__ListOptimalTrialsRequest;
2002
+ }): Request<GoogleCloudMlV1__ListOptimalTrialsResponse>;
2003
+ listOptimalTrials(request: {
2004
+ /** V1 error format. */
2005
+ "$.xgafv"?: string;
2006
+ /** OAuth access token. */
2007
+ access_token?: string;
2008
+ /** Data format for response. */
2009
+ alt?: string;
2010
+ /** JSONP */
2011
+ callback?: string;
2012
+ /** Selector specifying which fields to include in a partial response. */
2013
+ fields?: string;
2014
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2015
+ key?: string;
2016
+ /** OAuth 2.0 token for the current user. */
2017
+ oauth_token?: string;
2018
+ /** Required. The name of the study that the pareto-optimal trial belongs to. */
2019
+ parent: string;
2020
+ /** Returns response with indentations and line breaks. */
2021
+ prettyPrint?: boolean;
2022
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2023
+ quotaUser?: string;
2024
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2025
+ upload_protocol?: string;
2026
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2027
+ uploadType?: string;
2028
+ },
2029
+ body: GoogleCloudMlV1__ListOptimalTrialsRequest): Request<GoogleCloudMlV1__ListOptimalTrialsResponse>;
2030
+ /** Stops a trial. */
2031
+ stop(request: {
2032
+ /** V1 error format. */
2033
+ "$.xgafv"?: string;
2034
+ /** OAuth access token. */
2035
+ access_token?: string;
2036
+ /** Data format for response. */
2037
+ alt?: string;
2038
+ /** JSONP */
2039
+ callback?: string;
2040
+ /** Selector specifying which fields to include in a partial response. */
2041
+ fields?: string;
2042
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2043
+ key?: string;
2044
+ /** Required. The trial name. */
2045
+ name: string;
2046
+ /** OAuth 2.0 token for the current user. */
2047
+ oauth_token?: string;
2048
+ /** Returns response with indentations and line breaks. */
2049
+ prettyPrint?: boolean;
2050
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2051
+ quotaUser?: string;
2052
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2053
+ upload_protocol?: string;
2054
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2055
+ uploadType?: string;
2056
+ /** Request body */
2057
+ resource: GoogleCloudMlV1__StopTrialRequest;
2058
+ }): Request<GoogleCloudMlV1__Trial>;
2059
+ stop(request: {
2060
+ /** V1 error format. */
2061
+ "$.xgafv"?: string;
2062
+ /** OAuth access token. */
2063
+ access_token?: string;
2064
+ /** Data format for response. */
2065
+ alt?: string;
2066
+ /** JSONP */
2067
+ callback?: string;
2068
+ /** Selector specifying which fields to include in a partial response. */
2069
+ fields?: string;
2070
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2071
+ key?: string;
2072
+ /** Required. The trial name. */
2073
+ name: string;
2074
+ /** OAuth 2.0 token for the current user. */
2075
+ oauth_token?: string;
2076
+ /** Returns response with indentations and line breaks. */
2077
+ prettyPrint?: boolean;
2078
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2079
+ quotaUser?: string;
2080
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2081
+ upload_protocol?: string;
2082
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2083
+ uploadType?: string;
2084
+ },
2085
+ body: GoogleCloudMlV1__StopTrialRequest): Request<GoogleCloudMlV1__Trial>;
2086
+ /**
2087
+ * Adds one or more trials to a study, with parameter values suggested by AI Platform Vizier. Returns a long-running operation associated with the generation of trial suggestions. When
2088
+ * this long-running operation succeeds, it will contain a SuggestTrialsResponse.
2089
+ */
2090
+ suggest(request: {
2091
+ /** V1 error format. */
2092
+ "$.xgafv"?: string;
2093
+ /** OAuth access token. */
2094
+ access_token?: string;
2095
+ /** Data format for response. */
2096
+ alt?: string;
2097
+ /** JSONP */
2098
+ callback?: string;
2099
+ /** Selector specifying which fields to include in a partial response. */
2100
+ fields?: string;
2101
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2102
+ key?: string;
2103
+ /** OAuth 2.0 token for the current user. */
2104
+ oauth_token?: string;
2105
+ /** Required. The name of the study that the trial belongs to. */
2106
+ parent: string;
2107
+ /** Returns response with indentations and line breaks. */
2108
+ prettyPrint?: boolean;
2109
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2110
+ quotaUser?: string;
2111
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2112
+ upload_protocol?: string;
2113
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2114
+ uploadType?: string;
2115
+ /** Request body */
2116
+ resource: GoogleCloudMlV1__SuggestTrialsRequest;
2117
+ }): Request<GoogleLongrunning__Operation>;
2118
+ suggest(request: {
2119
+ /** V1 error format. */
2120
+ "$.xgafv"?: string;
2121
+ /** OAuth access token. */
2122
+ access_token?: string;
2123
+ /** Data format for response. */
2124
+ alt?: string;
2125
+ /** JSONP */
2126
+ callback?: string;
2127
+ /** Selector specifying which fields to include in a partial response. */
2128
+ fields?: string;
2129
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2130
+ key?: string;
2131
+ /** OAuth 2.0 token for the current user. */
2132
+ oauth_token?: string;
2133
+ /** Required. The name of the study that the trial belongs to. */
2134
+ parent: string;
2135
+ /** Returns response with indentations and line breaks. */
2136
+ prettyPrint?: boolean;
2137
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2138
+ quotaUser?: string;
2139
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2140
+ upload_protocol?: string;
2141
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2142
+ uploadType?: string;
2143
+ },
2144
+ body: GoogleCloudMlV1__SuggestTrialsRequest): Request<GoogleLongrunning__Operation>;
2145
+ }
2146
+ interface StudiesResource {
2147
+ /** Creates a study. */
2148
+ create(request: {
2149
+ /** V1 error format. */
2150
+ "$.xgafv"?: string;
2151
+ /** OAuth access token. */
2152
+ access_token?: string;
2153
+ /** Data format for response. */
2154
+ alt?: string;
2155
+ /** JSONP */
2156
+ callback?: string;
2157
+ /** Selector specifying which fields to include in a partial response. */
2158
+ fields?: string;
2159
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2160
+ key?: string;
2161
+ /** OAuth 2.0 token for the current user. */
2162
+ oauth_token?: string;
2163
+ /** Required. The project and location that the study belongs to. Format: projects/{project}/locations/{location} */
2164
+ parent: string;
2165
+ /** Returns response with indentations and line breaks. */
2166
+ prettyPrint?: boolean;
2167
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2168
+ quotaUser?: string;
2169
+ /** Required. The ID to use for the study, which will become the final component of the study's resource name. */
2170
+ studyId?: string;
2171
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2172
+ upload_protocol?: string;
2173
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2174
+ uploadType?: string;
2175
+ /** Request body */
2176
+ resource: GoogleCloudMlV1__Study;
2177
+ }): Request<GoogleCloudMlV1__Study>;
2178
+ create(request: {
2179
+ /** V1 error format. */
2180
+ "$.xgafv"?: string;
2181
+ /** OAuth access token. */
2182
+ access_token?: string;
2183
+ /** Data format for response. */
2184
+ alt?: string;
2185
+ /** JSONP */
2186
+ callback?: string;
2187
+ /** Selector specifying which fields to include in a partial response. */
2188
+ fields?: string;
2189
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2190
+ key?: string;
2191
+ /** OAuth 2.0 token for the current user. */
2192
+ oauth_token?: string;
2193
+ /** Required. The project and location that the study belongs to. Format: projects/{project}/locations/{location} */
2194
+ parent: string;
2195
+ /** Returns response with indentations and line breaks. */
2196
+ prettyPrint?: boolean;
2197
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2198
+ quotaUser?: string;
2199
+ /** Required. The ID to use for the study, which will become the final component of the study's resource name. */
2200
+ studyId?: string;
2201
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2202
+ upload_protocol?: string;
2203
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2204
+ uploadType?: string;
2205
+ },
2206
+ body: GoogleCloudMlV1__Study): Request<GoogleCloudMlV1__Study>;
2207
+ /** Deletes a study. */
2208
+ delete(request?: {
2209
+ /** V1 error format. */
2210
+ "$.xgafv"?: string;
2211
+ /** OAuth access token. */
2212
+ access_token?: string;
2213
+ /** Data format for response. */
2214
+ alt?: string;
2215
+ /** JSONP */
2216
+ callback?: string;
2217
+ /** Selector specifying which fields to include in a partial response. */
2218
+ fields?: string;
2219
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2220
+ key?: string;
2221
+ /** Required. The study name. */
2222
+ name: string;
2223
+ /** OAuth 2.0 token for the current user. */
2224
+ oauth_token?: string;
2225
+ /** Returns response with indentations and line breaks. */
2226
+ prettyPrint?: boolean;
2227
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2228
+ quotaUser?: string;
2229
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2230
+ upload_protocol?: string;
2231
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2232
+ uploadType?: string;
2233
+ }): Request<{}>;
2234
+ /** Gets a study. */
2235
+ get(request?: {
2236
+ /** V1 error format. */
2237
+ "$.xgafv"?: string;
2238
+ /** OAuth access token. */
2239
+ access_token?: string;
2240
+ /** Data format for response. */
2241
+ alt?: string;
2242
+ /** JSONP */
2243
+ callback?: string;
2244
+ /** Selector specifying which fields to include in a partial response. */
2245
+ fields?: string;
2246
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2247
+ key?: string;
2248
+ /** Required. The study name. */
2249
+ name: string;
2250
+ /** OAuth 2.0 token for the current user. */
2251
+ oauth_token?: string;
2252
+ /** Returns response with indentations and line breaks. */
2253
+ prettyPrint?: boolean;
2254
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2255
+ quotaUser?: string;
2256
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2257
+ upload_protocol?: string;
2258
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2259
+ uploadType?: string;
2260
+ }): Request<GoogleCloudMlV1__Study>;
2261
+ /** Lists all the studies in a region for an associated project. */
2262
+ list(request?: {
2263
+ /** V1 error format. */
2264
+ "$.xgafv"?: string;
2265
+ /** OAuth access token. */
2266
+ access_token?: string;
2267
+ /** Data format for response. */
2268
+ alt?: string;
2269
+ /** JSONP */
2270
+ callback?: string;
2271
+ /** Selector specifying which fields to include in a partial response. */
2272
+ fields?: string;
2273
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2274
+ key?: string;
2275
+ /** OAuth 2.0 token for the current user. */
2276
+ oauth_token?: string;
2277
+ /** Required. The project and location that the study belongs to. Format: projects/{project}/locations/{location} */
2278
+ parent: string;
2279
+ /** Returns response with indentations and line breaks. */
2280
+ prettyPrint?: boolean;
2281
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2282
+ quotaUser?: string;
2283
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2284
+ upload_protocol?: string;
2285
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2286
+ uploadType?: string;
2287
+ }): Request<GoogleCloudMlV1__ListStudiesResponse>;
2288
+ trials: TrialsResource;
2289
+ }
2290
+ interface LocationsResource {
2291
+ /** Get the complete list of CMLE capabilities in a location, along with their location-specific properties. */
2292
+ get(request?: {
2293
+ /** V1 error format. */
2294
+ "$.xgafv"?: string;
2295
+ /** OAuth access token. */
2296
+ access_token?: string;
2297
+ /** Data format for response. */
2298
+ alt?: string;
2299
+ /** JSONP */
2300
+ callback?: string;
2301
+ /** Selector specifying which fields to include in a partial response. */
2302
+ fields?: string;
2303
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2304
+ key?: string;
2305
+ /** Required. The name of the location. */
2306
+ name: string;
2307
+ /** OAuth 2.0 token for the current user. */
2308
+ oauth_token?: string;
2309
+ /** Returns response with indentations and line breaks. */
2310
+ prettyPrint?: boolean;
2311
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2312
+ quotaUser?: string;
2313
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2314
+ upload_protocol?: string;
2315
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2316
+ uploadType?: string;
2317
+ }): Request<GoogleCloudMlV1__Location>;
2318
+ /** List all locations that provides at least one type of CMLE capability. */
2319
+ list(request?: {
2320
+ /** V1 error format. */
2321
+ "$.xgafv"?: string;
2322
+ /** OAuth access token. */
2323
+ access_token?: string;
2324
+ /** Data format for response. */
2325
+ alt?: string;
2326
+ /** JSONP */
2327
+ callback?: string;
2328
+ /** Selector specifying which fields to include in a partial response. */
2329
+ fields?: string;
2330
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2331
+ key?: string;
2332
+ /** OAuth 2.0 token for the current user. */
2333
+ oauth_token?: string;
2334
+ /**
2335
+ * Optional. The number of locations to retrieve per "page" of results. If there are more remaining results than this number, the response message will contain a valid value in the
2336
+ * `next_page_token` field. The default value is 20, and the maximum page size is 100.
2337
+ */
2338
+ pageSize?: number;
2339
+ /** 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. */
2340
+ pageToken?: string;
2341
+ /** Required. The name of the project for which available locations are to be listed (since some locations might be whitelisted for specific projects). */
2342
+ parent: string;
2343
+ /** Returns response with indentations and line breaks. */
2344
+ prettyPrint?: boolean;
2345
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2346
+ quotaUser?: string;
2347
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2348
+ upload_protocol?: string;
2349
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2350
+ uploadType?: string;
2351
+ }): Request<GoogleCloudMlV1__ListLocationsResponse>;
2352
+ operations: OperationsResource;
2353
+ studies: StudiesResource;
2354
+ }
2355
+ interface VersionsResource {
2356
+ /**
2357
+ * Creates a new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be
2358
+ * made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new
2359
+ * version to be the default, you must call projects.models.versions.setDefault.
2360
+ */
2361
+ create(request: {
2362
+ /** V1 error format. */
2363
+ "$.xgafv"?: string;
2364
+ /** OAuth access token. */
2365
+ access_token?: string;
2366
+ /** Data format for response. */
2367
+ alt?: string;
2368
+ /** JSONP */
2369
+ callback?: string;
2370
+ /** Selector specifying which fields to include in a partial response. */
2371
+ fields?: string;
2372
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2373
+ key?: string;
2374
+ /** OAuth 2.0 token for the current user. */
2375
+ oauth_token?: string;
2376
+ /** Required. The name of the model. */
2377
+ parent: string;
2378
+ /** Returns response with indentations and line breaks. */
2379
+ prettyPrint?: boolean;
2380
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2381
+ quotaUser?: string;
2382
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2383
+ upload_protocol?: string;
2384
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2385
+ uploadType?: string;
2386
+ /** Request body */
2387
+ resource: GoogleCloudMlV1__Version;
2388
+ }): Request<GoogleLongrunning__Operation>;
2389
+ create(request: {
2390
+ /** V1 error format. */
2391
+ "$.xgafv"?: string;
2392
+ /** OAuth access token. */
2393
+ access_token?: string;
2394
+ /** Data format for response. */
2395
+ alt?: string;
2396
+ /** JSONP */
2397
+ callback?: string;
2398
+ /** Selector specifying which fields to include in a partial response. */
2399
+ fields?: string;
2400
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2401
+ key?: string;
2402
+ /** OAuth 2.0 token for the current user. */
2403
+ oauth_token?: string;
2404
+ /** Required. The name of the model. */
2405
+ parent: string;
2406
+ /** Returns response with indentations and line breaks. */
2407
+ prettyPrint?: boolean;
2408
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2409
+ quotaUser?: string;
2410
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2411
+ upload_protocol?: string;
2412
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2413
+ uploadType?: string;
2414
+ },
2415
+ body: GoogleCloudMlV1__Version): Request<GoogleLongrunning__Operation>;
2416
+ /**
2417
+ * Deletes a model version. Each model can have multiple versions deployed and in use at any given time. Use this method to remove a single version. Note: You cannot delete the version
2418
+ * that is set as the default version of the model unless it is the only remaining version.
2419
+ */
2420
+ delete(request?: {
2421
+ /** V1 error format. */
2422
+ "$.xgafv"?: string;
2423
+ /** OAuth access token. */
2424
+ access_token?: string;
2425
+ /** Data format for response. */
2426
+ alt?: string;
2427
+ /** JSONP */
2428
+ callback?: string;
2429
+ /** Selector specifying which fields to include in a partial response. */
2430
+ fields?: string;
2431
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2432
+ key?: string;
2433
+ /** Required. The name of the version. You can get the names of all the versions of a model by calling projects.models.versions.list. */
2434
+ name: string;
2435
+ /** OAuth 2.0 token for the current user. */
2436
+ oauth_token?: string;
2437
+ /** Returns response with indentations and line breaks. */
2438
+ prettyPrint?: boolean;
2439
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2440
+ quotaUser?: string;
2441
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2442
+ upload_protocol?: string;
2443
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2444
+ uploadType?: string;
2445
+ }): Request<GoogleLongrunning__Operation>;
2446
+ /**
2447
+ * Gets information about a model version. Models can have multiple versions. You can call projects.models.versions.list to get the same information that this method returns for all of
2448
+ * the versions of a model.
2449
+ */
2450
+ get(request?: {
2451
+ /** V1 error format. */
2452
+ "$.xgafv"?: string;
2453
+ /** OAuth access token. */
2454
+ access_token?: string;
2455
+ /** Data format for response. */
2456
+ alt?: string;
2457
+ /** JSONP */
2458
+ callback?: string;
2459
+ /** Selector specifying which fields to include in a partial response. */
2460
+ fields?: string;
2461
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2462
+ key?: string;
2463
+ /** Required. The name of the version. */
2464
+ name: string;
2465
+ /** OAuth 2.0 token for the current user. */
2466
+ oauth_token?: string;
2467
+ /** Returns response with indentations and line breaks. */
2468
+ prettyPrint?: boolean;
2469
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2470
+ quotaUser?: string;
2471
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2472
+ upload_protocol?: string;
2473
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2474
+ uploadType?: string;
2475
+ }): Request<GoogleCloudMlV1__Version>;
2476
+ /**
2477
+ * Gets basic information about all the versions of a model. If you expect that a model has many versions, or if you need to handle only a limited number of results at a time, you can
2478
+ * request that the list be retrieved in batches (called pages). If there are no versions that match the request parameters, the list request returns an empty response body: {}.
2479
+ */
2480
+ list(request?: {
2481
+ /** V1 error format. */
2482
+ "$.xgafv"?: string;
2483
+ /** OAuth access token. */
2484
+ access_token?: string;
2485
+ /** Data format for response. */
2486
+ alt?: string;
2487
+ /** JSONP */
2488
+ callback?: string;
2489
+ /** Selector specifying which fields to include in a partial response. */
2490
+ fields?: string;
2491
+ /** Optional. Specifies the subset of versions to retrieve. */
2492
+ filter?: string;
2493
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2494
+ key?: string;
2495
+ /** OAuth 2.0 token for the current user. */
2496
+ oauth_token?: string;
2497
+ /**
2498
+ * Optional. The number of versions to retrieve per "page" of results. If there are more remaining results than this number, the response message will contain a valid value in the
2499
+ * `next_page_token` field. The default value is 20, and the maximum page size is 100.
2500
+ */
2501
+ pageSize?: number;
2502
+ /** 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. */
2503
+ pageToken?: string;
2504
+ /** Required. The name of the model for which to list the version. */
2505
+ parent: string;
2506
+ /** Returns response with indentations and line breaks. */
2507
+ prettyPrint?: boolean;
2508
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2509
+ quotaUser?: string;
2510
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2511
+ upload_protocol?: string;
2512
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2513
+ uploadType?: string;
2514
+ }): Request<GoogleCloudMlV1__ListVersionsResponse>;
2515
+ /** Updates the specified Version resource. Currently the only update-able fields are `description`, `requestLoggingConfig`, `autoScaling.minNodes`, and `manualScaling.nodes`. */
2516
+ patch(request: {
2517
+ /** V1 error format. */
2518
+ "$.xgafv"?: string;
2519
+ /** OAuth access token. */
2520
+ access_token?: string;
2521
+ /** Data format for response. */
2522
+ alt?: string;
2523
+ /** JSONP */
2524
+ callback?: string;
2525
+ /** Selector specifying which fields to include in a partial response. */
2526
+ fields?: string;
2527
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2528
+ key?: string;
2529
+ /** Required. The name of the model. */
2530
+ name: string;
2531
+ /** OAuth 2.0 token for the current user. */
2532
+ oauth_token?: string;
2533
+ /** Returns response with indentations and line breaks. */
2534
+ prettyPrint?: boolean;
2535
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2536
+ quotaUser?: string;
2537
+ /**
2538
+ * Required. Specifies the path, relative to `Version`, of the field to update. Must be present and non-empty. For example, to change the description of a version to "foo", the
2539
+ * `update_mask` parameter would be specified as `description`, and the `PATCH` request body would specify the new value, as follows: ``` { "description": "foo" } ``` Currently the
2540
+ * only supported update mask fields are `description`, `requestLoggingConfig`, `autoScaling.minNodes`, and `manualScaling.nodes`. However, you can only update
2541
+ * `manualScaling.nodes` if the version uses a [Compute Engine (N1) machine type](/ml-engine/docs/machine-types-online-prediction).
2542
+ */
2543
+ updateMask?: string;
2544
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2545
+ upload_protocol?: string;
2546
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2547
+ uploadType?: string;
2548
+ /** Request body */
2549
+ resource: GoogleCloudMlV1__Version;
2550
+ }): Request<GoogleLongrunning__Operation>;
2551
+ patch(request: {
2552
+ /** V1 error format. */
2553
+ "$.xgafv"?: string;
2554
+ /** OAuth access token. */
2555
+ access_token?: string;
2556
+ /** Data format for response. */
2557
+ alt?: string;
2558
+ /** JSONP */
2559
+ callback?: string;
2560
+ /** Selector specifying which fields to include in a partial response. */
2561
+ fields?: string;
2562
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2563
+ key?: string;
2564
+ /** Required. The name of the model. */
2565
+ name: string;
2566
+ /** OAuth 2.0 token for the current user. */
2567
+ oauth_token?: string;
2568
+ /** Returns response with indentations and line breaks. */
2569
+ prettyPrint?: boolean;
2570
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2571
+ quotaUser?: string;
2572
+ /**
2573
+ * Required. Specifies the path, relative to `Version`, of the field to update. Must be present and non-empty. For example, to change the description of a version to "foo", the
2574
+ * `update_mask` parameter would be specified as `description`, and the `PATCH` request body would specify the new value, as follows: ``` { "description": "foo" } ``` Currently the
2575
+ * only supported update mask fields are `description`, `requestLoggingConfig`, `autoScaling.minNodes`, and `manualScaling.nodes`. However, you can only update
2576
+ * `manualScaling.nodes` if the version uses a [Compute Engine (N1) machine type](/ml-engine/docs/machine-types-online-prediction).
2577
+ */
2578
+ updateMask?: string;
2579
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2580
+ upload_protocol?: string;
2581
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2582
+ uploadType?: string;
2583
+ },
2584
+ body: GoogleCloudMlV1__Version): Request<GoogleLongrunning__Operation>;
2585
+ /**
2586
+ * Designates a version to be the default for the model. The default version is used for prediction requests made against the model that don't specify a version. The first version to
2587
+ * be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method.
2588
+ */
2589
+ setDefault(request: {
2590
+ /** V1 error format. */
2591
+ "$.xgafv"?: string;
2592
+ /** OAuth access token. */
2593
+ access_token?: string;
2594
+ /** Data format for response. */
2595
+ alt?: string;
2596
+ /** JSONP */
2597
+ callback?: string;
2598
+ /** Selector specifying which fields to include in a partial response. */
2599
+ fields?: string;
2600
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2601
+ key?: string;
2602
+ /** Required. The name of the version to make the default for the model. You can get the names of all the versions of a model by calling projects.models.versions.list. */
2603
+ name: string;
2604
+ /** OAuth 2.0 token for the current user. */
2605
+ oauth_token?: string;
2606
+ /** Returns response with indentations and line breaks. */
2607
+ prettyPrint?: boolean;
2608
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2609
+ quotaUser?: string;
2610
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2611
+ upload_protocol?: string;
2612
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2613
+ uploadType?: string;
2614
+ /** Request body */
2615
+ resource: GoogleCloudMlV1__SetDefaultVersionRequest;
2616
+ }): Request<GoogleCloudMlV1__Version>;
2617
+ setDefault(request: {
2618
+ /** V1 error format. */
2619
+ "$.xgafv"?: string;
2620
+ /** OAuth access token. */
2621
+ access_token?: string;
2622
+ /** Data format for response. */
2623
+ alt?: string;
2624
+ /** JSONP */
2625
+ callback?: string;
2626
+ /** Selector specifying which fields to include in a partial response. */
2627
+ fields?: string;
2628
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2629
+ key?: string;
2630
+ /** Required. The name of the version to make the default for the model. You can get the names of all the versions of a model by calling projects.models.versions.list. */
2631
+ name: string;
2632
+ /** OAuth 2.0 token for the current user. */
2633
+ oauth_token?: string;
2634
+ /** Returns response with indentations and line breaks. */
2635
+ prettyPrint?: boolean;
2636
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2637
+ quotaUser?: string;
2638
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2639
+ upload_protocol?: string;
2640
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2641
+ uploadType?: string;
2642
+ },
2643
+ body: GoogleCloudMlV1__SetDefaultVersionRequest): Request<GoogleCloudMlV1__Version>;
2644
+ }
2645
+ interface ModelsResource {
2646
+ /**
2647
+ * Creates a model which will later contain one or more versions. You must add at least one version before you can request predictions from the model. Add versions by calling
2648
+ * projects.models.versions.create.
2649
+ */
2650
+ create(request: {
2651
+ /** V1 error format. */
2652
+ "$.xgafv"?: string;
2653
+ /** OAuth access token. */
2654
+ access_token?: string;
2655
+ /** Data format for response. */
2656
+ alt?: string;
2657
+ /** JSONP */
2658
+ callback?: string;
2659
+ /** Selector specifying which fields to include in a partial response. */
2660
+ fields?: string;
2661
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2662
+ key?: string;
2663
+ /** OAuth 2.0 token for the current user. */
2664
+ oauth_token?: string;
2665
+ /** Required. The project name. */
2666
+ parent: string;
2667
+ /** Returns response with indentations and line breaks. */
2668
+ prettyPrint?: boolean;
2669
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2670
+ quotaUser?: string;
2671
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2672
+ upload_protocol?: string;
2673
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2674
+ uploadType?: string;
2675
+ /** Request body */
2676
+ resource: GoogleCloudMlV1__Model;
2677
+ }): Request<GoogleCloudMlV1__Model>;
2678
+ create(request: {
2679
+ /** V1 error format. */
2680
+ "$.xgafv"?: string;
2681
+ /** OAuth access token. */
2682
+ access_token?: string;
2683
+ /** Data format for response. */
2684
+ alt?: string;
2685
+ /** JSONP */
2686
+ callback?: string;
2687
+ /** Selector specifying which fields to include in a partial response. */
2688
+ fields?: string;
2689
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2690
+ key?: string;
2691
+ /** OAuth 2.0 token for the current user. */
2692
+ oauth_token?: string;
2693
+ /** Required. The project name. */
2694
+ parent: string;
2695
+ /** Returns response with indentations and line breaks. */
2696
+ prettyPrint?: boolean;
2697
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2698
+ quotaUser?: string;
2699
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2700
+ upload_protocol?: string;
2701
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2702
+ uploadType?: string;
2703
+ },
2704
+ body: GoogleCloudMlV1__Model): Request<GoogleCloudMlV1__Model>;
2705
+ /** Deletes a model. You can only delete a model if there are no versions in it. You can delete versions by calling projects.models.versions.delete. */
2706
+ delete(request?: {
2707
+ /** V1 error format. */
2708
+ "$.xgafv"?: string;
2709
+ /** OAuth access token. */
2710
+ access_token?: string;
2711
+ /** Data format for response. */
2712
+ alt?: string;
2713
+ /** JSONP */
2714
+ callback?: string;
2715
+ /** Selector specifying which fields to include in a partial response. */
2716
+ fields?: string;
2717
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2718
+ key?: string;
2719
+ /** Required. The name of the model. */
2720
+ name: string;
2721
+ /** OAuth 2.0 token for the current user. */
2722
+ oauth_token?: string;
2723
+ /** Returns response with indentations and line breaks. */
2724
+ prettyPrint?: boolean;
2725
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2726
+ quotaUser?: string;
2727
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2728
+ upload_protocol?: string;
2729
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2730
+ uploadType?: string;
2731
+ }): Request<GoogleLongrunning__Operation>;
2732
+ /** Gets information about a model, including its name, the description (if set), and the default version (if at least one version of the model has been deployed). */
2733
+ get(request?: {
2734
+ /** V1 error format. */
2735
+ "$.xgafv"?: string;
2736
+ /** OAuth access token. */
2737
+ access_token?: string;
2738
+ /** Data format for response. */
2739
+ alt?: string;
2740
+ /** JSONP */
2741
+ callback?: string;
2742
+ /** Selector specifying which fields to include in a partial response. */
2743
+ fields?: string;
2744
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2745
+ key?: string;
2746
+ /** Required. The name of the model. */
2747
+ name: string;
2748
+ /** OAuth 2.0 token for the current user. */
2749
+ oauth_token?: string;
2750
+ /** Returns response with indentations and line breaks. */
2751
+ prettyPrint?: boolean;
2752
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2753
+ quotaUser?: string;
2754
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2755
+ upload_protocol?: string;
2756
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2757
+ uploadType?: string;
2758
+ }): Request<GoogleCloudMlV1__Model>;
2759
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
2760
+ getIamPolicy(request?: {
2761
+ /** V1 error format. */
2762
+ "$.xgafv"?: string;
2763
+ /** OAuth access token. */
2764
+ access_token?: string;
2765
+ /** Data format for response. */
2766
+ alt?: string;
2767
+ /** JSONP */
2768
+ callback?: string;
2769
+ /** Selector specifying which fields to include in a partial response. */
2770
+ fields?: string;
2771
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2772
+ key?: string;
2773
+ /** OAuth 2.0 token for the current user. */
2774
+ oauth_token?: string;
2775
+ /**
2776
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
2777
+ * policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
2778
+ * in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
2779
+ * role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
2780
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2781
+ */
2782
+ "options.requestedPolicyVersion"?: number;
2783
+ /** Returns response with indentations and line breaks. */
2784
+ prettyPrint?: boolean;
2785
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2786
+ quotaUser?: string;
2787
+ /**
2788
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
2789
+ * field.
2790
+ */
2791
+ resource: string;
2792
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2793
+ upload_protocol?: string;
2794
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2795
+ uploadType?: string;
2796
+ }): Request<GoogleIamV1__Policy>;
2797
+ /**
2798
+ * Lists the models in a project. Each project can contain multiple models, and each model can have multiple versions. If there are no models that match the request parameters, the
2799
+ * list request returns an empty response body: {}.
2800
+ */
2801
+ list(request?: {
2802
+ /** V1 error format. */
2803
+ "$.xgafv"?: string;
2804
+ /** OAuth access token. */
2805
+ access_token?: string;
2806
+ /** Data format for response. */
2807
+ alt?: string;
2808
+ /** JSONP */
2809
+ callback?: string;
2810
+ /** Selector specifying which fields to include in a partial response. */
2811
+ fields?: string;
2812
+ /** Optional. Specifies the subset of models to retrieve. */
2813
+ filter?: string;
2814
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2815
+ key?: string;
2816
+ /** OAuth 2.0 token for the current user. */
2817
+ oauth_token?: string;
2818
+ /**
2819
+ * Optional. The number of models to retrieve per "page" of results. If there are more remaining results than this number, the response message will contain a valid value in the
2820
+ * `next_page_token` field. The default value is 20, and the maximum page size is 100.
2821
+ */
2822
+ pageSize?: number;
2823
+ /** 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. */
2824
+ pageToken?: string;
2825
+ /** Required. The name of the project whose models are to be listed. */
2826
+ parent: string;
2827
+ /** Returns response with indentations and line breaks. */
2828
+ prettyPrint?: boolean;
2829
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2830
+ quotaUser?: string;
2831
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2832
+ upload_protocol?: string;
2833
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2834
+ uploadType?: string;
2835
+ }): Request<GoogleCloudMlV1__ListModelsResponse>;
2836
+ /** Updates a specific model resource. Currently the only supported fields to update are `description` and `default_version.name`. */
2837
+ patch(request: {
2838
+ /** V1 error format. */
2839
+ "$.xgafv"?: string;
2840
+ /** OAuth access token. */
2841
+ access_token?: string;
2842
+ /** Data format for response. */
2843
+ alt?: string;
2844
+ /** JSONP */
2845
+ callback?: string;
2846
+ /** Selector specifying which fields to include in a partial response. */
2847
+ fields?: string;
2848
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2849
+ key?: string;
2850
+ /** Required. The project name. */
2851
+ name: string;
2852
+ /** OAuth 2.0 token for the current user. */
2853
+ oauth_token?: string;
2854
+ /** Returns response with indentations and line breaks. */
2855
+ prettyPrint?: boolean;
2856
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2857
+ quotaUser?: string;
2858
+ /**
2859
+ * Required. Specifies the path, relative to `Model`, of the field to update. For example, to change the description of a model to "foo" and set its default version to "version_1",
2860
+ * the `update_mask` parameter would be specified as `description`, `default_version.name`, and the `PATCH` request body would specify the new value, as follows: { "description":
2861
+ * "foo", "defaultVersion": { "name":"version_1" } } Currently the supported update masks are `description` and `default_version.name`.
2862
+ */
2863
+ updateMask?: string;
2864
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2865
+ upload_protocol?: string;
2866
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2867
+ uploadType?: string;
2868
+ /** Request body */
2869
+ resource: GoogleCloudMlV1__Model;
2870
+ }): Request<GoogleLongrunning__Operation>;
2871
+ patch(request: {
2872
+ /** V1 error format. */
2873
+ "$.xgafv"?: string;
2874
+ /** OAuth access token. */
2875
+ access_token?: string;
2876
+ /** Data format for response. */
2877
+ alt?: string;
2878
+ /** JSONP */
2879
+ callback?: string;
2880
+ /** Selector specifying which fields to include in a partial response. */
2881
+ fields?: string;
2882
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2883
+ key?: string;
2884
+ /** Required. The project name. */
2885
+ name: string;
2886
+ /** OAuth 2.0 token for the current user. */
2887
+ oauth_token?: string;
2888
+ /** Returns response with indentations and line breaks. */
2889
+ prettyPrint?: boolean;
2890
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2891
+ quotaUser?: string;
2892
+ /**
2893
+ * Required. Specifies the path, relative to `Model`, of the field to update. For example, to change the description of a model to "foo" and set its default version to "version_1",
2894
+ * the `update_mask` parameter would be specified as `description`, `default_version.name`, and the `PATCH` request body would specify the new value, as follows: { "description":
2895
+ * "foo", "defaultVersion": { "name":"version_1" } } Currently the supported update masks are `description` and `default_version.name`.
2896
+ */
2897
+ updateMask?: string;
2898
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2899
+ upload_protocol?: string;
2900
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2901
+ uploadType?: string;
2902
+ },
2903
+ body: GoogleCloudMlV1__Model): Request<GoogleLongrunning__Operation>;
2904
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
2905
+ setIamPolicy(request: {
2906
+ /** V1 error format. */
2907
+ "$.xgafv"?: string;
2908
+ /** OAuth access token. */
2909
+ access_token?: string;
2910
+ /** Data format for response. */
2911
+ alt?: string;
2912
+ /** JSONP */
2913
+ callback?: string;
2914
+ /** Selector specifying which fields to include in a partial response. */
2915
+ fields?: string;
2916
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2917
+ key?: string;
2918
+ /** OAuth 2.0 token for the current user. */
2919
+ oauth_token?: string;
2920
+ /** Returns response with indentations and line breaks. */
2921
+ prettyPrint?: boolean;
2922
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2923
+ quotaUser?: string;
2924
+ /**
2925
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
2926
+ * field.
2927
+ */
2928
+ resource: string;
2929
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2930
+ upload_protocol?: string;
2931
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2932
+ uploadType?: string;
2933
+ },
2934
+ body: GoogleIamV1__SetIamPolicyRequest): Request<GoogleIamV1__Policy>;
2935
+ /**
2936
+ * 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
2937
+ * 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.
2938
+ */
2939
+ testIamPermissions(request: {
2940
+ /** V1 error format. */
2941
+ "$.xgafv"?: string;
2942
+ /** OAuth access token. */
2943
+ access_token?: string;
2944
+ /** Data format for response. */
2945
+ alt?: string;
2946
+ /** JSONP */
2947
+ callback?: string;
2948
+ /** Selector specifying which fields to include in a partial response. */
2949
+ fields?: string;
2950
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2951
+ key?: string;
2952
+ /** OAuth 2.0 token for the current user. */
2953
+ oauth_token?: string;
2954
+ /** Returns response with indentations and line breaks. */
2955
+ prettyPrint?: boolean;
2956
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2957
+ quotaUser?: string;
2958
+ /**
2959
+ * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
2960
+ * this field.
2961
+ */
2962
+ resource: string;
2963
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2964
+ upload_protocol?: string;
2965
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2966
+ uploadType?: string;
2967
+ },
2968
+ body: GoogleIamV1__TestIamPermissionsRequest): Request<GoogleIamV1__TestIamPermissionsResponse>;
2969
+ versions: VersionsResource;
2970
+ }
2971
+ interface OperationsResource {
2972
+ /**
2973
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
2974
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
2975
+ * operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
2976
+ * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
2977
+ */
2978
+ cancel(request?: {
2979
+ /** V1 error format. */
2980
+ "$.xgafv"?: string;
2981
+ /** OAuth access token. */
2982
+ access_token?: string;
2983
+ /** Data format for response. */
2984
+ alt?: string;
2985
+ /** JSONP */
2986
+ callback?: string;
2987
+ /** Selector specifying which fields to include in a partial response. */
2988
+ fields?: string;
2989
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2990
+ key?: string;
2991
+ /** The name of the operation resource to be cancelled. */
2992
+ name: string;
2993
+ /** OAuth 2.0 token for the current user. */
2994
+ oauth_token?: string;
2995
+ /** Returns response with indentations and line breaks. */
2996
+ prettyPrint?: boolean;
2997
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2998
+ quotaUser?: string;
2999
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3000
+ upload_protocol?: string;
3001
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3002
+ uploadType?: string;
3003
+ }): Request<{}>;
3004
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
3005
+ get(request?: {
3006
+ /** V1 error format. */
3007
+ "$.xgafv"?: string;
3008
+ /** OAuth access token. */
3009
+ access_token?: string;
3010
+ /** Data format for response. */
3011
+ alt?: string;
3012
+ /** JSONP */
3013
+ callback?: string;
3014
+ /** Selector specifying which fields to include in a partial response. */
3015
+ fields?: string;
3016
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3017
+ key?: string;
3018
+ /** The name of the operation resource. */
3019
+ name: string;
3020
+ /** OAuth 2.0 token for the current user. */
3021
+ oauth_token?: string;
3022
+ /** Returns response with indentations and line breaks. */
3023
+ prettyPrint?: boolean;
3024
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3025
+ quotaUser?: string;
3026
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3027
+ upload_protocol?: string;
3028
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3029
+ uploadType?: string;
3030
+ }): Request<GoogleLongrunning__Operation>;
3031
+ /**
3032
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
3033
+ * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
3034
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
3035
+ * ensure the name binding is the parent resource, without the operations collection id.
3036
+ */
3037
+ list(request?: {
3038
+ /** V1 error format. */
3039
+ "$.xgafv"?: string;
3040
+ /** OAuth access token. */
3041
+ access_token?: string;
3042
+ /** Data format for response. */
3043
+ alt?: string;
3044
+ /** JSONP */
3045
+ callback?: string;
3046
+ /** Selector specifying which fields to include in a partial response. */
3047
+ fields?: string;
3048
+ /** The standard list filter. */
3049
+ filter?: string;
3050
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3051
+ key?: string;
3052
+ /** The name of the operation's parent resource. */
3053
+ name: string;
3054
+ /** OAuth 2.0 token for the current user. */
3055
+ oauth_token?: string;
3056
+ /** The standard list page size. */
3057
+ pageSize?: number;
3058
+ /** The standard list page token. */
3059
+ pageToken?: string;
3060
+ /** Returns response with indentations and line breaks. */
3061
+ prettyPrint?: boolean;
3062
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3063
+ quotaUser?: string;
3064
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3065
+ upload_protocol?: string;
3066
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3067
+ uploadType?: string;
3068
+ }): Request<GoogleLongrunning__ListOperationsResponse>;
3069
+ }
3070
+ interface ProjectsResource {
3071
+ /** Performs explanation on the data in the request. {% dynamic include "/ai-platform/includes/___explain-request" %} */
3072
+ explain(request: {
3073
+ /** V1 error format. */
3074
+ "$.xgafv"?: string;
3075
+ /** OAuth access token. */
3076
+ access_token?: string;
3077
+ /** Data format for response. */
3078
+ alt?: string;
3079
+ /** JSONP */
3080
+ callback?: string;
3081
+ /** Selector specifying which fields to include in a partial response. */
3082
+ fields?: string;
3083
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3084
+ key?: string;
3085
+ /** Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource. */
3086
+ name: string;
3087
+ /** OAuth 2.0 token for the current user. */
3088
+ oauth_token?: string;
3089
+ /** Returns response with indentations and line breaks. */
3090
+ prettyPrint?: boolean;
3091
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3092
+ quotaUser?: string;
3093
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3094
+ upload_protocol?: string;
3095
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3096
+ uploadType?: string;
3097
+ /** Request body */
3098
+ resource: GoogleCloudMlV1__ExplainRequest;
3099
+ }): Request<GoogleApi__HttpBody>;
3100
+ explain(request: {
3101
+ /** V1 error format. */
3102
+ "$.xgafv"?: string;
3103
+ /** OAuth access token. */
3104
+ access_token?: string;
3105
+ /** Data format for response. */
3106
+ alt?: string;
3107
+ /** JSONP */
3108
+ callback?: string;
3109
+ /** Selector specifying which fields to include in a partial response. */
3110
+ fields?: string;
3111
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3112
+ key?: string;
3113
+ /** Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource. */
3114
+ name: string;
3115
+ /** OAuth 2.0 token for the current user. */
3116
+ oauth_token?: string;
3117
+ /** Returns response with indentations and line breaks. */
3118
+ prettyPrint?: boolean;
3119
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3120
+ quotaUser?: string;
3121
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3122
+ upload_protocol?: string;
3123
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3124
+ uploadType?: string;
3125
+ },
3126
+ body: GoogleCloudMlV1__ExplainRequest): Request<GoogleApi__HttpBody>;
3127
+ /**
3128
+ * Get the service account information associated with your project. You need this information in order to grant the service account permissions for the Google Cloud Storage location
3129
+ * where you put your model training code for training the model with Google Cloud Machine Learning.
3130
+ */
3131
+ getConfig(request?: {
3132
+ /** V1 error format. */
3133
+ "$.xgafv"?: string;
3134
+ /** OAuth access token. */
3135
+ access_token?: string;
3136
+ /** Data format for response. */
3137
+ alt?: string;
3138
+ /** JSONP */
3139
+ callback?: string;
3140
+ /** Selector specifying which fields to include in a partial response. */
3141
+ fields?: string;
3142
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3143
+ key?: string;
3144
+ /** Required. The project name. */
3145
+ name: string;
3146
+ /** OAuth 2.0 token for the current user. */
3147
+ oauth_token?: string;
3148
+ /** Returns response with indentations and line breaks. */
3149
+ prettyPrint?: boolean;
3150
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3151
+ quotaUser?: string;
3152
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3153
+ upload_protocol?: string;
3154
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3155
+ uploadType?: string;
3156
+ }): Request<GoogleCloudMlV1__GetConfigResponse>;
3157
+ /** Performs online prediction on the data in the request. {% dynamic include "/ai-platform/includes/___predict-request" %} */
3158
+ predict(request: {
3159
+ /** V1 error format. */
3160
+ "$.xgafv"?: string;
3161
+ /** OAuth access token. */
3162
+ access_token?: string;
3163
+ /** Data format for response. */
3164
+ alt?: string;
3165
+ /** JSONP */
3166
+ callback?: string;
3167
+ /** Selector specifying which fields to include in a partial response. */
3168
+ fields?: string;
3169
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3170
+ key?: string;
3171
+ /** Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource. */
3172
+ name: string;
3173
+ /** OAuth 2.0 token for the current user. */
3174
+ oauth_token?: string;
3175
+ /** Returns response with indentations and line breaks. */
3176
+ prettyPrint?: boolean;
3177
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3178
+ quotaUser?: string;
3179
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3180
+ upload_protocol?: string;
3181
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3182
+ uploadType?: string;
3183
+ /** Request body */
3184
+ resource: GoogleCloudMlV1__PredictRequest;
3185
+ }): Request<GoogleApi__HttpBody>;
3186
+ predict(request: {
3187
+ /** V1 error format. */
3188
+ "$.xgafv"?: string;
3189
+ /** OAuth access token. */
3190
+ access_token?: string;
3191
+ /** Data format for response. */
3192
+ alt?: string;
3193
+ /** JSONP */
3194
+ callback?: string;
3195
+ /** Selector specifying which fields to include in a partial response. */
3196
+ fields?: string;
3197
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3198
+ key?: string;
3199
+ /** Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource. */
3200
+ name: string;
3201
+ /** OAuth 2.0 token for the current user. */
3202
+ oauth_token?: string;
3203
+ /** Returns response with indentations and line breaks. */
3204
+ prettyPrint?: boolean;
3205
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3206
+ quotaUser?: string;
3207
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3208
+ upload_protocol?: string;
3209
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3210
+ uploadType?: string;
3211
+ },
3212
+ body: GoogleCloudMlV1__PredictRequest): Request<GoogleApi__HttpBody>;
3213
+ jobs: JobsResource;
3214
+ locations: LocationsResource;
3215
+ models: ModelsResource;
3216
+ operations: OperationsResource;
3217
+ }
3218
+
3219
+ const projects: ProjectsResource;
3220
+ }
3221
+ }