| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.ml.v1; | 3 library googleapis.ml.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 "GET", | 264 "GET", |
| 265 body: _body, | 265 body: _body, |
| 266 queryParams: _queryParams, | 266 queryParams: _queryParams, |
| 267 uploadOptions: _uploadOptions, | 267 uploadOptions: _uploadOptions, |
| 268 uploadMedia: _uploadMedia, | 268 uploadMedia: _uploadMedia, |
| 269 downloadOptions: _downloadOptions); | 269 downloadOptions: _downloadOptions); |
| 270 return _response.then((data) => new GoogleCloudMlV1Job.fromJson(data)); | 270 return _response.then((data) => new GoogleCloudMlV1Job.fromJson(data)); |
| 271 } | 271 } |
| 272 | 272 |
| 273 /** | 273 /** |
| 274 * Gets the access control policy for a resource. |
| 275 * Returns an empty policy if the resource exists and does not have a policy |
| 276 * set. |
| 277 * |
| 278 * Request parameters: |
| 279 * |
| 280 * [resource] - REQUIRED: The resource for which the policy is being |
| 281 * requested. |
| 282 * See the operation documentation for the appropriate value for this field. |
| 283 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". |
| 284 * |
| 285 * Completes with a [GoogleIamV1Policy]. |
| 286 * |
| 287 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 288 * error. |
| 289 * |
| 290 * If the used [http.Client] completes with an error when making a REST call, |
| 291 * this method will complete with the same error. |
| 292 */ |
| 293 async.Future<GoogleIamV1Policy> getIamPolicy(core.String resource) { |
| 294 var _url = null; |
| 295 var _queryParams = new core.Map(); |
| 296 var _uploadMedia = null; |
| 297 var _uploadOptions = null; |
| 298 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 299 var _body = null; |
| 300 |
| 301 if (resource == null) { |
| 302 throw new core.ArgumentError("Parameter resource is required."); |
| 303 } |
| 304 |
| 305 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIam
Policy'; |
| 306 |
| 307 var _response = _requester.request(_url, |
| 308 "GET", |
| 309 body: _body, |
| 310 queryParams: _queryParams, |
| 311 uploadOptions: _uploadOptions, |
| 312 uploadMedia: _uploadMedia, |
| 313 downloadOptions: _downloadOptions); |
| 314 return _response.then((data) => new GoogleIamV1Policy.fromJson(data)); |
| 315 } |
| 316 |
| 317 /** |
| 274 * Lists the jobs in the project. | 318 * Lists the jobs in the project. |
| 275 * | 319 * |
| 276 * Request parameters: | 320 * Request parameters: |
| 277 * | 321 * |
| 278 * [parent] - Required. The name of the project for which to list jobs. | 322 * [parent] - Required. The name of the project for which to list jobs. |
| 279 * Value must have pattern "^projects/[^/]+$". | 323 * Value must have pattern "^projects/[^/]+$". |
| 280 * | 324 * |
| 281 * [pageToken] - Optional. A page token to request the next page of results. | 325 * [pageToken] - Optional. A page token to request the next page of results. |
| 282 * | 326 * |
| 283 * You get the token from the `next_page_token` field of the response from | 327 * You get the token from the `next_page_token` field of the response from |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 var _response = _requester.request(_url, | 370 var _response = _requester.request(_url, |
| 327 "GET", | 371 "GET", |
| 328 body: _body, | 372 body: _body, |
| 329 queryParams: _queryParams, | 373 queryParams: _queryParams, |
| 330 uploadOptions: _uploadOptions, | 374 uploadOptions: _uploadOptions, |
| 331 uploadMedia: _uploadMedia, | 375 uploadMedia: _uploadMedia, |
| 332 downloadOptions: _downloadOptions); | 376 downloadOptions: _downloadOptions); |
| 333 return _response.then((data) => new GoogleCloudMlV1ListJobsResponse.fromJson
(data)); | 377 return _response.then((data) => new GoogleCloudMlV1ListJobsResponse.fromJson
(data)); |
| 334 } | 378 } |
| 335 | 379 |
| 380 /** |
| 381 * Sets the access control policy on the specified resource. Replaces any |
| 382 * existing policy. |
| 383 * |
| 384 * [request] - The metadata request object. |
| 385 * |
| 386 * Request parameters: |
| 387 * |
| 388 * [resource] - REQUIRED: The resource for which the policy is being |
| 389 * specified. |
| 390 * See the operation documentation for the appropriate value for this field. |
| 391 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". |
| 392 * |
| 393 * Completes with a [GoogleIamV1Policy]. |
| 394 * |
| 395 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 396 * error. |
| 397 * |
| 398 * If the used [http.Client] completes with an error when making a REST call, |
| 399 * this method will complete with the same error. |
| 400 */ |
| 401 async.Future<GoogleIamV1Policy> setIamPolicy(GoogleIamV1SetIamPolicyRequest re
quest, core.String resource) { |
| 402 var _url = null; |
| 403 var _queryParams = new core.Map(); |
| 404 var _uploadMedia = null; |
| 405 var _uploadOptions = null; |
| 406 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 407 var _body = null; |
| 408 |
| 409 if (request != null) { |
| 410 _body = convert.JSON.encode((request).toJson()); |
| 411 } |
| 412 if (resource == null) { |
| 413 throw new core.ArgumentError("Parameter resource is required."); |
| 414 } |
| 415 |
| 416 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIam
Policy'; |
| 417 |
| 418 var _response = _requester.request(_url, |
| 419 "POST", |
| 420 body: _body, |
| 421 queryParams: _queryParams, |
| 422 uploadOptions: _uploadOptions, |
| 423 uploadMedia: _uploadMedia, |
| 424 downloadOptions: _downloadOptions); |
| 425 return _response.then((data) => new GoogleIamV1Policy.fromJson(data)); |
| 426 } |
| 427 |
| 428 /** |
| 429 * Returns permissions that a caller has on the specified resource. |
| 430 * If the resource does not exist, this will return an empty set of |
| 431 * permissions, not a NOT_FOUND error. |
| 432 * |
| 433 * Note: This operation is designed to be used for building permission-aware |
| 434 * UIs and command-line tools, not for authorization checking. This operation |
| 435 * may "fail open" without warning. |
| 436 * |
| 437 * [request] - The metadata request object. |
| 438 * |
| 439 * Request parameters: |
| 440 * |
| 441 * [resource] - REQUIRED: The resource for which the policy detail is being |
| 442 * requested. |
| 443 * See the operation documentation for the appropriate value for this field. |
| 444 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". |
| 445 * |
| 446 * Completes with a [GoogleIamV1TestIamPermissionsResponse]. |
| 447 * |
| 448 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 449 * error. |
| 450 * |
| 451 * If the used [http.Client] completes with an error when making a REST call, |
| 452 * this method will complete with the same error. |
| 453 */ |
| 454 async.Future<GoogleIamV1TestIamPermissionsResponse> testIamPermissions(GoogleI
amV1TestIamPermissionsRequest request, core.String resource) { |
| 455 var _url = null; |
| 456 var _queryParams = new core.Map(); |
| 457 var _uploadMedia = null; |
| 458 var _uploadOptions = null; |
| 459 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 460 var _body = null; |
| 461 |
| 462 if (request != null) { |
| 463 _body = convert.JSON.encode((request).toJson()); |
| 464 } |
| 465 if (resource == null) { |
| 466 throw new core.ArgumentError("Parameter resource is required."); |
| 467 } |
| 468 |
| 469 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIa
mPermissions'; |
| 470 |
| 471 var _response = _requester.request(_url, |
| 472 "POST", |
| 473 body: _body, |
| 474 queryParams: _queryParams, |
| 475 uploadOptions: _uploadOptions, |
| 476 uploadMedia: _uploadMedia, |
| 477 downloadOptions: _downloadOptions); |
| 478 return _response.then((data) => new GoogleIamV1TestIamPermissionsResponse.fr
omJson(data)); |
| 479 } |
| 480 |
| 336 } | 481 } |
| 337 | 482 |
| 338 | 483 |
| 339 class ProjectsModelsResourceApi { | 484 class ProjectsModelsResourceApi { |
| 340 final commons.ApiRequester _requester; | 485 final commons.ApiRequester _requester; |
| 341 | 486 |
| 342 ProjectsModelsVersionsResourceApi get versions => new ProjectsModelsVersionsRe
sourceApi(_requester); | 487 ProjectsModelsVersionsResourceApi get versions => new ProjectsModelsVersionsRe
sourceApi(_requester); |
| 343 | 488 |
| 344 ProjectsModelsResourceApi(commons.ApiRequester client) : | 489 ProjectsModelsResourceApi(commons.ApiRequester client) : |
| 345 _requester = client; | 490 _requester = client; |
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 * setting manually using this method. | 1058 * setting manually using this method. |
| 914 * | 1059 * |
| 915 * [request] - The metadata request object. | 1060 * [request] - The metadata request object. |
| 916 * | 1061 * |
| 917 * Request parameters: | 1062 * Request parameters: |
| 918 * | 1063 * |
| 919 * [name] - Required. The name of the version to make the default for the | 1064 * [name] - Required. The name of the version to make the default for the |
| 920 * model. You | 1065 * model. You |
| 921 * can get the names of all the versions of a model by calling | 1066 * can get the names of all the versions of a model by calling |
| 922 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.model
s.versions/list). | 1067 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.model
s.versions/list). |
| 923 * | |
| 924 * Authorization: `ml.models.update` permission is required on the parent | |
| 925 * model. | |
| 926 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". | 1068 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". |
| 927 * | 1069 * |
| 928 * Completes with a [GoogleCloudMlV1Version]. | 1070 * Completes with a [GoogleCloudMlV1Version]. |
| 929 * | 1071 * |
| 930 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1072 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 931 * error. | 1073 * error. |
| 932 * | 1074 * |
| 933 * If the used [http.Client] completes with an error when making a REST call, | 1075 * If the used [http.Client] completes with an error when making a REST call, |
| 934 * this method will complete with the same error. | 1076 * this method will complete with the same error. |
| 935 */ | 1077 */ |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 * `"/v1/{name=users / * }/operations"` to their service configuration. | 1255 * `"/v1/{name=users / * }/operations"` to their service configuration. |
| 1114 * For backwards compatibility, the default name includes the operations | 1256 * For backwards compatibility, the default name includes the operations |
| 1115 * collection id, however overriding users must ensure the name binding | 1257 * collection id, however overriding users must ensure the name binding |
| 1116 * is the parent resource, without the operations collection id. | 1258 * is the parent resource, without the operations collection id. |
| 1117 * | 1259 * |
| 1118 * Request parameters: | 1260 * Request parameters: |
| 1119 * | 1261 * |
| 1120 * [name] - The name of the operation's parent resource. | 1262 * [name] - The name of the operation's parent resource. |
| 1121 * Value must have pattern "^projects/[^/]+$". | 1263 * Value must have pattern "^projects/[^/]+$". |
| 1122 * | 1264 * |
| 1123 * [filter] - The standard list filter. | |
| 1124 * | |
| 1125 * [pageToken] - The standard list page token. | 1265 * [pageToken] - The standard list page token. |
| 1126 * | 1266 * |
| 1127 * [pageSize] - The standard list page size. | 1267 * [pageSize] - The standard list page size. |
| 1128 * | 1268 * |
| 1269 * [filter] - The standard list filter. |
| 1270 * |
| 1129 * Completes with a [GoogleLongrunningListOperationsResponse]. | 1271 * Completes with a [GoogleLongrunningListOperationsResponse]. |
| 1130 * | 1272 * |
| 1131 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1273 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1132 * error. | 1274 * error. |
| 1133 * | 1275 * |
| 1134 * If the used [http.Client] completes with an error when making a REST call, | 1276 * If the used [http.Client] completes with an error when making a REST call, |
| 1135 * this method will complete with the same error. | 1277 * this method will complete with the same error. |
| 1136 */ | 1278 */ |
| 1137 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {
core.String filter, core.String pageToken, core.int pageSize}) { | 1279 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {
core.String pageToken, core.int pageSize, core.String filter}) { |
| 1138 var _url = null; | 1280 var _url = null; |
| 1139 var _queryParams = new core.Map(); | 1281 var _queryParams = new core.Map(); |
| 1140 var _uploadMedia = null; | 1282 var _uploadMedia = null; |
| 1141 var _uploadOptions = null; | 1283 var _uploadOptions = null; |
| 1142 var _downloadOptions = commons.DownloadOptions.Metadata; | 1284 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1143 var _body = null; | 1285 var _body = null; |
| 1144 | 1286 |
| 1145 if (name == null) { | 1287 if (name == null) { |
| 1146 throw new core.ArgumentError("Parameter name is required."); | 1288 throw new core.ArgumentError("Parameter name is required."); |
| 1147 } | 1289 } |
| 1148 if (filter != null) { | |
| 1149 _queryParams["filter"] = [filter]; | |
| 1150 } | |
| 1151 if (pageToken != null) { | 1290 if (pageToken != null) { |
| 1152 _queryParams["pageToken"] = [pageToken]; | 1291 _queryParams["pageToken"] = [pageToken]; |
| 1153 } | 1292 } |
| 1154 if (pageSize != null) { | 1293 if (pageSize != null) { |
| 1155 _queryParams["pageSize"] = ["${pageSize}"]; | 1294 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1156 } | 1295 } |
| 1296 if (filter != null) { |
| 1297 _queryParams["filter"] = [filter]; |
| 1298 } |
| 1157 | 1299 |
| 1158 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/operations
'; | 1300 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/operations
'; |
| 1159 | 1301 |
| 1160 var _response = _requester.request(_url, | 1302 var _response = _requester.request(_url, |
| 1161 "GET", | 1303 "GET", |
| 1162 body: _body, | 1304 body: _body, |
| 1163 queryParams: _queryParams, | 1305 queryParams: _queryParams, |
| 1164 uploadOptions: _uploadOptions, | 1306 uploadOptions: _uploadOptions, |
| 1165 uploadMedia: _uploadMedia, | 1307 uploadMedia: _uploadMedia, |
| 1166 downloadOptions: _downloadOptions); | 1308 downloadOptions: _downloadOptions); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1507 if (maxTrials != null) { | 1649 if (maxTrials != null) { |
| 1508 _json["maxTrials"] = maxTrials; | 1650 _json["maxTrials"] = maxTrials; |
| 1509 } | 1651 } |
| 1510 if (params != null) { | 1652 if (params != null) { |
| 1511 _json["params"] = params.map((value) => (value).toJson()).toList(); | 1653 _json["params"] = params.map((value) => (value).toJson()).toList(); |
| 1512 } | 1654 } |
| 1513 return _json; | 1655 return _json; |
| 1514 } | 1656 } |
| 1515 } | 1657 } |
| 1516 | 1658 |
| 1517 /** Represents a training or prediction job. */ | 1659 /** |
| 1660 * Represents a training or prediction job. |
| 1661 * |
| 1662 * Next ID: 16 |
| 1663 */ |
| 1518 class GoogleCloudMlV1Job { | 1664 class GoogleCloudMlV1Job { |
| 1519 /** Output only. When the job was created. */ | 1665 /** Output only. When the job was created. */ |
| 1520 core.String createTime; | 1666 core.String createTime; |
| 1521 /** Output only. When the job processing was completed. */ | 1667 /** Output only. When the job processing was completed. */ |
| 1522 core.String endTime; | 1668 core.String endTime; |
| 1523 /** Output only. The details of a failure or a cancellation. */ | 1669 /** Output only. The details of a failure or a cancellation. */ |
| 1524 core.String errorMessage; | 1670 core.String errorMessage; |
| 1525 /** Required. The user-specified id of the job. */ | 1671 /** Required. The user-specified id of the job. */ |
| 1526 core.String jobId; | 1672 core.String jobId; |
| 1527 /** Input parameters to create a prediction job. */ | 1673 /** Input parameters to create a prediction job. */ |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1748 return _json; | 1894 return _json; |
| 1749 } | 1895 } |
| 1750 } | 1896 } |
| 1751 | 1897 |
| 1752 /** | 1898 /** |
| 1753 * Represents a machine learning solution. | 1899 * Represents a machine learning solution. |
| 1754 * | 1900 * |
| 1755 * A model can have multiple versions, each of which is a deployed, trained | 1901 * A model can have multiple versions, each of which is a deployed, trained |
| 1756 * model ready to receive prediction requests. The model itself is just a | 1902 * model ready to receive prediction requests. The model itself is just a |
| 1757 * container. | 1903 * container. |
| 1904 * |
| 1905 * Next ID: 8 |
| 1758 */ | 1906 */ |
| 1759 class GoogleCloudMlV1Model { | 1907 class GoogleCloudMlV1Model { |
| 1760 /** | 1908 /** |
| 1761 * Output only. The default version of the model. This version will be used to | 1909 * Output only. The default version of the model. This version will be used to |
| 1762 * handle prediction requests that do not specify a version. | 1910 * handle prediction requests that do not specify a version. |
| 1763 * | 1911 * |
| 1764 * You can change the default version by calling | 1912 * You can change the default version by calling |
| 1765 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/project
s.models.versions/setDefault). | 1913 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/project
s.models.versions/setDefault). |
| 1766 */ | 1914 */ |
| 1767 GoogleCloudMlV1Version defaultVersion; | 1915 GoogleCloudMlV1Version defaultVersion; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1825 if (onlinePredictionLogging != null) { | 1973 if (onlinePredictionLogging != null) { |
| 1826 _json["onlinePredictionLogging"] = onlinePredictionLogging; | 1974 _json["onlinePredictionLogging"] = onlinePredictionLogging; |
| 1827 } | 1975 } |
| 1828 if (regions != null) { | 1976 if (regions != null) { |
| 1829 _json["regions"] = regions; | 1977 _json["regions"] = regions; |
| 1830 } | 1978 } |
| 1831 return _json; | 1979 return _json; |
| 1832 } | 1980 } |
| 1833 } | 1981 } |
| 1834 | 1982 |
| 1835 /** Represents the metadata of the long-running operation. */ | 1983 /** |
| 1984 * Represents the metadata of the long-running operation. |
| 1985 * |
| 1986 * Next ID: 9 |
| 1987 */ |
| 1836 class GoogleCloudMlV1OperationMetadata { | 1988 class GoogleCloudMlV1OperationMetadata { |
| 1837 /** The time the operation was submitted. */ | 1989 /** The time the operation was submitted. */ |
| 1838 core.String createTime; | 1990 core.String createTime; |
| 1839 /** The time operation processing completed. */ | 1991 /** The time operation processing completed. */ |
| 1840 core.String endTime; | 1992 core.String endTime; |
| 1841 /** Indicates whether a request to cancel this operation has been made. */ | 1993 /** Indicates whether a request to cancel this operation has been made. */ |
| 1842 core.bool isCancellationRequested; | 1994 core.bool isCancellationRequested; |
| 1843 /** Contains the name of the model associated with the operation. */ | 1995 /** Contains the name of the model associated with the operation. */ |
| 1844 core.String modelName; | 1996 core.String modelName; |
| 1845 /** | 1997 /** |
| 1846 * The operation type. | 1998 * The operation type. |
| 1847 * Possible string values are: | 1999 * Possible string values are: |
| 1848 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type. | 2000 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type. |
| 1849 * - "CREATE_VERSION" : An operation to create a new version. | 2001 * - "CREATE_VERSION" : An operation to create a new version. |
| 1850 * - "DELETE_VERSION" : An operation to delete an existing version. | 2002 * - "DELETE_VERSION" : An operation to delete an existing version. |
| 1851 * - "DELETE_MODEL" : An operation to delete an existing model. | 2003 * - "DELETE_MODEL" : An operation to delete an existing model. |
| 2004 * - "UPDATE_MODEL" : An operation to update an existing model. |
| 2005 * - "UPDATE_VERSION" : An operation to update an existing version. |
| 1852 */ | 2006 */ |
| 1853 core.String operationType; | 2007 core.String operationType; |
| 1854 /** The time operation processing started. */ | 2008 /** The time operation processing started. */ |
| 1855 core.String startTime; | 2009 core.String startTime; |
| 1856 /** Contains the version associated with the operation. */ | 2010 /** Contains the version associated with the operation. */ |
| 1857 GoogleCloudMlV1Version version; | 2011 GoogleCloudMlV1Version version; |
| 1858 | 2012 |
| 1859 GoogleCloudMlV1OperationMetadata(); | 2013 GoogleCloudMlV1OperationMetadata(); |
| 1860 | 2014 |
| 1861 GoogleCloudMlV1OperationMetadata.fromJson(core.Map _json) { | 2015 GoogleCloudMlV1OperationMetadata.fromJson(core.Map _json) { |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2235 if (httpBody != null) { | 2389 if (httpBody != null) { |
| 2236 _json["httpBody"] = (httpBody).toJson(); | 2390 _json["httpBody"] = (httpBody).toJson(); |
| 2237 } | 2391 } |
| 2238 return _json; | 2392 return _json; |
| 2239 } | 2393 } |
| 2240 } | 2394 } |
| 2241 | 2395 |
| 2242 /** Represents input parameters for a prediction job. */ | 2396 /** Represents input parameters for a prediction job. */ |
| 2243 class GoogleCloudMlV1PredictionInput { | 2397 class GoogleCloudMlV1PredictionInput { |
| 2244 /** | 2398 /** |
| 2399 * Optional. Number of records per batch, defaults to 64. |
| 2400 * The service will buffer batch_size number of records in memory before |
| 2401 * invoking one Tensorflow prediction call internally. So take the record |
| 2402 * size and memory available into consideration when setting this parameter. |
| 2403 */ |
| 2404 core.String batchSize; |
| 2405 /** |
| 2245 * Required. The format of the input data files. | 2406 * Required. The format of the input data files. |
| 2246 * Possible string values are: | 2407 * Possible string values are: |
| 2247 * - "DATA_FORMAT_UNSPECIFIED" : Unspecified format. | 2408 * - "DATA_FORMAT_UNSPECIFIED" : Unspecified format. |
| 2248 * - "TEXT" : The source file is a text file with instances separated by the | 2409 * - "TEXT" : The source file is a text file with instances separated by the |
| 2249 * new-line character. | 2410 * new-line character. |
| 2250 * - "TF_RECORD" : The source file is a TFRecord file. | 2411 * - "TF_RECORD" : The source file is a TFRecord file. |
| 2251 * - "TF_RECORD_GZIP" : The source file is a GZIP-compressed TFRecord file. | 2412 * - "TF_RECORD_GZIP" : The source file is a GZIP-compressed TFRecord file. |
| 2252 */ | 2413 */ |
| 2253 core.String dataFormat; | 2414 core.String dataFormat; |
| 2254 /** | 2415 /** |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2292 * string is formatted the same way as `model_version`, with the addition | 2453 * string is formatted the same way as `model_version`, with the addition |
| 2293 * of the version information: | 2454 * of the version information: |
| 2294 * | 2455 * |
| 2295 * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[
YOUR_VERSION]</var>"` | 2456 * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[
YOUR_VERSION]</var>"` |
| 2296 */ | 2457 */ |
| 2297 core.String versionName; | 2458 core.String versionName; |
| 2298 | 2459 |
| 2299 GoogleCloudMlV1PredictionInput(); | 2460 GoogleCloudMlV1PredictionInput(); |
| 2300 | 2461 |
| 2301 GoogleCloudMlV1PredictionInput.fromJson(core.Map _json) { | 2462 GoogleCloudMlV1PredictionInput.fromJson(core.Map _json) { |
| 2463 if (_json.containsKey("batchSize")) { |
| 2464 batchSize = _json["batchSize"]; |
| 2465 } |
| 2302 if (_json.containsKey("dataFormat")) { | 2466 if (_json.containsKey("dataFormat")) { |
| 2303 dataFormat = _json["dataFormat"]; | 2467 dataFormat = _json["dataFormat"]; |
| 2304 } | 2468 } |
| 2305 if (_json.containsKey("inputPaths")) { | 2469 if (_json.containsKey("inputPaths")) { |
| 2306 inputPaths = _json["inputPaths"]; | 2470 inputPaths = _json["inputPaths"]; |
| 2307 } | 2471 } |
| 2308 if (_json.containsKey("maxWorkerCount")) { | 2472 if (_json.containsKey("maxWorkerCount")) { |
| 2309 maxWorkerCount = _json["maxWorkerCount"]; | 2473 maxWorkerCount = _json["maxWorkerCount"]; |
| 2310 } | 2474 } |
| 2311 if (_json.containsKey("modelName")) { | 2475 if (_json.containsKey("modelName")) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2323 if (_json.containsKey("uri")) { | 2487 if (_json.containsKey("uri")) { |
| 2324 uri = _json["uri"]; | 2488 uri = _json["uri"]; |
| 2325 } | 2489 } |
| 2326 if (_json.containsKey("versionName")) { | 2490 if (_json.containsKey("versionName")) { |
| 2327 versionName = _json["versionName"]; | 2491 versionName = _json["versionName"]; |
| 2328 } | 2492 } |
| 2329 } | 2493 } |
| 2330 | 2494 |
| 2331 core.Map<core.String, core.Object> toJson() { | 2495 core.Map<core.String, core.Object> toJson() { |
| 2332 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2496 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2497 if (batchSize != null) { |
| 2498 _json["batchSize"] = batchSize; |
| 2499 } |
| 2333 if (dataFormat != null) { | 2500 if (dataFormat != null) { |
| 2334 _json["dataFormat"] = dataFormat; | 2501 _json["dataFormat"] = dataFormat; |
| 2335 } | 2502 } |
| 2336 if (inputPaths != null) { | 2503 if (inputPaths != null) { |
| 2337 _json["inputPaths"] = inputPaths; | 2504 _json["inputPaths"] = inputPaths; |
| 2338 } | 2505 } |
| 2339 if (maxWorkerCount != null) { | 2506 if (maxWorkerCount != null) { |
| 2340 _json["maxWorkerCount"] = maxWorkerCount; | 2507 _json["maxWorkerCount"] = maxWorkerCount; |
| 2341 } | 2508 } |
| 2342 if (modelName != null) { | 2509 if (modelName != null) { |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2721 } | 2888 } |
| 2722 } | 2889 } |
| 2723 | 2890 |
| 2724 /** | 2891 /** |
| 2725 * Represents a version of the model. | 2892 * Represents a version of the model. |
| 2726 * | 2893 * |
| 2727 * Each version is a trained model deployed in the cloud, ready to handle | 2894 * Each version is a trained model deployed in the cloud, ready to handle |
| 2728 * prediction requests. A model can have multiple versions. You can get | 2895 * prediction requests. A model can have multiple versions. You can get |
| 2729 * information about all of the versions of a given model by calling | 2896 * information about all of the versions of a given model by calling |
| 2730 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
versions/list). | 2897 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
versions/list). |
| 2898 * |
| 2899 * Next ID: 18 |
| 2731 */ | 2900 */ |
| 2732 class GoogleCloudMlV1Version { | 2901 class GoogleCloudMlV1Version { |
| 2733 /** | 2902 /** |
| 2734 * Automatically scale the number of nodes used to serve the model in | 2903 * Automatically scale the number of nodes used to serve the model in |
| 2735 * response to increases and decreases in traffic. Care should be | 2904 * response to increases and decreases in traffic. Care should be |
| 2736 * taken to ramp up traffic according to the model's ability to scale | 2905 * taken to ramp up traffic according to the model's ability to scale |
| 2737 * or you will start seeing increases in latency and 429 response codes. | 2906 * or you will start seeing increases in latency and 429 response codes. |
| 2738 */ | 2907 */ |
| 2739 GoogleCloudMlV1AutoScaling autoScaling; | 2908 GoogleCloudMlV1AutoScaling autoScaling; |
| 2740 /** Output only. The time the version was created. */ | 2909 /** Output only. The time the version was created. */ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2788 /** | 2957 /** |
| 2789 * Optional. The Google Cloud ML runtime version to use for this deployment. | 2958 * Optional. The Google Cloud ML runtime version to use for this deployment. |
| 2790 * If not set, Google Cloud ML will choose a version. | 2959 * If not set, Google Cloud ML will choose a version. |
| 2791 */ | 2960 */ |
| 2792 core.String runtimeVersion; | 2961 core.String runtimeVersion; |
| 2793 /** | 2962 /** |
| 2794 * Output only. The state of a version. | 2963 * Output only. The state of a version. |
| 2795 * Possible string values are: | 2964 * Possible string values are: |
| 2796 * - "UNKNOWN" : The version state is unspecified. | 2965 * - "UNKNOWN" : The version state is unspecified. |
| 2797 * - "READY" : The version is ready for prediction. | 2966 * - "READY" : The version is ready for prediction. |
| 2798 * - "CREATING" : The version is still in the process of creation. | 2967 * - "CREATING" : The version is in the process of creation. |
| 2799 * - "FAILED" : The version failed to be created, possibly cancelled. | 2968 * - "FAILED" : The version failed to be created, possibly cancelled. |
| 2800 * `error_message` should contain the details of the failure. | 2969 * `error_message` should contain the details of the failure. |
| 2970 * - "DELETING" : The version is in the process of deletion. |
| 2801 */ | 2971 */ |
| 2802 core.String state; | 2972 core.String state; |
| 2803 | 2973 |
| 2804 GoogleCloudMlV1Version(); | 2974 GoogleCloudMlV1Version(); |
| 2805 | 2975 |
| 2806 GoogleCloudMlV1Version.fromJson(core.Map _json) { | 2976 GoogleCloudMlV1Version.fromJson(core.Map _json) { |
| 2807 if (_json.containsKey("autoScaling")) { | 2977 if (_json.containsKey("autoScaling")) { |
| 2808 autoScaling = new GoogleCloudMlV1AutoScaling.fromJson(_json["autoScaling"]
); | 2978 autoScaling = new GoogleCloudMlV1AutoScaling.fromJson(_json["autoScaling"]
); |
| 2809 } | 2979 } |
| 2810 if (_json.containsKey("createTime")) { | 2980 if (_json.containsKey("createTime")) { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2939 | 3109 |
| 2940 core.Map<core.String, core.Object> toJson() { | 3110 core.Map<core.String, core.Object> toJson() { |
| 2941 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3111 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2942 if (nodes != null) { | 3112 if (nodes != null) { |
| 2943 _json["nodes"] = nodes; | 3113 _json["nodes"] = nodes; |
| 2944 } | 3114 } |
| 2945 return _json; | 3115 return _json; |
| 2946 } | 3116 } |
| 2947 } | 3117 } |
| 2948 | 3118 |
| 2949 /** Represents the metadata of the long-running operation. */ | 3119 /** |
| 3120 * Represents the metadata of the long-running operation. |
| 3121 * |
| 3122 * Next ID: 9 |
| 3123 */ |
| 2950 class GoogleCloudMlV1beta1OperationMetadata { | 3124 class GoogleCloudMlV1beta1OperationMetadata { |
| 2951 /** The time the operation was submitted. */ | 3125 /** The time the operation was submitted. */ |
| 2952 core.String createTime; | 3126 core.String createTime; |
| 2953 /** The time operation processing completed. */ | 3127 /** The time operation processing completed. */ |
| 2954 core.String endTime; | 3128 core.String endTime; |
| 2955 /** Indicates whether a request to cancel this operation has been made. */ | 3129 /** Indicates whether a request to cancel this operation has been made. */ |
| 2956 core.bool isCancellationRequested; | 3130 core.bool isCancellationRequested; |
| 2957 /** Contains the name of the model associated with the operation. */ | 3131 /** Contains the name of the model associated with the operation. */ |
| 2958 core.String modelName; | 3132 core.String modelName; |
| 2959 /** | 3133 /** |
| 2960 * The operation type. | 3134 * The operation type. |
| 2961 * Possible string values are: | 3135 * Possible string values are: |
| 2962 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type. | 3136 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type. |
| 2963 * - "CREATE_VERSION" : An operation to create a new version. | 3137 * - "CREATE_VERSION" : An operation to create a new version. |
| 2964 * - "DELETE_VERSION" : An operation to delete an existing version. | 3138 * - "DELETE_VERSION" : An operation to delete an existing version. |
| 2965 * - "DELETE_MODEL" : An operation to delete an existing model. | 3139 * - "DELETE_MODEL" : An operation to delete an existing model. |
| 3140 * - "UPDATE_MODEL" : An operation to update an existing model. |
| 3141 * - "UPDATE_VERSION" : An operation to update an existing version. |
| 2966 */ | 3142 */ |
| 2967 core.String operationType; | 3143 core.String operationType; |
| 2968 /** The time operation processing started. */ | 3144 /** The time operation processing started. */ |
| 2969 core.String startTime; | 3145 core.String startTime; |
| 2970 /** Contains the version associated with the operation. */ | 3146 /** Contains the version associated with the operation. */ |
| 2971 GoogleCloudMlV1beta1Version version; | 3147 GoogleCloudMlV1beta1Version version; |
| 2972 | 3148 |
| 2973 GoogleCloudMlV1beta1OperationMetadata(); | 3149 GoogleCloudMlV1beta1OperationMetadata(); |
| 2974 | 3150 |
| 2975 GoogleCloudMlV1beta1OperationMetadata.fromJson(core.Map _json) { | 3151 GoogleCloudMlV1beta1OperationMetadata.fromJson(core.Map _json) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3023 } | 3199 } |
| 3024 } | 3200 } |
| 3025 | 3201 |
| 3026 /** | 3202 /** |
| 3027 * Represents a version of the model. | 3203 * Represents a version of the model. |
| 3028 * | 3204 * |
| 3029 * Each version is a trained model deployed in the cloud, ready to handle | 3205 * Each version is a trained model deployed in the cloud, ready to handle |
| 3030 * prediction requests. A model can have multiple versions. You can get | 3206 * prediction requests. A model can have multiple versions. You can get |
| 3031 * information about all of the versions of a given model by calling | 3207 * information about all of the versions of a given model by calling |
| 3032 * [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.mo
dels.versions/list). | 3208 * [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.mo
dels.versions/list). |
| 3209 * |
| 3210 * Next ID: 18 |
| 3033 */ | 3211 */ |
| 3034 class GoogleCloudMlV1beta1Version { | 3212 class GoogleCloudMlV1beta1Version { |
| 3035 /** | 3213 /** |
| 3036 * Automatically scale the number of nodes used to serve the model in | 3214 * Automatically scale the number of nodes used to serve the model in |
| 3037 * response to increases and decreases in traffic. Care should be | 3215 * response to increases and decreases in traffic. Care should be |
| 3038 * taken to ramp up traffic according to the model's ability to scale | 3216 * taken to ramp up traffic according to the model's ability to scale |
| 3039 * or you will start seeing increases in latency and 429 response codes. | 3217 * or you will start seeing increases in latency and 429 response codes. |
| 3040 */ | 3218 */ |
| 3041 GoogleCloudMlV1beta1AutoScaling autoScaling; | 3219 GoogleCloudMlV1beta1AutoScaling autoScaling; |
| 3042 /** Output only. The time the version was created. */ | 3220 /** Output only. The time the version was created. */ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3090 /** | 3268 /** |
| 3091 * Optional. The Google Cloud ML runtime version to use for this deployment. | 3269 * Optional. The Google Cloud ML runtime version to use for this deployment. |
| 3092 * If not set, Google Cloud ML will choose a version. | 3270 * If not set, Google Cloud ML will choose a version. |
| 3093 */ | 3271 */ |
| 3094 core.String runtimeVersion; | 3272 core.String runtimeVersion; |
| 3095 /** | 3273 /** |
| 3096 * Output only. The state of a version. | 3274 * Output only. The state of a version. |
| 3097 * Possible string values are: | 3275 * Possible string values are: |
| 3098 * - "UNKNOWN" : The version state is unspecified. | 3276 * - "UNKNOWN" : The version state is unspecified. |
| 3099 * - "READY" : The version is ready for prediction. | 3277 * - "READY" : The version is ready for prediction. |
| 3100 * - "CREATING" : The version is still in the process of creation. | 3278 * - "CREATING" : The version is in the process of creation. |
| 3101 * - "FAILED" : The version failed to be created, possibly cancelled. | 3279 * - "FAILED" : The version failed to be created, possibly cancelled. |
| 3102 * `error_message` should contain the details of the failure. | 3280 * `error_message` should contain the details of the failure. |
| 3281 * - "DELETING" : The version is in the process of deletion. |
| 3103 */ | 3282 */ |
| 3104 core.String state; | 3283 core.String state; |
| 3105 | 3284 |
| 3106 GoogleCloudMlV1beta1Version(); | 3285 GoogleCloudMlV1beta1Version(); |
| 3107 | 3286 |
| 3108 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { | 3287 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { |
| 3109 if (_json.containsKey("autoScaling")) { | 3288 if (_json.containsKey("autoScaling")) { |
| 3110 autoScaling = new GoogleCloudMlV1beta1AutoScaling.fromJson(_json["autoScal
ing"]); | 3289 autoScaling = new GoogleCloudMlV1beta1AutoScaling.fromJson(_json["autoScal
ing"]); |
| 3111 } | 3290 } |
| 3112 if (_json.containsKey("createTime")) { | 3291 if (_json.containsKey("createTime")) { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3201 | 3380 |
| 3202 core.Map<core.String, core.Object> toJson() { | 3381 core.Map<core.String, core.Object> toJson() { |
| 3203 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3382 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3204 if (logName != null) { | 3383 if (logName != null) { |
| 3205 _json["logName"] = logName; | 3384 _json["logName"] = logName; |
| 3206 } | 3385 } |
| 3207 return _json; | 3386 return _json; |
| 3208 } | 3387 } |
| 3209 } | 3388 } |
| 3210 | 3389 |
| 3211 /** Options for counters */ | 3390 /** |
| 3391 * Increment a streamz counter with the specified metric and field names. |
| 3392 * |
| 3393 * Metric names should start with a '/', generally be lowercase-only, |
| 3394 * and end in "_count". Field names should not contain an initial slash. |
| 3395 * The actual exported metric names will have "/iam/policy" prepended. |
| 3396 * |
| 3397 * Field names correspond to IAM request parameters and field values are |
| 3398 * their respective values. |
| 3399 * |
| 3400 * At present the only supported field names are |
| 3401 * - "iam_principal", corresponding to IAMContext.principal; |
| 3402 * - "" (empty string), resulting in one aggretated counter with no field. |
| 3403 * |
| 3404 * Examples: |
| 3405 * counter { metric: "/debug_access_count" field: "iam_principal" } |
| 3406 * ==> increment counter /iam/policy/backend_debug_access_count |
| 3407 * {iam_principal=[value of IAMContext.principal]} |
| 3408 * |
| 3409 * At this time we do not support: |
| 3410 * * multiple field names (though this may be supported in the future) |
| 3411 * * decrementing the counter |
| 3412 * * incrementing it by anything other than 1 |
| 3413 */ |
| 3212 class GoogleIamV1LogConfigCounterOptions { | 3414 class GoogleIamV1LogConfigCounterOptions { |
| 3213 /** The field value to attribute. */ | 3415 /** The field value to attribute. */ |
| 3214 core.String field; | 3416 core.String field; |
| 3215 /** The metric to update. */ | 3417 /** The metric to update. */ |
| 3216 core.String metric; | 3418 core.String metric; |
| 3217 | 3419 |
| 3218 GoogleIamV1LogConfigCounterOptions(); | 3420 GoogleIamV1LogConfigCounterOptions(); |
| 3219 | 3421 |
| 3220 GoogleIamV1LogConfigCounterOptions.fromJson(core.Map _json) { | 3422 GoogleIamV1LogConfigCounterOptions.fromJson(core.Map _json) { |
| 3221 if (_json.containsKey("field")) { | 3423 if (_json.containsKey("field")) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3233 } | 3435 } |
| 3234 if (metric != null) { | 3436 if (metric != null) { |
| 3235 _json["metric"] = metric; | 3437 _json["metric"] = metric; |
| 3236 } | 3438 } |
| 3237 return _json; | 3439 return _json; |
| 3238 } | 3440 } |
| 3239 } | 3441 } |
| 3240 | 3442 |
| 3241 /** Write a Data Access (Gin) log */ | 3443 /** Write a Data Access (Gin) log */ |
| 3242 class GoogleIamV1LogConfigDataAccessOptions { | 3444 class GoogleIamV1LogConfigDataAccessOptions { |
| 3445 /** |
| 3446 * Whether Gin logging should happen in a fail-closed manner at the caller. |
| 3447 * This is relevant only in the LocalIAM implementation, for now. |
| 3448 * Possible string values are: |
| 3449 * - "LOG_MODE_UNSPECIFIED" : Client is not required to write a partial Gin |
| 3450 * log immediately after |
| 3451 * the authorization check. If client chooses to write one and it fails, |
| 3452 * client may either fail open (allow the operation to continue) or |
| 3453 * fail closed (handle as a DENY outcome). |
| 3454 * - "LOG_FAIL_CLOSED" : The application's operation in the context of which |
| 3455 * this authorization |
| 3456 * check is being made may only be performed if it is successfully logged |
| 3457 * to Gin. For instance, the authorization library may satisfy this |
| 3458 * obligation by emitting a partial log entry at authorization check time |
| 3459 * and only returning ALLOW to the application if it succeeds. |
| 3460 * |
| 3461 * If a matching Rule has this directive, but the client has not indicated |
| 3462 * that it will honor such requirements, then the IAM check will result in |
| 3463 * authorization failure by setting CheckPolicyResponse.success=false. |
| 3464 */ |
| 3465 core.String logMode; |
| 3243 | 3466 |
| 3244 GoogleIamV1LogConfigDataAccessOptions(); | 3467 GoogleIamV1LogConfigDataAccessOptions(); |
| 3245 | 3468 |
| 3246 GoogleIamV1LogConfigDataAccessOptions.fromJson(core.Map _json) { | 3469 GoogleIamV1LogConfigDataAccessOptions.fromJson(core.Map _json) { |
| 3470 if (_json.containsKey("logMode")) { |
| 3471 logMode = _json["logMode"]; |
| 3472 } |
| 3247 } | 3473 } |
| 3248 | 3474 |
| 3249 core.Map<core.String, core.Object> toJson() { | 3475 core.Map<core.String, core.Object> toJson() { |
| 3250 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3476 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3477 if (logMode != null) { |
| 3478 _json["logMode"] = logMode; |
| 3479 } |
| 3251 return _json; | 3480 return _json; |
| 3252 } | 3481 } |
| 3253 } | 3482 } |
| 3254 | 3483 |
| 3255 /** | 3484 /** |
| 3256 * Specifies the audit configuration for a service. | 3485 * Specifies the audit configuration for a service. |
| 3257 * The configuration determines which permission types are logged, and what | 3486 * The configuration determines which permission types are logged, and what |
| 3258 * identities, if any, are exempted from logging. | 3487 * identities, if any, are exempted from logging. |
| 3259 * An AuditConfig must have one or more AuditLogConfigs. | 3488 * An AuditConfig must have one or more AuditLogConfigs. |
| 3260 * | 3489 * |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3582 if (value != null) { | 3811 if (value != null) { |
| 3583 _json["value"] = value; | 3812 _json["value"] = value; |
| 3584 } | 3813 } |
| 3585 if (values != null) { | 3814 if (values != null) { |
| 3586 _json["values"] = values; | 3815 _json["values"] = values; |
| 3587 } | 3816 } |
| 3588 return _json; | 3817 return _json; |
| 3589 } | 3818 } |
| 3590 } | 3819 } |
| 3591 | 3820 |
| 3592 /** | 3821 /** Specifies what kind of log the caller must write */ |
| 3593 * Specifies what kind of log the caller must write | |
| 3594 * Increment a streamz counter with the specified metric and field names. | |
| 3595 * | |
| 3596 * Metric names should start with a '/', generally be lowercase-only, | |
| 3597 * and end in "_count". Field names should not contain an initial slash. | |
| 3598 * The actual exported metric names will have "/iam/policy" prepended. | |
| 3599 * | |
| 3600 * Field names correspond to IAM request parameters and field values are | |
| 3601 * their respective values. | |
| 3602 * | |
| 3603 * At present the only supported field names are | |
| 3604 * - "iam_principal", corresponding to IAMContext.principal; | |
| 3605 * - "" (empty string), resulting in one aggretated counter with no field. | |
| 3606 * | |
| 3607 * Examples: | |
| 3608 * counter { metric: "/debug_access_count" field: "iam_principal" } | |
| 3609 * ==> increment counter /iam/policy/backend_debug_access_count | |
| 3610 * {iam_principal=[value of IAMContext.principal]} | |
| 3611 * | |
| 3612 * At this time we do not support: | |
| 3613 * * multiple field names (though this may be supported in the future) | |
| 3614 * * decrementing the counter | |
| 3615 * * incrementing it by anything other than 1 | |
| 3616 */ | |
| 3617 class GoogleIamV1LogConfig { | 3822 class GoogleIamV1LogConfig { |
| 3618 /** Cloud audit options. */ | 3823 /** Cloud audit options. */ |
| 3619 GoogleIamV1LogConfigCloudAuditOptions cloudAudit; | 3824 GoogleIamV1LogConfigCloudAuditOptions cloudAudit; |
| 3620 /** Counter options. */ | 3825 /** Counter options. */ |
| 3621 GoogleIamV1LogConfigCounterOptions counter; | 3826 GoogleIamV1LogConfigCounterOptions counter; |
| 3622 /** Data access options. */ | 3827 /** Data access options. */ |
| 3623 GoogleIamV1LogConfigDataAccessOptions dataAccess; | 3828 GoogleIamV1LogConfigDataAccessOptions dataAccess; |
| 3624 | 3829 |
| 3625 GoogleIamV1LogConfig(); | 3830 GoogleIamV1LogConfig(); |
| 3626 | 3831 |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4268 } | 4473 } |
| 4269 if (location != null) { | 4474 if (location != null) { |
| 4270 _json["location"] = location; | 4475 _json["location"] = location; |
| 4271 } | 4476 } |
| 4272 if (title != null) { | 4477 if (title != null) { |
| 4273 _json["title"] = title; | 4478 _json["title"] = title; |
| 4274 } | 4479 } |
| 4275 return _json; | 4480 return _json; |
| 4276 } | 4481 } |
| 4277 } | 4482 } |
| OLD | NEW |