@maxim_mazurok/gapi.client.ml-v1 0.1.20251213 → 0.3.20251213

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.
Files changed (3) hide show
  1. package/index.d.ts +264 -154
  2. package/package.json +1 -1
  3. package/readme.md +12 -0
package/index.d.ts CHANGED
@@ -30,13 +30,25 @@ declare namespace gapi.client {
30
30
  /** The HTTP request/response body as raw binary. */
31
31
  data?: string;
32
32
  /** Application specific response metadata. Must be set in the first response for streaming APIs. */
33
- extensions?: Array<{[P in string]: any}>;
33
+ extensions?: {[P in string]: any}[];
34
34
  }
35
35
  interface GoogleCloudMlV1__AcceleratorConfig {
36
36
  /** The number of accelerators to attach to each machine running the job. */
37
37
  count?: string;
38
38
  /** The type of accelerator to use. */
39
- type?: string;
39
+ type?:
40
+ | 'ACCELERATOR_TYPE_UNSPECIFIED'
41
+ | 'NVIDIA_TESLA_K80'
42
+ | 'NVIDIA_TESLA_P100'
43
+ | 'NVIDIA_TESLA_V100'
44
+ | 'NVIDIA_TESLA_P4'
45
+ | 'NVIDIA_TESLA_T4'
46
+ | 'NVIDIA_TESLA_A100'
47
+ | 'TPU_V2'
48
+ | 'TPU_V3'
49
+ | 'TPU_V2_POD'
50
+ | 'TPU_V3_POD'
51
+ | 'TPU_V4_POD';
40
52
  }
