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

Side by Side Diff: generated/googleapis/lib/logging/v2.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 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.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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 * Request parameters: 349 * Request parameters:
350 * 350 *
351 * [parent] - Required. The parent resource whose sinks are to be listed: 351 * [parent] - Required. The parent resource whose sinks are to be listed:
352 * "projects/[PROJECT_ID]" 352 * "projects/[PROJECT_ID]"
353 * "organizations/[ORGANIZATION_ID]" 353 * "organizations/[ORGANIZATION_ID]"
354 * "billingAccounts/[BILLING_ACCOUNT_ID]" 354 * "billingAccounts/[BILLING_ACCOUNT_ID]"
355 * "folders/[FOLDER_ID]" 355 * "folders/[FOLDER_ID]"
356 * 356 *
357 * Value must have pattern "^billingAccounts/[^/]+$". 357 * Value must have pattern "^billingAccounts/[^/]+$".
358 * 358 *
359 * [pageSize] - Optional. The maximum number of results to return from this
360 * request. Non-positive values are ignored. The presence of nextPageToken in
361 * the response indicates that more results might be available.
362 *
363 * [pageToken] - Optional. If present, then retrieve the next batch of results 359 * [pageToken] - Optional. If present, then retrieve the next batch of results
364 * from the preceding call to this method. pageToken must be the value of 360 * from the preceding call to this method. pageToken must be the value of
365 * nextPageToken from the previous response. The values of other method 361 * nextPageToken from the previous response. The values of other method
366 * parameters should be identical to those in the previous call. 362 * parameters should be identical to those in the previous call.
367 * 363 *
364 * [pageSize] - Optional. The maximum number of results to return from this
365 * request. Non-positive values are ignored. The presence of nextPageToken in
366 * the response indicates that more results might be available.
367 *
368 * Completes with a [ListSinksResponse]. 368 * Completes with a [ListSinksResponse].
369 * 369 *
370 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 370 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
371 * error. 371 * error.
372 * 372 *
373 * If the used [http.Client] completes with an error when making a REST call, 373 * If the used [http.Client] completes with an error when making a REST call,
374 * this method will complete with the same error. 374 * this method will complete with the same error.
375 */ 375 */
376 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c ore.String pageToken}) { 376 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke n, core.int pageSize}) {
377 var _url = null; 377 var _url = null;
378 var _queryParams = new core.Map(); 378 var _queryParams = new core.Map();
379 var _uploadMedia = null; 379 var _uploadMedia = null;
380 var _uploadOptions = null; 380 var _uploadOptions = null;
381 var _downloadOptions = commons.DownloadOptions.Metadata; 381 var _downloadOptions = commons.DownloadOptions.Metadata;
382 var _body = null; 382 var _body = null;
383 383
384 if (parent == null) { 384 if (parent == null) {
385 throw new core.ArgumentError("Parameter parent is required."); 385 throw new core.ArgumentError("Parameter parent is required.");
386 } 386 }
387 if (pageToken != null) {
388 _queryParams["pageToken"] = [pageToken];
389 }
387 if (pageSize != null) { 390 if (pageSize != null) {
388 _queryParams["pageSize"] = ["${pageSize}"]; 391 _queryParams["pageSize"] = ["${pageSize}"];
389 } 392 }
390 if (pageToken != null) {
391 _queryParams["pageToken"] = [pageToken];
392 }
393 393
394 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; 394 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks';
395 395
396 var _response = _requester.request(_url, 396 var _response = _requester.request(_url,
397 "GET", 397 "GET",
398 body: _body, 398 body: _body,
399 queryParams: _queryParams, 399 queryParams: _queryParams,
400 uploadOptions: _uploadOptions, 400 uploadOptions: _uploadOptions,
401 uploadMedia: _uploadMedia, 401 uploadMedia: _uploadMedia,
402 downloadOptions: _downloadOptions); 402 downloadOptions: _downloadOptions);
403 return _response.then((data) => new ListSinksResponse.fromJson(data)); 403 return _response.then((data) => new ListSinksResponse.fromJson(data));
404 } 404 }
405 405
406 /** 406 /**
407 * Updates a sink. If the named sink doesn't exist, then this method is 407 * Updates a sink. This method replaces the following fields in the existing
408 * identical to sinks.create. If the named sink does exist, then this method 408 * sink with values from the new sink: destination, filter,
409 * replaces the following fields in the existing sink with values from the new 409 * output_version_format, start_time, and end_time. The updated sink might
410 * sink: destination, filter, output_version_format, start_time, and end_time. 410 * also have a new writer_identity; see the unique_writer_identity field.
411 * The updated filter might also have a new writer_identity; see the
412 * unique_writer_identity field.
413 * 411 *
414 * [request] - The metadata request object. 412 * [request] - The metadata request object.
415 * 413 *
414 * Request parameters:
415 *
416 * [sinkName] - Required. The full resource name of the sink to update,
417 * including the parent resource and the sink identifier:
418 * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
419 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
420 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
421 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
422 * Example: "projects/my-project-id/sinks/my-sink-id".
423 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$".
424 *
425 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of
426 * this field. When updating a sink, the effect of this field on the value of
427 * writer_identity in the updated sink depends on both the old and new values
428 * of this field:
429 * If the old and new values of this field are both false or both true, then
430 * there is no change to the sink's writer_identity.
431 * If the old value is false and the new value is true, then writer_identity
432 * is changed to a unique service account.
433 * It is an error if the old value is true and the new value is set to false
434 * or defaulted to false.
435 *
436 * Completes with a [LogSink].
437 *
438 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
439 * error.
440 *
441 * If the used [http.Client] completes with an error when making a REST call,
442 * this method will complete with the same error.
443 */
444 async.Future<LogSink> patch(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) {
445 var _url = null;
446 var _queryParams = new core.Map();
447 var _uploadMedia = null;
448 var _uploadOptions = null;
449 var _downloadOptions = commons.DownloadOptions.Metadata;
450 var _body = null;
451
452 if (request != null) {
453 _body = convert.JSON.encode((request).toJson());
454 }
455 if (sinkName == null) {
456 throw new core.ArgumentError("Parameter sinkName is required.");
457 }
458 if (uniqueWriterIdentity != null) {
459 _queryParams["uniqueWriterIdentity"] = ["${uniqueWriterIdentity}"];
460 }
461
462 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$sinkName');
463
464 var _response = _requester.request(_url,
465 "PATCH",
466 body: _body,
467 queryParams: _queryParams,
468 uploadOptions: _uploadOptions,
469 uploadMedia: _uploadMedia,
470 downloadOptions: _downloadOptions);
471 return _response.then((data) => new LogSink.fromJson(data));
472 }
473
474 /**
475 * Updates a sink. This method replaces the following fields in the existing
476 * sink with values from the new sink: destination, filter,
477 * output_version_format, start_time, and end_time. The updated sink might
478 * also have a new writer_identity; see the unique_writer_identity field.
479 *
480 * [request] - The metadata request object.
481 *
416 * Request parameters: 482 * Request parameters:
417 * 483 *
418 * [sinkName] - Required. The full resource name of the sink to update, 484 * [sinkName] - Required. The full resource name of the sink to update,
419 * including the parent resource and the sink identifier: 485 * including the parent resource and the sink identifier:
420 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" 486 * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
421 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" 487 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
422 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" 488 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
423 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" 489 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
424 * Example: "projects/my-project-id/sinks/my-sink-id". 490 * Example: "projects/my-project-id/sinks/my-sink-id".
425 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". 491 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$".
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 * Request parameters: 933 * Request parameters:
868 * 934 *
869 * [parent] - Required. The parent resource whose sinks are to be listed: 935 * [parent] - Required. The parent resource whose sinks are to be listed:
870 * "projects/[PROJECT_ID]" 936 * "projects/[PROJECT_ID]"
871 * "organizations/[ORGANIZATION_ID]" 937 * "organizations/[ORGANIZATION_ID]"
872 * "billingAccounts/[BILLING_ACCOUNT_ID]" 938 * "billingAccounts/[BILLING_ACCOUNT_ID]"
873 * "folders/[FOLDER_ID]" 939 * "folders/[FOLDER_ID]"
874 * 940 *
875 * Value must have pattern "^folders/[^/]+$". 941 * Value must have pattern "^folders/[^/]+$".
876 * 942 *
877 * [pageSize] - Optional. The maximum number of results to return from this
878 * request. Non-positive values are ignored. The presence of nextPageToken in
879 * the response indicates that more results might be available.
880 *
881 * [pageToken] - Optional. If present, then retrieve the next batch of results 943 * [pageToken] - Optional. If present, then retrieve the next batch of results
882 * from the preceding call to this method. pageToken must be the value of 944 * from the preceding call to this method. pageToken must be the value of
883 * nextPageToken from the previous response. The values of other method 945 * nextPageToken from the previous response. The values of other method
884 * parameters should be identical to those in the previous call. 946 * parameters should be identical to those in the previous call.
885 * 947 *
948 * [pageSize] - Optional. The maximum number of results to return from this
949 * request. Non-positive values are ignored. The presence of nextPageToken in
950 * the response indicates that more results might be available.
951 *
886 * Completes with a [ListSinksResponse]. 952 * Completes with a [ListSinksResponse].
887 * 953 *
888 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 954 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
889 * error. 955 * error.
890 * 956 *
891 * If the used [http.Client] completes with an error when making a REST call, 957 * If the used [http.Client] completes with an error when making a REST call,
892 * this method will complete with the same error. 958 * this method will complete with the same error.
893 */ 959 */
894 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c ore.String pageToken}) { 960 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke n, core.int pageSize}) {
895 var _url = null; 961 var _url = null;
896 var _queryParams = new core.Map(); 962 var _queryParams = new core.Map();
897 var _uploadMedia = null; 963 var _uploadMedia = null;
898 var _uploadOptions = null; 964 var _uploadOptions = null;
899 var _downloadOptions = commons.DownloadOptions.Metadata; 965 var _downloadOptions = commons.DownloadOptions.Metadata;
900 var _body = null; 966 var _body = null;
901 967
902 if (parent == null) { 968 if (parent == null) {
903 throw new core.ArgumentError("Parameter parent is required."); 969 throw new core.ArgumentError("Parameter parent is required.");
904 } 970 }
971 if (pageToken != null) {
972 _queryParams["pageToken"] = [pageToken];
973 }
905 if (pageSize != null) { 974 if (pageSize != null) {
906 _queryParams["pageSize"] = ["${pageSize}"]; 975 _queryParams["pageSize"] = ["${pageSize}"];
907 } 976 }
908 if (pageToken != null) {
909 _queryParams["pageToken"] = [pageToken];
910 }
911 977
912 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; 978 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks';
913 979
914 var _response = _requester.request(_url, 980 var _response = _requester.request(_url,
915 "GET", 981 "GET",
916 body: _body, 982 body: _body,
917 queryParams: _queryParams, 983 queryParams: _queryParams,
918 uploadOptions: _uploadOptions, 984 uploadOptions: _uploadOptions,
919 uploadMedia: _uploadMedia, 985 uploadMedia: _uploadMedia,
920 downloadOptions: _downloadOptions); 986 downloadOptions: _downloadOptions);
921 return _response.then((data) => new ListSinksResponse.fromJson(data)); 987 return _response.then((data) => new ListSinksResponse.fromJson(data));
922 } 988 }
923 989
924 /** 990 /**
925 * Updates a sink. If the named sink doesn't exist, then this method is 991 * Updates a sink. This method replaces the following fields in the existing
926 * identical to sinks.create. If the named sink does exist, then this method 992 * sink with values from the new sink: destination, filter,
927 * replaces the following fields in the existing sink with values from the new 993 * output_version_format, start_time, and end_time. The updated sink might
928 * sink: destination, filter, output_version_format, start_time, and end_time. 994 * also have a new writer_identity; see the unique_writer_identity field.
929 * The updated filter might also have a new writer_identity; see the
930 * unique_writer_identity field.
931 * 995 *
932 * [request] - The metadata request object. 996 * [request] - The metadata request object.
933 * 997 *
998 * Request parameters:
999 *
1000 * [sinkName] - Required. The full resource name of the sink to update,
1001 * including the parent resource and the sink identifier:
1002 * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
1003 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
1004 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
1005 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1006 * Example: "projects/my-project-id/sinks/my-sink-id".
1007 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$".
1008 *
1009 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of
1010 * this field. When updating a sink, the effect of this field on the value of
1011 * writer_identity in the updated sink depends on both the old and new values
1012 * of this field:
1013 * If the old and new values of this field are both false or both true, then
1014 * there is no change to the sink's writer_identity.
1015 * If the old value is false and the new value is true, then writer_identity
1016 * is changed to a unique service account.
1017 * It is an error if the old value is true and the new value is set to false
1018 * or defaulted to false.
1019 *
1020 * Completes with a [LogSink].
1021 *
1022 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1023 * error.
1024 *
1025 * If the used [http.Client] completes with an error when making a REST call,
1026 * this method will complete with the same error.
1027 */
1028 async.Future<LogSink> patch(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) {
1029 var _url = null;
1030 var _queryParams = new core.Map();
1031 var _uploadMedia = null;
1032 var _uploadOptions = null;
1033 var _downloadOptions = commons.DownloadOptions.Metadata;
1034 var _body = null;
1035
1036 if (request != null) {
1037 _body = convert.JSON.encode((request).toJson());
1038 }
1039 if (sinkName == null) {
1040 throw new core.ArgumentError("Parameter sinkName is required.");
1041 }
1042 if (uniqueWriterIdentity != null) {
1043 _queryParams["uniqueWriterIdentity"] = ["${uniqueWriterIdentity}"];
1044 }
1045
1046 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$sinkName');
1047
1048 var _response = _requester.request(_url,
1049 "PATCH",
1050 body: _body,
1051 queryParams: _queryParams,
1052 uploadOptions: _uploadOptions,
1053 uploadMedia: _uploadMedia,
1054 downloadOptions: _downloadOptions);
1055 return _response.then((data) => new LogSink.fromJson(data));
1056 }
1057
1058 /**
1059 * Updates a sink. This method replaces the following fields in the existing
1060 * sink with values from the new sink: destination, filter,
1061 * output_version_format, start_time, and end_time. The updated sink might
1062 * also have a new writer_identity; see the unique_writer_identity field.
1063 *
1064 * [request] - The metadata request object.
1065 *
934 * Request parameters: 1066 * Request parameters:
935 * 1067 *
936 * [sinkName] - Required. The full resource name of the sink to update, 1068 * [sinkName] - Required. The full resource name of the sink to update,
937 * including the parent resource and the sink identifier: 1069 * including the parent resource and the sink identifier:
938 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" 1070 * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
939 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" 1071 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
940 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" 1072 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
941 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" 1073 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
942 * Example: "projects/my-project-id/sinks/my-sink-id". 1074 * Example: "projects/my-project-id/sinks/my-sink-id".
943 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". 1075 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$".
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 1131
1000 MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) : 1132 MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) :
1001 _requester = client; 1133 _requester = client;
1002 1134
1003 /** 1135 /**
1004 * Lists the descriptors for monitored resource types used by Stackdriver 1136 * Lists the descriptors for monitored resource types used by Stackdriver
1005 * Logging. 1137 * Logging.
1006 * 1138 *
1007 * Request parameters: 1139 * Request parameters:
1008 * 1140 *
1009 * [pageSize] - Optional. The maximum number of results to return from this
1010 * request. Non-positive values are ignored. The presence of nextPageToken in
1011 * the response indicates that more results might be available.
1012 *
1013 * [pageToken] - Optional. If present, then retrieve the next batch of results 1141 * [pageToken] - Optional. If present, then retrieve the next batch of results
1014 * from the preceding call to this method. pageToken must be the value of 1142 * from the preceding call to this method. pageToken must be the value of
1015 * nextPageToken from the previous response. The values of other method 1143 * nextPageToken from the previous response. The values of other method
1016 * parameters should be identical to those in the previous call. 1144 * parameters should be identical to those in the previous call.
1017 * 1145 *
1146 * [pageSize] - Optional. The maximum number of results to return from this
1147 * request. Non-positive values are ignored. The presence of nextPageToken in
1148 * the response indicates that more results might be available.
1149 *
1018 * Completes with a [ListMonitoredResourceDescriptorsResponse]. 1150 * Completes with a [ListMonitoredResourceDescriptorsResponse].
1019 * 1151 *
1020 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1152 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1021 * error. 1153 * error.
1022 * 1154 *
1023 * If the used [http.Client] completes with an error when making a REST call, 1155 * If the used [http.Client] completes with an error when making a REST call,
1024 * this method will complete with the same error. 1156 * this method will complete with the same error.
1025 */ 1157 */
1026 async.Future<ListMonitoredResourceDescriptorsResponse> list({core.int pageSize , core.String pageToken}) { 1158 async.Future<ListMonitoredResourceDescriptorsResponse> list({core.String pageT oken, core.int pageSize}) {
1027 var _url = null; 1159 var _url = null;
1028 var _queryParams = new core.Map(); 1160 var _queryParams = new core.Map();
1029 var _uploadMedia = null; 1161 var _uploadMedia = null;
1030 var _uploadOptions = null; 1162 var _uploadOptions = null;
1031 var _downloadOptions = commons.DownloadOptions.Metadata; 1163 var _downloadOptions = commons.DownloadOptions.Metadata;
1032 var _body = null; 1164 var _body = null;
1033 1165
1166 if (pageToken != null) {
1167 _queryParams["pageToken"] = [pageToken];
1168 }
1034 if (pageSize != null) { 1169 if (pageSize != null) {
1035 _queryParams["pageSize"] = ["${pageSize}"]; 1170 _queryParams["pageSize"] = ["${pageSize}"];
1036 } 1171 }
1037 if (pageToken != null) {
1038 _queryParams["pageToken"] = [pageToken];
1039 }
1040 1172
1041 _url = 'v2/monitoredResourceDescriptors'; 1173 _url = 'v2/monitoredResourceDescriptors';
1042 1174
1043 var _response = _requester.request(_url, 1175 var _response = _requester.request(_url,
1044 "GET", 1176 "GET",
1045 body: _body, 1177 body: _body,
1046 queryParams: _queryParams, 1178 queryParams: _queryParams,
1047 uploadOptions: _uploadOptions, 1179 uploadOptions: _uploadOptions,
1048 uploadMedia: _uploadMedia, 1180 uploadMedia: _uploadMedia,
1049 downloadOptions: _downloadOptions); 1181 downloadOptions: _downloadOptions);
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 "GET", 1536 "GET",
1405 body: _body, 1537 body: _body,
1406 queryParams: _queryParams, 1538 queryParams: _queryParams,
1407 uploadOptions: _uploadOptions, 1539 uploadOptions: _uploadOptions,
1408 uploadMedia: _uploadMedia, 1540 uploadMedia: _uploadMedia,
1409 downloadOptions: _downloadOptions); 1541 downloadOptions: _downloadOptions);
1410 return _response.then((data) => new ListSinksResponse.fromJson(data)); 1542 return _response.then((data) => new ListSinksResponse.fromJson(data));
1411 } 1543 }
1412 1544
1413 /** 1545 /**
1414 * Updates a sink. If the named sink doesn't exist, then this method is 1546 * Updates a sink. This method replaces the following fields in the existing
1415 * identical to sinks.create. If the named sink does exist, then this method 1547 * sink with values from the new sink: destination, filter,
1416 * replaces the following fields in the existing sink with values from the new 1548 * output_version_format, start_time, and end_time. The updated sink might
1417 * sink: destination, filter, output_version_format, start_time, and end_time. 1549 * also have a new writer_identity; see the unique_writer_identity field.
1418 * The updated filter might also have a new writer_identity; see the
1419 * unique_writer_identity field.
1420 * 1550 *
1421 * [request] - The metadata request object. 1551 * [request] - The metadata request object.
1422 * 1552 *
1553 * Request parameters:
1554 *
1555 * [sinkName] - Required. The full resource name of the sink to update,
1556 * including the parent resource and the sink identifier:
1557 * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
1558 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
1559 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
1560 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1561 * Example: "projects/my-project-id/sinks/my-sink-id".
1562 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$".
1563 *
1564 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of
1565 * this field. When updating a sink, the effect of this field on the value of
1566 * writer_identity in the updated sink depends on both the old and new values
1567 * of this field:
1568 * If the old and new values of this field are both false or both true, then
1569 * there is no change to the sink's writer_identity.
1570 * If the old value is false and the new value is true, then writer_identity
1571 * is changed to a unique service account.
1572 * It is an error if the old value is true and the new value is set to false
1573 * or defaulted to false.
1574 *
1575 * Completes with a [LogSink].
1576 *
1577 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1578 * error.
1579 *
1580 * If the used [http.Client] completes with an error when making a REST call,
1581 * this method will complete with the same error.
1582 */
1583 async.Future<LogSink> patch(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) {
1584 var _url = null;
1585 var _queryParams = new core.Map();
1586 var _uploadMedia = null;
1587 var _uploadOptions = null;
1588 var _downloadOptions = commons.DownloadOptions.Metadata;
1589 var _body = null;
1590
1591 if (request != null) {
1592 _body = convert.JSON.encode((request).toJson());
1593 }
1594 if (sinkName == null) {
1595 throw new core.ArgumentError("Parameter sinkName is required.");
1596 }
1597 if (uniqueWriterIdentity != null) {
1598 _queryParams["uniqueWriterIdentity"] = ["${uniqueWriterIdentity}"];
1599 }
1600
1601 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$sinkName');
1602
1603 var _response = _requester.request(_url,
1604 "PATCH",
1605 body: _body,
1606 queryParams: _queryParams,
1607 uploadOptions: _uploadOptions,
1608 uploadMedia: _uploadMedia,
1609 downloadOptions: _downloadOptions);
1610 return _response.then((data) => new LogSink.fromJson(data));
1611 }
1612
1613 /**
1614 * Updates a sink. This method replaces the following fields in the existing
1615 * sink with values from the new sink: destination, filter,
1616 * output_version_format, start_time, and end_time. The updated sink might
1617 * also have a new writer_identity; see the unique_writer_identity field.
1618 *
1619 * [request] - The metadata request object.
1620 *
1423 * Request parameters: 1621 * Request parameters:
1424 * 1622 *
1425 * [sinkName] - Required. The full resource name of the sink to update, 1623 * [sinkName] - Required. The full resource name of the sink to update,
1426 * including the parent resource and the sink identifier: 1624 * including the parent resource and the sink identifier:
1427 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" 1625 * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
1428 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" 1626 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
1429 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" 1627 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
1430 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" 1628 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1431 * Example: "projects/my-project-id/sinks/my-sink-id". 1629 * Example: "projects/my-project-id/sinks/my-sink-id".
1432 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". 1630 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$".
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1755 /** 1953 /**
1756 * Lists logs-based metrics. 1954 * Lists logs-based metrics.
1757 * 1955 *
1758 * Request parameters: 1956 * Request parameters:
1759 * 1957 *
1760 * [parent] - Required. The name of the project containing the metrics: 1958 * [parent] - Required. The name of the project containing the metrics:
1761 * "projects/[PROJECT_ID]" 1959 * "projects/[PROJECT_ID]"
1762 * 1960 *
1763 * Value must have pattern "^projects/[^/]+$". 1961 * Value must have pattern "^projects/[^/]+$".
1764 * 1962 *
1765 * [pageSize] - Optional. The maximum number of results to return from this
1766 * request. Non-positive values are ignored. The presence of nextPageToken in
1767 * the response indicates that more results might be available.
1768 *
1769 * [pageToken] - Optional. If present, then retrieve the next batch of results 1963 * [pageToken] - Optional. If present, then retrieve the next batch of results
1770 * from the preceding call to this method. pageToken must be the value of 1964 * from the preceding call to this method. pageToken must be the value of
1771 * nextPageToken from the previous response. The values of other method 1965 * nextPageToken from the previous response. The values of other method
1772 * parameters should be identical to those in the previous call. 1966 * parameters should be identical to those in the previous call.
1773 * 1967 *
1968 * [pageSize] - Optional. The maximum number of results to return from this
1969 * request. Non-positive values are ignored. The presence of nextPageToken in
1970 * the response indicates that more results might be available.
1971 *
1774 * Completes with a [ListLogMetricsResponse]. 1972 * Completes with a [ListLogMetricsResponse].
1775 * 1973 *
1776 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1974 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1777 * error. 1975 * error.
1778 * 1976 *
1779 * If the used [http.Client] completes with an error when making a REST call, 1977 * If the used [http.Client] completes with an error when making a REST call,
1780 * this method will complete with the same error. 1978 * this method will complete with the same error.
1781 */ 1979 */
1782 async.Future<ListLogMetricsResponse> list(core.String parent, {core.int pageSi ze, core.String pageToken}) { 1980 async.Future<ListLogMetricsResponse> list(core.String parent, {core.String pag eToken, core.int pageSize}) {
1783 var _url = null; 1981 var _url = null;
1784 var _queryParams = new core.Map(); 1982 var _queryParams = new core.Map();
1785 var _uploadMedia = null; 1983 var _uploadMedia = null;
1786 var _uploadOptions = null; 1984 var _uploadOptions = null;
1787 var _downloadOptions = commons.DownloadOptions.Metadata; 1985 var _downloadOptions = commons.DownloadOptions.Metadata;
1788 var _body = null; 1986 var _body = null;
1789 1987
1790 if (parent == null) { 1988 if (parent == null) {
1791 throw new core.ArgumentError("Parameter parent is required."); 1989 throw new core.ArgumentError("Parameter parent is required.");
1792 } 1990 }
1991 if (pageToken != null) {
1992 _queryParams["pageToken"] = [pageToken];
1993 }
1793 if (pageSize != null) { 1994 if (pageSize != null) {
1794 _queryParams["pageSize"] = ["${pageSize}"]; 1995 _queryParams["pageSize"] = ["${pageSize}"];
1795 } 1996 }
1796 if (pageToken != null) {
1797 _queryParams["pageToken"] = [pageToken];
1798 }
1799 1997
1800 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/metrics' ; 1998 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/metrics' ;
1801 1999
1802 var _response = _requester.request(_url, 2000 var _response = _requester.request(_url,
1803 "GET", 2001 "GET",
1804 body: _body, 2002 body: _body,
1805 queryParams: _queryParams, 2003 queryParams: _queryParams,
1806 uploadOptions: _uploadOptions, 2004 uploadOptions: _uploadOptions,
1807 uploadMedia: _uploadMedia, 2005 uploadMedia: _uploadMedia,
1808 downloadOptions: _downloadOptions); 2006 downloadOptions: _downloadOptions);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2081 "GET", 2279 "GET",
2082 body: _body, 2280 body: _body,
2083 queryParams: _queryParams, 2281 queryParams: _queryParams,
2084 uploadOptions: _uploadOptions, 2282 uploadOptions: _uploadOptions,
2085 uploadMedia: _uploadMedia, 2283 uploadMedia: _uploadMedia,
2086 downloadOptions: _downloadOptions); 2284 downloadOptions: _downloadOptions);
2087 return _response.then((data) => new ListSinksResponse.fromJson(data)); 2285 return _response.then((data) => new ListSinksResponse.fromJson(data));
2088 } 2286 }
2089 2287
2090 /** 2288 /**
2091 * Updates a sink. If the named sink doesn't exist, then this method is 2289 * Updates a sink. This method replaces the following fields in the existing
2092 * identical to sinks.create. If the named sink does exist, then this method 2290 * sink with values from the new sink: destination, filter,
2093 * replaces the following fields in the existing sink with values from the new 2291 * output_version_format, start_time, and end_time. The updated sink might
2094 * sink: destination, filter, output_version_format, start_time, and end_time. 2292 * also have a new writer_identity; see the unique_writer_identity field.
2095 * The updated filter might also have a new writer_identity; see the
2096 * unique_writer_identity field.
2097 * 2293 *
2098 * [request] - The metadata request object. 2294 * [request] - The metadata request object.
2099 * 2295 *
2296 * Request parameters:
2297 *
2298 * [sinkName] - Required. The full resource name of the sink to update,
2299 * including the parent resource and the sink identifier:
2300 * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
2301 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
2302 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
2303 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2304 * Example: "projects/my-project-id/sinks/my-sink-id".
2305 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$".
2306 *
2307 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of
2308 * this field. When updating a sink, the effect of this field on the value of
2309 * writer_identity in the updated sink depends on both the old and new values
2310 * of this field:
2311 * If the old and new values of this field are both false or both true, then
2312 * there is no change to the sink's writer_identity.
2313 * If the old value is false and the new value is true, then writer_identity
2314 * is changed to a unique service account.
2315 * It is an error if the old value is true and the new value is set to false
2316 * or defaulted to false.
2317 *
2318 * Completes with a [LogSink].
2319 *
2320 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2321 * error.
2322 *
2323 * If the used [http.Client] completes with an error when making a REST call,
2324 * this method will complete with the same error.
2325 */
2326 async.Future<LogSink> patch(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) {
2327 var _url = null;
2328 var _queryParams = new core.Map();
2329 var _uploadMedia = null;
2330 var _uploadOptions = null;
2331 var _downloadOptions = commons.DownloadOptions.Metadata;
2332 var _body = null;
2333
2334 if (request != null) {
2335 _body = convert.JSON.encode((request).toJson());
2336 }
2337 if (sinkName == null) {
2338 throw new core.ArgumentError("Parameter sinkName is required.");
2339 }
2340 if (uniqueWriterIdentity != null) {
2341 _queryParams["uniqueWriterIdentity"] = ["${uniqueWriterIdentity}"];
2342 }
2343
2344 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$sinkName');
2345
2346 var _response = _requester.request(_url,
2347 "PATCH",
2348 body: _body,
2349 queryParams: _queryParams,
2350 uploadOptions: _uploadOptions,
2351 uploadMedia: _uploadMedia,
2352 downloadOptions: _downloadOptions);
2353 return _response.then((data) => new LogSink.fromJson(data));
2354 }
2355
2356 /**
2357 * Updates a sink. This method replaces the following fields in the existing
2358 * sink with values from the new sink: destination, filter,
2359 * output_version_format, start_time, and end_time. The updated sink might
2360 * also have a new writer_identity; see the unique_writer_identity field.
2361 *
2362 * [request] - The metadata request object.
2363 *
2100 * Request parameters: 2364 * Request parameters:
2101 * 2365 *
2102 * [sinkName] - Required. The full resource name of the sink to update, 2366 * [sinkName] - Required. The full resource name of the sink to update,
2103 * including the parent resource and the sink identifier: 2367 * including the parent resource and the sink identifier:
2104 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" 2368 * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
2105 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" 2369 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
2106 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" 2370 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
2107 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" 2371 * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2108 * Example: "projects/my-project-id/sinks/my-sink-id". 2372 * Example: "projects/my-project-id/sinks/my-sink-id".
2109 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". 2373 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$".
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
2206 * being served from cache. This field is only meaningful if cache_hit is 2470 * being served from cache. This field is only meaningful if cache_hit is
2207 * True. 2471 * True.
2208 */ 2472 */
2209 core.bool cacheValidatedWithOriginServer; 2473 core.bool cacheValidatedWithOriginServer;
2210 /** 2474 /**
2211 * The request processing latency on the server, from the time the request was 2475 * The request processing latency on the server, from the time the request was
2212 * received until the response was sent. 2476 * received until the response was sent.
2213 */ 2477 */
2214 core.String latency; 2478 core.String latency;
2215 /** 2479 /**
2480 * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
2481 */
2482 core.String protocol;
2483 /**
2216 * The referer URL of the request, as defined in HTTP/1.1 Header Field 2484 * The referer URL of the request, as defined in HTTP/1.1 Header Field
2217 * Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). 2485 * Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
2218 */ 2486 */
2219 core.String referer; 2487 core.String referer;
2220 /** 2488 /**
2221 * The IP address (IPv4 or IPv6) of the client that issued the HTTP request. 2489 * The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
2222 * Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329". 2490 * Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
2223 */ 2491 */
2224 core.String remoteIp; 2492 core.String remoteIp;
2225 /** The request method. Examples: "GET", "HEAD", "PUT", "POST". */ 2493 /** The request method. Examples: "GET", "HEAD", "PUT", "POST". */
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2266 } 2534 }
2267 if (_json.containsKey("cacheLookup")) { 2535 if (_json.containsKey("cacheLookup")) {
2268 cacheLookup = _json["cacheLookup"]; 2536 cacheLookup = _json["cacheLookup"];
2269 } 2537 }
2270 if (_json.containsKey("cacheValidatedWithOriginServer")) { 2538 if (_json.containsKey("cacheValidatedWithOriginServer")) {
2271 cacheValidatedWithOriginServer = _json["cacheValidatedWithOriginServer"]; 2539 cacheValidatedWithOriginServer = _json["cacheValidatedWithOriginServer"];
2272 } 2540 }
2273 if (_json.containsKey("latency")) { 2541 if (_json.containsKey("latency")) {
2274 latency = _json["latency"]; 2542 latency = _json["latency"];
2275 } 2543 }
2544 if (_json.containsKey("protocol")) {
2545 protocol = _json["protocol"];
2546 }
2276 if (_json.containsKey("referer")) { 2547 if (_json.containsKey("referer")) {
2277 referer = _json["referer"]; 2548 referer = _json["referer"];
2278 } 2549 }
2279 if (_json.containsKey("remoteIp")) { 2550 if (_json.containsKey("remoteIp")) {
2280 remoteIp = _json["remoteIp"]; 2551 remoteIp = _json["remoteIp"];
2281 } 2552 }
2282 if (_json.containsKey("requestMethod")) { 2553 if (_json.containsKey("requestMethod")) {
2283 requestMethod = _json["requestMethod"]; 2554 requestMethod = _json["requestMethod"];
2284 } 2555 }
2285 if (_json.containsKey("requestSize")) { 2556 if (_json.containsKey("requestSize")) {
(...skipping 26 matching lines...) Expand all
2312 } 2583 }
2313 if (cacheLookup != null) { 2584 if (cacheLookup != null) {
2314 _json["cacheLookup"] = cacheLookup; 2585 _json["cacheLookup"] = cacheLookup;
2315 } 2586 }
2316 if (cacheValidatedWithOriginServer != null) { 2587 if (cacheValidatedWithOriginServer != null) {
2317 _json["cacheValidatedWithOriginServer"] = cacheValidatedWithOriginServer; 2588 _json["cacheValidatedWithOriginServer"] = cacheValidatedWithOriginServer;
2318 } 2589 }
2319 if (latency != null) { 2590 if (latency != null) {
2320 _json["latency"] = latency; 2591 _json["latency"] = latency;
2321 } 2592 }
2593 if (protocol != null) {
2594 _json["protocol"] = protocol;
2595 }
2322 if (referer != null) { 2596 if (referer != null) {
2323 _json["referer"] = referer; 2597 _json["referer"] = referer;
2324 } 2598 }
2325 if (remoteIp != null) { 2599 if (remoteIp != null) {
2326 _json["remoteIp"] = remoteIp; 2600 _json["remoteIp"] = remoteIp;
2327 } 2601 }
2328 if (requestMethod != null) { 2602 if (requestMethod != null) {
2329 _json["requestMethod"] = requestMethod; 2603 _json["requestMethod"] = requestMethod;
2330 } 2604 }
2331 if (requestSize != null) { 2605 if (requestSize != null) {
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
3072 * characters _-.,+!*',()%/. The forward-slash character (/) denotes a 3346 * characters _-.,+!*',()%/. The forward-slash character (/) denotes a
3073 * hierarchy of name pieces, and it cannot be the first character of the 3347 * hierarchy of name pieces, and it cannot be the first character of the
3074 * name.The metric identifier in this field must not be URL-encoded 3348 * name.The metric identifier in this field must not be URL-encoded
3075 * (https://en.wikipedia.org/wiki/Percent-encoding). However, when the metric 3349 * (https://en.wikipedia.org/wiki/Percent-encoding). However, when the metric
3076 * identifier appears as the [METRIC_ID] part of a metric_name API parameter, 3350 * identifier appears as the [METRIC_ID] part of a metric_name API parameter,
3077 * then the metric identifier must be URL-encoded. Example: 3351 * then the metric identifier must be URL-encoded. Example:
3078 * "projects/my-project/metrics/nginx%2Frequests". 3352 * "projects/my-project/metrics/nginx%2Frequests".
3079 */ 3353 */
3080 core.String name; 3354 core.String name;
3081 /** 3355 /**
3082 * Output only. The API version that created or updated this metric. The 3356 * Output only. The API version that created or updated this metric. This
3083 * version also dictates the syntax of the filter expression. When a value for 3357 * value is currently always set to V2.
3084 * this field is missing, the default value of V2 should be assumed.
3085 * Possible string values are: 3358 * Possible string values are:
3086 * - "V2" : Stackdriver Logging API v2. 3359 * - "V2" : Stackdriver Logging API v2.
3087 * - "V1" : Stackdriver Logging API v1. 3360 * - "V1" : Stackdriver Logging API v1.
3088 */ 3361 */
3089 core.String version; 3362 core.String version;
3090 3363
3091 LogMetric(); 3364 LogMetric();
3092 3365
3093 LogMetric.fromJson(core.Map _json) { 3366 LogMetric.fromJson(core.Map _json) {
3094 if (_json.containsKey("description")) { 3367 if (_json.containsKey("description")) {
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
3892 WriteLogEntriesResponse(); 4165 WriteLogEntriesResponse();
3893 4166
3894 WriteLogEntriesResponse.fromJson(core.Map _json) { 4167 WriteLogEntriesResponse.fromJson(core.Map _json) {
3895 } 4168 }
3896 4169
3897 core.Map<core.String, core.Object> toJson() { 4170 core.Map<core.String, core.Object> toJson() {
3898 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4171 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3899 return _json; 4172 return _json;
3900 } 4173 }
3901 } 4174 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/kgsearch/v1.dart ('k') | generated/googleapis/lib/manufacturers/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698