Index: generated/googleapis/lib/cloudbuild/v1.dart |
diff --git a/generated/googleapis/lib/cloudbuild/v1.dart b/generated/googleapis/lib/cloudbuild/v1.dart |
index be80c691717cb53b9b586194a91ea10dd539bfe7..21929511b08964f6aa95bfd332bd99fd70f02403 100644 |
--- a/generated/googleapis/lib/cloudbuild/v1.dart |
+++ b/generated/googleapis/lib/cloudbuild/v1.dart |
@@ -136,20 +136,25 @@ class OperationsResourceApi { |
* Lists operations that match the specified filter in the request. If the |
* server doesn't support this method, it returns `UNIMPLEMENTED`. |
* |
- * NOTE: the `name` binding below allows API services to override the binding |
- * to use different resource name schemes, such as `users / * /operations`. |
+ * NOTE: the `name` binding allows API services to override the binding |
+ * to use different resource name schemes, such as `users / * /operations`. To |
+ * override the binding, API services can add a binding such as |
+ * `"/v1/{name=users / * }/operations"` to their service configuration. |
+ * For backwards compatibility, the default name includes the operations |
+ * collection id, however overriding users must ensure the name binding |
+ * is the parent resource, without the operations collection id. |
* |
* Request parameters: |
* |
- * [name] - The name of the operation collection. |
+ * [name] - The name of the operation's parent resource. |
* Value must have pattern "^operations$". |
* |
+ * [filter] - The standard list filter. |
+ * |
* [pageToken] - The standard list page token. |
* |
* [pageSize] - The standard list page size. |
* |
- * [filter] - The standard list filter. |
- * |
* Completes with a [ListOperationsResponse]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -158,7 +163,7 @@ class OperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ListOperationsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) { |
+ async.Future<ListOperationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -169,15 +174,15 @@ class OperationsResourceApi { |
if (name == null) { |
throw new core.ArgumentError("Parameter name is required."); |
} |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
if (pageToken != null) { |
_queryParams["pageToken"] = [pageToken]; |
} |
if (pageSize != null) { |
_queryParams["pageSize"] = ["${pageSize}"]; |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
_url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
@@ -842,8 +847,8 @@ class Build { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (buildTriggerId != null) { |
_json["buildTriggerId"] = buildTriggerId; |
} |
@@ -918,8 +923,8 @@ class BuildOperationMetadata { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (build != null) { |
_json["build"] = (build).toJson(); |
} |
@@ -950,8 +955,8 @@ class BuildOptions { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (requestedVerifyOption != null) { |
_json["requestedVerifyOption"] = requestedVerifyOption; |
} |
@@ -1049,8 +1054,8 @@ class BuildStep { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (args != null) { |
_json["args"] = args; |
} |
@@ -1144,8 +1149,8 @@ class BuildTrigger { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (build != null) { |
_json["build"] = (build).toJson(); |
} |
@@ -1195,8 +1200,8 @@ class BuiltImage { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (digest != null) { |
_json["digest"] = digest; |
} |
@@ -1215,8 +1220,8 @@ class CancelBuildRequest { |
CancelBuildRequest.fromJson(core.Map _json) { |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
@@ -1229,8 +1234,8 @@ class CancelOperationRequest { |
CancelOperationRequest.fromJson(core.Map _json) { |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
@@ -1253,8 +1258,8 @@ class Empty { |
Empty.fromJson(core.Map _json) { |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
@@ -1275,8 +1280,8 @@ class FileHashes { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (fileHash != null) { |
_json["fileHash"] = fileHash.map((value) => (value).toJson()).toList(); |
} |
@@ -1314,8 +1319,8 @@ class Hash { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (type != null) { |
_json["type"] = type; |
} |
@@ -1339,8 +1344,8 @@ class ListBuildTriggersResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (triggers != null) { |
_json["triggers"] = triggers.map((value) => (value).toJson()).toList(); |
} |
@@ -1366,8 +1371,8 @@ class ListBuildsResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (builds != null) { |
_json["builds"] = builds.map((value) => (value).toJson()).toList(); |
} |
@@ -1396,8 +1401,8 @@ class ListOperationsResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (nextPageToken != null) { |
_json["nextPageToken"] = nextPageToken; |
} |
@@ -1472,8 +1477,8 @@ class Operation { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (done != null) { |
_json["done"] = done; |
} |
@@ -1532,8 +1537,8 @@ class RepoSource { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (branchName != null) { |
_json["branchName"] = branchName; |
} |
@@ -1573,8 +1578,8 @@ class Results { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (buildStepImages != null) { |
_json["buildStepImages"] = buildStepImages; |
} |
@@ -1609,8 +1614,8 @@ class Source { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (repoSource != null) { |
_json["repoSource"] = (repoSource).toJson(); |
} |
@@ -1654,7 +1659,7 @@ class SourceProvenance { |
SourceProvenance.fromJson(core.Map _json) { |
if (_json.containsKey("fileHashes")) { |
- fileHashes = commons.mapMap(_json["fileHashes"], (item) => new FileHashes.fromJson(item)); |
+ fileHashes = commons.mapMap<core.Map<core.String, core.Object>, FileHashes>(_json["fileHashes"], (core.Map<core.String, core.Object> item) => new FileHashes.fromJson(item)); |
} |
if (_json.containsKey("resolvedRepoSource")) { |
resolvedRepoSource = new RepoSource.fromJson(_json["resolvedRepoSource"]); |
@@ -1664,10 +1669,10 @@ class SourceProvenance { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (fileHashes != null) { |
- _json["fileHashes"] = commons.mapMap(fileHashes, (item) => (item).toJson()); |
+ _json["fileHashes"] = commons.mapMap<FileHashes, core.Map<core.String, core.Object>>(fileHashes, (FileHashes item) => (item).toJson()); |
} |
if (resolvedRepoSource != null) { |
_json["resolvedRepoSource"] = (resolvedRepoSource).toJson(); |
@@ -1767,8 +1772,8 @@ class Status { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (code != null) { |
_json["code"] = code; |
} |
@@ -1820,8 +1825,8 @@ class StorageSource { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (bucket != null) { |
_json["bucket"] = bucket; |
} |