OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.logging.v2beta1; | 3 library googleapis_beta.logging.v2beta1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 * Request parameters: | 118 * Request parameters: |
119 * | 119 * |
120 * [parent] - Required. The resource name that owns the logs: | 120 * [parent] - Required. The resource name that owns the logs: |
121 * "projects/[PROJECT_ID]" | 121 * "projects/[PROJECT_ID]" |
122 * "organizations/[ORGANIZATION_ID]" | 122 * "organizations/[ORGANIZATION_ID]" |
123 * "billingAccounts/[BILLING_ACCOUNT_ID]" | 123 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
124 * "folders/[FOLDER_ID]" | 124 * "folders/[FOLDER_ID]" |
125 * | 125 * |
126 * Value must have pattern "^billingAccounts/[^/]+$". | 126 * Value must have pattern "^billingAccounts/[^/]+$". |
127 * | 127 * |
128 * [pageSize] - Optional. The maximum number of results to return from this | |
129 * request. Non-positive values are ignored. The presence of nextPageToken in | |
130 * the response indicates that more results might be available. | |
131 * | |
132 * [pageToken] - Optional. If present, then retrieve the next batch of results | 128 * [pageToken] - Optional. If present, then retrieve the next batch of results |
133 * from the preceding call to this method. pageToken must be the value of | 129 * from the preceding call to this method. pageToken must be the value of |
134 * nextPageToken from the previous response. The values of other method | 130 * nextPageToken from the previous response. The values of other method |
135 * parameters should be identical to those in the previous call. | 131 * parameters should be identical to those in the previous call. |
136 * | 132 * |
| 133 * [pageSize] - Optional. The maximum number of results to return from this |
| 134 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 135 * the response indicates that more results might be available. |
| 136 * |
137 * Completes with a [ListLogsResponse]. | 137 * Completes with a [ListLogsResponse]. |
138 * | 138 * |
139 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 139 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
140 * error. | 140 * error. |
141 * | 141 * |
142 * If the used [http.Client] completes with an error when making a REST call, | 142 * If the used [http.Client] completes with an error when making a REST call, |
143 * this method will complete with the same error. | 143 * this method will complete with the same error. |
144 */ | 144 */ |
145 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { | 145 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken
, core.int pageSize}) { |
146 var _url = null; | 146 var _url = null; |
147 var _queryParams = new core.Map(); | 147 var _queryParams = new core.Map(); |
148 var _uploadMedia = null; | 148 var _uploadMedia = null; |
149 var _uploadOptions = null; | 149 var _uploadOptions = null; |
150 var _downloadOptions = commons.DownloadOptions.Metadata; | 150 var _downloadOptions = commons.DownloadOptions.Metadata; |
151 var _body = null; | 151 var _body = null; |
152 | 152 |
153 if (parent == null) { | 153 if (parent == null) { |
154 throw new core.ArgumentError("Parameter parent is required."); | 154 throw new core.ArgumentError("Parameter parent is required."); |
155 } | 155 } |
| 156 if (pageToken != null) { |
| 157 _queryParams["pageToken"] = [pageToken]; |
| 158 } |
156 if (pageSize != null) { | 159 if (pageSize != null) { |
157 _queryParams["pageSize"] = ["${pageSize}"]; | 160 _queryParams["pageSize"] = ["${pageSize}"]; |
158 } | 161 } |
159 if (pageToken != null) { | |
160 _queryParams["pageToken"] = [pageToken]; | |
161 } | |
162 | 162 |
163 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/log
s'; | 163 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/log
s'; |
164 | 164 |
165 var _response = _requester.request(_url, | 165 var _response = _requester.request(_url, |
166 "GET", | 166 "GET", |
167 body: _body, | 167 body: _body, |
168 queryParams: _queryParams, | 168 queryParams: _queryParams, |
169 uploadOptions: _uploadOptions, | 169 uploadOptions: _uploadOptions, |
170 uploadMedia: _uploadMedia, | 170 uploadMedia: _uploadMedia, |
171 downloadOptions: _downloadOptions); | 171 downloadOptions: _downloadOptions); |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 /** | 724 /** |
725 * Lists logs-based metrics. | 725 * Lists logs-based metrics. |
726 * | 726 * |
727 * Request parameters: | 727 * Request parameters: |
728 * | 728 * |
729 * [parent] - Required. The name of the project containing the metrics: | 729 * [parent] - Required. The name of the project containing the metrics: |
730 * "projects/[PROJECT_ID]" | 730 * "projects/[PROJECT_ID]" |
731 * | 731 * |
732 * Value must have pattern "^projects/[^/]+$". | 732 * Value must have pattern "^projects/[^/]+$". |
733 * | 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 * | |
738 * [pageToken] - Optional. If present, then retrieve the next batch of results | 734 * [pageToken] - Optional. If present, then retrieve the next batch of results |
739 * from the preceding call to this method. pageToken must be the value of | 735 * from the preceding call to this method. pageToken must be the value of |
740 * nextPageToken from the previous response. The values of other method | 736 * nextPageToken from the previous response. The values of other method |
741 * parameters should be identical to those in the previous call. | 737 * parameters should be identical to those in the previous call. |
742 * | 738 * |
| 739 * [pageSize] - Optional. The maximum number of results to return from this |
| 740 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 741 * the response indicates that more results might be available. |
| 742 * |
743 * Completes with a [ListLogMetricsResponse]. | 743 * Completes with a [ListLogMetricsResponse]. |
744 * | 744 * |
745 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 745 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
746 * error. | 746 * error. |
747 * | 747 * |
748 * 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, |
749 * this method will complete with the same error. | 749 * this method will complete with the same error. |
750 */ | 750 */ |
751 async.Future<ListLogMetricsResponse> list(core.String parent, {core.int pageSi
ze, core.String pageToken}) { | 751 async.Future<ListLogMetricsResponse> list(core.String parent, {core.String pag
eToken, core.int pageSize}) { |
752 var _url = null; | 752 var _url = null; |
753 var _queryParams = new core.Map(); | 753 var _queryParams = new core.Map(); |
754 var _uploadMedia = null; | 754 var _uploadMedia = null; |
755 var _uploadOptions = null; | 755 var _uploadOptions = null; |
756 var _downloadOptions = commons.DownloadOptions.Metadata; | 756 var _downloadOptions = commons.DownloadOptions.Metadata; |
757 var _body = null; | 757 var _body = null; |
758 | 758 |
759 if (parent == null) { | 759 if (parent == null) { |
760 throw new core.ArgumentError("Parameter parent is required."); | 760 throw new core.ArgumentError("Parameter parent is required."); |
761 } | 761 } |
| 762 if (pageToken != null) { |
| 763 _queryParams["pageToken"] = [pageToken]; |
| 764 } |
762 if (pageSize != null) { | 765 if (pageSize != null) { |
763 _queryParams["pageSize"] = ["${pageSize}"]; | 766 _queryParams["pageSize"] = ["${pageSize}"]; |
764 } | 767 } |
765 if (pageToken != null) { | |
766 _queryParams["pageToken"] = [pageToken]; | |
767 } | |
768 | 768 |
769 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/met
rics'; | 769 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/met
rics'; |
770 | 770 |
771 var _response = _requester.request(_url, | 771 var _response = _requester.request(_url, |
772 "GET", | 772 "GET", |
773 body: _body, | 773 body: _body, |
774 queryParams: _queryParams, | 774 queryParams: _queryParams, |
775 uploadOptions: _uploadOptions, | 775 uploadOptions: _uploadOptions, |
776 uploadMedia: _uploadMedia, | 776 uploadMedia: _uploadMedia, |
777 downloadOptions: _downloadOptions); | 777 downloadOptions: _downloadOptions); |
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2109 core.String endTime; | 2109 core.String endTime; |
2110 /** | 2110 /** |
2111 * Optional. An advanced logs filter. The only exported log entries are those | 2111 * Optional. An advanced logs filter. The only exported log entries are those |
2112 * that are in the resource owning the sink and that match the filter. The | 2112 * that are in the resource owning the sink and that match the filter. The |
2113 * filter must use the log entry format specified by the output_version_format | 2113 * filter must use the log entry format specified by the output_version_format |
2114 * parameter. For example, in the v2 format: | 2114 * parameter. For example, in the v2 format: |
2115 * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR | 2115 * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR |
2116 */ | 2116 */ |
2117 core.String filter; | 2117 core.String filter; |
2118 /** | 2118 /** |
| 2119 * Optional. This field presently applies only to sinks in organizations and |
| 2120 * folders. If true, then logs from children of this entity will also be |
| 2121 * available to this sink for export. Whether particular log entries from the |
| 2122 * children are exported depends on the sink's filter expression. For example, |
| 2123 * if this sink is associated with an organization, then logs from all |
| 2124 * projects in the organization as well as from the organization itself will |
| 2125 * be available for export. |
| 2126 */ |
| 2127 core.bool includeChildren; |
| 2128 /** |
2119 * Required. The client-assigned sink identifier, unique within the project. | 2129 * Required. The client-assigned sink identifier, unique within the project. |
2120 * Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 | 2130 * Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 |
2121 * characters and can include only the following characters: upper and | 2131 * characters and can include only the following characters: upper and |
2122 * lower-case alphanumeric characters, underscores, hyphens, and periods. | 2132 * lower-case alphanumeric characters, underscores, hyphens, and periods. |
2123 */ | 2133 */ |
2124 core.String name; | 2134 core.String name; |
2125 /** | 2135 /** |
2126 * Optional. The log entry format to use for this sink's exported log entries. | 2136 * Optional. The log entry format to use for this sink's exported log entries. |
2127 * The v2 format is used by default. The v1 format is deprecated and should be | 2137 * The v2 format is used by default. The v1 format is deprecated and should be |
2128 * used only as part of a migration effort to v2. See Migration to the v2 API. | 2138 * used only as part of a migration effort to v2. See Migration to the v2 API. |
(...skipping 28 matching lines...) Expand all Loading... |
2157 LogSink.fromJson(core.Map _json) { | 2167 LogSink.fromJson(core.Map _json) { |
2158 if (_json.containsKey("destination")) { | 2168 if (_json.containsKey("destination")) { |
2159 destination = _json["destination"]; | 2169 destination = _json["destination"]; |
2160 } | 2170 } |
2161 if (_json.containsKey("endTime")) { | 2171 if (_json.containsKey("endTime")) { |
2162 endTime = _json["endTime"]; | 2172 endTime = _json["endTime"]; |
2163 } | 2173 } |
2164 if (_json.containsKey("filter")) { | 2174 if (_json.containsKey("filter")) { |
2165 filter = _json["filter"]; | 2175 filter = _json["filter"]; |
2166 } | 2176 } |
| 2177 if (_json.containsKey("includeChildren")) { |
| 2178 includeChildren = _json["includeChildren"]; |
| 2179 } |
2167 if (_json.containsKey("name")) { | 2180 if (_json.containsKey("name")) { |
2168 name = _json["name"]; | 2181 name = _json["name"]; |
2169 } | 2182 } |
2170 if (_json.containsKey("outputVersionFormat")) { | 2183 if (_json.containsKey("outputVersionFormat")) { |
2171 outputVersionFormat = _json["outputVersionFormat"]; | 2184 outputVersionFormat = _json["outputVersionFormat"]; |
2172 } | 2185 } |
2173 if (_json.containsKey("startTime")) { | 2186 if (_json.containsKey("startTime")) { |
2174 startTime = _json["startTime"]; | 2187 startTime = _json["startTime"]; |
2175 } | 2188 } |
2176 if (_json.containsKey("writerIdentity")) { | 2189 if (_json.containsKey("writerIdentity")) { |
2177 writerIdentity = _json["writerIdentity"]; | 2190 writerIdentity = _json["writerIdentity"]; |
2178 } | 2191 } |
2179 } | 2192 } |
2180 | 2193 |
2181 core.Map toJson() { | 2194 core.Map toJson() { |
2182 var _json = new core.Map(); | 2195 var _json = new core.Map(); |
2183 if (destination != null) { | 2196 if (destination != null) { |
2184 _json["destination"] = destination; | 2197 _json["destination"] = destination; |
2185 } | 2198 } |
2186 if (endTime != null) { | 2199 if (endTime != null) { |
2187 _json["endTime"] = endTime; | 2200 _json["endTime"] = endTime; |
2188 } | 2201 } |
2189 if (filter != null) { | 2202 if (filter != null) { |
2190 _json["filter"] = filter; | 2203 _json["filter"] = filter; |
2191 } | 2204 } |
| 2205 if (includeChildren != null) { |
| 2206 _json["includeChildren"] = includeChildren; |
| 2207 } |
2192 if (name != null) { | 2208 if (name != null) { |
2193 _json["name"] = name; | 2209 _json["name"] = name; |
2194 } | 2210 } |
2195 if (outputVersionFormat != null) { | 2211 if (outputVersionFormat != null) { |
2196 _json["outputVersionFormat"] = outputVersionFormat; | 2212 _json["outputVersionFormat"] = outputVersionFormat; |
2197 } | 2213 } |
2198 if (startTime != null) { | 2214 if (startTime != null) { |
2199 _json["startTime"] = startTime; | 2215 _json["startTime"] = startTime; |
2200 } | 2216 } |
2201 if (writerIdentity != null) { | 2217 if (writerIdentity != null) { |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2830 WriteLogEntriesResponse(); | 2846 WriteLogEntriesResponse(); |
2831 | 2847 |
2832 WriteLogEntriesResponse.fromJson(core.Map _json) { | 2848 WriteLogEntriesResponse.fromJson(core.Map _json) { |
2833 } | 2849 } |
2834 | 2850 |
2835 core.Map toJson() { | 2851 core.Map toJson() { |
2836 var _json = new core.Map(); | 2852 var _json = new core.Map(); |
2837 return _json; | 2853 return _json; |
2838 } | 2854 } |
2839 } | 2855 } |
OLD | NEW |