| 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.servicecontrol.v1; | 3 library googleapis.servicecontrol.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 /** | 44 /** |
| 45 * Checks an operation with Google Service Control to decide whether | 45 * Checks an operation with Google Service Control to decide whether |
| 46 * the given operation should proceed. It should be called before the | 46 * the given operation should proceed. It should be called before the |
| 47 * operation is executed. | 47 * operation is executed. |
| 48 * | 48 * |
| 49 * If feasible, the client should cache the check results and reuse them for | 49 * If feasible, the client should cache the check results and reuse them for |
| 50 * 60 seconds. In case of server errors, the client can rely on the cached | 50 * 60 seconds. In case of server errors, the client can rely on the cached |
| 51 * results for longer time. | 51 * results for longer time. |
| 52 * | 52 * |
| 53 * NOTE: the `CheckRequest` has the size limit of 1MB. | 53 * NOTE: the `CheckRequest` has the size limit of 64KB. |
| 54 * | 54 * |
| 55 * This method requires the `servicemanagement.services.check` permission | 55 * This method requires the `servicemanagement.services.check` permission |
| 56 * on the specified service. For more information, see | 56 * on the specified service. For more information, see |
| 57 * [Google Cloud IAM](https://cloud.google.com/iam). | 57 * [Google Cloud IAM](https://cloud.google.com/iam). |
| 58 * | 58 * |
| 59 * [request] - The metadata request object. | 59 * [request] - The metadata request object. |
| 60 * | 60 * |
| 61 * Request parameters: | 61 * Request parameters: |
| 62 * | 62 * |
| 63 * [serviceName] - The service name as specified in its service configuration. | 63 * [serviceName] - The service name as specified in its service configuration. |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 * represent a valid project. | 191 * represent a valid project. |
| 192 * - "IP_ADDRESS_BLOCKED" : The IP address of the consumer is invalid for the | 192 * - "IP_ADDRESS_BLOCKED" : The IP address of the consumer is invalid for the |
| 193 * specific consumer | 193 * specific consumer |
| 194 * project. | 194 * project. |
| 195 * - "REFERER_BLOCKED" : The referer address of the consumer request is | 195 * - "REFERER_BLOCKED" : The referer address of the consumer request is |
| 196 * invalid for the specific | 196 * invalid for the specific |
| 197 * consumer project. | 197 * consumer project. |
| 198 * - "CLIENT_APP_BLOCKED" : The client application of the consumer request is | 198 * - "CLIENT_APP_BLOCKED" : The client application of the consumer request is |
| 199 * invalid for the | 199 * invalid for the |
| 200 * specific consumer project. | 200 * specific consumer project. |
| 201 * - "API_TARGET_BLOCKED" : The API targeted by this request is invalid for |
| 202 * the specified consumer |
| 203 * project. |
| 201 * - "API_KEY_INVALID" : The consumer's API key is invalid. | 204 * - "API_KEY_INVALID" : The consumer's API key is invalid. |
| 202 * - "API_KEY_EXPIRED" : The consumer's API Key has expired. | 205 * - "API_KEY_EXPIRED" : The consumer's API Key has expired. |
| 203 * - "API_KEY_NOT_FOUND" : The consumer's API Key was not found in config | 206 * - "API_KEY_NOT_FOUND" : The consumer's API Key was not found in config |
| 204 * record. | 207 * record. |
| 205 * - "NAMESPACE_LOOKUP_UNAVAILABLE" : The backend server for looking up | 208 * - "NAMESPACE_LOOKUP_UNAVAILABLE" : The backend server for looking up |
| 206 * project id/number is unavailable. | 209 * project id/number is unavailable. |
| 207 * - "SERVICE_STATUS_UNAVAILABLE" : The backend server for checking service | 210 * - "SERVICE_STATUS_UNAVAILABLE" : The backend server for checking service |
| 208 * status is unavailable. | 211 * status is unavailable. |
| 209 * - "BILLING_STATUS_UNAVAILABLE" : The backend server for checking billing | 212 * - "BILLING_STATUS_UNAVAILABLE" : The backend server for checking billing |
| 210 * status is unavailable. | 213 * status is unavailable. |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 } | 1183 } |
| 1181 if (details != null) { | 1184 if (details != null) { |
| 1182 _json["details"] = details; | 1185 _json["details"] = details; |
| 1183 } | 1186 } |
| 1184 if (message != null) { | 1187 if (message != null) { |
| 1185 _json["message"] = message; | 1188 _json["message"] = message; |
| 1186 } | 1189 } |
| 1187 return _json; | 1190 return _json; |
| 1188 } | 1191 } |
| 1189 } | 1192 } |
| OLD | NEW |