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

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

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 *
99 * [name] - Not used. 101 * [name] - Not used.
100 * 102 *
101 * [pageToken] - The standard list page token.
102 *
103 * [pageSize] - The maximum number of operations to return. If unspecified, 103 * [pageSize] - The maximum number of operations to return. If unspecified,
104 * defaults to 104 * defaults to
105 * 50. The maximum value is 100. 105 * 50. The maximum value is 100.
106 * 106 *
107 * [filter] - A string for filtering Operations. 107 * [filter] - A string for filtering Operations.
108 * The following filter fields are supported: 108 * The following filter fields are supported:
109 * 109 *
110 * * serviceName: Required. Only `=` operator is allowed. 110 * * serviceName: Required. Only `=` operator is allowed.
111 * * startTime: The time this job was started, in ISO 8601 format. 111 * * startTime: The time this job was started, in ISO 8601 format.
112 * Allowed operators are `>=`, `>`, `<=`, and `<`. 112 * Allowed operators are `>=`, `>`, `<=`, and `<`.
(...skipping 14 matching lines...) Expand all
127 * startTime>="2017-02-01")` 127 * startTime>="2017-02-01")`
128 * 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 name, core.String pageT oken, core.int pageSize, core.String filter}) { 137 async.Future<ListOperationsResponse> list({core.String pageToken, core.String name, core.int pageSize, core.String filter}) {
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 (pageToken != null) {
146 _queryParams["pageToken"] = [pageToken];
147 }
145 if (name != null) { 148 if (name != null) {
146 _queryParams["name"] = [name]; 149 _queryParams["name"] = [name];
147 } 150 }
148 if (pageToken != null) {
149 _queryParams["pageToken"] = [pageToken];
150 }
151 if (pageSize != null) { 151 if (pageSize != null) {
152 _queryParams["pageSize"] = ["${pageSize}"]; 152 _queryParams["pageSize"] = ["${pageSize}"];
153 } 153 }
154 if (filter != null) { 154 if (filter != null) {
155 _queryParams["filter"] = [filter]; 155 _queryParams["filter"] = [filter];
156 } 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,
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 *
474 * [view] - Specifies which parts of the Service Config should be returned in 472 * [view] - Specifies which parts of the Service Config should be returned in
475 * the 473 * the
476 * response. 474 * response.
477 * Possible string values are: 475 * Possible string values are:
478 * - "BASIC" : A BASIC. 476 * - "BASIC" : A BASIC.
479 * - "FULL" : A FULL. 477 * - "FULL" : A FULL.
480 * 478 *
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 configId , core.String view}) { 489 async.Future<Service> getConfig(core.String serviceName, {core.String view, co re.String configId}) {
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 (view != null) {
501 _queryParams["view"] = [view];
502 }
500 if (configId != null) { 503 if (configId != null) {
501 _queryParams["configId"] = [configId]; 504 _queryParams["configId"] = [configId];
502 } 505 }
503 if (view != null) {
504 _queryParams["view"] = [view];
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 2797 matching lines...) Expand 10 before | Expand all | Expand 10 after
3313 * expression: "size(request.user) > 0" 3313 * expression: "size(request.user) > 0"
3314 */ 3314 */
3315 class Expr { 3315 class Expr {
3316 /** 3316 /**
3317 * An optional description of the expression. This is a longer text which 3317 * An optional description of the expression. This is a longer text which
3318 * describes the expression, e.g. when hovered over it in a UI. 3318 * describes the expression, e.g. when hovered over it in a UI.
3319 */ 3319 */
3320 core.String description; 3320 core.String description;
3321 /** 3321 /**
3322 * Textual representation of an expression in 3322 * Textual representation of an expression in
3323 * [Common Expression Language](http://go/api-expr) syntax. 3323 * Common Expression Language syntax.
3324 * 3324 *
3325 * The application context of the containing message determines which 3325 * The application context of the containing message determines which
3326 * well-known feature set of CEL is supported. 3326 * well-known feature set of CEL is supported.
3327 */ 3327 */
3328 core.String expression; 3328 core.String expression;
3329 /** 3329 /**
3330 * An optional string indicating the location of the expression for error 3330 * An optional string indicating the location of the expression for error
3331 * reporting, e.g. a file name and a position in the file. 3331 * reporting, e.g. a file name and a position in the file.
3332 */ 3332 */
3333 core.String location; 3333 core.String location;
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
4318 if (nextPageToken != null) { 4318 if (nextPageToken != null) {
4319 _json["nextPageToken"] = nextPageToken; 4319 _json["nextPageToken"] = nextPageToken;
4320 } 4320 }
4321 if (services != null) { 4321 if (services != null) {
4322 _json["services"] = services.map((value) => (value).toJson()).toList(); 4322 _json["services"] = services.map((value) => (value).toJson()).toList();
4323 } 4323 }
4324 return _json; 4324 return _json;
4325 } 4325 }
4326 } 4326 }
4327 4327
4328 /** Specifies what kind of log the caller must write */ 4328 /**
4329 * Specifies what kind of log the caller must write
4330 * Increment a streamz counter with the specified metric and field names.
4331 *
4332 * Metric names should start with a '/', generally be lowercase-only,
4333 * and end in "_count". Field names should not contain an initial slash.
4334 * The actual exported metric names will have "/iam/policy" prepended.
4335 *
4336 * Field names correspond to IAM request parameters and field values are
4337 * their respective values.
4338 *
4339 * At present the only supported field names are
4340 * - "iam_principal", corresponding to IAMContext.principal;
4341 * - "" (empty string), resulting in one aggretated counter with no field.
4342 *
4343 * Examples:
4344 * counter { metric: "/debug_access_count" field: "iam_principal" }
4345 * ==> increment counter /iam/policy/backend_debug_access_count
4346 * {iam_principal=[value of IAMContext.principal]}
4347 *
4348 * At this time we do not support:
4349 * * multiple field names (though this may be supported in the future)
4350 * * decrementing the counter
4351 * * incrementing it by anything other than 1
4352 */
4329 class LogConfig { 4353 class LogConfig {
4330 /** Cloud audit options. */ 4354 /** Cloud audit options. */
4331 CloudAuditOptions cloudAudit; 4355 CloudAuditOptions cloudAudit;
4332 /** Counter options. */ 4356 /** Counter options. */
4333 CounterOptions counter; 4357 CounterOptions counter;
4334 /** Data access options. */ 4358 /** Data access options. */
4335 DataAccessOptions dataAccess; 4359 DataAccessOptions dataAccess;
4336 4360
4337 LogConfig(); 4361 LogConfig();
4338 4362
(...skipping 2987 matching lines...) Expand 10 before | Expand all | Expand 10 after
7326 class UsageRule { 7350 class UsageRule {
7327 /** True, if the method allows unregistered calls; false otherwise. */ 7351 /** True, if the method allows unregistered calls; false otherwise. */
7328 core.bool allowUnregisteredCalls; 7352 core.bool allowUnregisteredCalls;
7329 /** 7353 /**
7330 * Selects the methods to which this rule applies. Use '*' to indicate all 7354 * Selects the methods to which this rule applies. Use '*' to indicate all
7331 * methods in all APIs. 7355 * methods in all APIs.
7332 * 7356 *
7333 * Refer to selector for syntax details. 7357 * Refer to selector for syntax details.
7334 */ 7358 */
7335 core.String selector; 7359 core.String selector;
7360 /**
7361 * True, if the method should skip service control. If so, no control plane
7362 * feature (like quota and billing) will be enabled.
7363 */
7364 core.bool skipServiceControl;
7336 7365
7337 UsageRule(); 7366 UsageRule();
7338 7367
7339 UsageRule.fromJson(core.Map _json) { 7368 UsageRule.fromJson(core.Map _json) {
7340 if (_json.containsKey("allowUnregisteredCalls")) { 7369 if (_json.containsKey("allowUnregisteredCalls")) {
7341 allowUnregisteredCalls = _json["allowUnregisteredCalls"]; 7370 allowUnregisteredCalls = _json["allowUnregisteredCalls"];
7342 } 7371 }
7343 if (_json.containsKey("selector")) { 7372 if (_json.containsKey("selector")) {
7344 selector = _json["selector"]; 7373 selector = _json["selector"];
7345 } 7374 }
7375 if (_json.containsKey("skipServiceControl")) {
7376 skipServiceControl = _json["skipServiceControl"];
7377 }
7346 } 7378 }
7347 7379
7348 core.Map<core.String, core.Object> toJson() { 7380 core.Map<core.String, core.Object> toJson() {
7349 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7381 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7350 if (allowUnregisteredCalls != null) { 7382 if (allowUnregisteredCalls != null) {
7351 _json["allowUnregisteredCalls"] = allowUnregisteredCalls; 7383 _json["allowUnregisteredCalls"] = allowUnregisteredCalls;
7352 } 7384 }
7353 if (selector != null) { 7385 if (selector != null) {
7354 _json["selector"] = selector; 7386 _json["selector"] = selector;
7355 } 7387 }
7388 if (skipServiceControl != null) {
7389 _json["skipServiceControl"] = skipServiceControl;
7390 }
7356 return _json; 7391 return _json;
7357 } 7392 }
7358 } 7393 }
7359 7394
7360 /** 7395 /**
7361 * `Visibility` defines restrictions for the visibility of service 7396 * `Visibility` defines restrictions for the visibility of service
7362 * elements. Restrictions are specified using visibility labels 7397 * elements. Restrictions are specified using visibility labels
7363 * (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects. 7398 * (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
7364 * 7399 *
7365 * Users and projects can have access to more than one visibility label. The 7400 * Users and projects can have access to more than one visibility label. The
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
7451 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7486 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7452 if (restriction != null) { 7487 if (restriction != null) {
7453 _json["restriction"] = restriction; 7488 _json["restriction"] = restriction;
7454 } 7489 }
7455 if (selector != null) { 7490 if (selector != null) {
7456 _json["selector"] = selector; 7491 _json["selector"] = selector;
7457 } 7492 }
7458 return _json; 7493 return _json;
7459 } 7494 }
7460 } 7495 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/safebrowsing/v4.dart ('k') | generated/googleapis/lib/serviceuser/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698