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

Side by Side Diff: generated/googleapis_beta/lib/logging/v2beta1.dart

Issue 2734843002: Api-roll 46: 2017-03-06 (Closed)
Patch Set: Created 3 years, 9 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_beta.logging.v2beta1; 3 library googleapis_beta.logging.v2beta1;
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 * Request parameters: 118 * Request parameters:
119 * 119 *
120 * [parent] - Required. The resource name that owns the logs: 120 * [parent] - Required. The resource name that owns the logs:
121 * "projects/[PROJECT_ID]" 121 * "projects/[PROJECT_ID]"
122 * "organizations/[ORGANIZATION_ID]" 122 * "organizations/[ORGANIZATION_ID]"
123 * "billingAccounts/[BILLING_ACCOUNT_ID]" 123 * "billingAccounts/[BILLING_ACCOUNT_ID]"
124 * "folders/[FOLDER_ID]" 124 * "folders/[FOLDER_ID]"
125 * 125 *
126 * Value must have pattern "^billingAccounts/[^/]+$". 126 * Value must have pattern "^billingAccounts/[^/]+$".
127 * 127 *
128 * [pageSize] - Optional. The maximum number of results to return from this
129 * request. Non-positive values are ignored. The presence of nextPageToken in
130 * the response indicates that more results might be available.
131 *
128 * [pageToken] - Optional. If present, then retrieve the next batch of results 132 * [pageToken] - Optional. If present, then retrieve the next batch of results
129 * from the preceding call to this method. pageToken must be the value of 133 * from the preceding call to this method. pageToken must be the value of
130 * nextPageToken from the previous response. The values of other method 134 * nextPageToken from the previous response. The values of other method
131 * parameters should be identical to those in the previous call. 135 * parameters should be identical to those in the previous call.
132 * 136 *
133 * [pageSize] - Optional. The maximum number of results to return from this
134 * request. Non-positive values are ignored. The presence of nextPageToken in
135 * the response indicates that more results might be available.
136 *
137 * Completes with a [ListLogsResponse]. 137 * Completes with a [ListLogsResponse].
138 * 138 *
139 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 139 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
140 * error. 140 * error.
141 * 141 *
142 * If the used [http.Client] completes with an error when making a REST call, 142 * If the used [http.Client] completes with an error when making a REST call,
143 * this method will complete with the same error. 143 * this method will complete with the same error.
144 */ 144 */
145 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken , core.int pageSize}) { 145 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co re.String pageToken}) {
146 var _url = null; 146 var _url = null;
147 var _queryParams = new core.Map(); 147 var _queryParams = new core.Map();
148 var _uploadMedia = null; 148 var _uploadMedia = null;
149 var _uploadOptions = null; 149 var _uploadOptions = null;
150 var _downloadOptions = commons.DownloadOptions.Metadata; 150 var _downloadOptions = commons.DownloadOptions.Metadata;
151 var _body = null; 151 var _body = null;
152 152
153 if (parent == null) { 153 if (parent == null) {
154 throw new core.ArgumentError("Parameter parent is required."); 154 throw new core.ArgumentError("Parameter parent is required.");
155 } 155 }
156 if (pageSize != null) {
157 _queryParams["pageSize"] = ["${pageSize}"];
158 }
156 if (pageToken != null) { 159 if (pageToken != null) {
157 _queryParams["pageToken"] = [pageToken]; 160 _queryParams["pageToken"] = [pageToken];
158 } 161 }
159 if (pageSize != null) {
160 _queryParams["pageSize"] = ["${pageSize}"];
161 }
162 162
163 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/log s'; 163 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/log s';
164 164
165 var _response = _requester.request(_url, 165 var _response = _requester.request(_url,
166 "GET", 166 "GET",
167 body: _body, 167 body: _body,
168 queryParams: _queryParams, 168 queryParams: _queryParams,
169 uploadOptions: _uploadOptions, 169 uploadOptions: _uploadOptions,
170 uploadMedia: _uploadMedia, 170 uploadMedia: _uploadMedia,
171 downloadOptions: _downloadOptions); 171 downloadOptions: _downloadOptions);
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 * "projects/[PROJECT_ID]" 852 * "projects/[PROJECT_ID]"
853 * "organizations/[ORGANIZATION_ID]" 853 * "organizations/[ORGANIZATION_ID]"
854 * "billingAccounts/[BILLING_ACCOUNT_ID]" 854 * "billingAccounts/[BILLING_ACCOUNT_ID]"
855 * "folders/[FOLDER_ID]" 855 * "folders/[FOLDER_ID]"
856 * Examples: "projects/my-logging-project", "organizations/123456789". 856 * Examples: "projects/my-logging-project", "organizations/123456789".
857 * Value must have pattern "^projects/[^/]+$". 857 * Value must have pattern "^projects/[^/]+$".
858 * 858 *
859 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity 859 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity
860 * returned as writer_identity in the new sink. If this value is omitted or 860 * returned as writer_identity in the new sink. If this value is omitted or
861 * set to false, and if the sink's parent is a project, then the value 861 * set to false, and if the sink's parent is a project, then the value
862 * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the 862 * returned as writer_identity is the same group or service account used by
863 * same identity used before the addition of writer identities to this API. 863 * Stackdriver Logging before the addition of writer identities to this API.
864 * The sink's destination must be in the same project as the sink itself.If 864 * The sink's destination must be in the same project as the sink itself.If
865 * this field is set to true, or if the sink is owned by a non-project 865 * this field is set to true, or if the sink is owned by a non-project
866 * resource such as an organization, then the value of writer_identity will be 866 * resource such as an organization, then the value of writer_identity will be
867 * a unique service account used only for exports from the new sink. For more 867 * a unique service account used only for exports from the new sink. For more
868 * information, see writer_identity in LogSink. 868 * information, see writer_identity in LogSink.
869 * 869 *
870 * Completes with a [LogSink]. 870 * Completes with a [LogSink].
871 * 871 *
872 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 872 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
873 * error. 873 * error.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 * Request parameters: 1003 * Request parameters:
1004 * 1004 *
1005 * [parent] - Required. The parent resource whose sinks are to be listed: 1005 * [parent] - Required. The parent resource whose sinks are to be listed:
1006 * "projects/[PROJECT_ID]" 1006 * "projects/[PROJECT_ID]"
1007 * "organizations/[ORGANIZATION_ID]" 1007 * "organizations/[ORGANIZATION_ID]"
1008 * "billingAccounts/[BILLING_ACCOUNT_ID]" 1008 * "billingAccounts/[BILLING_ACCOUNT_ID]"
1009 * "folders/[FOLDER_ID]" 1009 * "folders/[FOLDER_ID]"
1010 * 1010 *
1011 * Value must have pattern "^projects/[^/]+$". 1011 * Value must have pattern "^projects/[^/]+$".
1012 * 1012 *
1013 * [pageSize] - Optional. The maximum number of results to return from this
1014 * request. Non-positive values are ignored. The presence of nextPageToken in
1015 * the response indicates that more results might be available.
1016 *
1017 * [pageToken] - Optional. If present, then retrieve the next batch of results 1013 * [pageToken] - Optional. If present, then retrieve the next batch of results
1018 * from the preceding call to this method. pageToken must be the value of 1014 * from the preceding call to this method. pageToken must be the value of
1019 * nextPageToken from the previous response. The values of other method 1015 * nextPageToken from the previous response. The values of other method
1020 * parameters should be identical to those in the previous call. 1016 * parameters should be identical to those in the previous call.
1021 * 1017 *
1018 * [pageSize] - Optional. The maximum number of results to return from this
1019 * request. Non-positive values are ignored. The presence of nextPageToken in
1020 * the response indicates that more results might be available.
1021 *
1022 * Completes with a [ListSinksResponse]. 1022 * Completes with a [ListSinksResponse].
1023 * 1023 *
1024 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1024 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1025 * error. 1025 * error.
1026 * 1026 *
1027 * If the used [http.Client] completes with an error when making a REST call, 1027 * If the used [http.Client] completes with an error when making a REST call,
1028 * this method will complete with the same error. 1028 * this method will complete with the same error.
1029 */ 1029 */
1030 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c ore.String pageToken}) { 1030 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke n, core.int pageSize}) {
1031 var _url = null; 1031 var _url = null;
1032 var _queryParams = new core.Map(); 1032 var _queryParams = new core.Map();
1033 var _uploadMedia = null; 1033 var _uploadMedia = null;
1034 var _uploadOptions = null; 1034 var _uploadOptions = null;
1035 var _downloadOptions = commons.DownloadOptions.Metadata; 1035 var _downloadOptions = commons.DownloadOptions.Metadata;
1036 var _body = null; 1036 var _body = null;
1037 1037
1038 if (parent == null) { 1038 if (parent == null) {
1039 throw new core.ArgumentError("Parameter parent is required."); 1039 throw new core.ArgumentError("Parameter parent is required.");
1040 } 1040 }
1041 if (pageToken != null) {
1042 _queryParams["pageToken"] = [pageToken];
1043 }
1041 if (pageSize != null) { 1044 if (pageSize != null) {
1042 _queryParams["pageSize"] = ["${pageSize}"]; 1045 _queryParams["pageSize"] = ["${pageSize}"];
1043 } 1046 }
1044 if (pageToken != null) {
1045 _queryParams["pageToken"] = [pageToken];
1046 }
1047 1047
1048 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sin ks'; 1048 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sin ks';
1049 1049
1050 var _response = _requester.request(_url, 1050 var _response = _requester.request(_url,
1051 "GET", 1051 "GET",
1052 body: _body, 1052 body: _body,
1053 queryParams: _queryParams, 1053 queryParams: _queryParams,
1054 uploadOptions: _uploadOptions, 1054 uploadOptions: _uploadOptions,
1055 uploadMedia: _uploadMedia, 1055 uploadMedia: _uploadMedia,
1056 downloadOptions: _downloadOptions); 1056 downloadOptions: _downloadOptions);
(...skipping 20 matching lines...) Expand all
1077 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" 1077 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1078 * Example: "projects/my-project-id/sinks/my-sink-id". 1078 * Example: "projects/my-project-id/sinks/my-sink-id".
1079 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". 1079 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$".
1080 * 1080 *
1081 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of 1081 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of
1082 * this field. When updating a sink, the effect of this field on the value of 1082 * this field. When updating a sink, the effect of this field on the value of
1083 * writer_identity in the updated sink depends on both the old and new values 1083 * writer_identity in the updated sink depends on both the old and new values
1084 * of this field: 1084 * of this field:
1085 * If the old and new values of this field are both false or both true, then 1085 * If the old and new values of this field are both false or both true, then
1086 * there is no change to the sink's writer_identity. 1086 * there is no change to the sink's writer_identity.
1087 * If the old value was false and the new value is true, then writer_identity 1087 * If the old value is false and the new value is true, then writer_identity
1088 * is changed to a unique service account. 1088 * is changed to a unique service account.
1089 * It is an error if the old value was true and the new value is false. 1089 * It is an error if the old value is true and the new value is false.
1090 * 1090 *
1091 * Completes with a [LogSink]. 1091 * Completes with a [LogSink].
1092 * 1092 *
1093 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1093 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1094 * error. 1094 * error.
1095 * 1095 *
1096 * If the used [http.Client] completes with an error when making a REST call, 1096 * If the used [http.Client] completes with an error when making a REST call,
1097 * this method will complete with the same error. 1097 * this method will complete with the same error.
1098 */ 1098 */
1099 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) { 1099 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) {
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
2822 WriteLogEntriesResponse(); 2822 WriteLogEntriesResponse();
2823 2823
2824 WriteLogEntriesResponse.fromJson(core.Map _json) { 2824 WriteLogEntriesResponse.fromJson(core.Map _json) {
2825 } 2825 }
2826 2826
2827 core.Map toJson() { 2827 core.Map toJson() {
2828 var _json = new core.Map(); 2828 var _json = new core.Map();
2829 return _json; 2829 return _json;
2830 } 2830 }
2831 } 2831 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/dataproc/v1beta1.dart ('k') | generated/googleapis_beta/lib/ml/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698