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.servicemanagement.v1; | 3 library googleapis.servicemanagement.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_1; | 10 import 'package:http/http.dart' as http_1; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 _requester = client; | 50 _requester = client; |
51 | 51 |
52 /** | 52 /** |
53 * Gets the latest state of a long-running operation. Clients can use this | 53 * Gets the latest state of a long-running operation. Clients can use this |
54 * method to poll the operation result at intervals as recommended by the API | 54 * method to poll the operation result at intervals as recommended by the API |
55 * service. | 55 * service. |
56 * | 56 * |
57 * Request parameters: | 57 * Request parameters: |
58 * | 58 * |
59 * [name] - The name of the operation resource. | 59 * [name] - The name of the operation resource. |
60 * Value must have pattern "^operations/.*$". | 60 * Value must have pattern "^operations/.+$". |
61 * | 61 * |
62 * Completes with a [Operation]. | 62 * Completes with a [Operation]. |
63 * | 63 * |
64 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 64 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
65 * error. | 65 * error. |
66 * | 66 * |
67 * If the used [http_1.Client] completes with an error when making a REST | 67 * If the used [http_1.Client] completes with an error when making a REST |
68 * call, this method will complete with the same error. | 68 * call, this method will complete with the same error. |
69 */ | 69 */ |
70 async.Future<Operation> get(core.String name) { | 70 async.Future<Operation> get(core.String name) { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 "POST", | 333 "POST", |
334 body: _body, | 334 body: _body, |
335 queryParams: _queryParams, | 335 queryParams: _queryParams, |
336 uploadOptions: _uploadOptions, | 336 uploadOptions: _uploadOptions, |
337 uploadMedia: _uploadMedia, | 337 uploadMedia: _uploadMedia, |
338 downloadOptions: _downloadOptions); | 338 downloadOptions: _downloadOptions); |
339 return _response.then((data) => new GenerateConfigReportResponse.fromJson(da
ta)); | 339 return _response.then((data) => new GenerateConfigReportResponse.fromJson(da
ta)); |
340 } | 340 } |
341 | 341 |
342 /** | 342 /** |
343 * Gets a managed service. | 343 * Gets a managed service. Authentication is required unless the service is |
| 344 * public. |
344 * | 345 * |
345 * Request parameters: | 346 * Request parameters: |
346 * | 347 * |
347 * [serviceName] - The name of the service. See the `ServiceManager` overview | 348 * [serviceName] - The name of the service. See the `ServiceManager` overview |
348 * for naming | 349 * for naming |
349 * requirements. For example: `example.googleapis.com`. | 350 * requirements. For example: `example.googleapis.com`. |
350 * | 351 * |
351 * Completes with a [ManagedService]. | 352 * Completes with a [ManagedService]. |
352 * | 353 * |
353 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 354 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 28 matching lines...) Expand all Loading... |
382 | 383 |
383 /** | 384 /** |
384 * Gets a service configuration (version) for a managed service. | 385 * Gets a service configuration (version) for a managed service. |
385 * | 386 * |
386 * Request parameters: | 387 * Request parameters: |
387 * | 388 * |
388 * [serviceName] - The name of the service. See the | 389 * [serviceName] - The name of the service. See the |
389 * [overview](/service-management/overview) | 390 * [overview](/service-management/overview) |
390 * for naming requirements. For example: `example.googleapis.com`. | 391 * for naming requirements. For example: `example.googleapis.com`. |
391 * | 392 * |
392 * [configId] - null | 393 * [configId] - The id of the service configuration resource. |
393 * | 394 * |
394 * Completes with a [Service]. | 395 * Completes with a [Service]. |
395 * | 396 * |
396 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 397 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
397 * error. | 398 * error. |
398 * | 399 * |
399 * If the used [http_1.Client] completes with an error when making a REST | 400 * If the used [http_1.Client] completes with an error when making a REST |
400 * call, this method will complete with the same error. | 401 * call, this method will complete with the same error. |
401 */ | 402 */ |
402 async.Future<Service> getConfig(core.String serviceName, {core.String configId
}) { | 403 async.Future<Service> getConfig(core.String serviceName, {core.String configId
}) { |
(...skipping 29 matching lines...) Expand all Loading... |
432 * set. | 433 * set. |
433 * | 434 * |
434 * [request] - The metadata request object. | 435 * [request] - The metadata request object. |
435 * | 436 * |
436 * Request parameters: | 437 * Request parameters: |
437 * | 438 * |
438 * [resource] - REQUIRED: The resource for which the policy is being | 439 * [resource] - REQUIRED: The resource for which the policy is being |
439 * requested. | 440 * requested. |
440 * `resource` is usually specified as a path. For example, a Project | 441 * `resource` is usually specified as a path. For example, a Project |
441 * resource is specified as `projects/{project}`. | 442 * resource is specified as `projects/{project}`. |
442 * Value must have pattern "^services/[^/]*$". | 443 * Value must have pattern "^services/[^/]+$". |
443 * | 444 * |
444 * Completes with a [Policy]. | 445 * Completes with a [Policy]. |
445 * | 446 * |
446 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 447 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
447 * error. | 448 * error. |
448 * | 449 * |
449 * If the used [http_1.Client] completes with an error when making a REST | 450 * If the used [http_1.Client] completes with an error when making a REST |
450 * call, this method will complete with the same error. | 451 * call, this method will complete with the same error. |
451 */ | 452 */ |
452 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res
ource) { | 453 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res
ource) { |
(...skipping 17 matching lines...) Expand all Loading... |
470 "POST", | 471 "POST", |
471 body: _body, | 472 body: _body, |
472 queryParams: _queryParams, | 473 queryParams: _queryParams, |
473 uploadOptions: _uploadOptions, | 474 uploadOptions: _uploadOptions, |
474 uploadMedia: _uploadMedia, | 475 uploadMedia: _uploadMedia, |
475 downloadOptions: _downloadOptions); | 476 downloadOptions: _downloadOptions); |
476 return _response.then((data) => new Policy.fromJson(data)); | 477 return _response.then((data) => new Policy.fromJson(data)); |
477 } | 478 } |
478 | 479 |
479 /** | 480 /** |
480 * Lists all managed services. | 481 * Lists all managed services. The result is limited to services that the |
| 482 * caller has "servicemanagement.services.get" permission for. If the request |
| 483 * is made without authentication, it returns only public services that are |
| 484 * available to everyone. |
481 * | 485 * |
482 * Request parameters: | 486 * Request parameters: |
483 * | 487 * |
484 * [pageSize] - Requested size of the next page of data. | 488 * [pageSize] - Requested size of the next page of data. |
485 * | 489 * |
486 * [producerProjectId] - Include services produced by the specified project. | 490 * [producerProjectId] - Include services produced by the specified project. |
487 * | 491 * |
488 * [pageToken] - Token identifying which result to start with; returned by a | 492 * [pageToken] - Token identifying which result to start with; returned by a |
489 * previous list | 493 * previous list |
490 * call. | 494 * call. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 * existing policy. | 536 * existing policy. |
533 * | 537 * |
534 * [request] - The metadata request object. | 538 * [request] - The metadata request object. |
535 * | 539 * |
536 * Request parameters: | 540 * Request parameters: |
537 * | 541 * |
538 * [resource] - REQUIRED: The resource for which the policy is being | 542 * [resource] - REQUIRED: The resource for which the policy is being |
539 * specified. | 543 * specified. |
540 * `resource` is usually specified as a path. For example, a Project | 544 * `resource` is usually specified as a path. For example, a Project |
541 * resource is specified as `projects/{project}`. | 545 * resource is specified as `projects/{project}`. |
542 * Value must have pattern "^services/[^/]*$". | 546 * Value must have pattern "^services/[^/]+$". |
543 * | 547 * |
544 * Completes with a [Policy]. | 548 * Completes with a [Policy]. |
545 * | 549 * |
546 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 550 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
547 * error. | 551 * error. |
548 * | 552 * |
549 * If the used [http_1.Client] completes with an error when making a REST | 553 * If the used [http_1.Client] completes with an error when making a REST |
550 * call, this method will complete with the same error. | 554 * call, this method will complete with the same error. |
551 */ | 555 */ |
552 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { | 556 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res
ource) { |
(...skipping 27 matching lines...) Expand all Loading... |
580 * Returns permissions that a caller has on the specified resource. | 584 * Returns permissions that a caller has on the specified resource. |
581 * | 585 * |
582 * [request] - The metadata request object. | 586 * [request] - The metadata request object. |
583 * | 587 * |
584 * Request parameters: | 588 * Request parameters: |
585 * | 589 * |
586 * [resource] - REQUIRED: The resource for which the policy detail is being | 590 * [resource] - REQUIRED: The resource for which the policy detail is being |
587 * requested. | 591 * requested. |
588 * `resource` is usually specified as a path. For example, a Project | 592 * `resource` is usually specified as a path. For example, a Project |
589 * resource is specified as `projects/{project}`. | 593 * resource is specified as `projects/{project}`. |
590 * Value must have pattern "^services/[^/]*$". | 594 * Value must have pattern "^services/[^/]+$". |
591 * | 595 * |
592 * Completes with a [TestIamPermissionsResponse]. | 596 * Completes with a [TestIamPermissionsResponse]. |
593 * | 597 * |
594 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 598 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
595 * error. | 599 * error. |
596 * | 600 * |
597 * If the used [http_1.Client] completes with an error when making a REST | 601 * If the used [http_1.Client] completes with an error when making a REST |
598 * call, this method will complete with the same error. | 602 * call, this method will complete with the same error. |
599 */ | 603 */ |
600 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { | 604 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions
Request request, core.String resource) { |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 | 734 |
731 /** | 735 /** |
732 * Gets a service configuration (version) for a managed service. | 736 * Gets a service configuration (version) for a managed service. |
733 * | 737 * |
734 * Request parameters: | 738 * Request parameters: |
735 * | 739 * |
736 * [serviceName] - The name of the service. See the | 740 * [serviceName] - The name of the service. See the |
737 * [overview](/service-management/overview) | 741 * [overview](/service-management/overview) |
738 * for naming requirements. For example: `example.googleapis.com`. | 742 * for naming requirements. For example: `example.googleapis.com`. |
739 * | 743 * |
740 * [configId] - null | 744 * [configId] - The id of the service configuration resource. |
741 * | 745 * |
742 * Completes with a [Service]. | 746 * Completes with a [Service]. |
743 * | 747 * |
744 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 748 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
745 * error. | 749 * error. |
746 * | 750 * |
747 * If the used [http_1.Client] completes with an error when making a REST | 751 * If the used [http_1.Client] completes with an error when making a REST |
748 * call, this method will complete with the same error. | 752 * call, this method will complete with the same error. |
749 */ | 753 */ |
750 async.Future<Service> get(core.String serviceName, core.String configId) { | 754 async.Future<Service> get(core.String serviceName, core.String configId) { |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 } | 1222 } |
1219 } | 1223 } |
1220 | 1224 |
1221 /** | 1225 /** |
1222 * Configuration for an anthentication provider, including support for | 1226 * Configuration for an anthentication provider, including support for |
1223 * [JSON Web Token | 1227 * [JSON Web Token |
1224 * (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). | 1228 * (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). |
1225 */ | 1229 */ |
1226 class AuthProvider { | 1230 class AuthProvider { |
1227 /** | 1231 /** |
| 1232 * The list of JWT |
| 1233 * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#
section-4.1.3). |
| 1234 * that are allowed to access. A JWT containing any of these audiences will |
| 1235 * be accepted. When this setting is absent, only JWTs with audience |
| 1236 * "https://Service_name/API_name" |
| 1237 * will be accepted. For example, if no audiences are in the setting, |
| 1238 * LibraryService API will only accept JWTs with the following audience |
| 1239 * "https://library-example.googleapis.com/google.example.library.v1.LibrarySe
rvice". |
| 1240 * |
| 1241 * Example: |
| 1242 * |
| 1243 * audiences: bookstore_android.apps.googleusercontent.com, |
| 1244 * bookstore_web.apps.googleusercontent.com |
| 1245 */ |
| 1246 core.String audiences; |
| 1247 /** |
1228 * The unique identifier of the auth provider. It will be referred to by | 1248 * The unique identifier of the auth provider. It will be referred to by |
1229 * `AuthRequirement.provider_id`. | 1249 * `AuthRequirement.provider_id`. |
1230 * | 1250 * |
1231 * Example: "bookstore_auth". | 1251 * Example: "bookstore_auth". |
1232 */ | 1252 */ |
1233 core.String id; | 1253 core.String id; |
1234 /** | 1254 /** |
1235 * Identifies the principal that issued the JWT. See | 1255 * Identifies the principal that issued the JWT. See |
1236 * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.
1 | 1256 * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.
1 |
1237 * Usually a URL or an email address. | 1257 * Usually a URL or an email address. |
(...skipping 14 matching lines...) Expand all Loading... |
1252 * - can be inferred from the email domain of the issuer (e.g. a Google | 1272 * - can be inferred from the email domain of the issuer (e.g. a Google |
1253 * service account). | 1273 * service account). |
1254 * | 1274 * |
1255 * Example: https://www.googleapis.com/oauth2/v1/certs | 1275 * Example: https://www.googleapis.com/oauth2/v1/certs |
1256 */ | 1276 */ |
1257 core.String jwksUri; | 1277 core.String jwksUri; |
1258 | 1278 |
1259 AuthProvider(); | 1279 AuthProvider(); |
1260 | 1280 |
1261 AuthProvider.fromJson(core.Map _json) { | 1281 AuthProvider.fromJson(core.Map _json) { |
| 1282 if (_json.containsKey("audiences")) { |
| 1283 audiences = _json["audiences"]; |
| 1284 } |
1262 if (_json.containsKey("id")) { | 1285 if (_json.containsKey("id")) { |
1263 id = _json["id"]; | 1286 id = _json["id"]; |
1264 } | 1287 } |
1265 if (_json.containsKey("issuer")) { | 1288 if (_json.containsKey("issuer")) { |
1266 issuer = _json["issuer"]; | 1289 issuer = _json["issuer"]; |
1267 } | 1290 } |
1268 if (_json.containsKey("jwksUri")) { | 1291 if (_json.containsKey("jwksUri")) { |
1269 jwksUri = _json["jwksUri"]; | 1292 jwksUri = _json["jwksUri"]; |
1270 } | 1293 } |
1271 } | 1294 } |
1272 | 1295 |
1273 core.Map toJson() { | 1296 core.Map toJson() { |
1274 var _json = new core.Map(); | 1297 var _json = new core.Map(); |
| 1298 if (audiences != null) { |
| 1299 _json["audiences"] = audiences; |
| 1300 } |
1275 if (id != null) { | 1301 if (id != null) { |
1276 _json["id"] = id; | 1302 _json["id"] = id; |
1277 } | 1303 } |
1278 if (issuer != null) { | 1304 if (issuer != null) { |
1279 _json["issuer"] = issuer; | 1305 _json["issuer"] = issuer; |
1280 } | 1306 } |
1281 if (jwksUri != null) { | 1307 if (jwksUri != null) { |
1282 _json["jwksUri"] = jwksUri; | 1308 _json["jwksUri"] = jwksUri; |
1283 } | 1309 } |
1284 return _json; | 1310 return _json; |
1285 } | 1311 } |
1286 } | 1312 } |
1287 | 1313 |
1288 /** | 1314 /** |
1289 * User-defined authentication requirements, including support for | 1315 * User-defined authentication requirements, including support for |
1290 * [JSON Web Token | 1316 * [JSON Web Token |
1291 * (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). | 1317 * (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). |
1292 */ | 1318 */ |
1293 class AuthRequirement { | 1319 class AuthRequirement { |
1294 /** | 1320 /** |
| 1321 * NOTE: This will be deprecated soon, once AuthProvider.audiences is |
| 1322 * implemented and accepted in all the runtime components. |
| 1323 * |
1295 * The list of JWT | 1324 * The list of JWT |
1296 * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#
section-4.1.3). | 1325 * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#
section-4.1.3). |
1297 * that are allowed to access. A JWT containing any of these audiences will | 1326 * that are allowed to access. A JWT containing any of these audiences will |
1298 * be accepted. When this setting is absent, only JWTs with audience | 1327 * be accepted. When this setting is absent, only JWTs with audience |
1299 * "https://Service_name/API_name" | 1328 * "https://Service_name/API_name" |
1300 * will be accepted. For example, if no audiences are in the setting, | 1329 * will be accepted. For example, if no audiences are in the setting, |
1301 * LibraryService API will only accept JWTs with the following audience | 1330 * LibraryService API will only accept JWTs with the following audience |
1302 * "https://library-example.googleapis.com/google.example.library.v1.LibrarySe
rvice". | 1331 * "https://library-example.googleapis.com/google.example.library.v1.LibrarySe
rvice". |
1303 * | 1332 * |
1304 * Example: | 1333 * Example: |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 * | 1564 * |
1536 * * `allUsers`: A special identifier that represents anyone who is | 1565 * * `allUsers`: A special identifier that represents anyone who is |
1537 * on the internet; with or without a Google account. | 1566 * on the internet; with or without a Google account. |
1538 * | 1567 * |
1539 * * `allAuthenticatedUsers`: A special identifier that represents anyone | 1568 * * `allAuthenticatedUsers`: A special identifier that represents anyone |
1540 * who is authenticated with a Google account or a service account. | 1569 * who is authenticated with a Google account or a service account. |
1541 * | 1570 * |
1542 * * `user:{emailid}`: An email address that represents a specific Google | 1571 * * `user:{emailid}`: An email address that represents a specific Google |
1543 * account. For example, `alice@gmail.com` or `joe@example.com`. | 1572 * account. For example, `alice@gmail.com` or `joe@example.com`. |
1544 * | 1573 * |
| 1574 * |
1545 * * `serviceAccount:{emailid}`: An email address that represents a service | 1575 * * `serviceAccount:{emailid}`: An email address that represents a service |
1546 * account. For example, `my-other-app@appspot.gserviceaccount.com`. | 1576 * account. For example, `my-other-app@appspot.gserviceaccount.com`. |
1547 * | 1577 * |
1548 * * `group:{emailid}`: An email address that represents a Google group. | 1578 * * `group:{emailid}`: An email address that represents a Google group. |
1549 * For example, `admins@example.com`. | 1579 * For example, `admins@example.com`. |
1550 * | 1580 * |
1551 * * `domain:{domain}`: A Google Apps domain name that represents all the | 1581 * * `domain:{domain}`: A Google Apps domain name that represents all the |
1552 * users of that domain. For example, `google.com` or `example.com`. | 1582 * users of that domain. For example, `google.com` or `example.com`. |
1553 */ | 1583 */ |
1554 core.List<core.String> members; | 1584 core.List<core.String> members; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1628 return _json; | 1658 return _json; |
1629 } | 1659 } |
1630 } | 1660 } |
1631 | 1661 |
1632 /** A condition to be met. */ | 1662 /** A condition to be met. */ |
1633 class Condition { | 1663 class Condition { |
1634 /** | 1664 /** |
1635 * Trusted attributes supplied by the IAM system. | 1665 * Trusted attributes supplied by the IAM system. |
1636 * Possible string values are: | 1666 * Possible string values are: |
1637 * - "NO_ATTR" : Default non-attribute. | 1667 * - "NO_ATTR" : Default non-attribute. |
1638 * - "AUTHORITY" : Either principal or (if present) authority | 1668 * - "AUTHORITY" : Either principal or (if present) authority selector. |
1639 * - "ATTRIBUTION" : selector | 1669 * - "ATTRIBUTION" : The principal (even if an authority selector is present), |
1640 * Always the original principal, but making clear | 1670 * which |
| 1671 * must only be used for attribution, not authorization. |
1641 */ | 1672 */ |
1642 core.String iam; | 1673 core.String iam; |
1643 /** | 1674 /** |
1644 * An operator to apply the subject with. | 1675 * An operator to apply the subject with. |
1645 * Possible string values are: | 1676 * Possible string values are: |
1646 * - "NO_OP" : Default no-op. | 1677 * - "NO_OP" : Default no-op. |
1647 * - "EQUALS" : DEPRECATED. Use IN instead. | 1678 * - "EQUALS" : DEPRECATED. Use IN instead. |
1648 * - "NOT_EQUALS" : DEPRECATED. Use NOT_IN instead. | 1679 * - "NOT_EQUALS" : DEPRECATED. Use NOT_IN instead. |
1649 * - "IN" : Set-inclusion check. | 1680 * - "IN" : Set-inclusion check. |
1650 * - "NOT_IN" : Set-exclusion check. | 1681 * - "NOT_IN" : Set-exclusion check. |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 } | 2301 } |
2271 } | 2302 } |
2272 | 2303 |
2273 /** Request message for DisableService method. */ | 2304 /** Request message for DisableService method. */ |
2274 class DisableServiceRequest { | 2305 class DisableServiceRequest { |
2275 /** | 2306 /** |
2276 * The identity of consumer resource which service disablement will be | 2307 * The identity of consumer resource which service disablement will be |
2277 * applied to. | 2308 * applied to. |
2278 * | 2309 * |
2279 * The Google Service Management implementation accepts the following | 2310 * The Google Service Management implementation accepts the following |
2280 * forms: "project:<project_id>", "project_number:<project_number>". | 2311 * forms: |
| 2312 * - "project:<project_id>" |
2281 * | 2313 * |
2282 * Note: this is made compatible with | 2314 * Note: this is made compatible with |
2283 * google.api.servicecontrol.v1.Operation.consumer_id. | 2315 * google.api.servicecontrol.v1.Operation.consumer_id. |
2284 */ | 2316 */ |
2285 core.String consumerId; | 2317 core.String consumerId; |
2286 | 2318 |
2287 DisableServiceRequest(); | 2319 DisableServiceRequest(); |
2288 | 2320 |
2289 DisableServiceRequest.fromJson(core.Map _json) { | 2321 DisableServiceRequest.fromJson(core.Map _json) { |
2290 if (_json.containsKey("consumerId")) { | 2322 if (_json.containsKey("consumerId")) { |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2483 } | 2515 } |
2484 } | 2516 } |
2485 | 2517 |
2486 /** Request message for EnableService method. */ | 2518 /** Request message for EnableService method. */ |
2487 class EnableServiceRequest { | 2519 class EnableServiceRequest { |
2488 /** | 2520 /** |
2489 * The identity of consumer resource which service enablement will be | 2521 * The identity of consumer resource which service enablement will be |
2490 * applied to. | 2522 * applied to. |
2491 * | 2523 * |
2492 * The Google Service Management implementation accepts the following | 2524 * The Google Service Management implementation accepts the following |
2493 * forms: "project:<project_id>", "project_number:<project_number>". | 2525 * forms: |
| 2526 * - "project:<project_id>" |
2494 * | 2527 * |
2495 * Note: this is made compatible with | 2528 * Note: this is made compatible with |
2496 * google.api.servicecontrol.v1.Operation.consumer_id. | 2529 * google.api.servicecontrol.v1.Operation.consumer_id. |
2497 */ | 2530 */ |
2498 core.String consumerId; | 2531 core.String consumerId; |
2499 | 2532 |
2500 EnableServiceRequest(); | 2533 EnableServiceRequest(); |
2501 | 2534 |
2502 EnableServiceRequest.fromJson(core.Map _json) { | 2535 EnableServiceRequest.fromJson(core.Map _json) { |
2503 if (_json.containsKey("consumerId")) { | 2536 if (_json.containsKey("consumerId")) { |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3178 * Variable = "{" FieldPath [ "=" Segments ] "}" ; | 3211 * Variable = "{" FieldPath [ "=" Segments ] "}" ; |
3179 * FieldPath = IDENT { "." IDENT } ; | 3212 * FieldPath = IDENT { "." IDENT } ; |
3180 * Verb = ":" LITERAL ; | 3213 * Verb = ":" LITERAL ; |
3181 * | 3214 * |
3182 * The syntax `*` matches a single path segment. It follows the semantics of | 3215 * The syntax `*` matches a single path segment. It follows the semantics of |
3183 * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String | 3216 * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String |
3184 * Expansion. | 3217 * Expansion. |
3185 * | 3218 * |
3186 * The syntax `**` matches zero or more path segments. It follows the semantics | 3219 * The syntax `**` matches zero or more path segments. It follows the semantics |
3187 * of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved | 3220 * of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved |
3188 * Expansion. | 3221 * Expansion. NOTE: it must be the last segment in the path except the Verb. |
3189 * | 3222 * |
3190 * The syntax `LITERAL` matches literal text in the URL path. | 3223 * The syntax `LITERAL` matches literal text in the URL path. |
3191 * | 3224 * |
3192 * The syntax `Variable` matches the entire path as specified by its template; | 3225 * The syntax `Variable` matches the entire path as specified by its template; |
3193 * this nested template must not contain further variables. If a variable | 3226 * this nested template must not contain further variables. If a variable |
3194 * matches a single path segment, its template may be omitted, e.g. `{var}` | 3227 * matches a single path segment, its template may be omitted, e.g. `{var}` |
3195 * is equivalent to `{var=*}`. | 3228 * is equivalent to `{var=*}`. |
3196 * | 3229 * |
3197 * NOTE: the field paths in variables and in the `body` must not refer to | 3230 * NOTE: the field paths in variables and in the `body` must not refer to |
3198 * repeated fields or map fields. | 3231 * repeated fields or map fields. |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3442 return _json; | 3475 return _json; |
3443 } | 3476 } |
3444 } | 3477 } |
3445 | 3478 |
3446 /** Response message for `ListServices` method. */ | 3479 /** Response message for `ListServices` method. */ |
3447 class ListServicesResponse { | 3480 class ListServicesResponse { |
3448 /** | 3481 /** |
3449 * Token that can be passed to `ListServices` to resume a paginated query. | 3482 * Token that can be passed to `ListServices` to resume a paginated query. |
3450 */ | 3483 */ |
3451 core.String nextPageToken; | 3484 core.String nextPageToken; |
3452 /** The results of the query. */ | 3485 /** The returned services will only have the name field set. */ |
3453 core.List<ManagedService> services; | 3486 core.List<ManagedService> services; |
3454 | 3487 |
3455 ListServicesResponse(); | 3488 ListServicesResponse(); |
3456 | 3489 |
3457 ListServicesResponse.fromJson(core.Map _json) { | 3490 ListServicesResponse.fromJson(core.Map _json) { |
3458 if (_json.containsKey("nextPageToken")) { | 3491 if (_json.containsKey("nextPageToken")) { |
3459 nextPageToken = _json["nextPageToken"]; | 3492 nextPageToken = _json["nextPageToken"]; |
3460 } | 3493 } |
3461 if (_json.containsKey("services")) { | 3494 if (_json.containsKey("services")) { |
3462 services = _json["services"].map((value) => new ManagedService.fromJson(va
lue)).toList(); | 3495 services = _json["services"].map((value) => new ManagedService.fromJson(va
lue)).toList(); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3604 _json["name"] = name; | 3637 _json["name"] = name; |
3605 } | 3638 } |
3606 return _json; | 3639 return _json; |
3607 } | 3640 } |
3608 } | 3641 } |
3609 | 3642 |
3610 /** | 3643 /** |
3611 * Logging configuration of the service. | 3644 * Logging configuration of the service. |
3612 * | 3645 * |
3613 * The following example shows how to configure logs to be sent to the | 3646 * The following example shows how to configure logs to be sent to the |
3614 * producer and consumer projects. In the example, | 3647 * producer and consumer projects. In the example, the `activity_history` |
3615 * the `library.googleapis.com/activity_history` log is | 3648 * log is sent to both the producer and consumer projects, whereas the |
3616 * sent to both the producer and consumer projects, whereas | 3649 * `purchase_history` log is only sent to the producer project. |
3617 * the `library.googleapis.com/purchase_history` log is only sent to the | |
3618 * producer project: | |
3619 * | 3650 * |
3620 * monitored_resources: | 3651 * monitored_resources: |
3621 * - type: library.googleapis.com/branch | 3652 * - type: library.googleapis.com/branch |
3622 * labels: | 3653 * labels: |
3623 * - key: /city | 3654 * - key: /city |
3624 * description: The city where the library branch is located in. | 3655 * description: The city where the library branch is located in. |
3625 * - key: /name | 3656 * - key: /name |
3626 * description: The name of the branch. | 3657 * description: The name of the branch. |
3627 * logs: | 3658 * logs: |
3628 * - name: library.googleapis.com/activity_history | 3659 * - name: activity_history |
3629 * labels: | 3660 * labels: |
3630 * - key: /customer_id | 3661 * - key: /customer_id |
3631 * - name: library.googleapis.com/purchase_history | 3662 * - name: purchase_history |
3632 * logging: | 3663 * logging: |
3633 * producer_destinations: | 3664 * producer_destinations: |
3634 * - monitored_resource: library.googleapis.com/branch | 3665 * - monitored_resource: library.googleapis.com/branch |
3635 * logs: | 3666 * logs: |
3636 * - library.googleapis.com/activity_history | 3667 * - activity_history |
3637 * - library.googleapis.com/purchase_history | 3668 * - purchase_history |
3638 * consumer_destinations: | 3669 * consumer_destinations: |
3639 * - monitored_resource: library.googleapis.com/branch | 3670 * - monitored_resource: library.googleapis.com/branch |
3640 * logs: | 3671 * logs: |
3641 * - library.googleapis.com/activity_history | 3672 * - activity_history |
3642 */ | 3673 */ |
3643 class Logging { | 3674 class Logging { |
3644 /** | 3675 /** |
3645 * Logging configurations for sending logs to the consumer project. | 3676 * Logging configurations for sending logs to the consumer project. |
3646 * There can be multiple consumer destinations, each one must have a | 3677 * There can be multiple consumer destinations, each one must have a |
3647 * different monitored resource type. A log can be used in at most | 3678 * different monitored resource type. A log can be used in at most |
3648 * one consumer destination. | 3679 * one consumer destination. |
3649 */ | 3680 */ |
3650 core.List<LoggingDestination> consumerDestinations; | 3681 core.List<LoggingDestination> consumerDestinations; |
3651 /** | 3682 /** |
(...skipping 27 matching lines...) Expand all Loading... |
3679 } | 3710 } |
3680 } | 3711 } |
3681 | 3712 |
3682 /** | 3713 /** |
3683 * Configuration of a specific logging destination (the producer project | 3714 * Configuration of a specific logging destination (the producer project |
3684 * or the consumer project). | 3715 * or the consumer project). |
3685 */ | 3716 */ |
3686 class LoggingDestination { | 3717 class LoggingDestination { |
3687 /** | 3718 /** |
3688 * Names of the logs to be sent to this destination. Each name must | 3719 * Names of the logs to be sent to this destination. Each name must |
3689 * be defined in the Service.logs section. | 3720 * be defined in the Service.logs section. If the log name is |
| 3721 * not a domain scoped name, it will be automatically prefixed with |
| 3722 * the service name followed by "/". |
3690 */ | 3723 */ |
3691 core.List<core.String> logs; | 3724 core.List<core.String> logs; |
3692 /** | 3725 /** |
3693 * The monitored resource type. The type must be defined in | 3726 * The monitored resource type. The type must be defined in the |
3694 * Service.monitored_resources section. | 3727 * Service.monitored_resources section. |
3695 */ | 3728 */ |
3696 core.String monitoredResource; | 3729 core.String monitoredResource; |
3697 | 3730 |
3698 LoggingDestination(); | 3731 LoggingDestination(); |
3699 | 3732 |
3700 LoggingDestination.fromJson(core.Map _json) { | 3733 LoggingDestination.fromJson(core.Map _json) { |
3701 if (_json.containsKey("logs")) { | 3734 if (_json.containsKey("logs")) { |
3702 logs = _json["logs"]; | 3735 logs = _json["logs"]; |
3703 } | 3736 } |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3874 if (responseTypeUrl != null) { | 3907 if (responseTypeUrl != null) { |
3875 _json["responseTypeUrl"] = responseTypeUrl; | 3908 _json["responseTypeUrl"] = responseTypeUrl; |
3876 } | 3909 } |
3877 if (syntax != null) { | 3910 if (syntax != null) { |
3878 _json["syntax"] = syntax; | 3911 _json["syntax"] = syntax; |
3879 } | 3912 } |
3880 return _json; | 3913 return _json; |
3881 } | 3914 } |
3882 } | 3915 } |
3883 | 3916 |
3884 /** Defines a metric type and its schema. */ | 3917 /** |
| 3918 * Defines a metric type and its schema. Once a metric descriptor is created, |
| 3919 * deleting or altering it stops data collection and makes the metric type's |
| 3920 * existing data unusable. |
| 3921 */ |
3885 class MetricDescriptor { | 3922 class MetricDescriptor { |
3886 /** | 3923 /** |
3887 * A detailed description of the metric, which can be used in documentation. | 3924 * A detailed description of the metric, which can be used in documentation. |
3888 */ | 3925 */ |
3889 core.String description; | 3926 core.String description; |
3890 /** | 3927 /** |
3891 * A concise name for the metric, which can be displayed in user interfaces. | 3928 * A concise name for the metric, which can be displayed in user interfaces. |
3892 * Use sentence case without an ending period, for example "Request count". | 3929 * Use sentence case without an ending period, for example "Request count". |
3893 */ | 3930 */ |
3894 core.String displayName; | 3931 core.String displayName; |
3895 /** | 3932 /** |
3896 * The set of labels that can be used to describe a specific instance of this | 3933 * The set of labels that can be used to describe a specific |
3897 * metric type. For example, the | 3934 * instance of this metric type. For example, the |
3898 * `compute.googleapis.com/instance/network/received_bytes_count` metric type | 3935 * `appengine.googleapis.com/http/server/response_latencies` metric |
3899 * has a label, `loadbalanced`, that specifies whether the traffic was | 3936 * type has a label for the HTTP response code, `response_code`, so |
3900 * received through a load balanced IP address. | 3937 * you can look at latencies for successful responses or just |
| 3938 * for responses that failed. |
3901 */ | 3939 */ |
3902 core.List<LabelDescriptor> labels; | 3940 core.List<LabelDescriptor> labels; |
3903 /** | 3941 /** |
3904 * Whether the metric records instantaneous values, changes to a value, etc. | 3942 * Whether the metric records instantaneous values, changes to a value, etc. |
| 3943 * Some combinations of `metric_kind` and `value_type` might not be supported. |
3905 * Possible string values are: | 3944 * Possible string values are: |
3906 * - "METRIC_KIND_UNSPECIFIED" : Do not use this default value. | 3945 * - "METRIC_KIND_UNSPECIFIED" : Do not use this default value. |
3907 * - "GAUGE" : An instantaneous measurement of a value. | 3946 * - "GAUGE" : An instantaneous measurement of a value. |
3908 * - "DELTA" : The change in a value during a time interval. | 3947 * - "DELTA" : The change in a value during a time interval. |
3909 * - "CUMULATIVE" : A value accumulated over a time interval. Cumulative | 3948 * - "CUMULATIVE" : A value accumulated over a time interval. Cumulative |
3910 * measurements in a time series should have the same start time | 3949 * measurements in a time series should have the same start time |
3911 * and increasing end times, until an event resets the cumulative | 3950 * and increasing end times, until an event resets the cumulative |
3912 * value to zero and sets a new start time for the following | 3951 * value to zero and sets a new start time for the following |
3913 * points. | 3952 * points. |
3914 */ | 3953 */ |
3915 core.String metricKind; | 3954 core.String metricKind; |
3916 /** | 3955 /** |
3917 * Resource name. The format of the name may vary between different | 3956 * The resource name of the metric descriptor. Depending on the |
3918 * implementations. For examples: | 3957 * implementation, the name typically includes: (1) the parent resource name |
| 3958 * that defines the scope of the metric type or of its data; and (2) the |
| 3959 * metric's URL-encoded type, which also appears in the `type` field of this |
| 3960 * descriptor. For example, following is the resource name of a custom |
| 3961 * metric within the GCP project 123456789: |
3919 * | 3962 * |
3920 * projects/{project_id}/metricDescriptors/{type=**} | 3963 * "projects/123456789/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpai
d%2Famount" |
3921 * metricDescriptors/{type=**} | |
3922 */ | 3964 */ |
3923 core.String name; | 3965 core.String name; |
3924 /** | 3966 /** |
3925 * The metric type including a DNS name prefix, for example | 3967 * The metric type, including its DNS name prefix. The type is not |
3926 * `"compute.googleapis.com/instance/cpu/utilization"`. Metric types | 3968 * URL-encoded. All user-defined metric types have the DNS name |
3927 * should use a natural hierarchical grouping such as the following: | 3969 * `custom.googleapis.com`. Metric types should use a natural hierarchical |
| 3970 * grouping. For example: |
3928 * | 3971 * |
3929 * compute.googleapis.com/instance/cpu/utilization | 3972 * "custom.googleapis.com/invoice/paid/amount" |
3930 * compute.googleapis.com/instance/disk/read_ops_count | 3973 * "appengine.googleapis.com/http/server/response_latencies" |
3931 * compute.googleapis.com/instance/network/received_bytes_count | |
3932 * | |
3933 * Note that if the metric type changes, the monitoring data will be | |
3934 * discontinued, and anything depends on it will break, such as monitoring | |
3935 * dashboards, alerting rules and quota limits. Therefore, once a metric has | |
3936 * been published, its type should be immutable. | |
3937 */ | 3974 */ |
3938 core.String type; | 3975 core.String type; |
3939 /** | 3976 /** |
3940 * The unit in which the metric value is reported. It is only applicable | 3977 * The unit in which the metric value is reported. It is only applicable |
3941 * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The | 3978 * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The |
3942 * supported units are a subset of [The Unified Code for Units of | 3979 * supported units are a subset of [The Unified Code for Units of |
3943 * Measure](http://unitsofmeasure.org/ucum.html) standard: | 3980 * Measure](http://unitsofmeasure.org/ucum.html) standard: |
3944 * | 3981 * |
3945 * **Basic units (UNIT)** | 3982 * **Basic units (UNIT)** |
3946 * | 3983 * |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3998 * | 4035 * |
3999 * * `Annotation` is just a comment if it follows a `UNIT` and is | 4036 * * `Annotation` is just a comment if it follows a `UNIT` and is |
4000 * equivalent to `1` if it is used alone. For examples, | 4037 * equivalent to `1` if it is used alone. For examples, |
4001 * `{requests}/s == 1/s`, `By{transmitted}/s == By/s`. | 4038 * `{requests}/s == 1/s`, `By{transmitted}/s == By/s`. |
4002 * * `NAME` is a sequence of non-blank printable ASCII characters not | 4039 * * `NAME` is a sequence of non-blank printable ASCII characters not |
4003 * containing '{' or '}'. | 4040 * containing '{' or '}'. |
4004 */ | 4041 */ |
4005 core.String unit; | 4042 core.String unit; |
4006 /** | 4043 /** |
4007 * Whether the measurement is an integer, a floating-point number, etc. | 4044 * Whether the measurement is an integer, a floating-point number, etc. |
| 4045 * Some combinations of `metric_kind` and `value_type` might not be supported. |
4008 * Possible string values are: | 4046 * Possible string values are: |
4009 * - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value. | 4047 * - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value. |
4010 * - "BOOL" : The value is a boolean. | 4048 * - "BOOL" : The value is a boolean. |
4011 * This value type can be used only if the metric kind is `GAUGE`. | 4049 * This value type can be used only if the metric kind is `GAUGE`. |
4012 * - "INT64" : The value is a signed 64-bit integer. | 4050 * - "INT64" : The value is a signed 64-bit integer. |
4013 * - "DOUBLE" : The value is a double precision floating point number. | 4051 * - "DOUBLE" : The value is a double precision floating point number. |
4014 * - "STRING" : The value is a text string. | 4052 * - "STRING" : The value is a text string. |
4015 * This value type can be used only if the metric kind is `GAUGE`. | 4053 * This value type can be used only if the metric kind is `GAUGE`. |
4016 * - "DISTRIBUTION" : The value is a `Distribution`. | 4054 * - "DISTRIBUTION" : The value is a `Distribution`. |
4017 * - "MONEY" : The value is money. | 4055 * - "MONEY" : The value is money. |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4445 * This resource represents a long-running operation that is the result of a | 4483 * This resource represents a long-running operation that is the result of a |
4446 * network API call. | 4484 * network API call. |
4447 */ | 4485 */ |
4448 class Operation { | 4486 class Operation { |
4449 /** | 4487 /** |
4450 * If the value is `false`, it means the operation is still in progress. | 4488 * If the value is `false`, it means the operation is still in progress. |
4451 * If true, the operation is completed, and either `error` or `response` is | 4489 * If true, the operation is completed, and either `error` or `response` is |
4452 * available. | 4490 * available. |
4453 */ | 4491 */ |
4454 core.bool done; | 4492 core.bool done; |
4455 /** The error result of the operation in case of failure. */ | 4493 /** The error result of the operation in case of failure or cancellation. */ |
4456 Status error; | 4494 Status error; |
4457 /** | 4495 /** |
4458 * Service-specific metadata associated with the operation. It typically | 4496 * Service-specific metadata associated with the operation. It typically |
4459 * contains progress information and common metadata such as create time. | 4497 * contains progress information and common metadata such as create time. |
4460 * Some services might not provide such metadata. Any method that returns a | 4498 * Some services might not provide such metadata. Any method that returns a |
4461 * long-running operation should document the metadata type, if any. | 4499 * long-running operation should document the metadata type, if any. |
4462 * | 4500 * |
4463 * The values for Object must be JSON objects. It can consist of `num`, | 4501 * The values for Object must be JSON objects. It can consist of `num`, |
4464 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4502 * `String`, `bool` and `null` as well as `Map` and `List` values. |
4465 */ | 4503 */ |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5003 _json["notIn"] = notIn; | 5041 _json["notIn"] = notIn; |
5004 } | 5042 } |
5005 if (permissions != null) { | 5043 if (permissions != null) { |
5006 _json["permissions"] = permissions; | 5044 _json["permissions"] = permissions; |
5007 } | 5045 } |
5008 return _json; | 5046 return _json; |
5009 } | 5047 } |
5010 } | 5048 } |
5011 | 5049 |
5012 /** | 5050 /** |
5013 * `Service` is the root object of the configuration schema. It | 5051 * `Service` is the root object of Google service configuration schema. It |
5014 * describes basic information like the name of the service and the | 5052 * describes basic information about a service, such as the name and the |
5015 * exposed API interfaces, and delegates other aspects to configuration | 5053 * title, and delegates other aspects to sub-sections. Each sub-section is |
5016 * sub-sections. | 5054 * either a proto message or a repeated proto message that configures a |
| 5055 * specific aspect, such as auth. See each proto message definition for details. |
5017 * | 5056 * |
5018 * Example: | 5057 * Example: |
5019 * | 5058 * |
5020 * type: google.api.Service | 5059 * type: google.api.Service |
5021 * config_version: 1 | 5060 * config_version: 3 |
5022 * name: calendar.googleapis.com | 5061 * name: calendar.googleapis.com |
5023 * title: Google Calendar API | 5062 * title: Google Calendar API |
5024 * apis: | 5063 * apis: |
5025 * - name: google.calendar.Calendar | 5064 * - name: google.calendar.v3.Calendar |
5026 * backend: | 5065 * backend: |
5027 * rules: | 5066 * rules: |
5028 * - selector: "*" | 5067 * - selector: "google.calendar.v3.*" |
5029 * address: calendar.example.com | 5068 * address: calendar.example.com |
5030 */ | 5069 */ |
5031 class Service { | 5070 class Service { |
5032 /** | 5071 /** |
5033 * A list of API interfaces exported by this service. Only the `name` field | 5072 * A list of API interfaces exported by this service. Only the `name` field |
5034 * of the google.protobuf.Api needs to be provided by the configuration | 5073 * of the google.protobuf.Api needs to be provided by the configuration |
5035 * author, as the remaining fields will be derived from the IDL during the | 5074 * author, as the remaining fields will be derived from the IDL during the |
5036 * normalization process. It is an error to specify an API interface here | 5075 * normalization process. It is an error to specify an API interface here |
5037 * which cannot be resolved against the associated IDL files. | 5076 * which cannot be resolved against the associated IDL files. |
5038 */ | 5077 */ |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5073 */ | 5112 */ |
5074 core.List<Enum> enums; | 5113 core.List<Enum> enums; |
5075 /** HTTP configuration. */ | 5114 /** HTTP configuration. */ |
5076 Http http; | 5115 Http http; |
5077 /** | 5116 /** |
5078 * A unique ID for a specific instance of this message, typically assigned | 5117 * A unique ID for a specific instance of this message, typically assigned |
5079 * by the client for tracking purpose. If empty, the server may choose to | 5118 * by the client for tracking purpose. If empty, the server may choose to |
5080 * generate one instead. | 5119 * generate one instead. |
5081 */ | 5120 */ |
5082 core.String id; | 5121 core.String id; |
5083 /** Logging configuration of the service. */ | 5122 /** Logging configuration. */ |
5084 Logging logging; | 5123 Logging logging; |
5085 /** Defines the logs used by this service. */ | 5124 /** Defines the logs used by this service. */ |
5086 core.List<LogDescriptor> logs; | 5125 core.List<LogDescriptor> logs; |
5087 /** Defines the metrics used by this service. */ | 5126 /** Defines the metrics used by this service. */ |
5088 core.List<MetricDescriptor> metrics; | 5127 core.List<MetricDescriptor> metrics; |
5089 /** | 5128 /** |
5090 * Defines the monitored resources used by this service. This is required | 5129 * Defines the monitored resources used by this service. This is required |
5091 * by the Service.monitoring and Service.logging configurations. | 5130 * by the Service.monitoring and Service.logging configurations. |
5092 */ | 5131 */ |
5093 core.List<MonitoredResourceDescriptor> monitoredResources; | 5132 core.List<MonitoredResourceDescriptor> monitoredResources; |
5094 /** Monitoring configuration of the service. */ | 5133 /** Monitoring configuration. */ |
5095 Monitoring monitoring; | 5134 Monitoring monitoring; |
5096 /** | 5135 /** |
5097 * The DNS address at which this service is available, | 5136 * The DNS address at which this service is available, |
5098 * e.g. `calendar.googleapis.com`. | 5137 * e.g. `calendar.googleapis.com`. |
5099 */ | 5138 */ |
5100 core.String name; | 5139 core.String name; |
5101 /** | 5140 /** |
5102 * The id of the Google developer project that owns the service. | 5141 * The id of the Google developer project that owns the service. |
5103 * Members of this project can manage the service configuration, | 5142 * Members of this project can manage the service configuration, |
5104 * manage consumption of the service, etc. | 5143 * manage consumption of the service, etc. |
5105 */ | 5144 */ |
5106 core.String producerProjectId; | 5145 core.String producerProjectId; |
5107 /** Configuration for system parameters. */ | 5146 /** System parameter configuration. */ |
5108 SystemParameters systemParameters; | 5147 SystemParameters systemParameters; |
5109 /** | 5148 /** |
5110 * A list of all proto message types included in this API service. | 5149 * A list of all proto message types included in this API service. |
5111 * It serves similar purpose as [google.api.Service.types], except that | 5150 * It serves similar purpose as [google.api.Service.types], except that |
5112 * these types are not needed by user-defined APIs. Therefore, they will not | 5151 * these types are not needed by user-defined APIs. Therefore, they will not |
5113 * show up in the generated discovery doc. This field should only be used | 5152 * show up in the generated discovery doc. This field should only be used |
5114 * to define system APIs in ESF. | 5153 * to define system APIs in ESF. |
5115 */ | 5154 */ |
5116 core.List<Type> systemTypes; | 5155 core.List<Type> systemTypes; |
5117 /** The product title associated with this service. */ | 5156 /** The product title associated with this service. */ |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6045 return _json; | 6084 return _json; |
6046 } | 6085 } |
6047 } | 6086 } |
6048 | 6087 |
6049 /** | 6088 /** |
6050 * A visibility rule provides visibility configuration for an individual API | 6089 * A visibility rule provides visibility configuration for an individual API |
6051 * element. | 6090 * element. |
6052 */ | 6091 */ |
6053 class VisibilityRule { | 6092 class VisibilityRule { |
6054 /** | 6093 /** |
6055 * Lists the visibility labels for this rule. Any of the listed labels grants | 6094 * A comma-separated list of visibility labels that apply to the `selector`. |
6056 * visibility to the element. | 6095 * Any of the listed labels can be used to grant the visibility. |
6057 * | 6096 * |
6058 * If a rule has multiple labels, removing one of the labels but not all of | 6097 * If a rule has multiple labels, removing one of the labels but not all of |
6059 * them can break clients. | 6098 * them can break clients. |
6060 * | 6099 * |
6061 * Example: | 6100 * Example: |
6062 * | 6101 * |
6063 * visibility: | 6102 * visibility: |
6064 * rules: | 6103 * rules: |
6065 * - selector: google.calendar.Calendar.EnhancedSearch | 6104 * - selector: google.calendar.Calendar.EnhancedSearch |
6066 * restriction: GOOGLE_INTERNAL, TRUSTED_TESTER | 6105 * restriction: GOOGLE_INTERNAL, TRUSTED_TESTER |
(...skipping 24 matching lines...) Expand all Loading... |
6091 var _json = new core.Map(); | 6130 var _json = new core.Map(); |
6092 if (restriction != null) { | 6131 if (restriction != null) { |
6093 _json["restriction"] = restriction; | 6132 _json["restriction"] = restriction; |
6094 } | 6133 } |
6095 if (selector != null) { | 6134 if (selector != null) { |
6096 _json["selector"] = selector; | 6135 _json["selector"] = selector; |
6097 } | 6136 } |
6098 return _json; | 6137 return _json; |
6099 } | 6138 } |
6100 } | 6139 } |
OLD | NEW |