| 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 * [pageToken] - The standard list page token. | |
| 100 * | |
| 101 * [name] - Not used. | |
| 102 * | |
| 103 * [pageSize] - The maximum number of operations to return. If unspecified, | |
| 104 * defaults to | |
| 105 * 50. The maximum value is 100. | |
| 106 * | |
| 107 * [filter] - A string for filtering Operations. | 99 * [filter] - A string for filtering Operations. |
| 108 * The following filter fields are supported: | 100 * The following filter fields are supported: |
| 109 * | 101 * |
| 110 * * serviceName: Required. Only `=` operator is allowed. | 102 * * serviceName: Required. Only `=` operator is allowed. |
| 111 * * startTime: The time this job was started, in ISO 8601 format. | 103 * * startTime: The time this job was started, in ISO 8601 format. |
| 112 * Allowed operators are `>=`, `>`, `<=`, and `<`. | 104 * Allowed operators are `>=`, `>`, `<=`, and `<`. |
| 113 * * status: Can be `done`, `in_progress`, or `failed`. Allowed | 105 * * status: Can be `done`, `in_progress`, or `failed`. Allowed |
| 114 * operators are `=`, and `!=`. | 106 * operators are `=`, and `!=`. |
| 115 * | 107 * |
| 116 * Filter expression supports conjunction (AND) and disjunction (OR) | 108 * Filter expression supports conjunction (AND) and disjunction (OR) |
| 117 * logical operators. However, the serviceName restriction must be at the | 109 * logical operators. However, the serviceName restriction must be at the |
| 118 * top-level and can only be combined with other restrictions via the AND | 110 * top-level and can only be combined with other restrictions via the AND |
| 119 * logical operator. | 111 * logical operator. |
| 120 * | 112 * |
| 121 * Examples: | 113 * Examples: |
| 122 * | 114 * |
| 123 * * `serviceName={some-service}.googleapis.com` | 115 * * `serviceName={some-service}.googleapis.com` |
| 124 * * `serviceName={some-service}.googleapis.com AND startTime>="2017-02-01"` | 116 * * `serviceName={some-service}.googleapis.com AND startTime>="2017-02-01"` |
| 125 * * `serviceName={some-service}.googleapis.com AND status=done` | 117 * * `serviceName={some-service}.googleapis.com AND status=done` |
| 126 * * `serviceName={some-service}.googleapis.com AND (status=done OR | 118 * * `serviceName={some-service}.googleapis.com AND (status=done OR |
| 127 * startTime>="2017-02-01")` | 119 * startTime>="2017-02-01")` |
| 128 * | 120 * |
| 121 * [pageToken] - The standard list page token. |
| 122 * |
| 123 * [name] - Not used. |
| 124 * |
| 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 pageToken, core.String
name, core.int pageSize, core.String filter}) { | 137 async.Future<ListOperationsResponse> list({core.String filter, core.String pag
eToken, core.String name, core.int pageSize}) { |
| 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 (filter != null) { |
| 146 _queryParams["filter"] = [filter]; |
| 147 } |
| 145 if (pageToken != null) { | 148 if (pageToken != null) { |
| 146 _queryParams["pageToken"] = [pageToken]; | 149 _queryParams["pageToken"] = [pageToken]; |
| 147 } | 150 } |
| 148 if (name != null) { | 151 if (name != null) { |
| 149 _queryParams["name"] = [name]; | 152 _queryParams["name"] = [name]; |
| 150 } | 153 } |
| 151 if (pageSize != null) { | 154 if (pageSize != null) { |
| 152 _queryParams["pageSize"] = ["${pageSize}"]; | 155 _queryParams["pageSize"] = ["${pageSize}"]; |
| 153 } | 156 } |
| 154 if (filter != null) { | |
| 155 _queryParams["filter"] = [filter]; | |
| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 | 462 |
| 463 /** | 463 /** |
| 464 * Gets a service configuration (version) for a managed service. | 464 * Gets a service configuration (version) for a managed service. |
| 465 * | 465 * |
| 466 * Request parameters: | 466 * Request parameters: |
| 467 * | 467 * |
| 468 * [serviceName] - The name of the service. See the | 468 * [serviceName] - The name of the service. See the |
| 469 * [overview](/service-management/overview) | 469 * [overview](/service-management/overview) |
| 470 * for naming requirements. For example: `example.googleapis.com`. | 470 * for naming requirements. For example: `example.googleapis.com`. |
| 471 * | 471 * |
| 472 * [configId] - The id of the service configuration resource. |
| 473 * |
| 472 * [view] - Specifies which parts of the Service Config should be returned in | 474 * [view] - Specifies which parts of the Service Config should be returned in |
| 473 * the | 475 * the |
| 474 * response. | 476 * response. |
| 475 * Possible string values are: | 477 * Possible string values are: |
| 476 * - "BASIC" : A BASIC. | 478 * - "BASIC" : A BASIC. |
| 477 * - "FULL" : A FULL. | 479 * - "FULL" : A FULL. |
| 478 * | 480 * |
| 479 * [configId] - The id of the service configuration resource. | |
| 480 * | |
| 481 * Completes with a [Service]. | 481 * Completes with a [Service]. |
| 482 * | 482 * |
| 483 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 483 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 484 * error. | 484 * error. |
| 485 * | 485 * |
| 486 * If the used [http_1.Client] completes with an error when making a REST | 486 * If the used [http_1.Client] completes with an error when making a REST |
| 487 * call, this method will complete with the same error. | 487 * call, this method will complete with the same error. |
| 488 */ | 488 */ |
| 489 async.Future<Service> getConfig(core.String serviceName, {core.String view, co
re.String configId}) { | 489 async.Future<Service> getConfig(core.String serviceName, {core.String configId
, core.String view}) { |
| 490 var _url = null; | 490 var _url = null; |
| 491 var _queryParams = new core.Map(); | 491 var _queryParams = new core.Map(); |
| 492 var _uploadMedia = null; | 492 var _uploadMedia = null; |
| 493 var _uploadOptions = null; | 493 var _uploadOptions = null; |
| 494 var _downloadOptions = commons.DownloadOptions.Metadata; | 494 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 495 var _body = null; | 495 var _body = null; |
| 496 | 496 |
| 497 if (serviceName == null) { | 497 if (serviceName == null) { |
| 498 throw new core.ArgumentError("Parameter serviceName is required."); | 498 throw new core.ArgumentError("Parameter serviceName is required."); |
| 499 } | 499 } |
| 500 if (configId != null) { |
| 501 _queryParams["configId"] = [configId]; |
| 502 } |
| 500 if (view != null) { | 503 if (view != null) { |
| 501 _queryParams["view"] = [view]; | 504 _queryParams["view"] = [view]; |
| 502 } | 505 } |
| 503 if (configId != null) { | |
| 504 _queryParams["configId"] = [configId]; | |
| 505 } | |
| 506 | 506 |
| 507 _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/co
nfig'; | 507 _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/co
nfig'; |
| 508 | 508 |
| 509 var _response = _requester.request(_url, | 509 var _response = _requester.request(_url, |
| 510 "GET", | 510 "GET", |
| 511 body: _body, | 511 body: _body, |
| 512 queryParams: _queryParams, | 512 queryParams: _queryParams, |
| 513 uploadOptions: _uploadOptions, | 513 uploadOptions: _uploadOptions, |
| 514 uploadMedia: _uploadMedia, | 514 uploadMedia: _uploadMedia, |
| 515 downloadOptions: _downloadOptions); | 515 downloadOptions: _downloadOptions); |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 /** | 1272 /** |
| 1273 * Lists the history of the service configuration rollouts for a managed | 1273 * Lists the history of the service configuration rollouts for a managed |
| 1274 * service, from the newest to the oldest. | 1274 * service, from the newest to the oldest. |
| 1275 * | 1275 * |
| 1276 * Request parameters: | 1276 * Request parameters: |
| 1277 * | 1277 * |
| 1278 * [serviceName] - The name of the service. See the | 1278 * [serviceName] - The name of the service. See the |
| 1279 * [overview](/service-management/overview) | 1279 * [overview](/service-management/overview) |
| 1280 * for naming requirements. For example: `example.googleapis.com`. | 1280 * for naming requirements. For example: `example.googleapis.com`. |
| 1281 * | 1281 * |
| 1282 * [pageToken] - The token of the page to retrieve. | |
| 1283 * | |
| 1284 * [pageSize] - The max number of items to include in the response list. | |
| 1285 * | |
| 1286 * [filter] - Use `filter` to return subset of rollouts. | 1282 * [filter] - Use `filter` to return subset of rollouts. |
| 1287 * The following filters are supported: | 1283 * The following filters are supported: |
| 1288 * -- To limit the results to only those in | 1284 * -- To limit the results to only those in |
| 1289 * [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS', | 1285 * [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS', |
| 1290 * use filter='status=SUCCESS' | 1286 * use filter='status=SUCCESS' |
| 1291 * -- To limit the results to those in | 1287 * -- To limit the results to those in |
| 1292 * [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED' | 1288 * [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED' |
| 1293 * or 'FAILED', use filter='status=CANCELLED OR status=FAILED' | 1289 * or 'FAILED', use filter='status=CANCELLED OR status=FAILED' |
| 1294 * | 1290 * |
| 1291 * [pageToken] - The token of the page to retrieve. |
| 1292 * |
| 1293 * [pageSize] - The max number of items to include in the response list. |
| 1294 * |
| 1295 * Completes with a [ListServiceRolloutsResponse]. | 1295 * Completes with a [ListServiceRolloutsResponse]. |
| 1296 * | 1296 * |
| 1297 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1297 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1298 * error. | 1298 * error. |
| 1299 * | 1299 * |
| 1300 * If the used [http_1.Client] completes with an error when making a REST | 1300 * If the used [http_1.Client] completes with an error when making a REST |
| 1301 * call, this method will complete with the same error. | 1301 * call, this method will complete with the same error. |
| 1302 */ | 1302 */ |
| 1303 async.Future<ListServiceRolloutsResponse> list(core.String serviceName, {core.
String pageToken, core.int pageSize, core.String filter}) { | 1303 async.Future<ListServiceRolloutsResponse> list(core.String serviceName, {core.
String filter, core.String pageToken, core.int pageSize}) { |
| 1304 var _url = null; | 1304 var _url = null; |
| 1305 var _queryParams = new core.Map(); | 1305 var _queryParams = new core.Map(); |
| 1306 var _uploadMedia = null; | 1306 var _uploadMedia = null; |
| 1307 var _uploadOptions = null; | 1307 var _uploadOptions = null; |
| 1308 var _downloadOptions = commons.DownloadOptions.Metadata; | 1308 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1309 var _body = null; | 1309 var _body = null; |
| 1310 | 1310 |
| 1311 if (serviceName == null) { | 1311 if (serviceName == null) { |
| 1312 throw new core.ArgumentError("Parameter serviceName is required."); | 1312 throw new core.ArgumentError("Parameter serviceName is required."); |
| 1313 } | 1313 } |
| 1314 if (filter != null) { |
| 1315 _queryParams["filter"] = [filter]; |
| 1316 } |
| 1314 if (pageToken != null) { | 1317 if (pageToken != null) { |
| 1315 _queryParams["pageToken"] = [pageToken]; | 1318 _queryParams["pageToken"] = [pageToken]; |
| 1316 } | 1319 } |
| 1317 if (pageSize != null) { | 1320 if (pageSize != null) { |
| 1318 _queryParams["pageSize"] = ["${pageSize}"]; | 1321 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1319 } | 1322 } |
| 1320 if (filter != null) { | |
| 1321 _queryParams["filter"] = [filter]; | |
| 1322 } | |
| 1323 | 1323 |
| 1324 _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/ro
llouts'; | 1324 _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/ro
llouts'; |
| 1325 | 1325 |
| 1326 var _response = _requester.request(_url, | 1326 var _response = _requester.request(_url, |
| 1327 "GET", | 1327 "GET", |
| 1328 body: _body, | 1328 body: _body, |
| 1329 queryParams: _queryParams, | 1329 queryParams: _queryParams, |
| 1330 uploadOptions: _uploadOptions, | 1330 uploadOptions: _uploadOptions, |
| 1331 uploadMedia: _uploadMedia, | 1331 uploadMedia: _uploadMedia, |
| 1332 downloadOptions: _downloadOptions); | 1332 downloadOptions: _downloadOptions); |
| (...skipping 779 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>(); | 2112 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2113 if (configChanges != null) { | 2113 if (configChanges != null) { |
| 2114 _json["configChanges"] = configChanges.map((value) => (value).toJson()).to
List(); | 2114 _json["configChanges"] = configChanges.map((value) => (value).toJson()).to
List(); |
| 2115 } | 2115 } |
| 2116 return _json; | 2116 return _json; |
| 2117 } | 2117 } |
| 2118 } | 2118 } |
| 2119 | 2119 |
| 2120 /** Write a Cloud Audit log */ | 2120 /** Write a Cloud Audit log */ |
| 2121 class CloudAuditOptions { | 2121 class CloudAuditOptions { |
| 2122 /** True if the log is for a permission of type DATA_READ or ADMIN_READ. */ |
| 2123 core.bool isReadPermissionType; |
| 2122 /** | 2124 /** |
| 2123 * The log_name to populate in the Cloud Audit Record. | 2125 * The log_name to populate in the Cloud Audit Record. |
| 2124 * Possible string values are: | 2126 * Possible string values are: |
| 2125 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used. | 2127 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used. |
| 2126 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity" | 2128 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity" |
| 2127 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access" | 2129 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access" |
| 2128 */ | 2130 */ |
| 2129 core.String logName; | 2131 core.String logName; |
| 2130 | 2132 |
| 2131 CloudAuditOptions(); | 2133 CloudAuditOptions(); |
| 2132 | 2134 |
| 2133 CloudAuditOptions.fromJson(core.Map _json) { | 2135 CloudAuditOptions.fromJson(core.Map _json) { |
| 2136 if (_json.containsKey("isReadPermissionType")) { |
| 2137 isReadPermissionType = _json["isReadPermissionType"]; |
| 2138 } |
| 2134 if (_json.containsKey("logName")) { | 2139 if (_json.containsKey("logName")) { |
| 2135 logName = _json["logName"]; | 2140 logName = _json["logName"]; |
| 2136 } | 2141 } |
| 2137 } | 2142 } |
| 2138 | 2143 |
| 2139 core.Map<core.String, core.Object> toJson() { | 2144 core.Map<core.String, core.Object> toJson() { |
| 2140 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2145 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 } |
| 2141 if (logName != null) { | 2149 if (logName != null) { |
| 2142 _json["logName"] = logName; | 2150 _json["logName"] = logName; |
| 2143 } | 2151 } |
| 2144 return _json; | 2152 return _json; |
| 2145 } | 2153 } |
| 2146 } | 2154 } |
| 2147 | 2155 |
| 2148 /** A condition to be met. */ | 2156 /** A condition to be met. */ |
| 2149 class Condition { | 2157 class Condition { |
| 2150 /** | 2158 /** |
| (...skipping 4616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6767 * results in its response, the status of those operations should be | 6775 * results in its response, the status of those operations should be |
| 6768 * represented directly using the `Status` message. | 6776 * represented directly using the `Status` message. |
| 6769 * | 6777 * |
| 6770 * - Logging. If some API errors are stored in logs, the message `Status` could | 6778 * - Logging. If some API errors are stored in logs, the message `Status` could |
| 6771 * be used directly after any stripping needed for security/privacy reasons. | 6779 * be used directly after any stripping needed for security/privacy reasons. |
| 6772 */ | 6780 */ |
| 6773 class Status { | 6781 class Status { |
| 6774 /** The status code, which should be an enum value of google.rpc.Code. */ | 6782 /** The status code, which should be an enum value of google.rpc.Code. */ |
| 6775 core.int code; | 6783 core.int code; |
| 6776 /** | 6784 /** |
| 6777 * A list of messages that carry the error details. There will be a | 6785 * A list of messages that carry the error details. There is a common set of |
| 6778 * common set of message types for APIs to use. | 6786 * message types for APIs to use. |
| 6779 * | 6787 * |
| 6780 * The values for Object must be JSON objects. It can consist of `num`, | 6788 * The values for Object must be JSON objects. It can consist of `num`, |
| 6781 * `String`, `bool` and `null` as well as `Map` and `List` values. | 6789 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 6782 */ | 6790 */ |
| 6783 core.List<core.Map<core.String, core.Object>> details; | 6791 core.List<core.Map<core.String, core.Object>> details; |
| 6784 /** | 6792 /** |
| 6785 * A developer-facing error message, which should be in English. Any | 6793 * A developer-facing error message, which should be in English. Any |
| 6786 * user-facing error message should be localized and sent in the | 6794 * user-facing error message should be localized and sent in the |
| 6787 * google.rpc.Status.details field, or localized by the client. | 6795 * google.rpc.Status.details field, or localized by the client. |
| 6788 */ | 6796 */ |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7486 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7494 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 7487 if (restriction != null) { | 7495 if (restriction != null) { |
| 7488 _json["restriction"] = restriction; | 7496 _json["restriction"] = restriction; |
| 7489 } | 7497 } |
| 7490 if (selector != null) { | 7498 if (selector != null) { |
| 7491 _json["selector"] = selector; | 7499 _json["selector"] = selector; |
| 7492 } | 7500 } |
| 7493 return _json; | 7501 return _json; |
| 7494 } | 7502 } |
| 7495 } | 7503 } |
| OLD | NEW |