41
53
  interface GoogleCloudMlV1__AddTrialMeasurementRequest {
42
54
  /** Required. The measurement to be added to a trial. */
@@ -67,8 +79,24 @@ declare namespace gapi.client {
67
79
  interface GoogleCloudMlV1__CancelJobRequest {}
68
80
  interface GoogleCloudMlV1__Capability {
69
81
  /** Available accelerators for the capability. */
70
- availableAccelerators?: string[];
71
- type?: string;
82
+ availableAccelerators?:
83
+ | 'ACCELERATOR_TYPE_UNSPECIFIED'
84
+ | 'NVIDIA_TESLA_K80'
85
+ | 'NVIDIA_TESLA_P100'
86
+ | 'NVIDIA_TESLA_V100'
87
+ | 'NVIDIA_TESLA_P4'
88
+ | 'NVIDIA_TESLA_T4'
89
+ | 'NVIDIA_TESLA_A100'
90
+ | 'TPU_V2'
91
+ | 'TPU_V3'
92
+ | 'TPU_V2_POD'
93
+ | 'TPU_V3_POD'
94
+ | 'TPU_V4_POD'[];
95
+ type?:
96
+ | 'TYPE_UNSPECIFIED'
97
+ | 'TRAINING'
98
+ | 'BATCH_PREDICTION'
99
+ | 'ONLINE_PREDICTION';
72
100
  }
73
101
  interface GoogleCloudMlV1__CheckTrialEarlyStoppingStateMetatdata {
74
102
  /** The time at which the operation was submitted. */
@@ -166,7 +194,15 @@ declare namespace gapi.client {
166
194
  /** Output only. Start time for the trial. */
167
195
  startTime?: string;
168
196
  /** Output only. The detailed state of the trial. */
169
- state?: string;
197
+ state?:
198
+ | 'STATE_UNSPECIFIED'
199
+ | 'QUEUED'
200
+ | 'PREPARING'
201
+ | 'RUNNING'
202
+ | 'SUCCEEDED'
203
+ | 'FAILED'
204
+ | 'CANCELLING'
205
+ | 'CANCELLED';
170
206
  /** The trial id for these results. */
171
207
  trialId?: string;
172
208
  /** URIs for accessing [interactive shells](https://cloud.google.com/ai-platform/training/docs/monitor-debug-interactive-shell) (one URI for each training node). Only available if this trial is part of a hyperparameter tuning job and the job's training_input.enable_web_access is `true`. The keys are names of each node in the training job; for example, `master-replica-0` for the master node, `worker-replica-0` for the first worker, and `ps-replica-0` for the first parameter server. The values are the URIs for each node's interactive shell. */
@@ -174,11 +210,11 @@ declare namespace gapi.client {
174
210
  }
175
211
  interface GoogleCloudMlV1__HyperparameterSpec {
176
212
  /** Optional. The search algorithm specified for the hyperparameter tuning job. Uses the default AI Platform hyperparameter tuning algorithm if unspecified. */
177
- algorithm?: string;
213
+ algorithm?: 'ALGORITHM_UNSPECIFIED' | 'GRID_SEARCH' | 'RANDOM_SEARCH';
178
214
  /** Optional. Indicates if the hyperparameter tuning job enables auto trial early stopping. */
179
215
  enableTrialEarlyStopping?: boolean;
180
216
  /** Required. The type of goal to use for tuning. Available types are `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`. */
181
- goal?: string;
217
+ goal?: 'GOAL_TYPE_UNSPECIFIED' | 'MAXIMIZE' | 'MINIMIZE';
182
218
  /** Optional. The TensorFlow summary tag name to use for optimizing trials. For current versions of TensorFlow, this tag name should exactly match what is shown in TensorBoard, including all scopes. For versions of TensorFlow prior to 0.12, this should be only the tag passed to tf.Summary. By default, "training/hptuning/metric" will be used. */
183
219
  hyperparameterMetricTag?: string;
184
220
  /** Optional. The number of failed trials that need to be seen before failing the hyperparameter tuning job. You can specify this field to override the default failing criteria for AI Platform hyperparameter tuning jobs. Defaults to zero, which means the service decides when a hyperparameter job should fail. */
@@ -218,7 +254,15 @@ declare namespace gapi.client {
218
254
  /** Output only. When the job processing was started. */
219
255
  startTime?: string;
220
256
  /** Output only. The detailed state of a job. */
221
- state?: string;
257
+ state?:
258
+ | 'STATE_UNSPECIFIED'
259
+ | 'QUEUED'
260
+ | 'PREPARING'
261
+ | 'RUNNING'
262
+ | 'SUCCEEDED'
263
+ | 'FAILED'
264
+ | 'CANCELLING'
265
+ | 'CANCELLED';
222
266
  /** Input parameters to create a training job. */
223
267
  trainingInput?: GoogleCloudMlV1__TrainingInput;
224
268
  /** The current training job result. */
@@ -280,7 +324,7 @@ declare namespace gapi.client {
280
324
  }
281
325
  interface GoogleCloudMlV1__MetricSpec {
282
326
  /** metric name. */
283
- name?: string;
327
+ name?: 'METRIC_NAME_UNSPECIFIED' | 'CPU_USAGE' | 'GPU_DUTY_CYCLE';
284
328
  /** Target specifies the target value for the given metric; once real metric deviates from the threshold by a certain percentage, the node count changes. */
285
329
  target?: number;
286
330
  }
@@ -314,7 +358,14 @@ declare namespace gapi.client {
314
358
  /** Contains the name of the model associated with the operation. */
315
359
  modelName?: string;
316
360
  /** The operation type. */
317
- operationType?: string;
361
+ operationType?:
362
+ | 'OPERATION_TYPE_UNSPECIFIED'
363
+ | 'CREATE_VERSION'
364
+ | 'DELETE_VERSION'
365
+ | 'DELETE_MODEL'
366
+ | 'UPDATE_MODEL'
367
+ | 'UPDATE_VERSION'
368
+ | 'UPDATE_CONFIG';
318
369
  /** Contains the project number associated with the operation. */
319
370
  projectNumber?: string;
320
371
  /** The time operation processing started. */
@@ -334,15 +385,30 @@ declare namespace gapi.client {
334
385
  /** Required. The parameter name must be unique amongst all ParameterConfigs in a HyperparameterSpec message. E.g., "learning_rate". */
335
386
  parameterName?: string;
336
387
  /** Optional. How the parameter should be scaled to the hypercube. Leave unset for categorical parameters. Some kind of scaling is strongly recommended for real or integral parameters (e.g., `UNIT_LINEAR_SCALE`). */
337
- scaleType?: string;
388
+ scaleType?:
389
+ | 'NONE'
390
+ | 'UNIT_LINEAR_SCALE'
391
+ | 'UNIT_LOG_SCALE'
392
+ | 'UNIT_REVERSE_LOG_SCALE';
338
393
  /** Required. The type of the parameter. */
339
- type?: string;
394
+ type?:
395
+ | 'PARAMETER_TYPE_UNSPECIFIED'
396
+ | 'DOUBLE'
397
+ | 'INTEGER'
398
+ | 'CATEGORICAL'
399
+ | 'DISCRETE';
340
400
  }
341
401
  interface GoogleCloudMlV1__PredictionInput {
342
402
  /** Optional. Number of records per batch, defaults to 64. The service will buffer batch_size number of records in memory before invoking one Tensorflow prediction call internally. So take the record size and memory available into consideration when setting this parameter. */
343
403
  batchSize?: string;
344
404
  /** Required. The format of the input data files. */
345
- dataFormat?: string;
405
+ dataFormat?:
406
+ | 'DATA_FORMAT_UNSPECIFIED'
407
+ | 'JSON'
408
+ | 'TEXT'
409
+ | 'TF_RECORD'
410
+ | 'TF_RECORD_GZIP'
411
+ | 'CSV';
346
412
  /** Required. The Cloud Storage location of the input data files. May contain wildcards. */
347
413
  inputPaths?: string[];
348
414
  /** Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified. */
@@ -350,7 +416,13 @@ declare namespace gapi.client {
350
416
  /** 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"` */
351
417
  modelName?: string;
352
418
  /** Optional. Format of the output data files, defaults to JSON. */
353
- outputDataFormat?: string;
419
+ outputDataFormat?:
420
+ | 'DATA_FORMAT_UNSPECIFIED'
421
+ | 'JSON'
422
+ | 'TEXT'
423
+ | 'TF_RECORD'
424
+ | 'TF_RECORD_GZIP'
425
+ | 'CSV';
354
426
  /** Required. The output Google Cloud Storage location. */
355
427
  outputPath?: string;
356
428
  /** Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services. */
@@ -426,13 +498,17 @@ declare namespace gapi.client {
426
498
  /** Output only. The name of a study. */
427
499
  name?: string;
428
500
  /** Output only. The detailed state of a study. */
429
- state?: string;
501
+ state?: 'STATE_UNSPECIFIED' | 'ACTIVE' | 'INACTIVE' | 'COMPLETED';
430
502
  /** Required. Configuration of the study. */
431
503
  studyConfig?: GoogleCloudMlV1__StudyConfig;
432
504
  }
433
505
  interface GoogleCloudMlV1__StudyConfig {
434
506
  /** The search algorithm specified for the study. */
435
- algorithm?: string;
507
+ algorithm?:
508
+ | 'ALGORITHM_UNSPECIFIED'
509
+ | 'GAUSSIAN_PROCESS_BANDIT'
510
+ | 'GRID_SEARCH'
511
+ | 'RANDOM_SEARCH';
436
512
  /** Configuration for automated stopping of unpromising Trials. */
437
513
  automatedStoppingConfig?: GoogleCloudMlV1__AutomatedStoppingConfig;
438
514
  /** Metric specs for the study. */
@@ -462,7 +538,7 @@ declare namespace gapi.client {
462
538
  /** The time at which the operation was started. */
463
539
  startTime?: string;
464
540
  /** The state of the study. */
465
- studyState?: string;
541
+ studyState?: 'STATE_UNSPECIFIED' | 'ACTIVE' | 'INACTIVE' | 'COMPLETED';
466
542
  /** A list of trials. */
467
543
  trials?: GoogleCloudMlV1__Trial[];
468
544
  }
@@ -506,7 +582,13 @@ declare namespace gapi.client {
506
582
  /** Optional. The AI Platform runtime version to use for training. You must either specify this field or specify `masterConfig.imageUri`. For more information, see the [runtime version list](/ai-platform/training/docs/runtime-version-list) and learn [how to manage runtime versions](/ai-platform/training/docs/versioning). */
507
583
  runtimeVersion?: string;
508
584
  /** Required. Specifies the machine types, the number of replicas for workers and parameter servers. */
509
- scaleTier?: string;
585
+ scaleTier?:
586
+ | 'BASIC'
587
+ | 'STANDARD_1'
588
+ | 'PREMIUM_1'
589
+ | 'BASIC_GPU'
590
+ | 'BASIC_TPU'
591
+ | 'CUSTOM';
510
592
  /** Optional. Scheduling options for a training job. */
511
593
  scheduling?: GoogleCloudMlV1__Scheduling;
512
594
  /** Optional. The email address of a service account to use when running the training appplication. You must have the `iam.serviceAccounts.actAs` permission for the specified service account. In addition, the AI Platform Training Google-managed service account must have the `roles/iam.serviceAccountAdmin` role for the specified service account. [Learn more about configuring a service account.](/ai-platform/training/docs/custom-service-account) If not specified, the AI Platform Training Google-managed service account is used by default. */
@@ -556,7 +638,12 @@ declare namespace gapi.client {
556
638
  /** Output only. Time at which the trial was started. */
557
639
  startTime?: string;
558
640
  /** The detailed state of a trial. */
559
- state?: string;
641
+ state?:
642
+ | 'STATE_UNSPECIFIED'
643
+ | 'REQUESTED'
644
+ | 'ACTIVE'
645
+ | 'COMPLETED'
646
+ | 'STOPPING';
560
647
  /** Output only. If true, the parameters in this trial are not attempted again. */
561
648
  trialInfeasible?: boolean;
562
649
  }
@@ -580,7 +667,11 @@ declare namespace gapi.client {
580
667
  /** Optional. Configures explainability features on the model's version. Some explanation features require additional metadata to be loaded as part of the model payload. */
581
668
  explanationConfig?: GoogleCloudMlV1__ExplanationConfig;
582
669
  /** Optional. The machine learning framework AI Platform uses to train this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`, `XGBOOST`. If you do not specify a framework, AI Platform will analyze files in the deployment_uri to determine a framework. If you choose `SCIKIT_LEARN` or `XGBOOST`, you must also set the runtime version of the model to 1.4 or greater. Do **not** specify a framework if you're deploying a [custom prediction routine](/ai-platform/prediction/docs/custom-prediction-routines) or if you're using a [custom container](/ai-platform/prediction/docs/use-custom-container). */
583
- framework?: string;
670
+ framework?:
671
+ | 'FRAMEWORK_UNSPECIFIED'
672
+ | 'TENSORFLOW'
673
+ | 'SCIKIT_LEARN'
674
+ | 'XGBOOST';
584
675
  /** Output only. If true, this version will be used to handle prediction requests that do not specify a version. You can change the default version by calling projects.methods.versions.setDefault. */
585
676
  isDefault?: boolean;
586
677
  /** Optional. One or more labels that you can add, to organize your model versions. Each label is a key-value pair, where both the key and the value are arbitrary strings that you supply. For more information, see the documentation on using labels. Note that this field is not updatable for mls1* models. */
@@ -612,7 +703,13 @@ declare namespace gapi.client {
612
703
  /** Optional. Specifies the service account for resource access control. If you specify this field, then you must also specify either the `containerSpec` or the `predictionClass` field. Learn more about [using a custom service account](/ai-platform/prediction/docs/custom-service-account). */
613
704
  serviceAccount?: string;
614
705
  /** Output only. The state of a version. */
615
- state?: string;
706
+ state?:
707
+ | 'UNKNOWN'
708
+ | 'READY'
709
+ | 'CREATING'
710
+ | 'FAILED'
711
+ | 'DELETING'
712
+ | 'UPDATING';
616
713
  }
617
714
  interface GoogleCloudMlV1__XraiAttribution {
618
715
  /** 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. */
@@ -640,7 +737,7 @@ declare namespace gapi.client {
640
737
  }
641
738
  interface GoogleCloudMlV1_StudyConfig_MetricSpec {
642
739
  /** Required. The optimization goal of the metric. */
643
- goal?: string;
740
+ goal?: 'GOAL_TYPE_UNSPECIFIED' | 'MAXIMIZE' | 'MINIMIZE';
644
741
  /** Required. The name of the metric. */
645
742
  metric?: string;
646
743
  }
@@ -661,9 +758,18 @@ declare namespace gapi.client {
661
758
  parentDiscreteValues?: GoogleCloudMlV1_StudyConfigParameterSpec_MatchingParentDiscreteValueSpec;
662
759
  parentIntValues?: GoogleCloudMlV1_StudyConfigParameterSpec_MatchingParentIntValueSpec;
663
760
  /** How the parameter should be scaled. Leave unset for categorical parameters. */
664
- scaleType?: string;
761
+ scaleType?:
762
+ | 'SCALE_TYPE_UNSPECIFIED'
763
+ | 'UNIT_LINEAR_SCALE'
764
+ | 'UNIT_LOG_SCALE'
765
+ | 'UNIT_REVERSE_LOG_SCALE';
665
766
  /** Required. The type of the parameter. */
666
- type?: string;
767
+ type?:
768
+ | 'PARAMETER_TYPE_UNSPECIFIED'
769
+ | 'DOUBLE'
770
+ | 'INTEGER'
771
+ | 'CATEGORICAL'
772
+ | 'DISCRETE';
667
773
  }
668
774
  interface GoogleCloudMlV1_StudyConfigParameterSpec_CategoricalValueSpec {
669
775
  /** Must be specified if type is `CATEGORICAL`. The list of possible categories. */
@@ -717,7 +823,11 @@ declare namespace gapi.client {
717
823
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
718
824
  exemptedMembers?: string[];
719
825
  /** The log type that this config enables. */
720
- logType?: string;
826
+ logType?:
827
+ | 'LOG_TYPE_UNSPECIFIED'
828
+ | 'ADMIN_READ'
829
+ | 'DATA_WRITE'
830
+ | 'DATA_READ';
721
831
  }
722
832
  interface GoogleIamV1__Binding {
723
833
  /** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
@@ -776,7 +886,7 @@ declare namespace gapi.client {
776
886
  /** The status code, which should be an enum value of google.rpc.Code. */
777
887
  code?: number;
778
888
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
779
- details?: Array<{[P in string]: any}>;
889
+ details?: {[P in string]: any}[];
780
890
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
781
891
  message?: string;
782
892
  }
@@ -794,11 +904,11 @@ declare namespace gapi.client {
794
904
  /** Cancels a running job. */
795
905
  cancel(request: {
796
906
  /** V1 error format. */
797
- '$.xgafv'?: string;
907
+ '$.xgafv'?: '1' | '2';
798
908
  /** OAuth access token. */
799
909
  access_token?: string;
800
910
  /** Data format for response. */
801
- alt?: string;
911
+ alt?: 'json' | 'media' | 'proto';
802
912
  /** JSONP */
803
913
  callback?: string;
804
914
  /** Selector specifying which fields to include in a partial response. */
@@ -823,11 +933,11 @@ declare namespace gapi.client {
823
933
  cancel(
824
934
  request: {
825
935
  /** V1 error format. */
826
- '$.xgafv'?: string;
936
+ '$.xgafv'?: '1' | '2';
827
937
  /** OAuth access token. */
828
938
  access_token?: string;
829
939
  /** Data format for response. */
830
- alt?: string;
940
+ alt?: 'json' | 'media' | 'proto';
831
941
  /** JSONP */
832
942
  callback?: string;
833
943
  /** Selector specifying which fields to include in a partial response. */
@@ -852,11 +962,11 @@ declare namespace gapi.client {
852
962
  /** Creates a training or a batch prediction job. */
853
963
  create(request: {
854
964
  /** V1 error format. */
855
- '$.xgafv'?: string;
965
+ '$.xgafv'?: '1' | '2';
856
966
  /** OAuth access token. */
857
967
  access_token?: string;
858
968
  /** Data format for response. */
859
- alt?: string;
969
+ alt?: 'json' | 'media' | 'proto';
860
970
  /** JSONP */
861
971
  callback?: string;
862
972
  /** Selector specifying which fields to include in a partial response. */
@@ -881,11 +991,11 @@ declare namespace gapi.client {
881
991
  create(
882
992
  request: {
883
993
  /** V1 error format. */
884
- '$.xgafv'?: string;
994
+ '$.xgafv'?: '1' | '2';
885
995
  /** OAuth access token. */
886
996
  access_token?: string;
887
997
  /** Data format for response. */
888
- alt?: string;
998
+ alt?: 'json' | 'media' | 'proto';
889
999
  /** JSONP */
890
1000
  callback?: string;
891
1001
  /** Selector specifying which fields to include in a partial response. */
@@ -910,11 +1020,11 @@ declare namespace gapi.client {
910
1020
  /** Describes a job. */
911
1021
  get(request?: {
912
1022
  /** V1 error format. */
913
- '$.xgafv'?: string;
1023
+ '$.xgafv'?: '1' | '2';
914
1024
  /** OAuth access token. */
915
1025
  access_token?: string;
916
1026
  /** Data format for response. */
917
- alt?: string;
1027
+ alt?: 'json' | 'media' | 'proto';
918
1028
  /** JSONP */
919
1029
  callback?: string;
920
1030
  /** Selector specifying which fields to include in a partial response. */
@@ -937,11 +1047,11 @@ declare namespace gapi.client {
937
1047
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
938
1048
  getIamPolicy(request?: {
939
1049
  /** V1 error format. */
940
- '$.xgafv'?: string;
1050
+ '$.xgafv'?: '1' | '2';
941
1051
  /** OAuth access token. */
942
1052
  access_token?: string;
943
1053
  /** Data format for response. */
944
- alt?: string;
1054
+ alt?: 'json' | 'media' | 'proto';
945
1055
  /** JSONP */
946
1056
  callback?: string;
947
1057
  /** Selector specifying which fields to include in a partial response. */
@@ -966,11 +1076,11 @@ declare namespace gapi.client {
966
1076
  /** Lists the jobs in the project. If there are no jobs that match the request parameters, the list request returns an empty response body: {}. */
967
1077
  list(request?: {
968
1078
  /** V1 error format. */
969
- '$.xgafv'?: string;
1079
+ '$.xgafv'?: '1' | '2';
970
1080
  /** OAuth access token. */
971
1081
  access_token?: string;
972
1082
  /** Data format for response. */
973
- alt?: string;
1083
+ alt?: 'json' | 'media' | 'proto';
974
1084
  /** JSONP */
975
1085
  callback?: string;
976
1086
  /** Selector specifying which fields to include in a partial response. */
@@ -999,11 +1109,11 @@ declare namespace gapi.client {
999
1109
  /** Updates a specific job resource. Currently the only supported fields to update are `labels`. */
1000
1110
  patch(request: {
1001
1111
  /** V1 error format. */
1002
- '$.xgafv'?: string;
1112
+ '$.xgafv'?: '1' | '2';
1003
1113
  /** OAuth access token. */
1004
1114
  access_token?: string;
1005
1115
  /** Data format for response. */
1006
- alt?: string;
1116
+ alt?: 'json' | 'media' | 'proto';
1007
1117
  /** JSONP */
1008
1118
  callback?: string;
1009
1119
  /** Selector specifying which fields to include in a partial response. */
@@ -1030,11 +1140,11 @@ declare namespace gapi.client {
1030
1140
  patch(
1031
1141
  request: {
1032
1142
  /** V1 error format. */
1033
- '$.xgafv'?: string;
1143
+ '$.xgafv'?: '1' | '2';
1034
1144
  /** OAuth access token. */
1035
1145
  access_token?: string;
1036
1146
  /** Data format for response. */
1037
- alt?: string;
1147
+ alt?: 'json' | 'media' | 'proto';
1038
1148
  /** JSONP */
1039
1149
  callback?: string;
1040
1150
  /** Selector specifying which fields to include in a partial response. */
@@ -1062,11 +1172,11 @@ declare namespace gapi.client {
1062
1172
  setIamPolicy(
1063
1173
  request: {
1064
1174
  /** V1 error format. */
1065
- '$.xgafv'?: string;
1175
+ '$.xgafv'?: '1' | '2';
1066
1176
  /** OAuth access token. */
1067
1177
  access_token?: string;
1068
1178
  /** Data format for response. */
1069
- alt?: string;
1179
+ alt?: 'json' | 'media' | 'proto';
1070
1180
  /** JSONP */
1071
1181
  callback?: string;
1072
1182
  /** Selector specifying which fields to include in a partial response. */
@@ -1092,11 +1202,11 @@ declare namespace gapi.client {
1092
1202
  testIamPermissions(
1093
1203
  request: {
1094
1204
  /** V1 error format. */
1095
- '$.xgafv'?: string;
1205
+ '$.xgafv'?: '1' | '2';
1096
1206
  /** OAuth access token. */
1097
1207
  access_token?: string;
1098
1208
  /** Data format for response. */
1099
- alt?: string;
1209
+ alt?: 'json' | 'media' | 'proto';
1100
1210
  /** JSONP */
1101
1211
  callback?: string;
1102
1212
  /** Selector specifying which fields to include in a partial response. */
@@ -1123,11 +1233,11 @@ declare namespace gapi.client {
1123
1233
  /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
1124
1234
  cancel(request?: {
1125
1235
  /** V1 error format. */
1126
- '$.xgafv'?: string;
1236
+ '$.xgafv'?: '1' | '2';
1127
1237
  /** OAuth access token. */
1128
1238
  access_token?: string;
1129
1239
  /** Data format for response. */
1130
- alt?: string;
1240
+ alt?: 'json' | 'media' | 'proto';
1131
1241
  /** JSONP */
1132
1242
  callback?: string;
1133
1243
  /** Selector specifying which fields to include in a partial response. */
@@ -1150,11 +1260,11 @@ declare namespace gapi.client {
1150
1260
  /** 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. */
1151
1261
  get(request?: {
1152
1262
  /** V1 error format. */
1153
- '$.xgafv'?: string;
1263
+ '$.xgafv'?: '1' | '2';
1154
1264
  /** OAuth access token. */
1155
1265
  access_token?: string;
1156
1266
  /** Data format for response. */
1157
- alt?: string;
1267
+ alt?: 'json' | 'media' | 'proto';
1158
1268
  /** JSONP */
1159
1269
  callback?: string;
1160
1270
  /** Selector specifying which fields to include in a partial response. */
@@ -1179,11 +1289,11 @@ declare namespace gapi.client {
1179
1289
  /** Adds a measurement of the objective metrics to a trial. This measurement is assumed to have been taken before the trial is complete. */
1180
1290
  addMeasurement(request: {
1181
1291
  /** V1 error format. */
1182
- '$.xgafv'?: string;
1292
+ '$.xgafv'?: '1' | '2';
1183
1293
  /** OAuth access token. */
1184
1294
  access_token?: string;
1185
1295
  /** Data format for response. */
1186
- alt?: string;
1296
+ alt?: 'json' | 'media' | 'proto';
1187
1297
  /** JSONP */
1188
1298
  callback?: string;
1189
1299
  /** Selector specifying which fields to include in a partial response. */
@@ -1208,11 +1318,11 @@ declare namespace gapi.client {
1208
1318
  addMeasurement(
1209
1319
  request: {
1210
1320
  /** V1 error format. */
1211
- '$.xgafv'?: string;
1321
+ '$.xgafv'?: '1' | '2';
1212
1322
  /** OAuth access token. */
1213
1323
  access_token?: string;
1214
1324
  /** Data format for response. */
1215
- alt?: string;
1325
+ alt?: 'json' | 'media' | 'proto';
1216
1326
  /** JSONP */
1217
1327
  callback?: string;
1218
1328
  /** Selector specifying which fields to include in a partial response. */
@@ -1237,11 +1347,11 @@ declare namespace gapi.client {
1237
1347
  /** Checks whether a trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a CheckTrialEarlyStoppingStateResponse. */
1238
1348
  checkEarlyStoppingState(request: {
1239
1349
  /** V1 error format. */
1240
- '$.xgafv'?: string;
1350
+ '$.xgafv'?: '1' | '2';
1241
1351
  /** OAuth access token. */
1242
1352
  access_token?: string;
1243
1353
  /** Data format for response. */
1244
- alt?: string;
1354
+ alt?: 'json' | 'media' | 'proto';
1245
1355
  /** JSONP */
1246
1356
  callback?: string;
1247
1357
  /** Selector specifying which fields to include in a partial response. */
@@ -1266,11 +1376,11 @@ declare namespace gapi.client {
1266
1376
  checkEarlyStoppingState(
1267
1377
  request: {
1268
1378
  /** V1 error format. */
1269
- '$.xgafv'?: string;
1379
+ '$.xgafv'?: '1' | '2';
1270
1380
  /** OAuth access token. */
1271
1381
  access_token?: string;
1272
1382
  /** Data format for response. */
1273
- alt?: string;
1383
+ alt?: 'json' | 'media' | 'proto';
1274
1384
  /** JSONP */
1275
1385
  callback?: string;
1276
1386
  /** Selector specifying which fields to include in a partial response. */
@@ -1295,11 +1405,11 @@ declare namespace gapi.client {
1295
1405
  /** Marks a trial as complete. */
1296
1406
  complete(request: {
1297
1407
  /** V1 error format. */
1298
- '$.xgafv'?: string;
1408
+ '$.xgafv'?: '1' | '2';
1299
1409
  /** OAuth access token. */
1300
1410
  access_token?: string;
1301
1411
  /** Data format for response. */
1302
- alt?: string;
1412
+ alt?: 'json' | 'media' | 'proto';
1303
1413
  /** JSONP */
1304
1414
  callback?: string;
1305
1415
  /** Selector specifying which fields to include in a partial response. */
@@ -1324,11 +1434,11 @@ declare namespace gapi.client {
1324
1434
  complete(
1325
1435
  request: {
1326
1436
  /** V1 error format. */
1327
- '$.xgafv'?: string;
1437
+ '$.xgafv'?: '1' | '2';
1328
1438
  /** OAuth access token. */
1329
1439
  access_token?: string;
1330
1440
  /** Data format for response. */
1331
- alt?: string;
1441
+ alt?: 'json' | 'media' | 'proto';
1332
1442
  /** JSONP */
1333
1443
  callback?: string;
1334
1444
  /** Selector specifying which fields to include in a partial response. */
@@ -1353,11 +1463,11 @@ declare namespace gapi.client {
1353
1463
  /** Adds a user provided trial to a study. */
1354
1464
  create(request: {
1355
1465
  /** V1 error format. */
1356
- '$.xgafv'?: string;
1466
+ '$.xgafv'?: '1' | '2';
1357
1467
  /** OAuth access token. */
1358
1468
  access_token?: string;
1359
1469
  /** Data format for response. */
1360
- alt?: string;
1470
+ alt?: 'json' | 'media' | 'proto';
1361
1471
  /** JSONP */
1362
1472
  callback?: string;
1363
1473
  /** Selector specifying which fields to include in a partial response. */
@@ -1382,11 +1492,11 @@ declare namespace gapi.client {
1382
1492
  create(
1383
1493
  request: {
1384
1494
  /** V1 error format. */
1385
- '$.xgafv'?: string;
1495
+ '$.xgafv'?: '1' | '2';
1386
1496
  /** OAuth access token. */
1387
1497
  access_token?: string;
1388
1498
  /** Data format for response. */
1389
- alt?: string;
1499
+ alt?: 'json' | 'media' | 'proto';
1390
1500
  /** JSONP */
1391
1501
  callback?: string;
1392
1502
  /** Selector specifying which fields to include in a partial response. */
@@ -1411,11 +1521,11 @@ declare namespace gapi.client {
1411
1521
  /** Deletes a trial. */
1412
1522
  delete(request?: {
1413
1523
  /** V1 error format. */
1414
- '$.xgafv'?: string;
1524
+ '$.xgafv'?: '1' | '2';
1415
1525
  /** OAuth access token. */
1416
1526
  access_token?: string;
1417
1527
  /** Data format for response. */
1418
- alt?: string;
1528
+ alt?: 'json' | 'media' | 'proto';
1419
1529
  /** JSONP */
1420
1530
  callback?: string;
1421
1531
  /** Selector specifying which fields to include in a partial response. */
@@ -1438,11 +1548,11 @@ declare namespace gapi.client {
1438
1548
  /** Gets a trial. */
1439
1549
  get(request?: {
1440
1550
  /** V1 error format. */
1441
- '$.xgafv'?: string;
1551
+ '$.xgafv'?: '1' | '2';
1442
1552
  /** OAuth access token. */
1443
1553
  access_token?: string;
1444
1554
  /** Data format for response. */
1445
- alt?: string;
1555
+ alt?: 'json' | 'media' | 'proto';
1446
1556
  /** JSONP */
1447
1557
  callback?: string;
1448
1558
  /** Selector specifying which fields to include in a partial response. */
@@ -1465,11 +1575,11 @@ declare namespace gapi.client {
1465
1575
  /** Lists the trials associated with a study. */
1466
1576
  list(request?: {
1467
1577
  /** V1 error format. */
1468
- '$.xgafv'?: string;
1578
+ '$.xgafv'?: '1' | '2';
1469
1579
  /** OAuth access token. */
1470
1580
  access_token?: string;
1471
1581
  /** Data format for response. */
1472
- alt?: string;
1582
+ alt?: 'json' | 'media' | 'proto';
1473
1583
  /** JSONP */
1474
1584
  callback?: string;
1475
1585
  /** Selector specifying which fields to include in a partial response. */
@@ -1492,11 +1602,11 @@ declare namespace gapi.client {
1492
1602
  /** Lists the pareto-optimal trials for multi-objective study or the optimal trials for single-objective study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency */
1493
1603
  listOptimalTrials(request: {
1494
1604
  /** V1 error format. */
1495
- '$.xgafv'?: string;
1605
+ '$.xgafv'?: '1' | '2';
1496
1606
  /** OAuth access token. */
1497
1607
  access_token?: string;
1498
1608
  /** Data format for response. */
1499
- alt?: string;
1609
+ alt?: 'json' | 'media' | 'proto';
1500
1610
  /** JSONP */
1501
1611
  callback?: string;
1502
1612
  /** Selector specifying which fields to include in a partial response. */
@@ -1521,11 +1631,11 @@ declare namespace gapi.client {
1521
1631
  listOptimalTrials(
1522
1632
  request: {
1523
1633
  /** V1 error format. */
1524
- '$.xgafv'?: string;
1634
+ '$.xgafv'?: '1' | '2';
1525
1635
  /** OAuth access token. */
1526
1636
  access_token?: string;
1527
1637
  /** Data format for response. */
1528
- alt?: string;
1638
+ alt?: 'json' | 'media' | 'proto';
1529
1639
  /** JSONP */
1530
1640
  callback?: string;
1531
1641
  /** Selector specifying which fields to include in a partial response. */
@@ -1550,11 +1660,11 @@ declare namespace gapi.client {
1550
1660
  /** Stops a trial. */
1551
1661
  stop(request: {
1552
1662
  /** V1 error format. */
1553
- '$.xgafv'?: string;
1663
+ '$.xgafv'?: '1' | '2';
1554
1664
  /** OAuth access token. */
1555
1665
  access_token?: string;
1556
1666
  /** Data format for response. */
1557
- alt?: string;
1667
+ alt?: 'json' | 'media' | 'proto';
1558
1668
  /** JSONP */
1559
1669
  callback?: string;
1560
1670
  /** Selector specifying which fields to include in a partial response. */
@@ -1579,11 +1689,11 @@ declare namespace gapi.client {
1579
1689
  stop(
1580
1690
  request: {
1581
1691
  /** V1 error format. */
1582
- '$.xgafv'?: string;
1692
+ '$.xgafv'?: '1' | '2';
1583
1693
  /** OAuth access token. */
1584
1694
  access_token?: string;
1585
1695
  /** Data format for response. */
1586
- alt?: string;
1696
+ alt?: 'json' | 'media' | 'proto';
1587
1697
  /** JSONP */
1588
1698
  callback?: string;
1589
1699
  /** Selector specifying which fields to include in a partial response. */
@@ -1608,11 +1718,11 @@ declare namespace gapi.client {
1608
1718
  /** Adds one or more trials to a study, with parameter values suggested by AI Platform Vizier. Returns a long-running operation associated with the generation of trial suggestions. When this long-running operation succeeds, it will contain a SuggestTrialsResponse. */
1609
1719
  suggest(request: {
1610
1720
  /** V1 error format. */
1611
- '$.xgafv'?: string;
1721
+ '$.xgafv'?: '1' | '2';
1612
1722
  /** OAuth access token. */
1613
1723
  access_token?: string;
1614
1724
  /** Data format for response. */
1615
- alt?: string;
1725
+ alt?: 'json' | 'media' | 'proto';
1616
1726
  /** JSONP */
1617
1727
  callback?: string;
1618
1728
  /** Selector specifying which fields to include in a partial response. */
@@ -1637,11 +1747,11 @@ declare namespace gapi.client {
1637
1747
  suggest(
1638
1748
  request: {
1639
1749
  /** V1 error format. */
1640
- '$.xgafv'?: string;
1750
+ '$.xgafv'?: '1' | '2';
1641
1751
  /** OAuth access token. */
1642
1752
  access_token?: string;
1643
1753
  /** Data format for response. */
1644
- alt?: string;
1754
+ alt?: 'json' | 'media' | 'proto';
1645
1755
  /** JSONP */
1646
1756
  callback?: string;
1647
1757
  /** Selector specifying which fields to include in a partial response. */
@@ -1668,11 +1778,11 @@ declare namespace gapi.client {
1668
1778
  /** Creates a study. */
1669
1779
  create(request: {
1670
1780
  /** V1 error format. */
1671
- '$.xgafv'?: string;
1781
+ '$.xgafv'?: '1' | '2';
1672
1782
  /** OAuth access token. */
1673
1783
  access_token?: string;
1674
1784
  /** Data format for response. */
1675
- alt?: string;
1785
+ alt?: 'json' | 'media' | 'proto';
1676
1786
  /** JSONP */
1677
1787
  callback?: string;
1678
1788
  /** Selector specifying which fields to include in a partial response. */
@@ -1699,11 +1809,11 @@ declare namespace gapi.client {
1699
1809
  create(
1700
1810
  request: {
1701
1811
  /** V1 error format. */
1702
- '$.xgafv'?: string;
1812
+ '$.xgafv'?: '1' | '2';
1703
1813
  /** OAuth access token. */
1704
1814
  access_token?: string;
1705
1815
  /** Data format for response. */
1706
- alt?: string;
1816
+ alt?: 'json' | 'media' | 'proto';
1707
1817
  /** JSONP */
1708
1818
  callback?: string;
1709
1819
  /** Selector specifying which fields to include in a partial response. */
@@ -1730,11 +1840,11 @@ declare namespace gapi.client {
1730
1840
  /** Deletes a study. */
1731
1841
  delete(request?: {
1732
1842
  /** V1 error format. */
1733
- '$.xgafv'?: string;
1843
+ '$.xgafv'?: '1' | '2';
1734
1844
  /** OAuth access token. */
1735
1845
  access_token?: string;
1736
1846
  /** Data format for response. */
1737
- alt?: string;
1847
+ alt?: 'json' | 'media' | 'proto';
1738
1848
  /** JSONP */
1739
1849
  callback?: string;
1740
1850
  /** Selector specifying which fields to include in a partial response. */
@@ -1757,11 +1867,11 @@ declare namespace gapi.client {
1757
1867
  /** Gets a study. */
1758
1868
  get(request?: {
1759
1869
  /** V1 error format. */
1760
- '$.xgafv'?: string;
1870
+ '$.xgafv'?: '1' | '2';
1761
1871
  /** OAuth access token. */
1762
1872
  access_token?: string;
1763
1873
  /** Data format for response. */
1764
- alt?: string;
1874
+ alt?: 'json' | 'media' | 'proto';
1765
1875
  /** JSONP */
1766
1876
  callback?: string;
1767
1877
  /** Selector specifying which fields to include in a partial response. */
@@ -1784,11 +1894,11 @@ declare namespace gapi.client {
1784
1894
  /** Lists all the studies in a region for an associated project. */
1785
1895
  list(request?: {
1786
1896
  /** V1 error format. */
1787
- '$.xgafv'?: string;
1897
+ '$.xgafv'?: '1' | '2';
1788
1898
  /** OAuth access token. */
1789
1899
  access_token?: string;
1790
1900
  /** Data format for response. */
1791
- alt?: string;
1901
+ alt?: 'json' | 'media' | 'proto';
1792
1902
  /** JSONP */
1793
1903
  callback?: string;
1794
1904
  /** Selector specifying which fields to include in a partial response. */
@@ -1814,11 +1924,11 @@ declare namespace gapi.client {
1814
1924
  /** Get the complete list of CMLE capabilities in a location, along with their location-specific properties. */
1815
1925
  get(request?: {
1816
1926
  /** V1 error format. */
1817
- '$.xgafv'?: string;
1927
+ '$.xgafv'?: '1' | '2';
1818
1928
  /** OAuth access token. */
1819
1929
  access_token?: string;
1820
1930
  /** Data format for response. */
1821
- alt?: string;
1931
+ alt?: 'json' | 'media' | 'proto';
1822
1932
  /** JSONP */
1823
1933
  callback?: string;
1824
1934
  /** Selector specifying which fields to include in a partial response. */
@@ -1841,11 +1951,11 @@ declare namespace gapi.client {
1841
1951
  /** List all locations that provides at least one type of CMLE capability. */
1842
1952
  list(request?: {
1843
1953
  /** V1 error format. */
1844
- '$.xgafv'?: string;
1954
+ '$.xgafv'?: '1' | '2';
1845
1955
  /** OAuth access token. */
1846
1956
  access_token?: string;
1847
1957
  /** Data format for response. */
1848
- alt?: string;
1958
+ alt?: 'json' | 'media' | 'proto';
1849
1959
  /** JSONP */
1850
1960
  callback?: string;
1851
1961
  /** Selector specifying which fields to include in a partial response. */
@@ -1876,11 +1986,11 @@ declare namespace gapi.client {
1876
1986
  /** Creates a new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new version to be the default, you must call projects.models.versions.setDefault. */
1877
1987
  create(request: {
1878
1988
  /** V1 error format. */
1879
- '$.xgafv'?: string;
1989
+ '$.xgafv'?: '1' | '2';
1880
1990
  /** OAuth access token. */
1881
1991
  access_token?: string;
1882
1992
  /** Data format for response. */
1883
- alt?: string;
1993
+ alt?: 'json' | 'media' | 'proto';
1884
1994
  /** JSONP */
1885
1995
  callback?: string;
1886
1996
  /** Selector specifying which fields to include in a partial response. */
@@ -1905,11 +2015,11 @@ declare namespace gapi.client {
1905
2015
  create(
1906
2016
  request: {
1907
2017
  /** V1 error format. */
1908
- '$.xgafv'?: string;
2018
+ '$.xgafv'?: '1' | '2';
1909
2019
  /** OAuth access token. */
1910
2020
  access_token?: string;
1911
2021
  /** Data format for response. */
1912
- alt?: string;
2022
+ alt?: 'json' | 'media' | 'proto';
1913
2023
  /** JSONP */
1914
2024
  callback?: string;
1915
2025
  /** Selector specifying which fields to include in a partial response. */
@@ -1934,11 +2044,11 @@ declare namespace gapi.client {
1934
2044
  /** Deletes a model version. Each model can have multiple versions deployed and in use at any given time. Use this method to remove a single version. Note: You cannot delete the version that is set as the default version of the model unless it is the only remaining version. */
1935
2045
  delete(request?: {
1936
2046
  /** V1 error format. */
1937
- '$.xgafv'?: string;
2047
+ '$.xgafv'?: '1' | '2';
1938
2048
  /** OAuth access token. */
1939
2049
  access_token?: string;
1940
2050
  /** Data format for response. */
1941
- alt?: string;
2051
+ alt?: 'json' | 'media' | 'proto';
1942
2052
  /** JSONP */
1943
2053
  callback?: string;
1944
2054
  /** Selector specifying which fields to include in a partial response. */
@@ -1961,11 +2071,11 @@ declare namespace gapi.client {
1961
2071
  /** Gets information about a model version. Models can have multiple versions. You can call projects.models.versions.list to get the same information that this method returns for all of the versions of a model. */
1962
2072
  get(request?: {
1963
2073
  /** V1 error format. */
1964
- '$.xgafv'?: string;
2074
+ '$.xgafv'?: '1' | '2';
1965
2075
  /** OAuth access token. */
1966
2076
  access_token?: string;
1967
2077
  /** Data format for response. */
1968
- alt?: string;
2078
+ alt?: 'json' | 'media' | 'proto';
1969
2079
  /** JSONP */
1970
2080
  callback?: string;
1971
2081
  /** Selector specifying which fields to include in a partial response. */
@@ -1988,11 +2098,11 @@ declare namespace gapi.client {
1988
2098
  /** Gets basic information about all the versions of a model. If you expect that a model has many versions, or if you need to handle only a limited number of results at a time, you can request that the list be retrieved in batches (called pages). If there are no versions that match the request parameters, the list request returns an empty response body: {}. */
1989
2099
  list(request?: {
1990
2100
  /** V1 error format. */
1991
- '$.xgafv'?: string;
2101
+ '$.xgafv'?: '1' | '2';
1992
2102
  /** OAuth access token. */
1993
2103
  access_token?: string;
1994
2104
  /** Data format for response. */
1995
- alt?: string;
2105
+ alt?: 'json' | 'media' | 'proto';
1996
2106
  /** JSONP */
1997
2107
  callback?: string;
1998
2108
  /** Selector specifying which fields to include in a partial response. */
@@ -2021,11 +2131,11 @@ declare namespace gapi.client {
2021
2131
  /** Updates the specified Version resource. Currently the only update-able fields are `description`, `requestLoggingConfig`, `autoScaling.minNodes`, and `manualScaling.nodes`. */
2022
2132
  patch(request: {
2023
2133
  /** V1 error format. */
2024
- '$.xgafv'?: string;
2134
+ '$.xgafv'?: '1' | '2';
2025
2135
  /** OAuth access token. */
2026
2136
  access_token?: string;
2027
2137
  /** Data format for response. */
2028
- alt?: string;
2138
+ alt?: 'json' | 'media' | 'proto';
2029
2139
  /** JSONP */
2030
2140
  callback?: string;
2031
2141
  /** Selector specifying which fields to include in a partial response. */
@@ -2052,11 +2162,11 @@ declare namespace gapi.client {
2052
2162
  patch(
2053
2163
  request: {
2054
2164
  /** V1 error format. */
2055
- '$.xgafv'?: string;
2165
+ '$.xgafv'?: '1' | '2';
2056
2166
  /** OAuth access token. */
2057
2167
  access_token?: string;
2058
2168
  /** Data format for response. */
2059
- alt?: string;
2169
+ alt?: 'json' | 'media' | 'proto';
2060
2170
  /** JSONP */
2061
2171
  callback?: string;
2062
2172
  /** Selector specifying which fields to include in a partial response. */
@@ -2083,11 +2193,11 @@ declare namespace gapi.client {
2083
2193
  /** Designates a version to be the default for the model. The default version is used for prediction requests made against the model that don't specify a version. The first version to be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method. */
2084
2194
  setDefault(request: {
2085
2195
  /** V1 error format. */
2086
- '$.xgafv'?: string;
2196
+ '$.xgafv'?: '1' | '2';
2087
2197
  /** OAuth access token. */
2088
2198
  access_token?: string;
2089
2199
  /** Data format for response. */
2090
- alt?: string;
2200
+ alt?: 'json' | 'media' | 'proto';
2091
2201
  /** JSONP */
2092
2202
  callback?: string;
2093
2203
  /** Selector specifying which fields to include in a partial response. */
@@ -2112,11 +2222,11 @@ declare namespace gapi.client {
2112
2222
  setDefault(
2113
2223
  request: {
2114
2224
  /** V1 error format. */
2115
- '$.xgafv'?: string;
2225
+ '$.xgafv'?: '1' | '2';
2116
2226
  /** OAuth access token. */
2117
2227
  access_token?: string;
2118
2228
  /** Data format for response. */
2119
- alt?: string;
2229
+ alt?: 'json' | 'media' | 'proto';
2120
2230
  /** JSONP */
2121
2231
  callback?: string;
2122
2232
  /** Selector specifying which fields to include in a partial response. */
@@ -2143,11 +2253,11 @@ declare namespace gapi.client {
2143
2253
  /** Creates a model which will later contain one or more versions. You must add at least one version before you can request predictions from the model. Add versions by calling projects.models.versions.create. */
2144
2254
  create(request: {
2145
2255
  /** V1 error format. */
2146
- '$.xgafv'?: string;
2256
+ '$.xgafv'?: '1' | '2';
2147
2257
  /** OAuth access token. */
2148
2258
  access_token?: string;
2149
2259
  /** Data format for response. */
2150
- alt?: string;
2260
+ alt?: 'json' | 'media' | 'proto';
2151
2261
  /** JSONP */
2152
2262
  callback?: string;
2153
2263
  /** Selector specifying which fields to include in a partial response. */
@@ -2172,11 +2282,11 @@ declare namespace gapi.client {
2172
2282
  create(
2173
2283
  request: {
2174
2284
  /** V1 error format. */
2175
- '$.xgafv'?: string;
2285
+ '$.xgafv'?: '1' | '2';
2176
2286
  /** OAuth access token. */
2177
2287
  access_token?: string;
2178
2288
  /** Data format for response. */
2179
- alt?: string;
2289
+ alt?: 'json' | 'media' | 'proto';
2180
2290
  /** JSONP */
2181
2291
  callback?: string;
2182
2292
  /** Selector specifying which fields to include in a partial response. */
@@ -2201,11 +2311,11 @@ declare namespace gapi.client {
2201
2311
  /** 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. */
2202
2312
  delete(request?: {
2203
2313
  /** V1 error format. */
2204
- '$.xgafv'?: string;
2314
+ '$.xgafv'?: '1' | '2';
2205
2315
  /** OAuth access token. */
2206
2316
  access_token?: string;
2207
2317
  /** Data format for response. */
2208
- alt?: string;
2318
+ alt?: 'json' | 'media' | 'proto';
2209
2319
  /** JSONP */
2210
2320
  callback?: string;
2211
2321
  /** Selector specifying which fields to include in a partial response. */
@@ -2228,11 +2338,11 @@ declare namespace gapi.client {
2228
2338
  /** 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). */
2229
2339
  get(request?: {
2230
2340
  /** V1 error format. */
2231
- '$.xgafv'?: string;
2341
+ '$.xgafv'?: '1' | '2';
2232
2342
  /** OAuth access token. */
2233
2343
  access_token?: string;
2234
2344
  /** Data format for response. */
2235
- alt?: string;
2345
+ alt?: 'json' | 'media' | 'proto';
2236
2346
  /** JSONP */
2237
2347
  callback?: string;
2238
2348
  /** Selector specifying which fields to include in a partial response. */
@@ -2255,11 +2365,11 @@ declare namespace gapi.client {
2255
2365
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
2256
2366
  getIamPolicy(request?: {
2257
2367
  /** V1 error format. */
2258
- '$.xgafv'?: string;
2368
+ '$.xgafv'?: '1' | '2';
2259
2369
  /** OAuth access token. */
2260
2370
  access_token?: string;
2261
2371
  /** Data format for response. */
2262
- alt?: string;
2372
+ alt?: 'json' | 'media' | 'proto';
2263
2373
  /** JSONP */
2264
2374
  callback?: string;
2265
2375
  /** Selector specifying which fields to include in a partial response. */
@@ -2284,11 +2394,11 @@ declare namespace gapi.client {
2284
2394
  /** Lists the models in a project. Each project can contain multiple models, and each model can have multiple versions. If there are no models that match the request parameters, the list request returns an empty response body: {}. */
2285
2395
  list(request?: {
2286
2396
  /** V1 error format. */
2287
- '$.xgafv'?: string;
2397
+ '$.xgafv'?: '1' | '2';
2288
2398
  /** OAuth access token. */
2289
2399
  access_token?: string;
2290
2400
  /** Data format for response. */
2291
- alt?: string;
2401
+ alt?: 'json' | 'media' | 'proto';
2292
2402
  /** JSONP */
2293
2403
  callback?: string;
2294
2404
  /** Selector specifying which fields to include in a partial response. */
@@ -2317,11 +2427,11 @@ declare namespace gapi.client {
2317
2427
  /** Updates a specific model resource. Currently the only supported fields to update are `description` and `default_version.name`. */
2318
2428
  patch(request: {
2319
2429
  /** V1 error format. */
2320
- '$.xgafv'?: string;
2430
+ '$.xgafv'?: '1' | '2';
2321
2431
  /** OAuth access token. */
2322
2432
  access_token?: string;
2323
2433
  /** Data format for response. */
2324
- alt?: string;
2434
+ alt?: 'json' | 'media' | 'proto';
2325
2435
  /** JSONP */
2326
2436
  callback?: string;
2327
2437
  /** Selector specifying which fields to include in a partial response. */
@@ -2348,11 +2458,11 @@ declare namespace gapi.client {
2348
2458
  patch(
2349
2459
  request: {
2350
2460
  /** V1 error format. */
2351
- '$.xgafv'?: string;
2461
+ '$.xgafv'?: '1' | '2';
2352
2462
  /** OAuth access token. */
2353
2463
  access_token?: string;
2354
2464
  /** Data format for response. */
2355
- alt?: string;
2465
+ alt?: 'json' | 'media' | 'proto';
2356
2466
  /** JSONP */
2357
2467
  callback?: string;
2358
2468
  /** Selector specifying which fields to include in a partial response. */
@@ -2380,11 +2490,11 @@ declare namespace gapi.client {
2380
2490
  setIamPolicy(
2381
2491
  request: {
2382
2492
  /** V1 error format. */
2383
- '$.xgafv'?: string;
2493
+ '$.xgafv'?: '1' | '2';
2384
2494
  /** OAuth access token. */
2385
2495
  access_token?: string;
2386
2496
  /** Data format for response. */
2387
- alt?: string;
2497
+ alt?: 'json' | 'media' | 'proto';
2388
2498
  /** JSONP */
2389
2499
  callback?: string;
2390
2500
  /** Selector specifying which fields to include in a partial response. */
@@ -2410,11 +2520,11 @@ declare namespace gapi.client {
2410
2520
  testIamPermissions(
2411
2521
  request: {
2412
2522
  /** V1 error format. */
2413
- '$.xgafv'?: string;
2523
+ '$.xgafv'?: '1' | '2';
2414
2524
  /** OAuth access token. */
2415
2525
  access_token?: string;
2416
2526
  /** Data format for response. */
2417
- alt?: string;
2527
+ alt?: 'json' | 'media' | 'proto';
2418
2528
  /** JSONP */
2419
2529
  callback?: string;
2420
2530
  /** Selector specifying which fields to include in a partial response. */
@@ -2442,11 +2552,11 @@ declare namespace gapi.client {
2442
2552
  /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
2443
2553
  cancel(request?: {
2444
2554
  /** V1 error format. */
2445
- '$.xgafv'?: string;
2555
+ '$.xgafv'?: '1' | '2';
2446
2556
  /** OAuth access token. */
2447
2557
  access_token?: string;
2448
2558
  /** Data format for response. */
2449
- alt?: string;
2559
+ alt?: 'json' | 'media' | 'proto';
2450
2560
  /** JSONP */
2451
2561
  callback?: string;
2452
2562
  /** Selector specifying which fields to include in a partial response. */
@@ -2469,11 +2579,11 @@ declare namespace gapi.client {
2469
2579
  /** 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. */
2470
2580
  get(request?: {
2471
2581
  /** V1 error format. */
2472
- '$.xgafv'?: string;
2582
+ '$.xgafv'?: '1' | '2';
2473
2583
  /** OAuth access token. */
2474
2584
  access_token?: string;
2475
2585
  /** Data format for response. */
2476
- alt?: string;
2586
+ alt?: 'json' | 'media' | 'proto';
2477
2587
  /** JSONP */
2478
2588
  callback?: string;
2479
2589
  /** Selector specifying which fields to include in a partial response. */
@@ -2496,11 +2606,11 @@ declare namespace gapi.client {
2496
2606
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2497
2607
  list(request?: {
2498
2608
  /** V1 error format. */
2499
- '$.xgafv'?: string;
2609
+ '$.xgafv'?: '1' | '2';
2500
2610
  /** OAuth access token. */
2501
2611
  access_token?: string;
2502
2612
  /** Data format for response. */
2503
- alt?: string;
2613
+ alt?: 'json' | 'media' | 'proto';
2504
2614
  /** JSONP */
2505
2615
  callback?: string;
2506
2616
  /** Selector specifying which fields to include in a partial response. */
@@ -2533,11 +2643,11 @@ declare namespace gapi.client {
2533
2643
  /** Performs explanation on the data in the request. {% dynamic include "/ai-platform/includes/___explain-request" %} */
2534
2644
  explain(request: {
2535
2645
  /** V1 error format. */
2536
- '$.xgafv'?: string;
2646
+ '$.xgafv'?: '1' | '2';
2537
2647
  /** OAuth access token. */
2538
2648
  access_token?: string;
2539
2649
  /** Data format for response. */
2540
- alt?: string;
2650
+ alt?: 'json' | 'media' | 'proto';
2541
2651
  /** JSONP */
2542
2652
  callback?: string;
2543
2653
  /** Selector specifying which fields to include in a partial response. */
@@ -2562,11 +2672,11 @@ declare namespace gapi.client {
2562
2672
  explain(
2563
2673
  request: {
2564
2674
  /** V1 error format. */
2565
- '$.xgafv'?: string;
2675
+ '$.xgafv'?: '1' | '2';
2566
2676
  /** OAuth access token. */
2567
2677
  access_token?: string;
2568
2678
  /** Data format for response. */
2569
- alt?: string;
2679
+ alt?: 'json' | 'media' | 'proto';
2570
2680
  /** JSONP */
2571
2681
  callback?: string;
2572
2682
  /** Selector specifying which fields to include in a partial response. */
@@ -2591,11 +2701,11 @@ declare namespace gapi.client {
2591
2701
  /** Get the service account information associated with your project. You need this information in order to grant the service account permissions for the Google Cloud Storage location where you put your model training code for training the model with Google Cloud Machine Learning. */
2592
2702
  getConfig(request?: {
2593
2703
  /** V1 error format. */
2594
- '$.xgafv'?: string;
2704
+ '$.xgafv'?: '1' | '2';
2595
2705
  /** OAuth access token. */
2596
2706
  access_token?: string;
2597
2707
  /** Data format for response. */
2598
- alt?: string;
2708
+ alt?: 'json' | 'media' | 'proto';
2599
2709
  /** JSONP */
2600
2710
  callback?: string;
2601
2711
  /** Selector specifying which fields to include in a partial response. */
@@ -2618,11 +2728,11 @@ declare namespace gapi.client {
2618
2728
  /** Performs online prediction on the data in the request. {% dynamic include "/ai-platform/includes/___predict-request" %} */
2619
2729
  predict(request: {
2620
2730
  /** V1 error format. */
2621
- '$.xgafv'?: string;
2731
+ '$.xgafv'?: '1' | '2';
2622
2732
  /** OAuth access token. */
2623
2733
  access_token?: string;
2624
2734
  /** Data format for response. */
2625
- alt?: string;
2735
+ alt?: 'json' | 'media' | 'proto';
2626
2736
  /** JSONP */
2627
2737
  callback?: string;
2628
2738
  /** Selector specifying which fields to include in a partial response. */
@@ -2647,11 +2757,11 @@ declare namespace gapi.client {
2647
2757
  predict(
2648
2758
  request: {
2649
2759
  /** V1 error format. */
2650
- '$.xgafv'?: string;
2760
+ '$.xgafv'?: '1' | '2';
2651
2761
  /** OAuth access token. */
2652
2762
  access_token?: string;
2653
2763
  /** Data format for response. */
2654
- alt?: string;
2764
+ alt?: 'json' | 'media' | 'proto';
2655
2765
  /** JSONP */
2656
2766
  callback?: string;
2657
2767
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.ml-v1",
3
- "version": "0.1.20251213",
3
+ "version": "0.3.20251213",
4
4
  "description": "TypeScript typings for AI Platform Training & Prediction API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,18 @@ Install typings for AI Platform Training & Prediction API:
11
11
  npm install @types/gapi.client.ml-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.ml-v1"]
22
+ }
23
+ }
24
+ ```
25
+
14
26
  ## Usage
15
27
 
16
28
  You need to initialize Google API client in your code: