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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 uploadMedia: _uploadMedia, | 89 uploadMedia: _uploadMedia, |
90 downloadOptions: _downloadOptions); | 90 downloadOptions: _downloadOptions); |
91 return _response.then((data) => new Operation.fromJson(data)); | 91 return _response.then((data) => new Operation.fromJson(data)); |
92 } | 92 } |
93 | 93 |
94 /** | 94 /** |
95 * Lists service operations that match the specified filter in the request. | 95 * Lists service operations that match the specified filter in the request. |
96 * | 96 * |
97 * Request parameters: | 97 * Request parameters: |
98 * | 98 * |
| 99 * [pageSize] - The maximum number of operations to return. If unspecified, |
| 100 * defaults to |
| 101 * 50. The maximum value is 100. |
| 102 * |
99 * [filter] - A string for filtering Operations. | 103 * [filter] - A string for filtering Operations. |
100 * The following filter fields are supported: | 104 * The following filter fields are supported: |
101 * | 105 * |
102 * * serviceName: Required. Only `=` operator is allowed. | 106 * * serviceName: Required. Only `=` operator is allowed. |
103 * * startTime: The time this job was started, in ISO 8601 format. | 107 * * startTime: The time this job was started, in ISO 8601 format. |
104 * Allowed operators are `>=`, `>`, `<=`, and `<`. | 108 * Allowed operators are `>=`, `>`, `<=`, and `<`. |
105 * * status: Can be `done`, `in_progress`, or `failed`. Allowed | 109 * * status: Can be `done`, `in_progress`, or `failed`. Allowed |
106 * operators are `=`, and `!=`. | 110 * operators are `=`, and `!=`. |
107 * | 111 * |
108 * Filter expression supports conjunction (AND) and disjunction (OR) | 112 * Filter expression supports conjunction (AND) and disjunction (OR) |
109 * logical operators. However, the serviceName restriction must be at the | 113 * logical operators. However, the serviceName restriction must be at the |
110 * top-level and can only be combined with other restrictions via the AND | 114 * top-level and can only be combined with other restrictions via the AND |
111 * logical operator. | 115 * logical operator. |
112 * | 116 * |
113 * Examples: | 117 * Examples: |
114 * | 118 * |
115 * * `serviceName={some-service}.googleapis.com` | 119 * * `serviceName={some-service}.googleapis.com` |
116 * * `serviceName={some-service}.googleapis.com AND startTime>="2017-02-01"` | 120 * * `serviceName={some-service}.googleapis.com AND startTime>="2017-02-01"` |
117 * * `serviceName={some-service}.googleapis.com AND status=done` | 121 * * `serviceName={some-service}.googleapis.com AND status=done` |
118 * * `serviceName={some-service}.googleapis.com AND (status=done OR | 122 * * `serviceName={some-service}.googleapis.com AND (status=done OR |
119 * startTime>="2017-02-01")` | 123 * startTime>="2017-02-01")` |
120 * | 124 * |
121 * [pageToken] - The standard list page token. | 125 * [pageToken] - The standard list page token. |
122 * | 126 * |
123 * [name] - Not used. | 127 * [name] - Not used. |
124 * | 128 * |
125 * [pageSize] - The maximum number of operations to return. If unspecified, | |
126 * defaults to | |
127 * 50. The maximum value is 100. | |
128 * | |
129 * Completes with a [ListOperationsResponse]. | 129 * Completes with a [ListOperationsResponse]. |
130 * | 130 * |
131 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 131 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
132 * error. | 132 * error. |
133 * | 133 * |
134 * If the used [http_1.Client] completes with an error when making a REST | 134 * If the used [http_1.Client] completes with an error when making a REST |
135 * call, this method will complete with the same error. | 135 * call, this method will complete with the same error. |
136 */ | 136 */ |
137 async.Future<ListOperationsResponse> list({core.String filter, core.String pag
eToken, core.String name, core.int pageSize}) { | 137 async.Future<ListOperationsResponse> list({core.int pageSize, core.String filt
er, core.String pageToken, core.String name}) { |
138 var _url = null; | 138 var _url = null; |
139 var _queryParams = new core.Map(); | 139 var _queryParams = new core.Map(); |
140 var _uploadMedia = null; | 140 var _uploadMedia = null; |
141 var _uploadOptions = null; | 141 var _uploadOptions = null; |
142 var _downloadOptions = commons.DownloadOptions.Metadata; | 142 var _downloadOptions = commons.DownloadOptions.Metadata; |
143 var _body = null; | 143 var _body = null; |
144 | 144 |
| 145 if (pageSize != null) { |
| 146 _queryParams["pageSize"] = ["${pageSize}"]; |
| 147 } |
145 if (filter != null) { | 148 if (filter != null) { |
146 _queryParams["filter"] = [filter]; | 149 _queryParams["filter"] = [filter]; |
147 } | 150 } |
148 if (pageToken != null) { | 151 if (pageToken != null) { |
149 _queryParams["pageToken"] = [pageToken]; | 152 _queryParams["pageToken"] = [pageToken]; |
150 } | 153 } |
151 if (name != null) { | 154 if (name != null) { |
152 _queryParams["name"] = [name]; | 155 _queryParams["name"] = [name]; |
153 } | 156 } |
154 if (pageSize != null) { | |
155 _queryParams["pageSize"] = ["${pageSize}"]; | |
156 } | |
157 | 157 |
158 _url = 'v1/operations'; | 158 _url = 'v1/operations'; |
159 | 159 |
160 var _response = _requester.request(_url, | 160 var _response = _requester.request(_url, |
161 "GET", | 161 "GET", |
162 body: _body, | 162 body: _body, |
163 queryParams: _queryParams, | 163 queryParams: _queryParams, |
164 uploadOptions: _uploadOptions, | 164 uploadOptions: _uploadOptions, |
165 uploadMedia: _uploadMedia, | 165 uploadMedia: _uploadMedia, |
166 downloadOptions: _downloadOptions); | 166 downloadOptions: _downloadOptions); |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 * Returns all public services. For authenticated users, also returns all | 571 * Returns all public services. For authenticated users, also returns all |
572 * services the calling user has "servicemanagement.services.get" permission | 572 * services the calling user has "servicemanagement.services.get" permission |
573 * for. | 573 * for. |
574 * | 574 * |
575 * **BETA:** If the caller specifies the `consumer_id`, it returns only the | 575 * **BETA:** If the caller specifies the `consumer_id`, it returns only the |
576 * services enabled on the consumer. The `consumer_id` must have the format | 576 * services enabled on the consumer. The `consumer_id` must have the format |
577 * of "project:{PROJECT-ID}". | 577 * of "project:{PROJECT-ID}". |
578 * | 578 * |
579 * Request parameters: | 579 * Request parameters: |
580 * | 580 * |
| 581 * [pageSize] - Requested size of the next page of data. |
| 582 * |
| 583 * [producerProjectId] - Include services produced by the specified project. |
| 584 * |
581 * [consumerId] - Include services consumed by the specified consumer. | 585 * [consumerId] - Include services consumed by the specified consumer. |
582 * | 586 * |
583 * The Google Service Management implementation accepts the following | 587 * The Google Service Management implementation accepts the following |
584 * forms: | 588 * forms: |
585 * - project:<project_id> | 589 * - project:<project_id> |
586 * | 590 * |
587 * [pageToken] - Token identifying which result to start with; returned by a | 591 * [pageToken] - Token identifying which result to start with; returned by a |
588 * previous list | 592 * previous list |
589 * call. | 593 * call. |
590 * | 594 * |
591 * [pageSize] - Requested size of the next page of data. | |
592 * | |
593 * [producerProjectId] - Include services produced by the specified project. | |
594 * | |
595 * Completes with a [ListServicesResponse]. | 595 * Completes with a [ListServicesResponse]. |
596 * | 596 * |
597 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 597 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
598 * error. | 598 * error. |
599 * | 599 * |
600 * If the used [http_1.Client] completes with an error when making a REST | 600 * If the used [http_1.Client] completes with an error when making a REST |
601 * call, this method will complete with the same error. | 601 * call, this method will complete with the same error. |
602 */ | 602 */ |
603 async.Future<ListServicesResponse> list({core.String consumerId, core.String p
ageToken, core.int pageSize, core.String producerProjectId}) { | 603 async.Future<ListServicesResponse> list({core.int pageSize, core.String produc
erProjectId, core.String consumerId, core.String pageToken}) { |
604 var _url = null; | 604 var _url = null; |
605 var _queryParams = new core.Map(); | 605 var _queryParams = new core.Map(); |
606 var _uploadMedia = null; | 606 var _uploadMedia = null; |
607 var _uploadOptions = null; | 607 var _uploadOptions = null; |
608 var _downloadOptions = commons.DownloadOptions.Metadata; | 608 var _downloadOptions = commons.DownloadOptions.Metadata; |
609 var _body = null; | 609 var _body = null; |
610 | 610 |
| 611 if (pageSize != null) { |
| 612 _queryParams["pageSize"] = ["${pageSize}"]; |
| 613 } |
| 614 if (producerProjectId != null) { |
| 615 _queryParams["producerProjectId"] = [producerProjectId]; |
| 616 } |
611 if (consumerId != null) { | 617 if (consumerId != null) { |
612 _queryParams["consumerId"] = [consumerId]; | 618 _queryParams["consumerId"] = [consumerId]; |
613 } | 619 } |
614 if (pageToken != null) { | 620 if (pageToken != null) { |
615 _queryParams["pageToken"] = [pageToken]; | 621 _queryParams["pageToken"] = [pageToken]; |
616 } | 622 } |
617 if (pageSize != null) { | |
618 _queryParams["pageSize"] = ["${pageSize}"]; | |
619 } | |
620 if (producerProjectId != null) { | |
621 _queryParams["producerProjectId"] = [producerProjectId]; | |
622 } | |
623 | 623 |
624 _url = 'v1/services'; | 624 _url = 'v1/services'; |
625 | 625 |
626 var _response = _requester.request(_url, | 626 var _response = _requester.request(_url, |
627 "GET", | 627 "GET", |
628 body: _body, | 628 body: _body, |
629 queryParams: _queryParams, | 629 queryParams: _queryParams, |
630 uploadOptions: _uploadOptions, | 630 uploadOptions: _uploadOptions, |
631 uploadMedia: _uploadMedia, | 631 uploadMedia: _uploadMedia, |
632 downloadOptions: _downloadOptions); | 632 downloadOptions: _downloadOptions); |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1358 | 1358 |
1359 core.Map<core.String, core.Object> toJson() { | 1359 core.Map<core.String, core.Object> toJson() { |
1360 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1360 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1361 if (description != null) { | 1361 if (description != null) { |
1362 _json["description"] = description; | 1362 _json["description"] = description; |
1363 } | 1363 } |
1364 return _json; | 1364 return _json; |
1365 } | 1365 } |
1366 } | 1366 } |
1367 | 1367 |
1368 /** Api is a light-weight descriptor for a protocol buffer service. */ | 1368 /** |
| 1369 * Api is a light-weight descriptor for an API Interface. |
| 1370 * |
| 1371 * Interfaces are also described as "protocol buffer services" in some contexts, |
| 1372 * such as by the "service" keyword in a .proto file, but they are different |
| 1373 * from API Services, which represent a concrete implementation of an interface |
| 1374 * as opposed to simply a description of methods and bindings. They are also |
| 1375 * sometimes simply referred to as "APIs" in other contexts, such as the name of |
| 1376 * this message itself. See https://cloud.google.com/apis/design/glossary for |
| 1377 * detailed terminology. |
| 1378 */ |
1369 class Api { | 1379 class Api { |
1370 /** The methods of this api, in unspecified order. */ | 1380 /** The methods of this interface, in unspecified order. */ |
1371 core.List<Method> methods; | 1381 core.List<Method> methods; |
1372 /** Included APIs. See Mixin. */ | 1382 /** Included interfaces. See Mixin. */ |
1373 core.List<Mixin> mixins; | 1383 core.List<Mixin> mixins; |
1374 /** | 1384 /** |
1375 * The fully qualified name of this api, including package name | 1385 * The fully qualified name of this interface, including package name |
1376 * followed by the api's simple name. | 1386 * followed by the interface's simple name. |
1377 */ | 1387 */ |
1378 core.String name; | 1388 core.String name; |
1379 /** Any metadata attached to the API. */ | 1389 /** Any metadata attached to the interface. */ |
1380 core.List<Option> options; | 1390 core.List<Option> options; |
1381 /** | 1391 /** |
1382 * Source context for the protocol buffer service represented by this | 1392 * Source context for the protocol buffer service represented by this |
1383 * message. | 1393 * message. |
1384 */ | 1394 */ |
1385 SourceContext sourceContext; | 1395 SourceContext sourceContext; |
1386 /** | 1396 /** |
1387 * The source syntax of the service. | 1397 * The source syntax of the service. |
1388 * Possible string values are: | 1398 * Possible string values are: |
1389 * - "SYNTAX_PROTO2" : Syntax `proto2`. | 1399 * - "SYNTAX_PROTO2" : Syntax `proto2`. |
1390 * - "SYNTAX_PROTO3" : Syntax `proto3`. | 1400 * - "SYNTAX_PROTO3" : Syntax `proto3`. |
1391 */ | 1401 */ |
1392 core.String syntax; | 1402 core.String syntax; |
1393 /** | 1403 /** |
1394 * A version string for this api. If specified, must have the form | 1404 * A version string for this interface. If specified, must have the form |
1395 * `major-version.minor-version`, as in `1.10`. If the minor version | 1405 * `major-version.minor-version`, as in `1.10`. If the minor version is |
1396 * is omitted, it defaults to zero. If the entire version field is | 1406 * omitted, it defaults to zero. If the entire version field is empty, the |
1397 * empty, the major version is derived from the package name, as | 1407 * major version is derived from the package name, as outlined below. If the |
1398 * outlined below. If the field is not empty, the version in the | 1408 * field is not empty, the version in the package name will be verified to be |
1399 * package name will be verified to be consistent with what is | 1409 * consistent with what is provided here. |
1400 * provided here. | |
1401 * | 1410 * |
1402 * The versioning schema uses [semantic | 1411 * The versioning schema uses [semantic |
1403 * versioning](http://semver.org) where the major version number | 1412 * versioning](http://semver.org) where the major version number |
1404 * indicates a breaking change and the minor version an additive, | 1413 * indicates a breaking change and the minor version an additive, |
1405 * non-breaking change. Both version numbers are signals to users | 1414 * non-breaking change. Both version numbers are signals to users |
1406 * what to expect from different versions, and should be carefully | 1415 * what to expect from different versions, and should be carefully |
1407 * chosen based on the product plan. | 1416 * chosen based on the product plan. |
1408 * | 1417 * |
1409 * The major version is also reflected in the package name of the | 1418 * The major version is also reflected in the package name of the |
1410 * API, which must end in `v<major-version>`, as in | 1419 * interface, which must end in `v<major-version>`, as in |
1411 * `google.feature.v1`. For major versions 0 and 1, the suffix can | 1420 * `google.feature.v1`. For major versions 0 and 1, the suffix can |
1412 * be omitted. Zero major versions must only be used for | 1421 * be omitted. Zero major versions must only be used for |
1413 * experimental, none-GA apis. | 1422 * experimental, non-GA interfaces. |
1414 */ | 1423 */ |
1415 core.String version; | 1424 core.String version; |
1416 | 1425 |
1417 Api(); | 1426 Api(); |
1418 | 1427 |
1419 Api.fromJson(core.Map _json) { | 1428 Api.fromJson(core.Map _json) { |
1420 if (_json.containsKey("methods")) { | 1429 if (_json.containsKey("methods")) { |
1421 methods = _json["methods"].map((value) => new Method.fromJson(value)).toLi
st(); | 1430 methods = _json["methods"].map((value) => new Method.fromJson(value)).toLi
st(); |
1422 } | 1431 } |
1423 if (_json.containsKey("mixins")) { | 1432 if (_json.containsKey("mixins")) { |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1640 * LibraryService API will only accept JWTs with the following audience | 1649 * LibraryService API will only accept JWTs with the following audience |
1641 * "https://library-example.googleapis.com/google.example.library.v1.LibrarySe
rvice". | 1650 * "https://library-example.googleapis.com/google.example.library.v1.LibrarySe
rvice". |
1642 * | 1651 * |
1643 * Example: | 1652 * Example: |
1644 * | 1653 * |
1645 * audiences: bookstore_android.apps.googleusercontent.com, | 1654 * audiences: bookstore_android.apps.googleusercontent.com, |
1646 * bookstore_web.apps.googleusercontent.com | 1655 * bookstore_web.apps.googleusercontent.com |
1647 */ | 1656 */ |
1648 core.String audiences; | 1657 core.String audiences; |
1649 /** | 1658 /** |
| 1659 * Redirect URL if JWT token is required but no present or is expired. |
| 1660 * Implement authorizationUrl of securityDefinitions in OpenAPI spec. |
| 1661 */ |
| 1662 core.String authorizationUrl; |
| 1663 /** |
1650 * The unique identifier of the auth provider. It will be referred to by | 1664 * The unique identifier of the auth provider. It will be referred to by |
1651 * `AuthRequirement.provider_id`. | 1665 * `AuthRequirement.provider_id`. |
1652 * | 1666 * |
1653 * Example: "bookstore_auth". | 1667 * Example: "bookstore_auth". |
1654 */ | 1668 */ |
1655 core.String id; | 1669 core.String id; |
1656 /** | 1670 /** |
1657 * Identifies the principal that issued the JWT. See | 1671 * Identifies the principal that issued the JWT. See |
1658 * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.
1 | 1672 * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.
1 |
1659 * Usually a URL or an email address. | 1673 * Usually a URL or an email address. |
(...skipping 17 matching lines...) Expand all Loading... |
1677 * Example: https://www.googleapis.com/oauth2/v1/certs | 1691 * Example: https://www.googleapis.com/oauth2/v1/certs |
1678 */ | 1692 */ |
1679 core.String jwksUri; | 1693 core.String jwksUri; |
1680 | 1694 |
1681 AuthProvider(); | 1695 AuthProvider(); |
1682 | 1696 |
1683 AuthProvider.fromJson(core.Map _json) { | 1697 AuthProvider.fromJson(core.Map _json) { |
1684 if (_json.containsKey("audiences")) { | 1698 if (_json.containsKey("audiences")) { |
1685 audiences = _json["audiences"]; | 1699 audiences = _json["audiences"]; |
1686 } | 1700 } |
| 1701 if (_json.containsKey("authorizationUrl")) { |
| 1702 authorizationUrl = _json["authorizationUrl"]; |
| 1703 } |
1687 if (_json.containsKey("id")) { | 1704 if (_json.containsKey("id")) { |
1688 id = _json["id"]; | 1705 id = _json["id"]; |
1689 } | 1706 } |
1690 if (_json.containsKey("issuer")) { | 1707 if (_json.containsKey("issuer")) { |
1691 issuer = _json["issuer"]; | 1708 issuer = _json["issuer"]; |
1692 } | 1709 } |
1693 if (_json.containsKey("jwksUri")) { | 1710 if (_json.containsKey("jwksUri")) { |
1694 jwksUri = _json["jwksUri"]; | 1711 jwksUri = _json["jwksUri"]; |
1695 } | 1712 } |
1696 } | 1713 } |
1697 | 1714 |
1698 core.Map<core.String, core.Object> toJson() { | 1715 core.Map<core.String, core.Object> toJson() { |
1699 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1716 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1700 if (audiences != null) { | 1717 if (audiences != null) { |
1701 _json["audiences"] = audiences; | 1718 _json["audiences"] = audiences; |
1702 } | 1719 } |
| 1720 if (authorizationUrl != null) { |
| 1721 _json["authorizationUrl"] = authorizationUrl; |
| 1722 } |
1703 if (id != null) { | 1723 if (id != null) { |
1704 _json["id"] = id; | 1724 _json["id"] = id; |
1705 } | 1725 } |
1706 if (issuer != null) { | 1726 if (issuer != null) { |
1707 _json["issuer"] = issuer; | 1727 _json["issuer"] = issuer; |
1708 } | 1728 } |
1709 if (jwksUri != null) { | 1729 if (jwksUri != null) { |
1710 _json["jwksUri"] = jwksUri; | 1730 _json["jwksUri"] = jwksUri; |
1711 } | 1731 } |
1712 return _json; | 1732 return _json; |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2112 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2132 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2113 if (configChanges != null) { | 2133 if (configChanges != null) { |
2114 _json["configChanges"] = configChanges.map((value) => (value).toJson()).to
List(); | 2134 _json["configChanges"] = configChanges.map((value) => (value).toJson()).to
List(); |
2115 } | 2135 } |
2116 return _json; | 2136 return _json; |
2117 } | 2137 } |
2118 } | 2138 } |
2119 | 2139 |
2120 /** Write a Cloud Audit log */ | 2140 /** Write a Cloud Audit log */ |
2121 class CloudAuditOptions { | 2141 class CloudAuditOptions { |
2122 /** True if the log is for a permission of type DATA_READ or ADMIN_READ. */ | |
2123 core.bool isReadPermissionType; | |
2124 /** | 2142 /** |
2125 * The log_name to populate in the Cloud Audit Record. | 2143 * The log_name to populate in the Cloud Audit Record. |
2126 * Possible string values are: | 2144 * Possible string values are: |
2127 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used. | 2145 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used. |
2128 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity" | 2146 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity" |
2129 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access" | 2147 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access" |
2130 */ | 2148 */ |
2131 core.String logName; | 2149 core.String logName; |
2132 | 2150 |
2133 CloudAuditOptions(); | 2151 CloudAuditOptions(); |
2134 | 2152 |
2135 CloudAuditOptions.fromJson(core.Map _json) { | 2153 CloudAuditOptions.fromJson(core.Map _json) { |
2136 if (_json.containsKey("isReadPermissionType")) { | |
2137 isReadPermissionType = _json["isReadPermissionType"]; | |
2138 } | |
2139 if (_json.containsKey("logName")) { | 2154 if (_json.containsKey("logName")) { |
2140 logName = _json["logName"]; | 2155 logName = _json["logName"]; |
2141 } | 2156 } |
2142 } | 2157 } |
2143 | 2158 |
2144 core.Map<core.String, core.Object> toJson() { | 2159 core.Map<core.String, core.Object> toJson() { |
2145 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2146 if (isReadPermissionType != null) { | |
2147 _json["isReadPermissionType"] = isReadPermissionType; | |
2148 } | |
2149 if (logName != null) { | 2161 if (logName != null) { |
2150 _json["logName"] = logName; | 2162 _json["logName"] = logName; |
2151 } | 2163 } |
2152 return _json; | 2164 return _json; |
2153 } | 2165 } |
2154 } | 2166 } |
2155 | 2167 |
2156 /** A condition to be met. */ | 2168 /** A condition to be met. */ |
2157 class Condition { | 2169 class Condition { |
2158 /** | 2170 /** |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2591 | 2603 |
2592 core.Map<core.String, core.Object> toJson() { | 2604 core.Map<core.String, core.Object> toJson() { |
2593 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2605 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2594 if (environment != null) { | 2606 if (environment != null) { |
2595 _json["environment"] = environment; | 2607 _json["environment"] = environment; |
2596 } | 2608 } |
2597 return _json; | 2609 return _json; |
2598 } | 2610 } |
2599 } | 2611 } |
2600 | 2612 |
2601 /** Options for counters */ | 2613 /** |
| 2614 * Increment a streamz counter with the specified metric and field names. |
| 2615 * |
| 2616 * Metric names should start with a '/', generally be lowercase-only, |
| 2617 * and end in "_count". Field names should not contain an initial slash. |
| 2618 * The actual exported metric names will have "/iam/policy" prepended. |
| 2619 * |
| 2620 * Field names correspond to IAM request parameters and field values are |
| 2621 * their respective values. |
| 2622 * |
| 2623 * At present the only supported field names are |
| 2624 * - "iam_principal", corresponding to IAMContext.principal; |
| 2625 * - "" (empty string), resulting in one aggretated counter with no field. |
| 2626 * |
| 2627 * Examples: |
| 2628 * counter { metric: "/debug_access_count" field: "iam_principal" } |
| 2629 * ==> increment counter /iam/policy/backend_debug_access_count |
| 2630 * {iam_principal=[value of IAMContext.principal]} |
| 2631 * |
| 2632 * At this time we do not support: |
| 2633 * * multiple field names (though this may be supported in the future) |
| 2634 * * decrementing the counter |
| 2635 * * incrementing it by anything other than 1 |
| 2636 */ |
2602 class CounterOptions { | 2637 class CounterOptions { |
2603 /** The field value to attribute. */ | 2638 /** The field value to attribute. */ |
2604 core.String field; | 2639 core.String field; |
2605 /** The metric to update. */ | 2640 /** The metric to update. */ |
2606 core.String metric; | 2641 core.String metric; |
2607 | 2642 |
2608 CounterOptions(); | 2643 CounterOptions(); |
2609 | 2644 |
2610 CounterOptions.fromJson(core.Map _json) { | 2645 CounterOptions.fromJson(core.Map _json) { |
2611 if (_json.containsKey("field")) { | 2646 if (_json.containsKey("field")) { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2763 } | 2798 } |
2764 if (path != null) { | 2799 if (path != null) { |
2765 _json["path"] = path; | 2800 _json["path"] = path; |
2766 } | 2801 } |
2767 return _json; | 2802 return _json; |
2768 } | 2803 } |
2769 } | 2804 } |
2770 | 2805 |
2771 /** Write a Data Access (Gin) log */ | 2806 /** Write a Data Access (Gin) log */ |
2772 class DataAccessOptions { | 2807 class DataAccessOptions { |
| 2808 /** |
| 2809 * Whether Gin logging should happen in a fail-closed manner at the caller. |
| 2810 * This is relevant only in the LocalIAM implementation, for now. |
| 2811 * Possible string values are: |
| 2812 * - "LOG_MODE_UNSPECIFIED" : Client is not required to write a partial Gin |
| 2813 * log immediately after |
| 2814 * the authorization check. If client chooses to write one and it fails, |
| 2815 * client may either fail open (allow the operation to continue) or |
| 2816 * fail closed (handle as a DENY outcome). |
| 2817 * - "LOG_FAIL_CLOSED" : The application's operation in the context of which |
| 2818 * this authorization |
| 2819 * check is being made may only be performed if it is successfully logged |
| 2820 * to Gin. For instance, the authorization library may satisfy this |
| 2821 * obligation by emitting a partial log entry at authorization check time |
| 2822 * and only returning ALLOW to the application if it succeeds. |
| 2823 * |
| 2824 * If a matching Rule has this directive, but the client has not indicated |
| 2825 * that it will honor such requirements, then the IAM check will result in |
| 2826 * authorization failure by setting CheckPolicyResponse.success=false. |
| 2827 */ |
| 2828 core.String logMode; |
2773 | 2829 |
2774 DataAccessOptions(); | 2830 DataAccessOptions(); |
2775 | 2831 |
2776 DataAccessOptions.fromJson(core.Map _json) { | 2832 DataAccessOptions.fromJson(core.Map _json) { |
| 2833 if (_json.containsKey("logMode")) { |
| 2834 logMode = _json["logMode"]; |
| 2835 } |
2777 } | 2836 } |
2778 | 2837 |
2779 core.Map<core.String, core.Object> toJson() { | 2838 core.Map<core.String, core.Object> toJson() { |
2780 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2839 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2840 if (logMode != null) { |
| 2841 _json["logMode"] = logMode; |
| 2842 } |
2781 return _json; | 2843 return _json; |
2782 } | 2844 } |
2783 } | 2845 } |
2784 | 2846 |
2785 /** | 2847 /** |
2786 * Strategy used to delete a service. This strategy is a placeholder only | 2848 * Strategy used to delete a service. This strategy is a placeholder only |
2787 * used by the system generated rollout to delete a service. | 2849 * used by the system generated rollout to delete a service. |
2788 */ | 2850 */ |
2789 class DeleteServiceStrategy { | 2851 class DeleteServiceStrategy { |
2790 | 2852 |
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4022 core.String put; | 4084 core.String put; |
4023 /** | 4085 /** |
4024 * The name of the response field whose value is mapped to the HTTP body of | 4086 * The name of the response field whose value is mapped to the HTTP body of |
4025 * response. Other response fields are ignored. This field is optional. When | 4087 * response. Other response fields are ignored. This field is optional. When |
4026 * not set, the response message will be used as HTTP body of response. | 4088 * not set, the response message will be used as HTTP body of response. |
4027 * NOTE: the referred field must be not a repeated field and must be present | 4089 * NOTE: the referred field must be not a repeated field and must be present |
4028 * at the top-level of response message type. | 4090 * at the top-level of response message type. |
4029 */ | 4091 */ |
4030 core.String responseBody; | 4092 core.String responseBody; |
4031 /** | 4093 /** |
4032 * Optional. The REST collection name is by default derived from the URL | |
4033 * pattern. If specified, this field overrides the default collection name. | |
4034 * Example: | |
4035 * | |
4036 * rpc AddressesAggregatedList(AddressesAggregatedListRequest) | |
4037 * returns (AddressesAggregatedListResponse) { | |
4038 * option (google.api.http) = { | |
4039 * get: "/v1/projects/{project_id}/aggregated/addresses" | |
4040 * rest_collection: "projects.addresses" | |
4041 * }; | |
4042 * } | |
4043 * | |
4044 * This method has the automatically derived collection name | |
4045 * "projects.aggregated". Because, semantically, this rpc is actually an | |
4046 * operation on the "projects.addresses" collection, the `rest_collection` | |
4047 * field is configured to override the derived collection name. | |
4048 */ | |
4049 core.String restCollection; | |
4050 /** | |
4051 * Optional. The rest method name is by default derived from the URL | |
4052 * pattern. If specified, this field overrides the default method name. | |
4053 * Example: | |
4054 * | |
4055 * rpc CreateResource(CreateResourceRequest) | |
4056 * returns (CreateResourceResponse) { | |
4057 * option (google.api.http) = { | |
4058 * post: "/v1/resources", | |
4059 * body: "resource", | |
4060 * rest_method_name: "insert" | |
4061 * }; | |
4062 * } | |
4063 * | |
4064 * This method has the automatically derived rest method name "create", but | |
4065 * for backwards compatability with apiary, it is specified as insert. | |
4066 */ | |
4067 core.String restMethodName; | |
4068 /** | |
4069 * Selects methods to which this rule applies. | 4094 * Selects methods to which this rule applies. |
4070 * | 4095 * |
4071 * Refer to selector for syntax details. | 4096 * Refer to selector for syntax details. |
4072 */ | 4097 */ |
4073 core.String selector; | 4098 core.String selector; |
4074 | 4099 |
4075 HttpRule(); | 4100 HttpRule(); |
4076 | 4101 |
4077 HttpRule.fromJson(core.Map _json) { | 4102 HttpRule.fromJson(core.Map _json) { |
4078 if (_json.containsKey("additionalBindings")) { | 4103 if (_json.containsKey("additionalBindings")) { |
(...skipping 22 matching lines...) Expand all Loading... |
4101 } | 4126 } |
4102 if (_json.containsKey("post")) { | 4127 if (_json.containsKey("post")) { |
4103 post = _json["post"]; | 4128 post = _json["post"]; |
4104 } | 4129 } |
4105 if (_json.containsKey("put")) { | 4130 if (_json.containsKey("put")) { |
4106 put = _json["put"]; | 4131 put = _json["put"]; |
4107 } | 4132 } |
4108 if (_json.containsKey("responseBody")) { | 4133 if (_json.containsKey("responseBody")) { |
4109 responseBody = _json["responseBody"]; | 4134 responseBody = _json["responseBody"]; |
4110 } | 4135 } |
4111 if (_json.containsKey("restCollection")) { | |
4112 restCollection = _json["restCollection"]; | |
4113 } | |
4114 if (_json.containsKey("restMethodName")) { | |
4115 restMethodName = _json["restMethodName"]; | |
4116 } | |
4117 if (_json.containsKey("selector")) { | 4136 if (_json.containsKey("selector")) { |
4118 selector = _json["selector"]; | 4137 selector = _json["selector"]; |
4119 } | 4138 } |
4120 } | 4139 } |
4121 | 4140 |
4122 core.Map<core.String, core.Object> toJson() { | 4141 core.Map<core.String, core.Object> toJson() { |
4123 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4142 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4124 if (additionalBindings != null) { | 4143 if (additionalBindings != null) { |
4125 _json["additionalBindings"] = additionalBindings.map((value) => (value).to
Json()).toList(); | 4144 _json["additionalBindings"] = additionalBindings.map((value) => (value).to
Json()).toList(); |
4126 } | 4145 } |
(...skipping 20 matching lines...) Expand all Loading... |
4147 } | 4166 } |
4148 if (post != null) { | 4167 if (post != null) { |
4149 _json["post"] = post; | 4168 _json["post"] = post; |
4150 } | 4169 } |
4151 if (put != null) { | 4170 if (put != null) { |
4152 _json["put"] = put; | 4171 _json["put"] = put; |
4153 } | 4172 } |
4154 if (responseBody != null) { | 4173 if (responseBody != null) { |
4155 _json["responseBody"] = responseBody; | 4174 _json["responseBody"] = responseBody; |
4156 } | 4175 } |
4157 if (restCollection != null) { | |
4158 _json["restCollection"] = restCollection; | |
4159 } | |
4160 if (restMethodName != null) { | |
4161 _json["restMethodName"] = restMethodName; | |
4162 } | |
4163 if (selector != null) { | 4176 if (selector != null) { |
4164 _json["selector"] = selector; | 4177 _json["selector"] = selector; |
4165 } | 4178 } |
4166 return _json; | 4179 return _json; |
4167 } | 4180 } |
4168 } | 4181 } |
4169 | 4182 |
4170 /** A description of a label. */ | 4183 /** A description of a label. */ |
4171 class LabelDescriptor { | 4184 class LabelDescriptor { |
4172 /** A human-readable description for the label. */ | 4185 /** A human-readable description for the label. */ |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4326 if (nextPageToken != null) { | 4339 if (nextPageToken != null) { |
4327 _json["nextPageToken"] = nextPageToken; | 4340 _json["nextPageToken"] = nextPageToken; |
4328 } | 4341 } |
4329 if (services != null) { | 4342 if (services != null) { |
4330 _json["services"] = services.map((value) => (value).toJson()).toList(); | 4343 _json["services"] = services.map((value) => (value).toJson()).toList(); |
4331 } | 4344 } |
4332 return _json; | 4345 return _json; |
4333 } | 4346 } |
4334 } | 4347 } |
4335 | 4348 |
4336 /** | 4349 /** Specifies what kind of log the caller must write */ |
4337 * Specifies what kind of log the caller must write | |
4338 * Increment a streamz counter with the specified metric and field names. | |
4339 * | |
4340 * Metric names should start with a '/', generally be lowercase-only, | |
4341 * and end in "_count". Field names should not contain an initial slash. | |
4342 * The actual exported metric names will have "/iam/policy" prepended. | |
4343 * | |
4344 * Field names correspond to IAM request parameters and field values are | |
4345 * their respective values. | |
4346 * | |
4347 * At present the only supported field names are | |
4348 * - "iam_principal", corresponding to IAMContext.principal; | |
4349 * - "" (empty string), resulting in one aggretated counter with no field. | |
4350 * | |
4351 * Examples: | |
4352 * counter { metric: "/debug_access_count" field: "iam_principal" } | |
4353 * ==> increment counter /iam/policy/backend_debug_access_count | |
4354 * {iam_principal=[value of IAMContext.principal]} | |
4355 * | |
4356 * At this time we do not support: | |
4357 * * multiple field names (though this may be supported in the future) | |
4358 * * decrementing the counter | |
4359 * * incrementing it by anything other than 1 | |
4360 */ | |
4361 class LogConfig { | 4350 class LogConfig { |
4362 /** Cloud audit options. */ | 4351 /** Cloud audit options. */ |
4363 CloudAuditOptions cloudAudit; | 4352 CloudAuditOptions cloudAudit; |
4364 /** Counter options. */ | 4353 /** Counter options. */ |
4365 CounterOptions counter; | 4354 CounterOptions counter; |
4366 /** Data access options. */ | 4355 /** Data access options. */ |
4367 DataAccessOptions dataAccess; | 4356 DataAccessOptions dataAccess; |
4368 | 4357 |
4369 LogConfig(); | 4358 LogConfig(); |
4370 | 4359 |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4784 if (startNotification != null) { | 4773 if (startNotification != null) { |
4785 _json["startNotification"] = startNotification; | 4774 _json["startNotification"] = startNotification; |
4786 } | 4775 } |
4787 if (uploadService != null) { | 4776 if (uploadService != null) { |
4788 _json["uploadService"] = uploadService; | 4777 _json["uploadService"] = uploadService; |
4789 } | 4778 } |
4790 return _json; | 4779 return _json; |
4791 } | 4780 } |
4792 } | 4781 } |
4793 | 4782 |
4794 /** Method represents a method of an api. */ | 4783 /** Method represents a method of an API interface. */ |
4795 class Method { | 4784 class Method { |
4796 /** The simple name of this method. */ | 4785 /** The simple name of this method. */ |
4797 core.String name; | 4786 core.String name; |
4798 /** Any metadata attached to the method. */ | 4787 /** Any metadata attached to the method. */ |
4799 core.List<Option> options; | 4788 core.List<Option> options; |
4800 /** If true, the request is streamed. */ | 4789 /** If true, the request is streamed. */ |
4801 core.bool requestStreaming; | 4790 core.bool requestStreaming; |
4802 /** A URL of the input message type. */ | 4791 /** A URL of the input message type. */ |
4803 core.String requestTypeUrl; | 4792 core.String requestTypeUrl; |
4804 /** If true, the response is streamed. */ | 4793 /** If true, the response is streamed. */ |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5105 _json["metricCosts"] = metricCosts; | 5094 _json["metricCosts"] = metricCosts; |
5106 } | 5095 } |
5107 if (selector != null) { | 5096 if (selector != null) { |
5108 _json["selector"] = selector; | 5097 _json["selector"] = selector; |
5109 } | 5098 } |
5110 return _json; | 5099 return _json; |
5111 } | 5100 } |
5112 } | 5101 } |
5113 | 5102 |
5114 /** | 5103 /** |
5115 * Declares an API to be included in this API. The including API must | 5104 * Declares an API Interface to be included in this interface. The including |
5116 * redeclare all the methods from the included API, but documentation | 5105 * interface must redeclare all the methods from the included interface, but |
5117 * and options are inherited as follows: | 5106 * documentation and options are inherited as follows: |
5118 * | 5107 * |
5119 * - If after comment and whitespace stripping, the documentation | 5108 * - If after comment and whitespace stripping, the documentation |
5120 * string of the redeclared method is empty, it will be inherited | 5109 * string of the redeclared method is empty, it will be inherited |
5121 * from the original method. | 5110 * from the original method. |
5122 * | 5111 * |
5123 * - Each annotation belonging to the service config (http, | 5112 * - Each annotation belonging to the service config (http, |
5124 * visibility) which is not set in the redeclared method will be | 5113 * visibility) which is not set in the redeclared method will be |
5125 * inherited. | 5114 * inherited. |
5126 * | 5115 * |
5127 * - If an http annotation is inherited, the path pattern will be | 5116 * - If an http annotation is inherited, the path pattern will be |
5128 * modified as follows. Any version prefix will be replaced by the | 5117 * modified as follows. Any version prefix will be replaced by the |
5129 * version of the including API plus the root path if specified. | 5118 * version of the including interface plus the root path if |
| 5119 * specified. |
5130 * | 5120 * |
5131 * Example of a simple mixin: | 5121 * Example of a simple mixin: |
5132 * | 5122 * |
5133 * package google.acl.v1; | 5123 * package google.acl.v1; |
5134 * service AccessControl { | 5124 * service AccessControl { |
5135 * // Get the underlying ACL object. | 5125 * // Get the underlying ACL object. |
5136 * rpc GetAcl(GetAclRequest) returns (Acl) { | 5126 * rpc GetAcl(GetAclRequest) returns (Acl) { |
5137 * option (google.api.http).get = "/v1/{resource=**}:getAcl"; | 5127 * option (google.api.http).get = "/v1/{resource=**}:getAcl"; |
5138 * } | 5128 * } |
5139 * } | 5129 * } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5184 * | 5174 * |
5185 * service Storage { | 5175 * service Storage { |
5186 * // Get the underlying ACL object. | 5176 * // Get the underlying ACL object. |
5187 * rpc GetAcl(GetAclRequest) returns (Acl) { | 5177 * rpc GetAcl(GetAclRequest) returns (Acl) { |
5188 * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; | 5178 * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; |
5189 * } | 5179 * } |
5190 * ... | 5180 * ... |
5191 * } | 5181 * } |
5192 */ | 5182 */ |
5193 class Mixin { | 5183 class Mixin { |
5194 /** The fully qualified name of the API which is included. */ | 5184 /** The fully qualified name of the interface which is included. */ |
5195 core.String name; | 5185 core.String name; |
5196 /** | 5186 /** |
5197 * If non-empty specifies a path under which inherited HTTP paths | 5187 * If non-empty specifies a path under which inherited HTTP paths |
5198 * are rooted. | 5188 * are rooted. |
5199 */ | 5189 */ |
5200 core.String root; | 5190 core.String root; |
5201 | 5191 |
5202 Mixin(); | 5192 Mixin(); |
5203 | 5193 |
5204 Mixin.fromJson(core.Map _json) { | 5194 Mixin.fromJson(core.Map _json) { |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6346 * author, as the remaining fields will be derived from the IDL during the | 6336 * author, as the remaining fields will be derived from the IDL during the |
6347 * normalization process. It is an error to specify an API interface here | 6337 * normalization process. It is an error to specify an API interface here |
6348 * which cannot be resolved against the associated IDL files. | 6338 * which cannot be resolved against the associated IDL files. |
6349 */ | 6339 */ |
6350 core.List<Api> apis; | 6340 core.List<Api> apis; |
6351 /** Auth configuration. */ | 6341 /** Auth configuration. */ |
6352 Authentication authentication; | 6342 Authentication authentication; |
6353 /** API backend configuration. */ | 6343 /** API backend configuration. */ |
6354 Backend backend; | 6344 Backend backend; |
6355 /** | 6345 /** |
6356 * The version of the service configuration. The config version may | 6346 * The semantic version of the service configuration. The config version |
6357 * influence interpretation of the configuration, for example, to | 6347 * affects the interpretation of the service configuration. For example, |
6358 * determine defaults. This is documented together with applicable | 6348 * certain features are enabled by default for certain config versions. |
6359 * options. The current default for the config version itself is `3`. | 6349 * The latest config version is `3`. |
6360 */ | 6350 */ |
6361 core.int configVersion; | 6351 core.int configVersion; |
6362 /** Context configuration. */ | 6352 /** Context configuration. */ |
6363 Context context; | 6353 Context context; |
6364 /** Configuration for the service control plane. */ | 6354 /** Configuration for the service control plane. */ |
6365 Control control; | 6355 Control control; |
6366 /** Custom error configuration. */ | 6356 /** Custom error configuration. */ |
6367 CustomError customError; | 6357 CustomError customError; |
6368 /** Additional API documentation. */ | 6358 /** Additional API documentation. */ |
6369 Documentation documentation; | 6359 Documentation documentation; |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7494 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7484 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
7495 if (restriction != null) { | 7485 if (restriction != null) { |
7496 _json["restriction"] = restriction; | 7486 _json["restriction"] = restriction; |
7497 } | 7487 } |
7498 if (selector != null) { | 7488 if (selector != null) { |
7499 _json["selector"] = selector; | 7489 _json["selector"] = selector; |
7500 } | 7490 } |
7501 return _json; | 7491 return _json; |
7502 } | 7492 } |
7503 } | 7493 } |
OLD | NEW |