Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: generated/googleapis/lib/servicemanagement/v1.dart

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 var _response = _requester.request(_url, 84 var _response = _requester.request(_url,
85 "GET", 85 "GET",
86 body: _body, 86 body: _body,
87 queryParams: _queryParams, 87 queryParams: _queryParams,
88 uploadOptions: _uploadOptions, 88 uploadOptions: _uploadOptions,
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 /**
95 * Lists service operations that match the specified filter in the request.
96 *
97 * Request parameters:
98 *
99 * [name] - Not used.
100 *
101 * [pageToken] - The standard list page token.
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.
108 * The following filter fields are supported:
109 *
110 * * serviceName: Required. Only `=` operator is allowed.
111 * * startTime: The time this job was started, in ISO 8601 format.
112 * Allowed operators are `>=`, `>`, `<=`, and `<`.
113 * * status&#58; Can be `done`, `in_progress`, or `failed`. Allowed
114 * operators are `=`, and `!=`.
115 *
116 * Filter expression supports conjunction (AND) and disjunction (OR)
117 * logical operators. However, the serviceName restriction must be at the
118 * top-level and can only be combined with other restrictions via the AND
119 * logical operator.
120 *
121 * Examples&#58;
122 *
123 * * `serviceName={some-service}.googleapis.com`
124 * * `serviceName={some-service}.googleapis.com AND startTime>="2017-02-01"`
125 * * `serviceName={some-service}.googleapis.com AND status=done`
126 * * `serviceName={some-service}.googleapis.com AND (status=done OR
127 * startTime>="2017-02-01")`
128 *
129 * Completes with a [ListOperationsResponse].
130 *
131 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
132 * error.
133 *
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.
136 */
137 async.Future<ListOperationsResponse> list({core.String name, core.String pageT oken, core.int pageSize, core.String filter}) {
138 var _url = null;
139 var _queryParams = new core.Map();
140 var _uploadMedia = null;
141 var _uploadOptions = null;
142 var _downloadOptions = commons.DownloadOptions.Metadata;
143 var _body = null;
144
145 if (name != null) {
146 _queryParams["name"] = [name];
147 }
148 if (pageToken != null) {
149 _queryParams["pageToken"] = [pageToken];
150 }
151 if (pageSize != null) {
152 _queryParams["pageSize"] = ["${pageSize}"];
153 }
154 if (filter != null) {
155 _queryParams["filter"] = [filter];
156 }
157
158 _url = 'v1/operations';
159
160 var _response = _requester.request(_url,
161 "GET",
162 body: _body,
163 queryParams: _queryParams,
164 uploadOptions: _uploadOptions,
165 uploadMedia: _uploadMedia,
166 downloadOptions: _downloadOptions);
167 return _response.then((data) => new ListOperationsResponse.fromJson(data));
168 }
169
94 } 170 }
95 171
96 172
97 class ServicesResourceApi { 173 class ServicesResourceApi {
98 final commons.ApiRequester _requester; 174 final commons.ApiRequester _requester;
99 175
100 ServicesConfigsResourceApi get configs => new ServicesConfigsResourceApi(_requ ester); 176 ServicesConfigsResourceApi get configs => new ServicesConfigsResourceApi(_requ ester);
101 ServicesRolloutsResourceApi get rollouts => new ServicesRolloutsResourceApi(_r equester); 177 ServicesRolloutsResourceApi get rollouts => new ServicesRolloutsResourceApi(_r equester);
102 178
103 ServicesResourceApi(commons.ApiRequester client) : 179 ServicesResourceApi(commons.ApiRequester client) :
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 "DELETE", 261 "DELETE",
186 body: _body, 262 body: _body,
187 queryParams: _queryParams, 263 queryParams: _queryParams,
188 uploadOptions: _uploadOptions, 264 uploadOptions: _uploadOptions,
189 uploadMedia: _uploadMedia, 265 uploadMedia: _uploadMedia,
190 downloadOptions: _downloadOptions); 266 downloadOptions: _downloadOptions);
191 return _response.then((data) => new Operation.fromJson(data)); 267 return _response.then((data) => new Operation.fromJson(data));
192 } 268 }
193 269
194 /** 270 /**
195 * Disable a managed service for a project. 271 * Disables a service for a project, so it can no longer be
272 * be used for the project. It prevents accidental usage that may cause
273 * unexpected billing charges or security leaks.
196 * 274 *
197 * Operation<response: DisableServiceResponse> 275 * Operation<response: DisableServiceResponse>
198 * 276 *
199 * [request] - The metadata request object. 277 * [request] - The metadata request object.
200 * 278 *
201 * Request parameters: 279 * Request parameters:
202 * 280 *
203 * [serviceName] - Name of the service to disable. Specifying an unknown 281 * [serviceName] - Name of the service to disable. Specifying an unknown
204 * service name 282 * service name
205 * will cause the request to fail. 283 * will cause the request to fail.
(...skipping 27 matching lines...) Expand all
233 "POST", 311 "POST",
234 body: _body, 312 body: _body,
235 queryParams: _queryParams, 313 queryParams: _queryParams,
236 uploadOptions: _uploadOptions, 314 uploadOptions: _uploadOptions,
237 uploadMedia: _uploadMedia, 315 uploadMedia: _uploadMedia,
238 downloadOptions: _downloadOptions); 316 downloadOptions: _downloadOptions);
239 return _response.then((data) => new Operation.fromJson(data)); 317 return _response.then((data) => new Operation.fromJson(data));
240 } 318 }
241 319
242 /** 320 /**
243 * Enable a managed service for a project with default setting. 321 * Enables a service for a project, so it can be used
322 * for the project. See
323 * [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
324 * more information.
244 * 325 *
245 * Operation<response: EnableServiceResponse> 326 * Operation<response: EnableServiceResponse>
246 * 327 *
247 * google.rpc.Status errors may contain a
248 * google.rpc.PreconditionFailure error detail.
249 *
250 * [request] - The metadata request object. 328 * [request] - The metadata request object.
251 * 329 *
252 * Request parameters: 330 * Request parameters:
253 * 331 *
254 * [serviceName] - Name of the service to enable. Specifying an unknown 332 * [serviceName] - Name of the service to enable. Specifying an unknown
255 * service name will 333 * service name will
256 * cause the request to fail. 334 * cause the request to fail.
257 * 335 *
258 * Completes with a [Operation]. 336 * Completes with a [Operation].
259 * 337 *
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 461
384 /** 462 /**
385 * Gets a service configuration (version) for a managed service. 463 * Gets a service configuration (version) for a managed service.
386 * 464 *
387 * Request parameters: 465 * Request parameters:
388 * 466 *
389 * [serviceName] - The name of the service. See the 467 * [serviceName] - The name of the service. See the
390 * [overview](/service-management/overview) 468 * [overview](/service-management/overview)
391 * for naming requirements. For example: `example.googleapis.com`. 469 * for naming requirements. For example: `example.googleapis.com`.
392 * 470 *
471 * [configId] - The id of the service configuration resource.
472 *
393 * [view] - Specifies which parts of the Service Config should be returned in 473 * [view] - Specifies which parts of the Service Config should be returned in
394 * the 474 * the
395 * response. 475 * response.
396 * Possible string values are: 476 * Possible string values are:
397 * - "BASIC" : A BASIC. 477 * - "BASIC" : A BASIC.
398 * - "FULL" : A FULL. 478 * - "FULL" : A FULL.
399 * 479 *
400 * [configId] - The id of the service configuration resource.
401 *
402 * Completes with a [Service]. 480 * Completes with a [Service].
403 * 481 *
404 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 482 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
405 * error. 483 * error.
406 * 484 *
407 * If the used [http_1.Client] completes with an error when making a REST 485 * If the used [http_1.Client] completes with an error when making a REST
408 * call, this method will complete with the same error. 486 * call, this method will complete with the same error.
409 */ 487 */
410 async.Future<Service> getConfig(core.String serviceName, {core.String view, co re.String configId}) { 488 async.Future<Service> getConfig(core.String serviceName, {core.String configId , core.String view}) {
411 var _url = null; 489 var _url = null;
412 var _queryParams = new core.Map(); 490 var _queryParams = new core.Map();
413 var _uploadMedia = null; 491 var _uploadMedia = null;
414 var _uploadOptions = null; 492 var _uploadOptions = null;
415 var _downloadOptions = commons.DownloadOptions.Metadata; 493 var _downloadOptions = commons.DownloadOptions.Metadata;
416 var _body = null; 494 var _body = null;
417 495
418 if (serviceName == null) { 496 if (serviceName == null) {
419 throw new core.ArgumentError("Parameter serviceName is required."); 497 throw new core.ArgumentError("Parameter serviceName is required.");
420 } 498 }
499 if (configId != null) {
500 _queryParams["configId"] = [configId];
501 }
421 if (view != null) { 502 if (view != null) {
422 _queryParams["view"] = [view]; 503 _queryParams["view"] = [view];
423 } 504 }
424 if (configId != null) {
425 _queryParams["configId"] = [configId];
426 }
427 505
428 _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/co nfig'; 506 _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/co nfig';
429 507
430 var _response = _requester.request(_url, 508 var _response = _requester.request(_url,
431 "GET", 509 "GET",
432 body: _body, 510 body: _body,
433 queryParams: _queryParams, 511 queryParams: _queryParams,
434 uploadOptions: _uploadOptions, 512 uploadOptions: _uploadOptions,
435 uploadMedia: _uploadMedia, 513 uploadMedia: _uploadMedia,
436 downloadOptions: _downloadOptions); 514 downloadOptions: _downloadOptions);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 * Returns all public services. For authenticated users, also returns all 570 * Returns all public services. For authenticated users, also returns all
493 * services the calling user has "servicemanagement.services.get" permission 571 * services the calling user has "servicemanagement.services.get" permission
494 * for. 572 * for.
495 * 573 *
496 * **BETA:** If the caller specifies the `consumer_id`, it returns only the 574 * **BETA:** If the caller specifies the `consumer_id`, it returns only the
497 * services enabled on the consumer. The `consumer_id` must have the format 575 * services enabled on the consumer. The `consumer_id` must have the format
498 * of "project:{PROJECT-ID}". 576 * of "project:{PROJECT-ID}".
499 * 577 *
500 * Request parameters: 578 * Request parameters:
501 * 579 *
580 * [producerProjectId] - Include services produced by the specified project.
581 *
502 * [consumerId] - Include services consumed by the specified consumer. 582 * [consumerId] - Include services consumed by the specified consumer.
503 * 583 *
504 * The Google Service Management implementation accepts the following 584 * The Google Service Management implementation accepts the following
505 * forms: 585 * forms:
506 * - project:<project_id> 586 * - project:<project_id>
507 * 587 *
508 * [pageToken] - Token identifying which result to start with; returned by a 588 * [pageToken] - Token identifying which result to start with; returned by a
509 * previous list 589 * previous list
510 * call. 590 * call.
511 * 591 *
512 * [pageSize] - Requested size of the next page of data. 592 * [pageSize] - Requested size of the next page of data.
513 * 593 *
514 * [producerProjectId] - Include services produced by the specified project.
515 *
516 * Completes with a [ListServicesResponse]. 594 * Completes with a [ListServicesResponse].
517 * 595 *
518 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 596 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
519 * error. 597 * error.
520 * 598 *
521 * If the used [http_1.Client] completes with an error when making a REST 599 * If the used [http_1.Client] completes with an error when making a REST
522 * call, this method will complete with the same error. 600 * call, this method will complete with the same error.
523 */ 601 */
524 async.Future<ListServicesResponse> list({core.String consumerId, core.String p ageToken, core.int pageSize, core.String producerProjectId}) { 602 async.Future<ListServicesResponse> list({core.String producerProjectId, core.S tring consumerId, core.String pageToken, core.int pageSize}) {
525 var _url = null; 603 var _url = null;
526 var _queryParams = new core.Map(); 604 var _queryParams = new core.Map();
527 var _uploadMedia = null; 605 var _uploadMedia = null;
528 var _uploadOptions = null; 606 var _uploadOptions = null;
529 var _downloadOptions = commons.DownloadOptions.Metadata; 607 var _downloadOptions = commons.DownloadOptions.Metadata;
530 var _body = null; 608 var _body = null;
531 609
610 if (producerProjectId != null) {
611 _queryParams["producerProjectId"] = [producerProjectId];
612 }
532 if (consumerId != null) { 613 if (consumerId != null) {
533 _queryParams["consumerId"] = [consumerId]; 614 _queryParams["consumerId"] = [consumerId];
534 } 615 }
535 if (pageToken != null) { 616 if (pageToken != null) {
536 _queryParams["pageToken"] = [pageToken]; 617 _queryParams["pageToken"] = [pageToken];
537 } 618 }
538 if (pageSize != null) { 619 if (pageSize != null) {
539 _queryParams["pageSize"] = ["${pageSize}"]; 620 _queryParams["pageSize"] = ["${pageSize}"];
540 } 621 }
541 if (producerProjectId != null) {
542 _queryParams["producerProjectId"] = [producerProjectId];
543 }
544 622
545 _url = 'v1/services'; 623 _url = 'v1/services';
546 624
547 var _response = _requester.request(_url, 625 var _response = _requester.request(_url,
548 "GET", 626 "GET",
549 body: _body, 627 body: _body,
550 queryParams: _queryParams, 628 queryParams: _queryParams,
551 uploadOptions: _uploadOptions, 629 uploadOptions: _uploadOptions,
552 uploadMedia: _uploadMedia, 630 uploadMedia: _uploadMedia,
553 downloadOptions: _downloadOptions); 631 downloadOptions: _downloadOptions);
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 } 1290 }
1213 if (version != null) { 1291 if (version != null) {
1214 _json["version"] = version; 1292 _json["version"] = version;
1215 } 1293 }
1216 return _json; 1294 return _json;
1217 } 1295 }
1218 } 1296 }
1219 1297
1220 /** 1298 /**
1221 * Specifies the audit configuration for a service. 1299 * Specifies the audit configuration for a service.
1222 * It consists of which permission types are logged, and what identities, if 1300 * The configuration determines which permission types are logged, and what
1223 * any, are exempted from logging. 1301 * identities, if any, are exempted from logging.
1224 * An AuditConifg must have one or more AuditLogConfigs. 1302 * An AuditConifg must have one or more AuditLogConfigs.
1225 * 1303 *
1226 * If there are AuditConfigs for both `allServices` and a specific service, 1304 * If there are AuditConfigs for both `allServices` and a specific service,
1227 * the union of the two AuditConfigs is used for that service: the log_types 1305 * the union of the two AuditConfigs is used for that service: the log_types
1228 * specified in each AuditConfig are enabled, and the exempted_members in each 1306 * specified in each AuditConfig are enabled, and the exempted_members in each
1229 * AuditConfig are exempted. 1307 * AuditConfig are exempted.
1230 * Example Policy with multiple AuditConfigs: 1308 * Example Policy with multiple AuditConfigs:
1231 * { 1309 * {
1232 * "audit_configs": [ 1310 * "audit_configs": [
1233 * { 1311 * {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 */ 1347 */
1270 class AuditConfig { 1348 class AuditConfig {
1271 /** 1349 /**
1272 * The configuration for logging of each type of permission. 1350 * The configuration for logging of each type of permission.
1273 * Next ID: 4 1351 * Next ID: 4
1274 */ 1352 */
1275 core.List<AuditLogConfig> auditLogConfigs; 1353 core.List<AuditLogConfig> auditLogConfigs;
1276 core.List<core.String> exemptedMembers; 1354 core.List<core.String> exemptedMembers;
1277 /** 1355 /**
1278 * Specifies a service that will be enabled for audit logging. 1356 * Specifies a service that will be enabled for audit logging.
1279 * For example, `resourcemanager`, `storage`, `compute`. 1357 * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1280 * `allServices` is a special value that covers all services. 1358 * `allServices` is a special value that covers all services.
1281 */ 1359 */
1282 core.String service; 1360 core.String service;
1283 1361
1284 AuditConfig(); 1362 AuditConfig();
1285 1363
1286 AuditConfig.fromJson(core.Map _json) { 1364 AuditConfig.fromJson(core.Map _json) {
1287 if (_json.containsKey("auditLogConfigs")) { 1365 if (_json.containsKey("auditLogConfigs")) {
1288 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf ig.fromJson(value)).toList(); 1366 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf ig.fromJson(value)).toList();
1289 } 1367 }
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after
3084 if (packed != null) { 3162 if (packed != null) {
3085 _json["packed"] = packed; 3163 _json["packed"] = packed;
3086 } 3164 }
3087 if (typeUrl != null) { 3165 if (typeUrl != null) {
3088 _json["typeUrl"] = typeUrl; 3166 _json["typeUrl"] = typeUrl;
3089 } 3167 }
3090 return _json; 3168 return _json;
3091 } 3169 }
3092 } 3170 }
3093 3171
3172 /** The metadata associated with a long running operation resource. */
3173 class FlowOperationMetadata {
3174 /**
3175 * The state of the operation with respect to cancellation.
3176 * Possible string values are:
3177 * - "RUNNING" : Default state, cancellable but not cancelled.
3178 * - "UNCANCELLABLE" : The operation has proceeded past the point of no return
3179 * and cannot
3180 * be cancelled.
3181 * - "CANCELLED" : The operation has been cancelled, work should cease
3182 * and any needed rollback steps executed.
3183 */
3184 core.String cancelState;
3185 /**
3186 * Deadline for the flow to complete, to prevent orphaned Operations.
3187 *
3188 * If the flow has not completed by this time, it may be terminated by
3189 * the engine, or force-failed by Operation lookup.
3190 *
3191 * Note that this is not a hard deadline after which the Flow will
3192 * definitely be failed, rather it is a deadline after which it is reasonable
3193 * to suspect a problem and other parts of the system may kill operation
3194 * to ensure we don't have orphans.
3195 * see also: go/prevent-orphaned-operations
3196 */
3197 core.String deadline;
3198 /**
3199 * The name of the top-level flow corresponding to this operation.
3200 * Must be equal to the "name" field for a FlowName enum.
3201 */
3202 core.String flowName;
3203 /** Is the update for the operation persisted? */
3204 core.bool isPersisted;
3205 /**
3206 * The full name of the resources that this flow is directly associated with.
3207 */
3208 core.List<core.String> resourceNames;
3209 /** The start time of the operation. */
3210 core.String startTime;
3211
3212 FlowOperationMetadata();
3213
3214 FlowOperationMetadata.fromJson(core.Map _json) {
3215 if (_json.containsKey("cancelState")) {
3216 cancelState = _json["cancelState"];
3217 }
3218 if (_json.containsKey("deadline")) {
3219 deadline = _json["deadline"];
3220 }
3221 if (_json.containsKey("flowName")) {
3222 flowName = _json["flowName"];
3223 }
3224 if (_json.containsKey("isPersisted")) {
3225 isPersisted = _json["isPersisted"];
3226 }
3227 if (_json.containsKey("resourceNames")) {
3228 resourceNames = _json["resourceNames"];
3229 }
3230 if (_json.containsKey("startTime")) {
3231 startTime = _json["startTime"];
3232 }
3233 }
3234
3235 core.Map toJson() {
3236 var _json = new core.Map();
3237 if (cancelState != null) {
3238 _json["cancelState"] = cancelState;
3239 }
3240 if (deadline != null) {
3241 _json["deadline"] = deadline;
3242 }
3243 if (flowName != null) {
3244 _json["flowName"] = flowName;
3245 }
3246 if (isPersisted != null) {
3247 _json["isPersisted"] = isPersisted;
3248 }
3249 if (resourceNames != null) {
3250 _json["resourceNames"] = resourceNames;
3251 }
3252 if (startTime != null) {
3253 _json["startTime"] = startTime;
3254 }
3255 return _json;
3256 }
3257 }
3258
3094 /** Request message for GenerateConfigReport method. */ 3259 /** Request message for GenerateConfigReport method. */
3095 class GenerateConfigReportRequest { 3260 class GenerateConfigReportRequest {
3096 /** 3261 /**
3097 * Service configuration for which we want to generate the report. 3262 * Service configuration for which we want to generate the report.
3098 * For this version of API, the supported types are 3263 * For this version of API, the supported types are
3099 * google.api.servicemanagement.v1.ConfigRef, 3264 * google.api.servicemanagement.v1.ConfigRef,
3100 * google.api.servicemanagement.v1.ConfigSource, 3265 * google.api.servicemanagement.v1.ConfigSource,
3101 * and google.api.Service 3266 * and google.api.Service
3102 * 3267 *
3103 * The values for Object must be JSON objects. It can consist of `num`, 3268 * The values for Object must be JSON objects. It can consist of `num`,
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
3625 if (key != null) { 3790 if (key != null) {
3626 _json["key"] = key; 3791 _json["key"] = key;
3627 } 3792 }
3628 if (valueType != null) { 3793 if (valueType != null) {
3629 _json["valueType"] = valueType; 3794 _json["valueType"] = valueType;
3630 } 3795 }
3631 return _json; 3796 return _json;
3632 } 3797 }
3633 } 3798 }
3634 3799
3800 /** The response message for Operations.ListOperations. */
3801 class ListOperationsResponse {
3802 /** The standard List next-page token. */
3803 core.String nextPageToken;
3804 /** A list of operations that matches the specified filter in the request. */
3805 core.List<Operation> operations;
3806
3807 ListOperationsResponse();
3808
3809 ListOperationsResponse.fromJson(core.Map _json) {
3810 if (_json.containsKey("nextPageToken")) {
3811 nextPageToken = _json["nextPageToken"];
3812 }
3813 if (_json.containsKey("operations")) {
3814 operations = _json["operations"].map((value) => new Operation.fromJson(val ue)).toList();
3815 }
3816 }
3817
3818 core.Map toJson() {
3819 var _json = new core.Map();
3820 if (nextPageToken != null) {
3821 _json["nextPageToken"] = nextPageToken;
3822 }
3823 if (operations != null) {
3824 _json["operations"] = operations.map((value) => (value).toJson()).toList() ;
3825 }
3826 return _json;
3827 }
3828 }
3829
3635 /** Response message for ListServiceConfigs method. */ 3830 /** Response message for ListServiceConfigs method. */
3636 class ListServiceConfigsResponse { 3831 class ListServiceConfigsResponse {
3637 /** The token of the next page of results. */ 3832 /** The token of the next page of results. */
3638 core.String nextPageToken; 3833 core.String nextPageToken;
3639 /** The list of service configuration resources. */ 3834 /** The list of service configuration resources. */
3640 core.List<Service> serviceConfigs; 3835 core.List<Service> serviceConfigs;
3641 3836
3642 ListServiceConfigsResponse(); 3837 ListServiceConfigsResponse();
3643 3838
3644 ListServiceConfigsResponse.fromJson(core.Map _json) { 3839 ListServiceConfigsResponse.fromJson(core.Map _json) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
3717 if (nextPageToken != null) { 3912 if (nextPageToken != null) {
3718 _json["nextPageToken"] = nextPageToken; 3913 _json["nextPageToken"] = nextPageToken;
3719 } 3914 }
3720 if (services != null) { 3915 if (services != null) {
3721 _json["services"] = services.map((value) => (value).toJson()).toList(); 3916 _json["services"] = services.map((value) => (value).toJson()).toList();
3722 } 3917 }
3723 return _json; 3918 return _json;
3724 } 3919 }
3725 } 3920 }
3726 3921
3727 /** 3922 /** Specifies what kind of log the caller must write */
3728 * Specifies what kind of log the caller must write
3729 * Increment a streamz counter with the specified metric and field names.
3730 *
3731 * Metric names should start with a '/', generally be lowercase-only,
3732 * and end in "_count". Field names should not contain an initial slash.
3733 * The actual exported metric names will have "/iam/policy" prepended.
3734 *
3735 * Field names correspond to IAM request parameters and field values are
3736 * their respective values.
3737 *
3738 * At present the only supported field names are
3739 * - "iam_principal", corresponding to IAMContext.principal;
3740 * - "" (empty string), resulting in one aggretated counter with no field.
3741 *
3742 * Examples:
3743 * counter { metric: "/debug_access_count" field: "iam_principal" }
3744 * ==> increment counter /iam/policy/backend_debug_access_count
3745 * {iam_principal=[value of IAMContext.principal]}
3746 *
3747 * At this time we do not support:
3748 * * multiple field names (though this may be supported in the future)
3749 * * decrementing the counter
3750 * * incrementing it by anything other than 1
3751 */
3752 class LogConfig { 3923 class LogConfig {
3753 /** Cloud audit options. */ 3924 /** Cloud audit options. */
3754 CloudAuditOptions cloudAudit; 3925 CloudAuditOptions cloudAudit;
3755 /** Counter options. */ 3926 /** Counter options. */
3756 CounterOptions counter; 3927 CounterOptions counter;
3757 /** Data access options. */ 3928 /** Data access options. */
3758 DataAccessOptions dataAccess; 3929 DataAccessOptions dataAccess;
3759 3930
3760 LogConfig(); 3931 LogConfig();
3761 3932
(...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after
5384 * The DNS address at which this service is available, 5555 * The DNS address at which this service is available,
5385 * e.g. `calendar.googleapis.com`. 5556 * e.g. `calendar.googleapis.com`.
5386 */ 5557 */
5387 core.String name; 5558 core.String name;
5388 /** 5559 /**
5389 * The id of the Google developer project that owns the service. 5560 * The id of the Google developer project that owns the service.
5390 * Members of this project can manage the service configuration, 5561 * Members of this project can manage the service configuration,
5391 * manage consumption of the service, etc. 5562 * manage consumption of the service, etc.
5392 */ 5563 */
5393 core.String producerProjectId; 5564 core.String producerProjectId;
5565 /**
5566 * Output only. The source information for this configuration if available.
5567 */
5568 SourceInfo sourceInfo;
5394 /** System parameter configuration. */ 5569 /** System parameter configuration. */
5395 SystemParameters systemParameters; 5570 SystemParameters systemParameters;
5396 /** 5571 /**
5397 * A list of all proto message types included in this API service. 5572 * A list of all proto message types included in this API service.
5398 * It serves similar purpose as [google.api.Service.types], except that 5573 * It serves similar purpose as [google.api.Service.types], except that
5399 * these types are not needed by user-defined APIs. Therefore, they will not 5574 * these types are not needed by user-defined APIs. Therefore, they will not
5400 * show up in the generated discovery doc. This field should only be used 5575 * show up in the generated discovery doc. This field should only be used
5401 * to define system APIs in ESF. 5576 * to define system APIs in ESF.
5402 */ 5577 */
5403 core.List<Type> systemTypes; 5578 core.List<Type> systemTypes;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
5475 } 5650 }
5476 if (_json.containsKey("monitoring")) { 5651 if (_json.containsKey("monitoring")) {
5477 monitoring = new Monitoring.fromJson(_json["monitoring"]); 5652 monitoring = new Monitoring.fromJson(_json["monitoring"]);
5478 } 5653 }
5479 if (_json.containsKey("name")) { 5654 if (_json.containsKey("name")) {
5480 name = _json["name"]; 5655 name = _json["name"];
5481 } 5656 }
5482 if (_json.containsKey("producerProjectId")) { 5657 if (_json.containsKey("producerProjectId")) {
5483 producerProjectId = _json["producerProjectId"]; 5658 producerProjectId = _json["producerProjectId"];
5484 } 5659 }
5660 if (_json.containsKey("sourceInfo")) {
5661 sourceInfo = new SourceInfo.fromJson(_json["sourceInfo"]);
5662 }
5485 if (_json.containsKey("systemParameters")) { 5663 if (_json.containsKey("systemParameters")) {
5486 systemParameters = new SystemParameters.fromJson(_json["systemParameters"] ); 5664 systemParameters = new SystemParameters.fromJson(_json["systemParameters"] );
5487 } 5665 }
5488 if (_json.containsKey("systemTypes")) { 5666 if (_json.containsKey("systemTypes")) {
5489 systemTypes = _json["systemTypes"].map((value) => new Type.fromJson(value) ).toList(); 5667 systemTypes = _json["systemTypes"].map((value) => new Type.fromJson(value) ).toList();
5490 } 5668 }
5491 if (_json.containsKey("title")) { 5669 if (_json.containsKey("title")) {
5492 title = _json["title"]; 5670 title = _json["title"];
5493 } 5671 }
5494 if (_json.containsKey("types")) { 5672 if (_json.containsKey("types")) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
5557 } 5735 }
5558 if (monitoring != null) { 5736 if (monitoring != null) {
5559 _json["monitoring"] = (monitoring).toJson(); 5737 _json["monitoring"] = (monitoring).toJson();
5560 } 5738 }
5561 if (name != null) { 5739 if (name != null) {
5562 _json["name"] = name; 5740 _json["name"] = name;
5563 } 5741 }
5564 if (producerProjectId != null) { 5742 if (producerProjectId != null) {
5565 _json["producerProjectId"] = producerProjectId; 5743 _json["producerProjectId"] = producerProjectId;
5566 } 5744 }
5745 if (sourceInfo != null) {
5746 _json["sourceInfo"] = (sourceInfo).toJson();
5747 }
5567 if (systemParameters != null) { 5748 if (systemParameters != null) {
5568 _json["systemParameters"] = (systemParameters).toJson(); 5749 _json["systemParameters"] = (systemParameters).toJson();
5569 } 5750 }
5570 if (systemTypes != null) { 5751 if (systemTypes != null) {
5571 _json["systemTypes"] = systemTypes.map((value) => (value).toJson()).toList (); 5752 _json["systemTypes"] = systemTypes.map((value) => (value).toJson()).toList ();
5572 } 5753 }
5573 if (title != null) { 5754 if (title != null) {
5574 _json["title"] = title; 5755 _json["title"] = title;
5575 } 5756 }
5576 if (types != null) { 5757 if (types != null) {
(...skipping 13 matching lines...) Expand all
5590 class SetIamPolicyRequest { 5771 class SetIamPolicyRequest {
5591 /** 5772 /**
5592 * REQUIRED: The complete policy to be applied to the `resource`. The size of 5773 * REQUIRED: The complete policy to be applied to the `resource`. The size of
5593 * the policy is limited to a few 10s of KB. An empty policy is a 5774 * the policy is limited to a few 10s of KB. An empty policy is a
5594 * valid policy but certain Cloud Platform services (such as Projects) 5775 * valid policy but certain Cloud Platform services (such as Projects)
5595 * might reject them. 5776 * might reject them.
5596 */ 5777 */
5597 Policy policy; 5778 Policy policy;
5598 /** 5779 /**
5599 * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only 5780 * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
5600 * the fields in the mask will be modified. If no mask is provided, a default 5781 * the fields in the mask will be modified. If no mask is provided, the
5601 * mask is used: 5782 * following default mask is used:
5602 * paths: "bindings, etag" 5783 * paths: "bindings, etag"
5603 * This field is only used by Cloud IAM. 5784 * This field is only used by Cloud IAM.
5604 */ 5785 */
5605 core.String updateMask; 5786 core.String updateMask;
5606 5787
5607 SetIamPolicyRequest(); 5788 SetIamPolicyRequest();
5608 5789
5609 SetIamPolicyRequest.fromJson(core.Map _json) { 5790 SetIamPolicyRequest.fromJson(core.Map _json) {
5610 if (_json.containsKey("policy")) { 5791 if (_json.containsKey("policy")) {
5611 policy = new Policy.fromJson(_json["policy"]); 5792 policy = new Policy.fromJson(_json["policy"]);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
5648 5829
5649 core.Map toJson() { 5830 core.Map toJson() {
5650 var _json = new core.Map(); 5831 var _json = new core.Map();
5651 if (fileName != null) { 5832 if (fileName != null) {
5652 _json["fileName"] = fileName; 5833 _json["fileName"] = fileName;
5653 } 5834 }
5654 return _json; 5835 return _json;
5655 } 5836 }
5656 } 5837 }
5657 5838
5839 /** Source information used to create a Service Config */
5840 class SourceInfo {
5841 /**
5842 * All files used during config generation.
5843 *
5844 * The values for Object must be JSON objects. It can consist of `num`,
5845 * `String`, `bool` and `null` as well as `Map` and `List` values.
5846 */
5847 core.List<core.Map<core.String, core.Object>> sourceFiles;
5848
5849 SourceInfo();
5850
5851 SourceInfo.fromJson(core.Map _json) {
5852 if (_json.containsKey("sourceFiles")) {
5853 sourceFiles = _json["sourceFiles"];
5854 }
5855 }
5856
5857 core.Map toJson() {
5858 var _json = new core.Map();
5859 if (sourceFiles != null) {
5860 _json["sourceFiles"] = sourceFiles;
5861 }
5862 return _json;
5863 }
5864 }
5865
5658 /** 5866 /**
5659 * The `Status` type defines a logical error model that is suitable for 5867 * The `Status` type defines a logical error model that is suitable for
5660 * different 5868 * different
5661 * programming environments, including REST APIs and RPC APIs. It is used by 5869 * programming environments, including REST APIs and RPC APIs. It is used by
5662 * [gRPC](https://github.com/grpc). The error model is designed to be: 5870 * [gRPC](https://github.com/grpc). The error model is designed to be:
5663 * 5871 *
5664 * - Simple to use and understand for most users 5872 * - Simple to use and understand for most users
5665 * - Flexible enough to meet unexpected needs 5873 * - Flexible enough to meet unexpected needs
5666 * 5874 *
5667 * # Overview 5875 * # Overview
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
6413 var _json = new core.Map(); 6621 var _json = new core.Map();
6414 if (restriction != null) { 6622 if (restriction != null) {
6415 _json["restriction"] = restriction; 6623 _json["restriction"] = restriction;
6416 } 6624 }
6417 if (selector != null) { 6625 if (selector != null) {
6418 _json["selector"] = selector; 6626 _json["selector"] = selector;
6419 } 6627 }
6420 return _json; 6628 return _json;
6421 } 6629 }
6422 } 6630 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/servicecontrol/v1.dart ('k') | generated/googleapis/lib/serviceuser/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698