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

Side by Side Diff: generated/googleapis/lib/logging/v2.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
« no previous file with comments | « generated/googleapis/lib/licensing/v1.dart ('k') | generated/googleapis/lib/monitoring/v3.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.logging.v2; 3 library googleapis.logging.v2;
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 * Request parameters: 120 * Request parameters:
121 * 121 *
122 * [parent] - Required. The resource name that owns the logs: 122 * [parent] - Required. The resource name that owns the logs:
123 * "projects/[PROJECT_ID]" 123 * "projects/[PROJECT_ID]"
124 * "organizations/[ORGANIZATION_ID]" 124 * "organizations/[ORGANIZATION_ID]"
125 * "billingAccounts/[BILLING_ACCOUNT_ID]" 125 * "billingAccounts/[BILLING_ACCOUNT_ID]"
126 * "folders/[FOLDER_ID]" 126 * "folders/[FOLDER_ID]"
127 * 127 *
128 * Value must have pattern "^billingAccounts/[^/]+$". 128 * Value must have pattern "^billingAccounts/[^/]+$".
129 * 129 *
130 * [pageSize] - Optional. The maximum number of results to return from this
131 * request. Non-positive values are ignored. The presence of nextPageToken in
132 * the response indicates that more results might be available.
133 *
134 * [pageToken] - Optional. If present, then retrieve the next batch of results 130 * [pageToken] - Optional. If present, then retrieve the next batch of results
135 * from the preceding call to this method. pageToken must be the value of 131 * from the preceding call to this method. pageToken must be the value of
136 * nextPageToken from the previous response. The values of other method 132 * nextPageToken from the previous response. The values of other method
137 * parameters should be identical to those in the previous call. 133 * parameters should be identical to those in the previous call.
138 * 134 *
135 * [pageSize] - Optional. The maximum number of results to return from this
136 * request. Non-positive values are ignored. The presence of nextPageToken in
137 * the response indicates that more results might be available.
138 *
139 * Completes with a [ListLogsResponse]. 139 * Completes with a [ListLogsResponse].
140 * 140 *
141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
142 * error. 142 * error.
143 * 143 *
144 * If the used [http.Client] completes with an error when making a REST call, 144 * If the used [http.Client] completes with an error when making a REST call,
145 * this method will complete with the same error. 145 * this method will complete with the same error.
146 */ 146 */
147 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co re.String pageToken}) { 147 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken , core.int pageSize}) {
148 var _url = null; 148 var _url = null;
149 var _queryParams = new core.Map(); 149 var _queryParams = new core.Map();
150 var _uploadMedia = null; 150 var _uploadMedia = null;
151 var _uploadOptions = null; 151 var _uploadOptions = null;
152 var _downloadOptions = commons.DownloadOptions.Metadata; 152 var _downloadOptions = commons.DownloadOptions.Metadata;
153 var _body = null; 153 var _body = null;
154 154
155 if (parent == null) { 155 if (parent == null) {
156 throw new core.ArgumentError("Parameter parent is required."); 156 throw new core.ArgumentError("Parameter parent is required.");
157 } 157 }
158 if (pageToken != null) {
159 _queryParams["pageToken"] = [pageToken];
160 }
158 if (pageSize != null) { 161 if (pageSize != null) {
159 _queryParams["pageSize"] = ["${pageSize}"]; 162 _queryParams["pageSize"] = ["${pageSize}"];
160 } 163 }
161 if (pageToken != null) {
162 _queryParams["pageToken"] = [pageToken];
163 }
164 164
165 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; 165 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs';
166 166
167 var _response = _requester.request(_url, 167 var _response = _requester.request(_url,
168 "GET", 168 "GET",
169 body: _body, 169 body: _body,
170 queryParams: _queryParams, 170 queryParams: _queryParams,
171 uploadOptions: _uploadOptions, 171 uploadOptions: _uploadOptions,
172 uploadMedia: _uploadMedia, 172 uploadMedia: _uploadMedia,
173 downloadOptions: _downloadOptions); 173 downloadOptions: _downloadOptions);
(...skipping 24 matching lines...) Expand all
198 * "projects/[PROJECT_ID]" 198 * "projects/[PROJECT_ID]"
199 * "organizations/[ORGANIZATION_ID]" 199 * "organizations/[ORGANIZATION_ID]"
200 * "billingAccounts/[BILLING_ACCOUNT_ID]" 200 * "billingAccounts/[BILLING_ACCOUNT_ID]"
201 * "folders/[FOLDER_ID]" 201 * "folders/[FOLDER_ID]"
202 * Examples: "projects/my-logging-project", "organizations/123456789". 202 * Examples: "projects/my-logging-project", "organizations/123456789".
203 * Value must have pattern "^billingAccounts/[^/]+$". 203 * Value must have pattern "^billingAccounts/[^/]+$".
204 * 204 *
205 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity 205 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity
206 * returned as writer_identity in the new sink. If this value is omitted or 206 * returned as writer_identity in the new sink. If this value is omitted or
207 * set to false, and if the sink's parent is a project, then the value 207 * set to false, and if the sink's parent is a project, then the value
208 * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the 208 * returned as writer_identity is the same group or service account used by
209 * same identity used before the addition of writer identities to this API. 209 * Stackdriver Logging before the addition of writer identities to this API.
210 * The sink's destination must be in the same project as the sink itself.If 210 * The sink's destination must be in the same project as the sink itself.If
211 * this field is set to true, or if the sink is owned by a non-project 211 * this field is set to true, or if the sink is owned by a non-project
212 * resource such as an organization, then the value of writer_identity will be 212 * resource such as an organization, then the value of writer_identity will be
213 * a unique service account used only for exports from the new sink. For more 213 * a unique service account used only for exports from the new sink. For more
214 * information, see writer_identity in LogSink. 214 * information, see writer_identity in LogSink.
215 * 215 *
216 * Completes with a [LogSink]. 216 * Completes with a [LogSink].
217 * 217 *
218 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 218 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
219 * error. 219 * error.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" 423 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
424 * Example: "projects/my-project-id/sinks/my-sink-id". 424 * Example: "projects/my-project-id/sinks/my-sink-id".
425 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". 425 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$".
426 * 426 *
427 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of 427 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of
428 * this field. When updating a sink, the effect of this field on the value of 428 * this field. When updating a sink, the effect of this field on the value of
429 * writer_identity in the updated sink depends on both the old and new values 429 * writer_identity in the updated sink depends on both the old and new values
430 * of this field: 430 * of this field:
431 * If the old and new values of this field are both false or both true, then 431 * If the old and new values of this field are both false or both true, then
432 * there is no change to the sink's writer_identity. 432 * there is no change to the sink's writer_identity.
433 * If the old value was false and the new value is true, then writer_identity 433 * If the old value is false and the new value is true, then writer_identity
434 * is changed to a unique service account. 434 * is changed to a unique service account.
435 * It is an error if the old value was true and the new value is false. 435 * It is an error if the old value is true and the new value is false.
436 * 436 *
437 * Completes with a [LogSink]. 437 * Completes with a [LogSink].
438 * 438 *
439 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 439 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
440 * error. 440 * error.
441 * 441 *
442 * If the used [http.Client] completes with an error when making a REST call, 442 * If the used [http.Client] completes with an error when making a REST call,
443 * this method will complete with the same error. 443 * this method will complete with the same error.
444 */ 444 */
445 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) { 445 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) {
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 * "projects/[PROJECT_ID]" 716 * "projects/[PROJECT_ID]"
717 * "organizations/[ORGANIZATION_ID]" 717 * "organizations/[ORGANIZATION_ID]"
718 * "billingAccounts/[BILLING_ACCOUNT_ID]" 718 * "billingAccounts/[BILLING_ACCOUNT_ID]"
719 * "folders/[FOLDER_ID]" 719 * "folders/[FOLDER_ID]"
720 * Examples: "projects/my-logging-project", "organizations/123456789". 720 * Examples: "projects/my-logging-project", "organizations/123456789".
721 * Value must have pattern "^folders/[^/]+$". 721 * Value must have pattern "^folders/[^/]+$".
722 * 722 *
723 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity 723 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity
724 * returned as writer_identity in the new sink. If this value is omitted or 724 * returned as writer_identity in the new sink. If this value is omitted or
725 * set to false, and if the sink's parent is a project, then the value 725 * set to false, and if the sink's parent is a project, then the value
726 * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the 726 * returned as writer_identity is the same group or service account used by
727 * same identity used before the addition of writer identities to this API. 727 * Stackdriver Logging before the addition of writer identities to this API.
728 * The sink's destination must be in the same project as the sink itself.If 728 * The sink's destination must be in the same project as the sink itself.If
729 * this field is set to true, or if the sink is owned by a non-project 729 * this field is set to true, or if the sink is owned by a non-project
730 * resource such as an organization, then the value of writer_identity will be 730 * resource such as an organization, then the value of writer_identity will be
731 * a unique service account used only for exports from the new sink. For more 731 * a unique service account used only for exports from the new sink. For more
732 * information, see writer_identity in LogSink. 732 * information, see writer_identity in LogSink.
733 * 733 *
734 * Completes with a [LogSink]. 734 * Completes with a [LogSink].
735 * 735 *
736 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 736 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
737 * error. 737 * error.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" 941 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
942 * Example: "projects/my-project-id/sinks/my-sink-id". 942 * Example: "projects/my-project-id/sinks/my-sink-id".
943 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". 943 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$".
944 * 944 *
945 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of 945 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of
946 * this field. When updating a sink, the effect of this field on the value of 946 * this field. When updating a sink, the effect of this field on the value of
947 * writer_identity in the updated sink depends on both the old and new values 947 * writer_identity in the updated sink depends on both the old and new values
948 * of this field: 948 * of this field:
949 * If the old and new values of this field are both false or both true, then 949 * If the old and new values of this field are both false or both true, then
950 * there is no change to the sink's writer_identity. 950 * there is no change to the sink's writer_identity.
951 * If the old value was false and the new value is true, then writer_identity 951 * If the old value is false and the new value is true, then writer_identity
952 * is changed to a unique service account. 952 * is changed to a unique service account.
953 * It is an error if the old value was true and the new value is false. 953 * It is an error if the old value is true and the new value is false.
954 * 954 *
955 * Completes with a [LogSink]. 955 * Completes with a [LogSink].
956 * 956 *
957 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 957 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
958 * error. 958 * error.
959 * 959 *
960 * If the used [http.Client] completes with an error when making a REST call, 960 * If the used [http.Client] completes with an error when making a REST call,
961 * this method will complete with the same error. 961 * this method will complete with the same error.
962 */ 962 */
963 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) { 963 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 998
999 MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) : 999 MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) :
1000 _requester = client; 1000 _requester = client;
1001 1001
1002 /** 1002 /**
1003 * Lists the descriptors for monitored resource types used by Stackdriver 1003 * Lists the descriptors for monitored resource types used by Stackdriver
1004 * Logging. 1004 * Logging.
1005 * 1005 *
1006 * Request parameters: 1006 * Request parameters:
1007 * 1007 *
1008 * [pageSize] - Optional. The maximum number of results to return from this
1009 * request. Non-positive values are ignored. The presence of nextPageToken in
1010 * the response indicates that more results might be available.
1011 *
1008 * [pageToken] - Optional. If present, then retrieve the next batch of results 1012 * [pageToken] - Optional. If present, then retrieve the next batch of results
1009 * from the preceding call to this method. pageToken must be the value of 1013 * from the preceding call to this method. pageToken must be the value of
1010 * nextPageToken from the previous response. The values of other method 1014 * nextPageToken from the previous response. The values of other method
1011 * parameters should be identical to those in the previous call. 1015 * parameters should be identical to those in the previous call.
1012 * 1016 *
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 * Completes with a [ListMonitoredResourceDescriptorsResponse]. 1017 * Completes with a [ListMonitoredResourceDescriptorsResponse].
1018 * 1018 *
1019 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1019 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1020 * error. 1020 * error.
1021 * 1021 *
1022 * If the used [http.Client] completes with an error when making a REST call, 1022 * If the used [http.Client] completes with an error when making a REST call,
1023 * this method will complete with the same error. 1023 * this method will complete with the same error.
1024 */ 1024 */
1025 async.Future<ListMonitoredResourceDescriptorsResponse> list({core.String pageT oken, core.int pageSize}) { 1025 async.Future<ListMonitoredResourceDescriptorsResponse> list({core.int pageSize , core.String pageToken}) {
1026 var _url = null; 1026 var _url = null;
1027 var _queryParams = new core.Map(); 1027 var _queryParams = new core.Map();
1028 var _uploadMedia = null; 1028 var _uploadMedia = null;
1029 var _uploadOptions = null; 1029 var _uploadOptions = null;
1030 var _downloadOptions = commons.DownloadOptions.Metadata; 1030 var _downloadOptions = commons.DownloadOptions.Metadata;
1031 var _body = null; 1031 var _body = null;
1032 1032
1033 if (pageSize != null) {
1034 _queryParams["pageSize"] = ["${pageSize}"];
1035 }
1033 if (pageToken != null) { 1036 if (pageToken != null) {
1034 _queryParams["pageToken"] = [pageToken]; 1037 _queryParams["pageToken"] = [pageToken];
1035 } 1038 }
1036 if (pageSize != null) {
1037 _queryParams["pageSize"] = ["${pageSize}"];
1038 }
1039 1039
1040 _url = 'v2/monitoredResourceDescriptors'; 1040 _url = 'v2/monitoredResourceDescriptors';
1041 1041
1042 var _response = _requester.request(_url, 1042 var _response = _requester.request(_url,
1043 "GET", 1043 "GET",
1044 body: _body, 1044 body: _body,
1045 queryParams: _queryParams, 1045 queryParams: _queryParams,
1046 uploadOptions: _uploadOptions, 1046 uploadOptions: _uploadOptions,
1047 uploadMedia: _uploadMedia, 1047 uploadMedia: _uploadMedia,
1048 downloadOptions: _downloadOptions); 1048 downloadOptions: _downloadOptions);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 * Request parameters: 1126 * Request parameters:
1127 * 1127 *
1128 * [parent] - Required. The resource name that owns the logs: 1128 * [parent] - Required. The resource name that owns the logs:
1129 * "projects/[PROJECT_ID]" 1129 * "projects/[PROJECT_ID]"
1130 * "organizations/[ORGANIZATION_ID]" 1130 * "organizations/[ORGANIZATION_ID]"
1131 * "billingAccounts/[BILLING_ACCOUNT_ID]" 1131 * "billingAccounts/[BILLING_ACCOUNT_ID]"
1132 * "folders/[FOLDER_ID]" 1132 * "folders/[FOLDER_ID]"
1133 * 1133 *
1134 * Value must have pattern "^organizations/[^/]+$". 1134 * Value must have pattern "^organizations/[^/]+$".
1135 * 1135 *
1136 * [pageSize] - Optional. The maximum number of results to return from this
1137 * request. Non-positive values are ignored. The presence of nextPageToken in
1138 * the response indicates that more results might be available.
1139 *
1140 * [pageToken] - Optional. If present, then retrieve the next batch of results 1136 * [pageToken] - Optional. If present, then retrieve the next batch of results
1141 * from the preceding call to this method. pageToken must be the value of 1137 * from the preceding call to this method. pageToken must be the value of
1142 * nextPageToken from the previous response. The values of other method 1138 * nextPageToken from the previous response. The values of other method
1143 * parameters should be identical to those in the previous call. 1139 * parameters should be identical to those in the previous call.
1144 * 1140 *
1141 * [pageSize] - Optional. The maximum number of results to return from this
1142 * request. Non-positive values are ignored. The presence of nextPageToken in
1143 * the response indicates that more results might be available.
1144 *
1145 * Completes with a [ListLogsResponse]. 1145 * Completes with a [ListLogsResponse].
1146 * 1146 *
1147 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1147 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1148 * error. 1148 * error.
1149 * 1149 *
1150 * If the used [http.Client] completes with an error when making a REST call, 1150 * If the used [http.Client] completes with an error when making a REST call,
1151 * this method will complete with the same error. 1151 * this method will complete with the same error.
1152 */ 1152 */
1153 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co re.String pageToken}) { 1153 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken , core.int pageSize}) {
1154 var _url = null; 1154 var _url = null;
1155 var _queryParams = new core.Map(); 1155 var _queryParams = new core.Map();
1156 var _uploadMedia = null; 1156 var _uploadMedia = null;
1157 var _uploadOptions = null; 1157 var _uploadOptions = null;
1158 var _downloadOptions = commons.DownloadOptions.Metadata; 1158 var _downloadOptions = commons.DownloadOptions.Metadata;
1159 var _body = null; 1159 var _body = null;
1160 1160
1161 if (parent == null) { 1161 if (parent == null) {
1162 throw new core.ArgumentError("Parameter parent is required."); 1162 throw new core.ArgumentError("Parameter parent is required.");
1163 } 1163 }
1164 if (pageToken != null) {
1165 _queryParams["pageToken"] = [pageToken];
1166 }
1164 if (pageSize != null) { 1167 if (pageSize != null) {
1165 _queryParams["pageSize"] = ["${pageSize}"]; 1168 _queryParams["pageSize"] = ["${pageSize}"];
1166 } 1169 }
1167 if (pageToken != null) {
1168 _queryParams["pageToken"] = [pageToken];
1169 }
1170 1170
1171 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; 1171 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs';
1172 1172
1173 var _response = _requester.request(_url, 1173 var _response = _requester.request(_url,
1174 "GET", 1174 "GET",
1175 body: _body, 1175 body: _body,
1176 queryParams: _queryParams, 1176 queryParams: _queryParams,
1177 uploadOptions: _uploadOptions, 1177 uploadOptions: _uploadOptions,
1178 uploadMedia: _uploadMedia, 1178 uploadMedia: _uploadMedia,
1179 downloadOptions: _downloadOptions); 1179 downloadOptions: _downloadOptions);
(...skipping 24 matching lines...) Expand all
1204 * "projects/[PROJECT_ID]" 1204 * "projects/[PROJECT_ID]"
1205 * "organizations/[ORGANIZATION_ID]" 1205 * "organizations/[ORGANIZATION_ID]"
1206 * "billingAccounts/[BILLING_ACCOUNT_ID]" 1206 * "billingAccounts/[BILLING_ACCOUNT_ID]"
1207 * "folders/[FOLDER_ID]" 1207 * "folders/[FOLDER_ID]"
1208 * Examples: "projects/my-logging-project", "organizations/123456789". 1208 * Examples: "projects/my-logging-project", "organizations/123456789".
1209 * Value must have pattern "^organizations/[^/]+$". 1209 * Value must have pattern "^organizations/[^/]+$".
1210 * 1210 *
1211 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity 1211 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity
1212 * returned as writer_identity in the new sink. If this value is omitted or 1212 * returned as writer_identity in the new sink. If this value is omitted or
1213 * set to false, and if the sink's parent is a project, then the value 1213 * set to false, and if the sink's parent is a project, then the value
1214 * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the 1214 * returned as writer_identity is the same group or service account used by
1215 * same identity used before the addition of writer identities to this API. 1215 * Stackdriver Logging before the addition of writer identities to this API.
1216 * The sink's destination must be in the same project as the sink itself.If 1216 * The sink's destination must be in the same project as the sink itself.If
1217 * this field is set to true, or if the sink is owned by a non-project 1217 * this field is set to true, or if the sink is owned by a non-project
1218 * resource such as an organization, then the value of writer_identity will be 1218 * resource such as an organization, then the value of writer_identity will be
1219 * a unique service account used only for exports from the new sink. For more 1219 * a unique service account used only for exports from the new sink. For more
1220 * information, see writer_identity in LogSink. 1220 * information, see writer_identity in LogSink.
1221 * 1221 *
1222 * Completes with a [LogSink]. 1222 * Completes with a [LogSink].
1223 * 1223 *
1224 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1224 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1225 * error. 1225 * error.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 * Request parameters: 1355 * Request parameters:
1356 * 1356 *
1357 * [parent] - Required. The parent resource whose sinks are to be listed: 1357 * [parent] - Required. The parent resource whose sinks are to be listed:
1358 * "projects/[PROJECT_ID]" 1358 * "projects/[PROJECT_ID]"
1359 * "organizations/[ORGANIZATION_ID]" 1359 * "organizations/[ORGANIZATION_ID]"
1360 * "billingAccounts/[BILLING_ACCOUNT_ID]" 1360 * "billingAccounts/[BILLING_ACCOUNT_ID]"
1361 * "folders/[FOLDER_ID]" 1361 * "folders/[FOLDER_ID]"
1362 * 1362 *
1363 * Value must have pattern "^organizations/[^/]+$". 1363 * Value must have pattern "^organizations/[^/]+$".
1364 * 1364 *
1365 * [pageSize] - Optional. The maximum number of results to return from this
1366 * request. Non-positive values are ignored. The presence of nextPageToken in
1367 * the response indicates that more results might be available.
1368 *
1369 * [pageToken] - Optional. If present, then retrieve the next batch of results 1365 * [pageToken] - Optional. If present, then retrieve the next batch of results
1370 * from the preceding call to this method. pageToken must be the value of 1366 * from the preceding call to this method. pageToken must be the value of
1371 * nextPageToken from the previous response. The values of other method 1367 * nextPageToken from the previous response. The values of other method
1372 * parameters should be identical to those in the previous call. 1368 * parameters should be identical to those in the previous call.
1373 * 1369 *
1370 * [pageSize] - Optional. The maximum number of results to return from this
1371 * request. Non-positive values are ignored. The presence of nextPageToken in
1372 * the response indicates that more results might be available.
1373 *
1374 * Completes with a [ListSinksResponse]. 1374 * Completes with a [ListSinksResponse].
1375 * 1375 *
1376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1377 * error. 1377 * error.
1378 * 1378 *
1379 * If the used [http.Client] completes with an error when making a REST call, 1379 * If the used [http.Client] completes with an error when making a REST call,
1380 * this method will complete with the same error. 1380 * this method will complete with the same error.
1381 */ 1381 */
1382 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c ore.String pageToken}) { 1382 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke n, core.int pageSize}) {
1383 var _url = null; 1383 var _url = null;
1384 var _queryParams = new core.Map(); 1384 var _queryParams = new core.Map();
1385 var _uploadMedia = null; 1385 var _uploadMedia = null;
1386 var _uploadOptions = null; 1386 var _uploadOptions = null;
1387 var _downloadOptions = commons.DownloadOptions.Metadata; 1387 var _downloadOptions = commons.DownloadOptions.Metadata;
1388 var _body = null; 1388 var _body = null;
1389 1389
1390 if (parent == null) { 1390 if (parent == null) {
1391 throw new core.ArgumentError("Parameter parent is required."); 1391 throw new core.ArgumentError("Parameter parent is required.");
1392 } 1392 }
1393 if (pageToken != null) {
1394 _queryParams["pageToken"] = [pageToken];
1395 }
1393 if (pageSize != null) { 1396 if (pageSize != null) {
1394 _queryParams["pageSize"] = ["${pageSize}"]; 1397 _queryParams["pageSize"] = ["${pageSize}"];
1395 } 1398 }
1396 if (pageToken != null) {
1397 _queryParams["pageToken"] = [pageToken];
1398 }
1399 1399
1400 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; 1400 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks';
1401 1401
1402 var _response = _requester.request(_url, 1402 var _response = _requester.request(_url,
1403 "GET", 1403 "GET",
1404 body: _body, 1404 body: _body,
1405 queryParams: _queryParams, 1405 queryParams: _queryParams,
1406 uploadOptions: _uploadOptions, 1406 uploadOptions: _uploadOptions,
1407 uploadMedia: _uploadMedia, 1407 uploadMedia: _uploadMedia,
1408 downloadOptions: _downloadOptions); 1408 downloadOptions: _downloadOptions);
(...skipping 20 matching lines...) Expand all
1429 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" 1429 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1430 * Example: "projects/my-project-id/sinks/my-sink-id". 1430 * Example: "projects/my-project-id/sinks/my-sink-id".
1431 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". 1431 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$".
1432 * 1432 *
1433 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of 1433 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of
1434 * this field. When updating a sink, the effect of this field on the value of 1434 * this field. When updating a sink, the effect of this field on the value of
1435 * writer_identity in the updated sink depends on both the old and new values 1435 * writer_identity in the updated sink depends on both the old and new values
1436 * of this field: 1436 * of this field:
1437 * If the old and new values of this field are both false or both true, then 1437 * If the old and new values of this field are both false or both true, then
1438 * there is no change to the sink's writer_identity. 1438 * there is no change to the sink's writer_identity.
1439 * If the old value was false and the new value is true, then writer_identity 1439 * If the old value is false and the new value is true, then writer_identity
1440 * is changed to a unique service account. 1440 * is changed to a unique service account.
1441 * It is an error if the old value was true and the new value is false. 1441 * It is an error if the old value is true and the new value is false.
1442 * 1442 *
1443 * Completes with a [LogSink]. 1443 * Completes with a [LogSink].
1444 * 1444 *
1445 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1445 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1446 * error. 1446 * error.
1447 * 1447 *
1448 * If the used [http.Client] completes with an error when making a REST call, 1448 * If the used [http.Client] completes with an error when making a REST call,
1449 * this method will complete with the same error. 1449 * this method will complete with the same error.
1450 */ 1450 */
1451 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) { 1451 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 * Request parameters: 1556 * Request parameters:
1557 * 1557 *
1558 * [parent] - Required. The resource name that owns the logs: 1558 * [parent] - Required. The resource name that owns the logs:
1559 * "projects/[PROJECT_ID]" 1559 * "projects/[PROJECT_ID]"
1560 * "organizations/[ORGANIZATION_ID]" 1560 * "organizations/[ORGANIZATION_ID]"
1561 * "billingAccounts/[BILLING_ACCOUNT_ID]" 1561 * "billingAccounts/[BILLING_ACCOUNT_ID]"
1562 * "folders/[FOLDER_ID]" 1562 * "folders/[FOLDER_ID]"
1563 * 1563 *
1564 * Value must have pattern "^projects/[^/]+$". 1564 * Value must have pattern "^projects/[^/]+$".
1565 * 1565 *
1566 * [pageSize] - Optional. The maximum number of results to return from this
1567 * request. Non-positive values are ignored. The presence of nextPageToken in
1568 * the response indicates that more results might be available.
1569 *
1566 * [pageToken] - Optional. If present, then retrieve the next batch of results 1570 * [pageToken] - Optional. If present, then retrieve the next batch of results
1567 * from the preceding call to this method. pageToken must be the value of 1571 * from the preceding call to this method. pageToken must be the value of
1568 * nextPageToken from the previous response. The values of other method 1572 * nextPageToken from the previous response. The values of other method
1569 * parameters should be identical to those in the previous call. 1573 * parameters should be identical to those in the previous call.
1570 * 1574 *
1571 * [pageSize] - Optional. The maximum number of results to return from this
1572 * request. Non-positive values are ignored. The presence of nextPageToken in
1573 * the response indicates that more results might be available.
1574 *
1575 * Completes with a [ListLogsResponse]. 1575 * Completes with a [ListLogsResponse].
1576 * 1576 *
1577 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1577 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1578 * error. 1578 * error.
1579 * 1579 *
1580 * If the used [http.Client] completes with an error when making a REST call, 1580 * If the used [http.Client] completes with an error when making a REST call,
1581 * this method will complete with the same error. 1581 * this method will complete with the same error.
1582 */ 1582 */
1583 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken , core.int pageSize}) { 1583 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co re.String pageToken}) {
1584 var _url = null; 1584 var _url = null;
1585 var _queryParams = new core.Map(); 1585 var _queryParams = new core.Map();
1586 var _uploadMedia = null; 1586 var _uploadMedia = null;
1587 var _uploadOptions = null; 1587 var _uploadOptions = null;
1588 var _downloadOptions = commons.DownloadOptions.Metadata; 1588 var _downloadOptions = commons.DownloadOptions.Metadata;
1589 var _body = null; 1589 var _body = null;
1590 1590
1591 if (parent == null) { 1591 if (parent == null) {
1592 throw new core.ArgumentError("Parameter parent is required."); 1592 throw new core.ArgumentError("Parameter parent is required.");
1593 } 1593 }
1594 if (pageSize != null) {
1595 _queryParams["pageSize"] = ["${pageSize}"];
1596 }
1594 if (pageToken != null) { 1597 if (pageToken != null) {
1595 _queryParams["pageToken"] = [pageToken]; 1598 _queryParams["pageToken"] = [pageToken];
1596 } 1599 }
1597 if (pageSize != null) {
1598 _queryParams["pageSize"] = ["${pageSize}"];
1599 }
1600 1600
1601 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; 1601 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs';
1602 1602
1603 var _response = _requester.request(_url, 1603 var _response = _requester.request(_url,
1604 "GET", 1604 "GET",
1605 body: _body, 1605 body: _body,
1606 queryParams: _queryParams, 1606 queryParams: _queryParams,
1607 uploadOptions: _uploadOptions, 1607 uploadOptions: _uploadOptions,
1608 uploadMedia: _uploadMedia, 1608 uploadMedia: _uploadMedia,
1609 downloadOptions: _downloadOptions); 1609 downloadOptions: _downloadOptions);
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1880 * "projects/[PROJECT_ID]" 1880 * "projects/[PROJECT_ID]"
1881 * "organizations/[ORGANIZATION_ID]" 1881 * "organizations/[ORGANIZATION_ID]"
1882 * "billingAccounts/[BILLING_ACCOUNT_ID]" 1882 * "billingAccounts/[BILLING_ACCOUNT_ID]"
1883 * "folders/[FOLDER_ID]" 1883 * "folders/[FOLDER_ID]"
1884 * Examples: "projects/my-logging-project", "organizations/123456789". 1884 * Examples: "projects/my-logging-project", "organizations/123456789".
1885 * Value must have pattern "^projects/[^/]+$". 1885 * Value must have pattern "^projects/[^/]+$".
1886 * 1886 *
1887 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity 1887 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity
1888 * returned as writer_identity in the new sink. If this value is omitted or 1888 * returned as writer_identity in the new sink. If this value is omitted or
1889 * set to false, and if the sink's parent is a project, then the value 1889 * set to false, and if the sink's parent is a project, then the value
1890 * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the 1890 * returned as writer_identity is the same group or service account used by
1891 * same identity used before the addition of writer identities to this API. 1891 * Stackdriver Logging before the addition of writer identities to this API.
1892 * The sink's destination must be in the same project as the sink itself.If 1892 * The sink's destination must be in the same project as the sink itself.If
1893 * this field is set to true, or if the sink is owned by a non-project 1893 * this field is set to true, or if the sink is owned by a non-project
1894 * resource such as an organization, then the value of writer_identity will be 1894 * resource such as an organization, then the value of writer_identity will be
1895 * a unique service account used only for exports from the new sink. For more 1895 * a unique service account used only for exports from the new sink. For more
1896 * information, see writer_identity in LogSink. 1896 * information, see writer_identity in LogSink.
1897 * 1897 *
1898 * Completes with a [LogSink]. 1898 * Completes with a [LogSink].
1899 * 1899 *
1900 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1900 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1901 * error. 1901 * error.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" 2105 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2106 * Example: "projects/my-project-id/sinks/my-sink-id". 2106 * Example: "projects/my-project-id/sinks/my-sink-id".
2107 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". 2107 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$".
2108 * 2108 *
2109 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of 2109 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of
2110 * this field. When updating a sink, the effect of this field on the value of 2110 * this field. When updating a sink, the effect of this field on the value of
2111 * writer_identity in the updated sink depends on both the old and new values 2111 * writer_identity in the updated sink depends on both the old and new values
2112 * of this field: 2112 * of this field:
2113 * If the old and new values of this field are both false or both true, then 2113 * If the old and new values of this field are both false or both true, then
2114 * there is no change to the sink's writer_identity. 2114 * there is no change to the sink's writer_identity.
2115 * If the old value was false and the new value is true, then writer_identity 2115 * If the old value is false and the new value is true, then writer_identity
2116 * is changed to a unique service account. 2116 * is changed to a unique service account.
2117 * It is an error if the old value was true and the new value is false. 2117 * It is an error if the old value is true and the new value is false.
2118 * 2118 *
2119 * Completes with a [LogSink]. 2119 * Completes with a [LogSink].
2120 * 2120 *
2121 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2121 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2122 * error. 2122 * error.
2123 * 2123 *
2124 * If the used [http.Client] completes with an error when making a REST call, 2124 * If the used [http.Client] completes with an error when making a REST call,
2125 * this method will complete with the same error. 2125 * this method will complete with the same error.
2126 */ 2126 */
2127 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) { 2127 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) {
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
3850 WriteLogEntriesResponse(); 3850 WriteLogEntriesResponse();
3851 3851
3852 WriteLogEntriesResponse.fromJson(core.Map _json) { 3852 WriteLogEntriesResponse.fromJson(core.Map _json) {
3853 } 3853 }
3854 3854
3855 core.Map toJson() { 3855 core.Map toJson() {
3856 var _json = new core.Map(); 3856 var _json = new core.Map();
3857 return _json; 3857 return _json;
3858 } 3858 }
3859 } 3859 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/licensing/v1.dart ('k') | generated/googleapis/lib/monitoring/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698