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

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

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 8 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 "POST", 215 "POST",
216 body: _body, 216 body: _body,
217 queryParams: _queryParams, 217 queryParams: _queryParams,
218 uploadOptions: _uploadOptions, 218 uploadOptions: _uploadOptions,
219 uploadMedia: _uploadMedia, 219 uploadMedia: _uploadMedia,
220 downloadOptions: _downloadOptions); 220 downloadOptions: _downloadOptions);
221 return _response.then((data) => new ListLogEntriesResponse.fromJson(data)); 221 return _response.then((data) => new ListLogEntriesResponse.fromJson(data));
222 } 222 }
223 223
224 /** 224 /**
225 * Writes log entries to Stackdriver Logging. All log entries are written by 225 * Writes log entries to Stackdriver Logging.
226 * this method.
227 * 226 *
228 * [request] - The metadata request object. 227 * [request] - The metadata request object.
229 * 228 *
230 * Request parameters: 229 * Request parameters:
231 * 230 *
232 * Completes with a [WriteLogEntriesResponse]. 231 * Completes with a [WriteLogEntriesResponse].
233 * 232 *
234 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 233 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
235 * error. 234 * error.
236 * 235 *
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 /** 724 /**
726 * Lists logs-based metrics. 725 * Lists logs-based metrics.
727 * 726 *
728 * Request parameters: 727 * Request parameters:
729 * 728 *
730 * [parent] - Required. The name of the project containing the metrics: 729 * [parent] - Required. The name of the project containing the metrics:
731 * "projects/[PROJECT_ID]" 730 * "projects/[PROJECT_ID]"
732 * 731 *
733 * Value must have pattern "^projects/[^/]+$". 732 * Value must have pattern "^projects/[^/]+$".
734 * 733 *
734 * [pageSize] - Optional. The maximum number of results to return from this
735 * request. Non-positive values are ignored. The presence of nextPageToken in
736 * the response indicates that more results might be available.
737 *
735 * [pageToken] - Optional. If present, then retrieve the next batch of results 738 * [pageToken] - Optional. If present, then retrieve the next batch of results
736 * from the preceding call to this method. pageToken must be the value of 739 * from the preceding call to this method. pageToken must be the value of
737 * nextPageToken from the previous response. The values of other method 740 * nextPageToken from the previous response. The values of other method
738 * parameters should be identical to those in the previous call. 741 * parameters should be identical to those in the previous call.
739 * 742 *
740 * [pageSize] - Optional. The maximum number of results to return from this
741 * request. Non-positive values are ignored. The presence of nextPageToken in
742 * the response indicates that more results might be available.
743 *
744 * Completes with a [ListLogMetricsResponse]. 743 * Completes with a [ListLogMetricsResponse].
745 * 744 *
746 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 745 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
747 * error. 746 * error.
748 * 747 *
749 * If the used [http.Client] completes with an error when making a REST call, 748 * If the used [http.Client] completes with an error when making a REST call,
750 * this method will complete with the same error. 749 * this method will complete with the same error.
751 */ 750 */
752 async.Future<ListLogMetricsResponse> list(core.String parent, {core.String pag eToken, core.int pageSize}) { 751 async.Future<ListLogMetricsResponse> list(core.String parent, {core.int pageSi ze, core.String pageToken}) {
753 var _url = null; 752 var _url = null;
754 var _queryParams = new core.Map(); 753 var _queryParams = new core.Map();
755 var _uploadMedia = null; 754 var _uploadMedia = null;
756 var _uploadOptions = null; 755 var _uploadOptions = null;
757 var _downloadOptions = commons.DownloadOptions.Metadata; 756 var _downloadOptions = commons.DownloadOptions.Metadata;
758 var _body = null; 757 var _body = null;
759 758
760 if (parent == null) { 759 if (parent == null) {
761 throw new core.ArgumentError("Parameter parent is required."); 760 throw new core.ArgumentError("Parameter parent is required.");
762 } 761 }
762 if (pageSize != null) {
763 _queryParams["pageSize"] = ["${pageSize}"];
764 }
763 if (pageToken != null) { 765 if (pageToken != null) {
764 _queryParams["pageToken"] = [pageToken]; 766 _queryParams["pageToken"] = [pageToken];
765 } 767 }
766 if (pageSize != null) {
767 _queryParams["pageSize"] = ["${pageSize}"];
768 }
769 768
770 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/met rics'; 769 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/met rics';
771 770
772 var _response = _requester.request(_url, 771 var _response = _requester.request(_url,
773 "GET", 772 "GET",
774 body: _body, 773 body: _body,
775 queryParams: _queryParams, 774 queryParams: _queryParams,
776 uploadOptions: _uploadOptions, 775 uploadOptions: _uploadOptions,
777 uploadMedia: _uploadMedia, 776 uploadMedia: _uploadMedia,
778 downloadOptions: _downloadOptions); 777 downloadOptions: _downloadOptions);
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 * cause the filter to return no results. The maximum length of the filter is 1372 * cause the filter to return no results. The maximum length of the filter is
1374 * 20000 characters. 1373 * 20000 characters.
1375 */ 1374 */
1376 core.String filter; 1375 core.String filter;
1377 /** 1376 /**
1378 * Optional. How the results should be sorted. Presently, the only permitted 1377 * Optional. How the results should be sorted. Presently, the only permitted
1379 * values are "timestamp asc" (default) and "timestamp desc". The first option 1378 * values are "timestamp asc" (default) and "timestamp desc". The first option
1380 * returns entries in order of increasing values of LogEntry.timestamp (oldest 1379 * returns entries in order of increasing values of LogEntry.timestamp (oldest
1381 * first), and the second option returns entries in order of decreasing 1380 * first), and the second option returns entries in order of decreasing
1382 * timestamps (newest first). Entries with equal timestamps are returned in 1381 * timestamps (newest first). Entries with equal timestamps are returned in
1383 * order of LogEntry.insertId. 1382 * order of their insert_id values.
1384 */ 1383 */
1385 core.String orderBy; 1384 core.String orderBy;
1386 /** 1385 /**
1387 * Optional. The maximum number of results to return from this request. 1386 * Optional. The maximum number of results to return from this request.
1388 * Non-positive values are ignored. The presence of nextPageToken in the 1387 * Non-positive values are ignored. The presence of next_page_token in the
1389 * response indicates that more results might be available. 1388 * response indicates that more results might be available.
1390 */ 1389 */
1391 core.int pageSize; 1390 core.int pageSize;
1392 /** 1391 /**
1393 * Optional. If present, then retrieve the next batch of results from the 1392 * Optional. If present, then retrieve the next batch of results from the
1394 * preceding call to this method. pageToken must be the value of nextPageToken 1393 * preceding call to this method. page_token must be the value of
1395 * from the previous response. The values of other method parameters should be 1394 * next_page_token from the previous response. The values of other method
1396 * identical to those in the previous call. 1395 * parameters should be identical to those in the previous call.
1397 */ 1396 */
1398 core.String pageToken; 1397 core.String pageToken;
1399 /** 1398 /**
1400 * Deprecated. Use resource_names instead. One or more project identifiers or 1399 * Deprecated. Use resource_names instead. One or more project identifiers or
1401 * project numbers from which to retrieve log entries. Example: 1400 * project numbers from which to retrieve log entries. Example:
1402 * "my-project-1A". If present, these project identifiers are converted to 1401 * "my-project-1A". If present, these project identifiers are converted to
1403 * resource name format and added to the list of resources in resource_names. 1402 * resource name format and added to the list of resources in resource_names.
1404 */ 1403 */
1405 core.List<core.String> projectIds; 1404 core.List<core.String> projectIds;
1406 /** 1405 /**
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 } 1640 }
1642 1641
1643 /** An individual entry in a log. */ 1642 /** An individual entry in a log. */
1644 class LogEntry { 1643 class LogEntry {
1645 /** 1644 /**
1646 * Optional. Information about the HTTP request associated with this log 1645 * Optional. Information about the HTTP request associated with this log
1647 * entry, if applicable. 1646 * entry, if applicable.
1648 */ 1647 */
1649 HttpRequest httpRequest; 1648 HttpRequest httpRequest;
1650 /** 1649 /**
1651 * Optional. A unique ID for the log entry. If you provide this field, the 1650 * Optional. A unique identifier for the log entry. If you provide a value,
1652 * logging service considers other log entries in the same project with the 1651 * then Stackdriver Logging considers other log entries in the same project,
1653 * same ID as duplicates which can be removed. If omitted, Stackdriver Logging 1652 * with the same timestamp, and with the same insert_id to be duplicates which
1654 * will generate a unique ID for this log entry. 1653 * can be removed. If omitted in new log entries, then Stackdriver Logging
1654 * will insert its own unique identifier. The insert_id is used to order log
1655 * entries that have the same timestamp value.
1655 */ 1656 */
1656 core.String insertId; 1657 core.String insertId;
1657 /** 1658 /**
1658 * The log entry payload, represented as a structure that is expressed as a 1659 * The log entry payload, represented as a structure that is expressed as a
1659 * JSON object. 1660 * JSON object.
1660 * 1661 *
1661 * The values for Object must be JSON objects. It can consist of `num`, 1662 * The values for Object must be JSON objects. It can consist of `num`,
1662 * `String`, `bool` and `null` as well as `Map` and `List` values. 1663 * `String`, `bool` and `null` as well as `Map` and `List` values.
1663 */ 1664 */
1664 core.Map<core.String, core.Object> jsonPayload; 1665 core.Map<core.String, core.Object> jsonPayload;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 core.String severity; 1724 core.String severity;
1724 /** 1725 /**
1725 * Optional. Source code location information associated with the log entry, 1726 * Optional. Source code location information associated with the log entry,
1726 * if any. 1727 * if any.
1727 */ 1728 */
1728 LogEntrySourceLocation sourceLocation; 1729 LogEntrySourceLocation sourceLocation;
1729 /** The log entry payload, represented as a Unicode string (UTF-8). */ 1730 /** The log entry payload, represented as a Unicode string (UTF-8). */
1730 core.String textPayload; 1731 core.String textPayload;
1731 /** 1732 /**
1732 * Optional. The time the event described by the log entry occurred. If 1733 * Optional. The time the event described by the log entry occurred. If
1733 * omitted, Stackdriver Logging will use the time the log entry is received. 1734 * omitted in a new log entry, Stackdriver Logging will insert the time the
1735 * log entry is received. Stackdriver Logging might reject log entries whose
1736 * time stamps are more than a couple of hours in the future. Log entries with
1737 * time stamps in the past are accepted.
1734 */ 1738 */
1735 core.String timestamp; 1739 core.String timestamp;
1736 /** 1740 /**
1737 * Optional. Resource name of the trace associated with the log entry, if any. 1741 * Optional. Resource name of the trace associated with the log entry, if any.
1738 * If it contains a relative resource name, the name is assumed to be relative 1742 * If it contains a relative resource name, the name is assumed to be relative
1739 * to //tracing.googleapis.com. Example: 1743 * to //tracing.googleapis.com. Example:
1740 * projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824 1744 * projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824
1741 */ 1745 */
1742 core.String trace; 1746 core.String trace;
1743 1747
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
2723 _json["revisionId"] = revisionId; 2727 _json["revisionId"] = revisionId;
2724 } 2728 }
2725 return _json; 2729 return _json;
2726 } 2730 }
2727 } 2731 }
2728 2732
2729 /** The parameters to WriteLogEntries. */ 2733 /** The parameters to WriteLogEntries. */
2730 class WriteLogEntriesRequest { 2734 class WriteLogEntriesRequest {
2731 /** 2735 /**
2732 * Required. The log entries to write. Values supplied for the fields 2736 * Required. The log entries to write. Values supplied for the fields
2733 * log_name, resource, and labels in this entries.write request are added to 2737 * log_name, resource, and labels in this entries.write request are inserted
2734 * those log entries that do not provide their own values for the fields.To 2738 * into those log entries in this list that do not provide their own
2735 * improve throughput and to avoid exceeding the quota limit for calls to 2739 * values.Stackdriver Logging also creates and inserts values for timestamp
2736 * entries.write, you should write multiple log entries at once rather than 2740 * and insert_id if the entries do not provide them. The created insert_id for
2737 * calling this method for each individual log entry. 2741 * the N'th entry in this list will be greater than earlier entries and less
2742 * than later entries. Otherwise, the order of log entries in this list does
2743 * not matter.To improve throughput and to avoid exceeding the quota limit for
2744 * calls to entries.write, you should write multiple log entries at once
2745 * rather than calling this method for each individual log entry.
2738 */ 2746 */
2739 core.List<LogEntry> entries; 2747 core.List<LogEntry> entries;
2740 /** 2748 /**
2741 * Optional. Default labels that are added to the labels field of all log 2749 * Optional. Default labels that are added to the labels field of all log
2742 * entries in entries. If a log entry already has a label with the same key as 2750 * entries in entries. If a log entry already has a label with the same key as
2743 * a label in this parameter, then the log entry's label is not changed. See 2751 * a label in this parameter, then the log entry's label is not changed. See
2744 * LogEntry. 2752 * LogEntry.
2745 */ 2753 */
2746 core.Map<core.String, core.String> labels; 2754 core.Map<core.String, core.String> labels;
2747 /** 2755 /**
2748 * Optional. A default log resource name that is assigned to all log entries 2756 * Optional. A default log resource name that is assigned to all log entries
2749 * in entries that do not specify a value for log_name: 2757 * in entries that do not specify a value for log_name:
2750 * "projects/[PROJECT_ID]/logs/[LOG_ID]" 2758 * "projects/[PROJECT_ID]/logs/[LOG_ID]"
2751 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" 2759 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
2752 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" 2760 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
2753 * "folders/[FOLDER_ID]/logs/[LOG_ID]" 2761 * "folders/[FOLDER_ID]/logs/[LOG_ID]"
2754 * [LOG_ID] must be URL-encoded. For example, 2762 * [LOG_ID] must be URL-encoded. For example,
2755 * "projects/my-project-id/logs/syslog" or 2763 * "projects/my-project-id/logs/syslog" or
2756 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi ty". 2764 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi ty".
2757 * For more information about log names, see LogEntry. 2765 * For more information about log names, see LogEntry.
2758 */ 2766 */
2759 core.String logName; 2767 core.String logName;
2760 /** 2768 /**
2761 * Optional. Whether valid entries should be written even if some other 2769 * Optional. Whether valid entries should be written even if some other
2762 * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any 2770 * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
2763 * entry is not written, the response status will be the error associated with 2771 * entry is not written, then the response status is the error associated with
2764 * one of the failed entries and include error details in the form of 2772 * one of the failed entries and the response includes error details keyed by
2765 * WriteLogEntriesPartialErrors. 2773 * the entries' zero-based index in the entries.write method.
2766 */ 2774 */
2767 core.bool partialSuccess; 2775 core.bool partialSuccess;
2768 /** 2776 /**
2769 * Optional. A default monitored resource object that is assigned to all log 2777 * Optional. A default monitored resource object that is assigned to all log
2770 * entries in entries that do not specify a value for resource. Example: 2778 * entries in entries that do not specify a value for resource. Example:
2771 * { "type": "gce_instance", 2779 * { "type": "gce_instance",
2772 * "labels": { 2780 * "labels": {
2773 * "zone": "us-central1-a", "instance_id": "00000000000000000000" }} 2781 * "zone": "us-central1-a", "instance_id": "00000000000000000000" }}
2774 * See LogEntry. 2782 * See LogEntry.
2775 */ 2783 */
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
2822 WriteLogEntriesResponse(); 2830 WriteLogEntriesResponse();
2823 2831
2824 WriteLogEntriesResponse.fromJson(core.Map _json) { 2832 WriteLogEntriesResponse.fromJson(core.Map _json) {
2825 } 2833 }
2826 2834
2827 core.Map toJson() { 2835 core.Map toJson() {
2828 var _json = new core.Map(); 2836 var _json = new core.Map();
2829 return _json; 2837 return _json;
2830 } 2838 }
2831 } 2839 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/language/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