| 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.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 | 59 |
| 60 class BillingAccountsLogsResourceApi { | 60 class BillingAccountsLogsResourceApi { |
| 61 final commons.ApiRequester _requester; | 61 final commons.ApiRequester _requester; |
| 62 | 62 |
| 63 BillingAccountsLogsResourceApi(commons.ApiRequester client) : | 63 BillingAccountsLogsResourceApi(commons.ApiRequester client) : |
| 64 _requester = client; | 64 _requester = client; |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * Deletes all the log entries in a log. The log reappears if it receives new | 67 * Deletes all the log entries in a log. The log reappears if it receives new |
| 68 * entries. | 68 * entries. Log entries written shortly before the delete operation might not |
| 69 * be deleted. |
| 69 * | 70 * |
| 70 * Request parameters: | 71 * Request parameters: |
| 71 * | 72 * |
| 72 * [logName] - Required. The resource name of the log to delete: | 73 * [logName] - Required. The resource name of the log to delete: |
| 73 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 74 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 74 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 75 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 76 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 77 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 75 * [LOG_ID] must be URL-encoded. For example, | 78 * [LOG_ID] must be URL-encoded. For example, |
| 76 * "projects/my-project-id/logs/syslog", | 79 * "projects/my-project-id/logs/syslog", |
| 77 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 80 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 78 * For more information about log names, see LogEntry. | 81 * For more information about log names, see LogEntry. |
| 79 * Value must have pattern "^billingAccounts/[^/]+/logs/[^/]+$". | 82 * Value must have pattern "^billingAccounts/[^/]+/logs/[^/]+$". |
| 80 * | 83 * |
| 81 * Completes with a [Empty]. | 84 * Completes with a [Empty]. |
| 82 * | 85 * |
| 83 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 86 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 84 * error. | 87 * error. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 104 "DELETE", | 107 "DELETE", |
| 105 body: _body, | 108 body: _body, |
| 106 queryParams: _queryParams, | 109 queryParams: _queryParams, |
| 107 uploadOptions: _uploadOptions, | 110 uploadOptions: _uploadOptions, |
| 108 uploadMedia: _uploadMedia, | 111 uploadMedia: _uploadMedia, |
| 109 downloadOptions: _downloadOptions); | 112 downloadOptions: _downloadOptions); |
| 110 return _response.then((data) => new Empty.fromJson(data)); | 113 return _response.then((data) => new Empty.fromJson(data)); |
| 111 } | 114 } |
| 112 | 115 |
| 113 /** | 116 /** |
| 114 * Lists the logs in projects or organizations. Only logs that have entries | 117 * Lists the logs in projects, organizations, folders, or billing accounts. |
| 115 * are listed. | 118 * Only logs that have entries are listed. |
| 116 * | 119 * |
| 117 * Request parameters: | 120 * Request parameters: |
| 118 * | 121 * |
| 119 * [parent] - Required. The resource name that owns the logs: | 122 * [parent] - Required. The resource name that owns the logs: |
| 120 * "projects/[PROJECT_ID]" | 123 * "projects/[PROJECT_ID]" |
| 121 * "organizations/[ORGANIZATION_ID]" | 124 * "organizations/[ORGANIZATION_ID]" |
| 125 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 126 * "folders/[FOLDER_ID]" |
| 122 * | 127 * |
| 123 * Value must have pattern "^billingAccounts/[^/]+$". | 128 * Value must have pattern "^billingAccounts/[^/]+$". |
| 124 * | 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 * |
| 125 * [pageToken] - Optional. If present, then retrieve the next batch of results | 134 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 126 * from the preceding call to this method. pageToken must be the value of | 135 * from the preceding call to this method. pageToken must be the value of |
| 127 * nextPageToken from the previous response. The values of other method | 136 * nextPageToken from the previous response. The values of other method |
| 128 * parameters should be identical to those in the previous call. | 137 * parameters should be identical to those in the previous call. |
| 129 * | 138 * |
| 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 * Completes with a [ListLogsResponse]. | 139 * Completes with a [ListLogsResponse]. |
| 135 * | 140 * |
| 136 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 137 * error. | 142 * error. |
| 138 * | 143 * |
| 139 * 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, |
| 140 * this method will complete with the same error. | 145 * this method will complete with the same error. |
| 141 */ | 146 */ |
| 142 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken
, core.int pageSize}) { | 147 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { |
| 143 var _url = null; | 148 var _url = null; |
| 144 var _queryParams = new core.Map(); | 149 var _queryParams = new core.Map(); |
| 145 var _uploadMedia = null; | 150 var _uploadMedia = null; |
| 146 var _uploadOptions = null; | 151 var _uploadOptions = null; |
| 147 var _downloadOptions = commons.DownloadOptions.Metadata; | 152 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 148 var _body = null; | 153 var _body = null; |
| 149 | 154 |
| 150 if (parent == null) { | 155 if (parent == null) { |
| 151 throw new core.ArgumentError("Parameter parent is required."); | 156 throw new core.ArgumentError("Parameter parent is required."); |
| 152 } | 157 } |
| 158 if (pageSize != null) { |
| 159 _queryParams["pageSize"] = ["${pageSize}"]; |
| 160 } |
| 153 if (pageToken != null) { | 161 if (pageToken != null) { |
| 154 _queryParams["pageToken"] = [pageToken]; | 162 _queryParams["pageToken"] = [pageToken]; |
| 155 } | 163 } |
| 156 if (pageSize != null) { | |
| 157 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 158 } | |
| 159 | 164 |
| 160 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; | 165 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; |
| 161 | 166 |
| 162 var _response = _requester.request(_url, | 167 var _response = _requester.request(_url, |
| 163 "GET", | 168 "GET", |
| 164 body: _body, | 169 body: _body, |
| 165 queryParams: _queryParams, | 170 queryParams: _queryParams, |
| 166 uploadOptions: _uploadOptions, | 171 uploadOptions: _uploadOptions, |
| 167 uploadMedia: _uploadMedia, | 172 uploadMedia: _uploadMedia, |
| 168 downloadOptions: _downloadOptions); | 173 downloadOptions: _downloadOptions); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 185 * writer_identity is not permitted to write to the destination. A sink can | 190 * writer_identity is not permitted to write to the destination. A sink can |
| 186 * export log entries only from the resource owning the sink. | 191 * export log entries only from the resource owning the sink. |
| 187 * | 192 * |
| 188 * [request] - The metadata request object. | 193 * [request] - The metadata request object. |
| 189 * | 194 * |
| 190 * Request parameters: | 195 * Request parameters: |
| 191 * | 196 * |
| 192 * [parent] - Required. The resource in which to create the sink: | 197 * [parent] - Required. The resource in which to create the sink: |
| 193 * "projects/[PROJECT_ID]" | 198 * "projects/[PROJECT_ID]" |
| 194 * "organizations/[ORGANIZATION_ID]" | 199 * "organizations/[ORGANIZATION_ID]" |
| 200 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 201 * "folders/[FOLDER_ID]" |
| 195 * Examples: "projects/my-logging-project", "organizations/123456789". | 202 * Examples: "projects/my-logging-project", "organizations/123456789". |
| 196 * Value must have pattern "^billingAccounts/[^/]+$". | 203 * Value must have pattern "^billingAccounts/[^/]+$". |
| 197 * | 204 * |
| 198 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity | 205 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity |
| 199 * 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 |
| 200 * 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 |
| 201 * returned as writer_identity is cloud-logs@google.com, the same identity | 208 * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the |
| 202 * used before the addition of writer identities to this API. The sink's | 209 * same identity used before the addition of writer identities to this API. |
| 203 * destination must be in the same project as the sink itself.If this field is | 210 * The sink's destination must be in the same project as the sink itself.If |
| 204 * set to true, or if the sink is owned by a non-project resource such as an | 211 * this field is set to true, or if the sink is owned by a non-project |
| 205 * organization, then the value of writer_identity will be a unique service | 212 * resource such as an organization, then the value of writer_identity will be |
| 206 * account used only for exports from the new sink. For more information, see | 213 * a unique service account used only for exports from the new sink. For more |
| 207 * writer_identity in LogSink. | 214 * information, see writer_identity in LogSink. |
| 208 * | 215 * |
| 209 * Completes with a [LogSink]. | 216 * Completes with a [LogSink]. |
| 210 * | 217 * |
| 211 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 218 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 212 * error. | 219 * error. |
| 213 * | 220 * |
| 214 * If the used [http.Client] completes with an error when making a REST call, | 221 * If the used [http.Client] completes with an error when making a REST call, |
| 215 * this method will complete with the same error. | 222 * this method will complete with the same error. |
| 216 */ | 223 */ |
| 217 async.Future<LogSink> create(LogSink request, core.String parent, {core.bool u
niqueWriterIdentity}) { | 224 async.Future<LogSink> create(LogSink request, core.String parent, {core.bool u
niqueWriterIdentity}) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 247 /** | 254 /** |
| 248 * Deletes a sink. If the sink has a unique writer_identity, then that service | 255 * Deletes a sink. If the sink has a unique writer_identity, then that service |
| 249 * account is also deleted. | 256 * account is also deleted. |
| 250 * | 257 * |
| 251 * Request parameters: | 258 * Request parameters: |
| 252 * | 259 * |
| 253 * [sinkName] - Required. The full resource name of the sink to delete, | 260 * [sinkName] - Required. The full resource name of the sink to delete, |
| 254 * including the parent resource and the sink identifier: | 261 * including the parent resource and the sink identifier: |
| 255 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 262 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 256 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 263 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 257 * It is an error if the sink does not exist. Example: | 264 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 258 * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does | 265 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 259 * not exist. | 266 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 260 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". | 267 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". |
| 261 * | 268 * |
| 262 * Completes with a [Empty]. | 269 * Completes with a [Empty]. |
| 263 * | 270 * |
| 264 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 271 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 265 * error. | 272 * error. |
| 266 * | 273 * |
| 267 * If the used [http.Client] completes with an error when making a REST call, | 274 * If the used [http.Client] completes with an error when making a REST call, |
| 268 * this method will complete with the same error. | 275 * this method will complete with the same error. |
| 269 */ | 276 */ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 289 uploadMedia: _uploadMedia, | 296 uploadMedia: _uploadMedia, |
| 290 downloadOptions: _downloadOptions); | 297 downloadOptions: _downloadOptions); |
| 291 return _response.then((data) => new Empty.fromJson(data)); | 298 return _response.then((data) => new Empty.fromJson(data)); |
| 292 } | 299 } |
| 293 | 300 |
| 294 /** | 301 /** |
| 295 * Gets a sink. | 302 * Gets a sink. |
| 296 * | 303 * |
| 297 * Request parameters: | 304 * Request parameters: |
| 298 * | 305 * |
| 299 * [sinkName] - Required. The parent resource name of the sink: | 306 * [sinkName] - Required. The resource name of the sink: |
| 300 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 307 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 301 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 308 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 309 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 310 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 302 * Example: "projects/my-project-id/sinks/my-sink-id". | 311 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 303 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". | 312 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". |
| 304 * | 313 * |
| 305 * Completes with a [LogSink]. | 314 * Completes with a [LogSink]. |
| 306 * | 315 * |
| 307 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 316 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 308 * error. | 317 * error. |
| 309 * | 318 * |
| 310 * If the used [http.Client] completes with an error when making a REST call, | 319 * If the used [http.Client] completes with an error when making a REST call, |
| 311 * this method will complete with the same error. | 320 * this method will complete with the same error. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 332 uploadMedia: _uploadMedia, | 341 uploadMedia: _uploadMedia, |
| 333 downloadOptions: _downloadOptions); | 342 downloadOptions: _downloadOptions); |
| 334 return _response.then((data) => new LogSink.fromJson(data)); | 343 return _response.then((data) => new LogSink.fromJson(data)); |
| 335 } | 344 } |
| 336 | 345 |
| 337 /** | 346 /** |
| 338 * Lists sinks. | 347 * Lists sinks. |
| 339 * | 348 * |
| 340 * Request parameters: | 349 * Request parameters: |
| 341 * | 350 * |
| 342 * [parent] - Required. The parent resource whose sinks are to be listed. | 351 * [parent] - Required. The parent resource whose sinks are to be listed: |
| 343 * Examples: "projects/my-logging-project", "organizations/123456789". | 352 * "projects/[PROJECT_ID]" |
| 353 * "organizations/[ORGANIZATION_ID]" |
| 354 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 355 * "folders/[FOLDER_ID]" |
| 356 * |
| 344 * Value must have pattern "^billingAccounts/[^/]+$". | 357 * Value must have pattern "^billingAccounts/[^/]+$". |
| 345 * | 358 * |
| 346 * [pageSize] - Optional. The maximum number of results to return from this | |
| 347 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 348 * the response indicates that more results might be available. | |
| 349 * | |
| 350 * [pageToken] - Optional. If present, then retrieve the next batch of results | 359 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 351 * 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 |
| 352 * nextPageToken from the previous response. The values of other method | 361 * nextPageToken from the previous response. The values of other method |
| 353 * parameters should be identical to those in the previous call. | 362 * parameters should be identical to those in the previous call. |
| 354 * | 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 * |
| 355 * Completes with a [ListSinksResponse]. | 368 * Completes with a [ListSinksResponse]. |
| 356 * | 369 * |
| 357 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 370 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 358 * error. | 371 * error. |
| 359 * | 372 * |
| 360 * 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, |
| 361 * this method will complete with the same error. | 374 * this method will complete with the same error. |
| 362 */ | 375 */ |
| 363 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}) { |
| 364 var _url = null; | 377 var _url = null; |
| 365 var _queryParams = new core.Map(); | 378 var _queryParams = new core.Map(); |
| 366 var _uploadMedia = null; | 379 var _uploadMedia = null; |
| 367 var _uploadOptions = null; | 380 var _uploadOptions = null; |
| 368 var _downloadOptions = commons.DownloadOptions.Metadata; | 381 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 369 var _body = null; | 382 var _body = null; |
| 370 | 383 |
| 371 if (parent == null) { | 384 if (parent == null) { |
| 372 throw new core.ArgumentError("Parameter parent is required."); | 385 throw new core.ArgumentError("Parameter parent is required."); |
| 373 } | 386 } |
| 387 if (pageToken != null) { |
| 388 _queryParams["pageToken"] = [pageToken]; |
| 389 } |
| 374 if (pageSize != null) { | 390 if (pageSize != null) { |
| 375 _queryParams["pageSize"] = ["${pageSize}"]; | 391 _queryParams["pageSize"] = ["${pageSize}"]; |
| 376 } | 392 } |
| 377 if (pageToken != null) { | |
| 378 _queryParams["pageToken"] = [pageToken]; | |
| 379 } | |
| 380 | 393 |
| 381 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; | 394 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; |
| 382 | 395 |
| 383 var _response = _requester.request(_url, | 396 var _response = _requester.request(_url, |
| 384 "GET", | 397 "GET", |
| 385 body: _body, | 398 body: _body, |
| 386 queryParams: _queryParams, | 399 queryParams: _queryParams, |
| 387 uploadOptions: _uploadOptions, | 400 uploadOptions: _uploadOptions, |
| 388 uploadMedia: _uploadMedia, | 401 uploadMedia: _uploadMedia, |
| 389 downloadOptions: _downloadOptions); | 402 downloadOptions: _downloadOptions); |
| 390 return _response.then((data) => new ListSinksResponse.fromJson(data)); | 403 return _response.then((data) => new ListSinksResponse.fromJson(data)); |
| 391 } | 404 } |
| 392 | 405 |
| 393 /** | 406 /** |
| 394 * Updates a sink. If the named sink doesn't exist, then this method is | 407 * Updates a sink. If the named sink doesn't exist, then this method is |
| 395 * identical to sinks.create. If the named sink does exist, then this method | 408 * identical to sinks.create. If the named sink does exist, then this method |
| 396 * replaces the following fields in the existing sink with values from the new | 409 * replaces the following fields in the existing sink with values from the new |
| 397 * sink: destination, filter, output_version_format, start_time, and end_time. | 410 * sink: destination, filter, output_version_format, start_time, and end_time. |
| 398 * The updated filter might also have a new writer_identity; see the | 411 * The updated filter might also have a new writer_identity; see the |
| 399 * unique_writer_identity field. | 412 * unique_writer_identity field. |
| 400 * | 413 * |
| 401 * [request] - The metadata request object. | 414 * [request] - The metadata request object. |
| 402 * | 415 * |
| 403 * Request parameters: | 416 * Request parameters: |
| 404 * | 417 * |
| 405 * [sinkName] - Required. The full resource name of the sink to update, | 418 * [sinkName] - Required. The full resource name of the sink to update, |
| 406 * including the parent resource and the sink identifier: | 419 * including the parent resource and the sink identifier: |
| 407 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 420 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 408 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 421 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 422 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 423 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 409 * Example: "projects/my-project-id/sinks/my-sink-id". | 424 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 410 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". | 425 * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". |
| 411 * | 426 * |
| 412 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of | 427 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of |
| 413 * 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 |
| 414 * 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 |
| 415 * of this field: | 430 * of this field: |
| 416 * 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 |
| 417 * there is no change to the sink's writer_identity. | 432 * there is no change to the sink's writer_identity. |
| 418 * If the old value was false and the new value is true, then writer_identity | 433 * If the old value was false and the new value is true, then writer_identity |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 | 576 |
| 562 | 577 |
| 563 class FoldersLogsResourceApi { | 578 class FoldersLogsResourceApi { |
| 564 final commons.ApiRequester _requester; | 579 final commons.ApiRequester _requester; |
| 565 | 580 |
| 566 FoldersLogsResourceApi(commons.ApiRequester client) : | 581 FoldersLogsResourceApi(commons.ApiRequester client) : |
| 567 _requester = client; | 582 _requester = client; |
| 568 | 583 |
| 569 /** | 584 /** |
| 570 * Deletes all the log entries in a log. The log reappears if it receives new | 585 * Deletes all the log entries in a log. The log reappears if it receives new |
| 571 * entries. | 586 * entries. Log entries written shortly before the delete operation might not |
| 587 * be deleted. |
| 572 * | 588 * |
| 573 * Request parameters: | 589 * Request parameters: |
| 574 * | 590 * |
| 575 * [logName] - Required. The resource name of the log to delete: | 591 * [logName] - Required. The resource name of the log to delete: |
| 576 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 592 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 577 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 593 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 594 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 595 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 578 * [LOG_ID] must be URL-encoded. For example, | 596 * [LOG_ID] must be URL-encoded. For example, |
| 579 * "projects/my-project-id/logs/syslog", | 597 * "projects/my-project-id/logs/syslog", |
| 580 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 598 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 581 * For more information about log names, see LogEntry. | 599 * For more information about log names, see LogEntry. |
| 582 * Value must have pattern "^folders/[^/]+/logs/[^/]+$". | 600 * Value must have pattern "^folders/[^/]+/logs/[^/]+$". |
| 583 * | 601 * |
| 584 * Completes with a [Empty]. | 602 * Completes with a [Empty]. |
| 585 * | 603 * |
| 586 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 604 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 587 * error. | 605 * error. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 607 "DELETE", | 625 "DELETE", |
| 608 body: _body, | 626 body: _body, |
| 609 queryParams: _queryParams, | 627 queryParams: _queryParams, |
| 610 uploadOptions: _uploadOptions, | 628 uploadOptions: _uploadOptions, |
| 611 uploadMedia: _uploadMedia, | 629 uploadMedia: _uploadMedia, |
| 612 downloadOptions: _downloadOptions); | 630 downloadOptions: _downloadOptions); |
| 613 return _response.then((data) => new Empty.fromJson(data)); | 631 return _response.then((data) => new Empty.fromJson(data)); |
| 614 } | 632 } |
| 615 | 633 |
| 616 /** | 634 /** |
| 617 * Lists the logs in projects or organizations. Only logs that have entries | 635 * Lists the logs in projects, organizations, folders, or billing accounts. |
| 618 * are listed. | 636 * Only logs that have entries are listed. |
| 619 * | 637 * |
| 620 * Request parameters: | 638 * Request parameters: |
| 621 * | 639 * |
| 622 * [parent] - Required. The resource name that owns the logs: | 640 * [parent] - Required. The resource name that owns the logs: |
| 623 * "projects/[PROJECT_ID]" | 641 * "projects/[PROJECT_ID]" |
| 624 * "organizations/[ORGANIZATION_ID]" | 642 * "organizations/[ORGANIZATION_ID]" |
| 643 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 644 * "folders/[FOLDER_ID]" |
| 625 * | 645 * |
| 626 * Value must have pattern "^folders/[^/]+$". | 646 * Value must have pattern "^folders/[^/]+$". |
| 627 * | 647 * |
| 628 * [pageToken] - Optional. If present, then retrieve the next batch of results | 648 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 629 * from the preceding call to this method. pageToken must be the value of | 649 * from the preceding call to this method. pageToken must be the value of |
| 630 * nextPageToken from the previous response. The values of other method | 650 * nextPageToken from the previous response. The values of other method |
| 631 * parameters should be identical to those in the previous call. | 651 * parameters should be identical to those in the previous call. |
| 632 * | 652 * |
| 633 * [pageSize] - Optional. The maximum number of results to return from this | 653 * [pageSize] - Optional. The maximum number of results to return from this |
| 634 * request. Non-positive values are ignored. The presence of nextPageToken in | 654 * request. Non-positive values are ignored. The presence of nextPageToken in |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 * writer_identity is not permitted to write to the destination. A sink can | 708 * writer_identity is not permitted to write to the destination. A sink can |
| 689 * export log entries only from the resource owning the sink. | 709 * export log entries only from the resource owning the sink. |
| 690 * | 710 * |
| 691 * [request] - The metadata request object. | 711 * [request] - The metadata request object. |
| 692 * | 712 * |
| 693 * Request parameters: | 713 * Request parameters: |
| 694 * | 714 * |
| 695 * [parent] - Required. The resource in which to create the sink: | 715 * [parent] - Required. The resource in which to create the sink: |
| 696 * "projects/[PROJECT_ID]" | 716 * "projects/[PROJECT_ID]" |
| 697 * "organizations/[ORGANIZATION_ID]" | 717 * "organizations/[ORGANIZATION_ID]" |
| 718 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 719 * "folders/[FOLDER_ID]" |
| 698 * Examples: "projects/my-logging-project", "organizations/123456789". | 720 * Examples: "projects/my-logging-project", "organizations/123456789". |
| 699 * Value must have pattern "^folders/[^/]+$". | 721 * Value must have pattern "^folders/[^/]+$". |
| 700 * | 722 * |
| 701 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity | 723 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity |
| 702 * 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 |
| 703 * 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 |
| 704 * returned as writer_identity is cloud-logs@google.com, the same identity | 726 * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the |
| 705 * used before the addition of writer identities to this API. The sink's | 727 * same identity used before the addition of writer identities to this API. |
| 706 * destination must be in the same project as the sink itself.If this field is | 728 * The sink's destination must be in the same project as the sink itself.If |
| 707 * set to true, or if the sink is owned by a non-project resource such as an | 729 * this field is set to true, or if the sink is owned by a non-project |
| 708 * organization, then the value of writer_identity will be a unique service | 730 * resource such as an organization, then the value of writer_identity will be |
| 709 * account used only for exports from the new sink. For more information, see | 731 * a unique service account used only for exports from the new sink. For more |
| 710 * writer_identity in LogSink. | 732 * information, see writer_identity in LogSink. |
| 711 * | 733 * |
| 712 * Completes with a [LogSink]. | 734 * Completes with a [LogSink]. |
| 713 * | 735 * |
| 714 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 736 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 715 * error. | 737 * error. |
| 716 * | 738 * |
| 717 * If the used [http.Client] completes with an error when making a REST call, | 739 * If the used [http.Client] completes with an error when making a REST call, |
| 718 * this method will complete with the same error. | 740 * this method will complete with the same error. |
| 719 */ | 741 */ |
| 720 async.Future<LogSink> create(LogSink request, core.String parent, {core.bool u
niqueWriterIdentity}) { | 742 async.Future<LogSink> create(LogSink request, core.String parent, {core.bool u
niqueWriterIdentity}) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 750 /** | 772 /** |
| 751 * Deletes a sink. If the sink has a unique writer_identity, then that service | 773 * Deletes a sink. If the sink has a unique writer_identity, then that service |
| 752 * account is also deleted. | 774 * account is also deleted. |
| 753 * | 775 * |
| 754 * Request parameters: | 776 * Request parameters: |
| 755 * | 777 * |
| 756 * [sinkName] - Required. The full resource name of the sink to delete, | 778 * [sinkName] - Required. The full resource name of the sink to delete, |
| 757 * including the parent resource and the sink identifier: | 779 * including the parent resource and the sink identifier: |
| 758 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 780 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 759 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 781 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 760 * It is an error if the sink does not exist. Example: | 782 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 761 * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does | 783 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 762 * not exist. | 784 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 763 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". | 785 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". |
| 764 * | 786 * |
| 765 * Completes with a [Empty]. | 787 * Completes with a [Empty]. |
| 766 * | 788 * |
| 767 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 789 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 768 * error. | 790 * error. |
| 769 * | 791 * |
| 770 * If the used [http.Client] completes with an error when making a REST call, | 792 * If the used [http.Client] completes with an error when making a REST call, |
| 771 * this method will complete with the same error. | 793 * this method will complete with the same error. |
| 772 */ | 794 */ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 792 uploadMedia: _uploadMedia, | 814 uploadMedia: _uploadMedia, |
| 793 downloadOptions: _downloadOptions); | 815 downloadOptions: _downloadOptions); |
| 794 return _response.then((data) => new Empty.fromJson(data)); | 816 return _response.then((data) => new Empty.fromJson(data)); |
| 795 } | 817 } |
| 796 | 818 |
| 797 /** | 819 /** |
| 798 * Gets a sink. | 820 * Gets a sink. |
| 799 * | 821 * |
| 800 * Request parameters: | 822 * Request parameters: |
| 801 * | 823 * |
| 802 * [sinkName] - Required. The parent resource name of the sink: | 824 * [sinkName] - Required. The resource name of the sink: |
| 803 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 825 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 804 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 826 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 827 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 828 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 805 * Example: "projects/my-project-id/sinks/my-sink-id". | 829 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 806 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". | 830 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". |
| 807 * | 831 * |
| 808 * Completes with a [LogSink]. | 832 * Completes with a [LogSink]. |
| 809 * | 833 * |
| 810 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 834 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 811 * error. | 835 * error. |
| 812 * | 836 * |
| 813 * If the used [http.Client] completes with an error when making a REST call, | 837 * If the used [http.Client] completes with an error when making a REST call, |
| 814 * this method will complete with the same error. | 838 * this method will complete with the same error. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 835 uploadMedia: _uploadMedia, | 859 uploadMedia: _uploadMedia, |
| 836 downloadOptions: _downloadOptions); | 860 downloadOptions: _downloadOptions); |
| 837 return _response.then((data) => new LogSink.fromJson(data)); | 861 return _response.then((data) => new LogSink.fromJson(data)); |
| 838 } | 862 } |
| 839 | 863 |
| 840 /** | 864 /** |
| 841 * Lists sinks. | 865 * Lists sinks. |
| 842 * | 866 * |
| 843 * Request parameters: | 867 * Request parameters: |
| 844 * | 868 * |
| 845 * [parent] - Required. The parent resource whose sinks are to be listed. | 869 * [parent] - Required. The parent resource whose sinks are to be listed: |
| 846 * Examples: "projects/my-logging-project", "organizations/123456789". | 870 * "projects/[PROJECT_ID]" |
| 871 * "organizations/[ORGANIZATION_ID]" |
| 872 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 873 * "folders/[FOLDER_ID]" |
| 874 * |
| 847 * Value must have pattern "^folders/[^/]+$". | 875 * Value must have pattern "^folders/[^/]+$". |
| 848 * | 876 * |
| 849 * [pageToken] - Optional. If present, then retrieve the next batch of results | 877 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 850 * from the preceding call to this method. pageToken must be the value of | 878 * from the preceding call to this method. pageToken must be the value of |
| 851 * nextPageToken from the previous response. The values of other method | 879 * nextPageToken from the previous response. The values of other method |
| 852 * parameters should be identical to those in the previous call. | 880 * parameters should be identical to those in the previous call. |
| 853 * | 881 * |
| 854 * [pageSize] - Optional. The maximum number of results to return from this | 882 * [pageSize] - Optional. The maximum number of results to return from this |
| 855 * request. Non-positive values are ignored. The presence of nextPageToken in | 883 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 856 * the response indicates that more results might be available. | 884 * the response indicates that more results might be available. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 * unique_writer_identity field. | 930 * unique_writer_identity field. |
| 903 * | 931 * |
| 904 * [request] - The metadata request object. | 932 * [request] - The metadata request object. |
| 905 * | 933 * |
| 906 * Request parameters: | 934 * Request parameters: |
| 907 * | 935 * |
| 908 * [sinkName] - Required. The full resource name of the sink to update, | 936 * [sinkName] - Required. The full resource name of the sink to update, |
| 909 * including the parent resource and the sink identifier: | 937 * including the parent resource and the sink identifier: |
| 910 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 938 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 911 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 939 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 940 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 941 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 912 * Example: "projects/my-project-id/sinks/my-sink-id". | 942 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 913 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". | 943 * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". |
| 914 * | 944 * |
| 915 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of | 945 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of |
| 916 * 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 |
| 917 * 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 |
| 918 * of this field: | 948 * of this field: |
| 919 * 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 |
| 920 * there is no change to the sink's writer_identity. | 950 * there is no change to the sink's writer_identity. |
| 921 * If the old value was false and the new value is true, then writer_identity | 951 * If the old value was false and the new value is true, then writer_identity |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 | 1064 |
| 1035 | 1065 |
| 1036 class OrganizationsLogsResourceApi { | 1066 class OrganizationsLogsResourceApi { |
| 1037 final commons.ApiRequester _requester; | 1067 final commons.ApiRequester _requester; |
| 1038 | 1068 |
| 1039 OrganizationsLogsResourceApi(commons.ApiRequester client) : | 1069 OrganizationsLogsResourceApi(commons.ApiRequester client) : |
| 1040 _requester = client; | 1070 _requester = client; |
| 1041 | 1071 |
| 1042 /** | 1072 /** |
| 1043 * Deletes all the log entries in a log. The log reappears if it receives new | 1073 * Deletes all the log entries in a log. The log reappears if it receives new |
| 1044 * entries. | 1074 * entries. Log entries written shortly before the delete operation might not |
| 1075 * be deleted. |
| 1045 * | 1076 * |
| 1046 * Request parameters: | 1077 * Request parameters: |
| 1047 * | 1078 * |
| 1048 * [logName] - Required. The resource name of the log to delete: | 1079 * [logName] - Required. The resource name of the log to delete: |
| 1049 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 1080 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 1050 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 1081 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 1082 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 1083 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 1051 * [LOG_ID] must be URL-encoded. For example, | 1084 * [LOG_ID] must be URL-encoded. For example, |
| 1052 * "projects/my-project-id/logs/syslog", | 1085 * "projects/my-project-id/logs/syslog", |
| 1053 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 1086 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 1054 * For more information about log names, see LogEntry. | 1087 * For more information about log names, see LogEntry. |
| 1055 * Value must have pattern "^organizations/[^/]+/logs/[^/]+$". | 1088 * Value must have pattern "^organizations/[^/]+/logs/[^/]+$". |
| 1056 * | 1089 * |
| 1057 * Completes with a [Empty]. | 1090 * Completes with a [Empty]. |
| 1058 * | 1091 * |
| 1059 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1092 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1060 * error. | 1093 * error. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1080 "DELETE", | 1113 "DELETE", |
| 1081 body: _body, | 1114 body: _body, |
| 1082 queryParams: _queryParams, | 1115 queryParams: _queryParams, |
| 1083 uploadOptions: _uploadOptions, | 1116 uploadOptions: _uploadOptions, |
| 1084 uploadMedia: _uploadMedia, | 1117 uploadMedia: _uploadMedia, |
| 1085 downloadOptions: _downloadOptions); | 1118 downloadOptions: _downloadOptions); |
| 1086 return _response.then((data) => new Empty.fromJson(data)); | 1119 return _response.then((data) => new Empty.fromJson(data)); |
| 1087 } | 1120 } |
| 1088 | 1121 |
| 1089 /** | 1122 /** |
| 1090 * Lists the logs in projects or organizations. Only logs that have entries | 1123 * Lists the logs in projects, organizations, folders, or billing accounts. |
| 1091 * are listed. | 1124 * Only logs that have entries are listed. |
| 1092 * | 1125 * |
| 1093 * Request parameters: | 1126 * Request parameters: |
| 1094 * | 1127 * |
| 1095 * [parent] - Required. The resource name that owns the logs: | 1128 * [parent] - Required. The resource name that owns the logs: |
| 1096 * "projects/[PROJECT_ID]" | 1129 * "projects/[PROJECT_ID]" |
| 1097 * "organizations/[ORGANIZATION_ID]" | 1130 * "organizations/[ORGANIZATION_ID]" |
| 1131 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1132 * "folders/[FOLDER_ID]" |
| 1098 * | 1133 * |
| 1099 * Value must have pattern "^organizations/[^/]+$". | 1134 * Value must have pattern "^organizations/[^/]+$". |
| 1100 * | 1135 * |
| 1101 * [pageSize] - Optional. The maximum number of results to return from this | 1136 * [pageSize] - Optional. The maximum number of results to return from this |
| 1102 * request. Non-positive values are ignored. The presence of nextPageToken in | 1137 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 1103 * the response indicates that more results might be available. | 1138 * the response indicates that more results might be available. |
| 1104 * | 1139 * |
| 1105 * [pageToken] - Optional. If present, then retrieve the next batch of results | 1140 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 1106 * from the preceding call to this method. pageToken must be the value of | 1141 * from the preceding call to this method. pageToken must be the value of |
| 1107 * nextPageToken from the previous response. The values of other method | 1142 * nextPageToken from the previous response. The values of other method |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1161 * writer_identity is not permitted to write to the destination. A sink can | 1196 * writer_identity is not permitted to write to the destination. A sink can |
| 1162 * export log entries only from the resource owning the sink. | 1197 * export log entries only from the resource owning the sink. |
| 1163 * | 1198 * |
| 1164 * [request] - The metadata request object. | 1199 * [request] - The metadata request object. |
| 1165 * | 1200 * |
| 1166 * Request parameters: | 1201 * Request parameters: |
| 1167 * | 1202 * |
| 1168 * [parent] - Required. The resource in which to create the sink: | 1203 * [parent] - Required. The resource in which to create the sink: |
| 1169 * "projects/[PROJECT_ID]" | 1204 * "projects/[PROJECT_ID]" |
| 1170 * "organizations/[ORGANIZATION_ID]" | 1205 * "organizations/[ORGANIZATION_ID]" |
| 1206 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1207 * "folders/[FOLDER_ID]" |
| 1171 * Examples: "projects/my-logging-project", "organizations/123456789". | 1208 * Examples: "projects/my-logging-project", "organizations/123456789". |
| 1172 * Value must have pattern "^organizations/[^/]+$". | 1209 * Value must have pattern "^organizations/[^/]+$". |
| 1173 * | 1210 * |
| 1174 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity | 1211 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity |
| 1175 * 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 |
| 1176 * 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 |
| 1177 * returned as writer_identity is cloud-logs@google.com, the same identity | 1214 * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the |
| 1178 * used before the addition of writer identities to this API. The sink's | 1215 * same identity used before the addition of writer identities to this API. |
| 1179 * destination must be in the same project as the sink itself.If this field is | 1216 * The sink's destination must be in the same project as the sink itself.If |
| 1180 * set to true, or if the sink is owned by a non-project resource such as an | 1217 * this field is set to true, or if the sink is owned by a non-project |
| 1181 * organization, then the value of writer_identity will be a unique service | 1218 * resource such as an organization, then the value of writer_identity will be |
| 1182 * account used only for exports from the new sink. For more information, see | 1219 * a unique service account used only for exports from the new sink. For more |
| 1183 * writer_identity in LogSink. | 1220 * information, see writer_identity in LogSink. |
| 1184 * | 1221 * |
| 1185 * Completes with a [LogSink]. | 1222 * Completes with a [LogSink]. |
| 1186 * | 1223 * |
| 1187 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1224 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1188 * error. | 1225 * error. |
| 1189 * | 1226 * |
| 1190 * If the used [http.Client] completes with an error when making a REST call, | 1227 * If the used [http.Client] completes with an error when making a REST call, |
| 1191 * this method will complete with the same error. | 1228 * this method will complete with the same error. |
| 1192 */ | 1229 */ |
| 1193 async.Future<LogSink> create(LogSink request, core.String parent, {core.bool u
niqueWriterIdentity}) { | 1230 async.Future<LogSink> create(LogSink request, core.String parent, {core.bool u
niqueWriterIdentity}) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1223 /** | 1260 /** |
| 1224 * Deletes a sink. If the sink has a unique writer_identity, then that service | 1261 * Deletes a sink. If the sink has a unique writer_identity, then that service |
| 1225 * account is also deleted. | 1262 * account is also deleted. |
| 1226 * | 1263 * |
| 1227 * Request parameters: | 1264 * Request parameters: |
| 1228 * | 1265 * |
| 1229 * [sinkName] - Required. The full resource name of the sink to delete, | 1266 * [sinkName] - Required. The full resource name of the sink to delete, |
| 1230 * including the parent resource and the sink identifier: | 1267 * including the parent resource and the sink identifier: |
| 1231 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 1268 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 1232 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 1269 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 1233 * It is an error if the sink does not exist. Example: | 1270 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 1234 * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does | 1271 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 1235 * not exist. | 1272 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 1236 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". | 1273 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". |
| 1237 * | 1274 * |
| 1238 * Completes with a [Empty]. | 1275 * Completes with a [Empty]. |
| 1239 * | 1276 * |
| 1240 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1277 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1241 * error. | 1278 * error. |
| 1242 * | 1279 * |
| 1243 * If the used [http.Client] completes with an error when making a REST call, | 1280 * If the used [http.Client] completes with an error when making a REST call, |
| 1244 * this method will complete with the same error. | 1281 * this method will complete with the same error. |
| 1245 */ | 1282 */ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1265 uploadMedia: _uploadMedia, | 1302 uploadMedia: _uploadMedia, |
| 1266 downloadOptions: _downloadOptions); | 1303 downloadOptions: _downloadOptions); |
| 1267 return _response.then((data) => new Empty.fromJson(data)); | 1304 return _response.then((data) => new Empty.fromJson(data)); |
| 1268 } | 1305 } |
| 1269 | 1306 |
| 1270 /** | 1307 /** |
| 1271 * Gets a sink. | 1308 * Gets a sink. |
| 1272 * | 1309 * |
| 1273 * Request parameters: | 1310 * Request parameters: |
| 1274 * | 1311 * |
| 1275 * [sinkName] - Required. The parent resource name of the sink: | 1312 * [sinkName] - Required. The resource name of the sink: |
| 1276 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 1313 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 1277 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 1314 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 1315 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 1316 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 1278 * Example: "projects/my-project-id/sinks/my-sink-id". | 1317 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 1279 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". | 1318 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". |
| 1280 * | 1319 * |
| 1281 * Completes with a [LogSink]. | 1320 * Completes with a [LogSink]. |
| 1282 * | 1321 * |
| 1283 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1322 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1284 * error. | 1323 * error. |
| 1285 * | 1324 * |
| 1286 * If the used [http.Client] completes with an error when making a REST call, | 1325 * If the used [http.Client] completes with an error when making a REST call, |
| 1287 * this method will complete with the same error. | 1326 * this method will complete with the same error. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1308 uploadMedia: _uploadMedia, | 1347 uploadMedia: _uploadMedia, |
| 1309 downloadOptions: _downloadOptions); | 1348 downloadOptions: _downloadOptions); |
| 1310 return _response.then((data) => new LogSink.fromJson(data)); | 1349 return _response.then((data) => new LogSink.fromJson(data)); |
| 1311 } | 1350 } |
| 1312 | 1351 |
| 1313 /** | 1352 /** |
| 1314 * Lists sinks. | 1353 * Lists sinks. |
| 1315 * | 1354 * |
| 1316 * Request parameters: | 1355 * Request parameters: |
| 1317 * | 1356 * |
| 1318 * [parent] - Required. The parent resource whose sinks are to be listed. | 1357 * [parent] - Required. The parent resource whose sinks are to be listed: |
| 1319 * Examples: "projects/my-logging-project", "organizations/123456789". | 1358 * "projects/[PROJECT_ID]" |
| 1359 * "organizations/[ORGANIZATION_ID]" |
| 1360 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1361 * "folders/[FOLDER_ID]" |
| 1362 * |
| 1320 * Value must have pattern "^organizations/[^/]+$". | 1363 * Value must have pattern "^organizations/[^/]+$". |
| 1321 * | 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 * |
| 1322 * [pageToken] - Optional. If present, then retrieve the next batch of results | 1369 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 1323 * from the preceding call to this method. pageToken must be the value of | 1370 * from the preceding call to this method. pageToken must be the value of |
| 1324 * nextPageToken from the previous response. The values of other method | 1371 * nextPageToken from the previous response. The values of other method |
| 1325 * parameters should be identical to those in the previous call. | 1372 * parameters should be identical to those in the previous call. |
| 1326 * | 1373 * |
| 1327 * [pageSize] - Optional. The maximum number of results to return from this | |
| 1328 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 1329 * the response indicates that more results might be available. | |
| 1330 * | |
| 1331 * Completes with a [ListSinksResponse]. | 1374 * Completes with a [ListSinksResponse]. |
| 1332 * | 1375 * |
| 1333 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1334 * error. | 1377 * error. |
| 1335 * | 1378 * |
| 1336 * 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, |
| 1337 * this method will complete with the same error. | 1380 * this method will complete with the same error. |
| 1338 */ | 1381 */ |
| 1339 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke
n, core.int pageSize}) { | 1382 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c
ore.String pageToken}) { |
| 1340 var _url = null; | 1383 var _url = null; |
| 1341 var _queryParams = new core.Map(); | 1384 var _queryParams = new core.Map(); |
| 1342 var _uploadMedia = null; | 1385 var _uploadMedia = null; |
| 1343 var _uploadOptions = null; | 1386 var _uploadOptions = null; |
| 1344 var _downloadOptions = commons.DownloadOptions.Metadata; | 1387 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1345 var _body = null; | 1388 var _body = null; |
| 1346 | 1389 |
| 1347 if (parent == null) { | 1390 if (parent == null) { |
| 1348 throw new core.ArgumentError("Parameter parent is required."); | 1391 throw new core.ArgumentError("Parameter parent is required."); |
| 1349 } | 1392 } |
| 1393 if (pageSize != null) { |
| 1394 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1395 } |
| 1350 if (pageToken != null) { | 1396 if (pageToken != null) { |
| 1351 _queryParams["pageToken"] = [pageToken]; | 1397 _queryParams["pageToken"] = [pageToken]; |
| 1352 } | 1398 } |
| 1353 if (pageSize != null) { | |
| 1354 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1355 } | |
| 1356 | 1399 |
| 1357 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; | 1400 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; |
| 1358 | 1401 |
| 1359 var _response = _requester.request(_url, | 1402 var _response = _requester.request(_url, |
| 1360 "GET", | 1403 "GET", |
| 1361 body: _body, | 1404 body: _body, |
| 1362 queryParams: _queryParams, | 1405 queryParams: _queryParams, |
| 1363 uploadOptions: _uploadOptions, | 1406 uploadOptions: _uploadOptions, |
| 1364 uploadMedia: _uploadMedia, | 1407 uploadMedia: _uploadMedia, |
| 1365 downloadOptions: _downloadOptions); | 1408 downloadOptions: _downloadOptions); |
| 1366 return _response.then((data) => new ListSinksResponse.fromJson(data)); | 1409 return _response.then((data) => new ListSinksResponse.fromJson(data)); |
| 1367 } | 1410 } |
| 1368 | 1411 |
| 1369 /** | 1412 /** |
| 1370 * Updates a sink. If the named sink doesn't exist, then this method is | 1413 * Updates a sink. If the named sink doesn't exist, then this method is |
| 1371 * identical to sinks.create. If the named sink does exist, then this method | 1414 * identical to sinks.create. If the named sink does exist, then this method |
| 1372 * replaces the following fields in the existing sink with values from the new | 1415 * replaces the following fields in the existing sink with values from the new |
| 1373 * sink: destination, filter, output_version_format, start_time, and end_time. | 1416 * sink: destination, filter, output_version_format, start_time, and end_time. |
| 1374 * The updated filter might also have a new writer_identity; see the | 1417 * The updated filter might also have a new writer_identity; see the |
| 1375 * unique_writer_identity field. | 1418 * unique_writer_identity field. |
| 1376 * | 1419 * |
| 1377 * [request] - The metadata request object. | 1420 * [request] - The metadata request object. |
| 1378 * | 1421 * |
| 1379 * Request parameters: | 1422 * Request parameters: |
| 1380 * | 1423 * |
| 1381 * [sinkName] - Required. The full resource name of the sink to update, | 1424 * [sinkName] - Required. The full resource name of the sink to update, |
| 1382 * including the parent resource and the sink identifier: | 1425 * including the parent resource and the sink identifier: |
| 1383 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 1426 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 1384 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 1427 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 1428 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 1429 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 1385 * Example: "projects/my-project-id/sinks/my-sink-id". | 1430 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 1386 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". | 1431 * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". |
| 1387 * | 1432 * |
| 1388 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of | 1433 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of |
| 1389 * 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 |
| 1390 * 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 |
| 1391 * of this field: | 1436 * of this field: |
| 1392 * 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 |
| 1393 * there is no change to the sink's writer_identity. | 1438 * there is no change to the sink's writer_identity. |
| 1394 * If the old value was false and the new value is true, then writer_identity | 1439 * If the old value was false and the new value is true, then writer_identity |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1449 | 1494 |
| 1450 | 1495 |
| 1451 class ProjectsLogsResourceApi { | 1496 class ProjectsLogsResourceApi { |
| 1452 final commons.ApiRequester _requester; | 1497 final commons.ApiRequester _requester; |
| 1453 | 1498 |
| 1454 ProjectsLogsResourceApi(commons.ApiRequester client) : | 1499 ProjectsLogsResourceApi(commons.ApiRequester client) : |
| 1455 _requester = client; | 1500 _requester = client; |
| 1456 | 1501 |
| 1457 /** | 1502 /** |
| 1458 * Deletes all the log entries in a log. The log reappears if it receives new | 1503 * Deletes all the log entries in a log. The log reappears if it receives new |
| 1459 * entries. | 1504 * entries. Log entries written shortly before the delete operation might not |
| 1505 * be deleted. |
| 1460 * | 1506 * |
| 1461 * Request parameters: | 1507 * Request parameters: |
| 1462 * | 1508 * |
| 1463 * [logName] - Required. The resource name of the log to delete: | 1509 * [logName] - Required. The resource name of the log to delete: |
| 1464 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 1510 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 1465 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 1511 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 1512 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 1513 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 1466 * [LOG_ID] must be URL-encoded. For example, | 1514 * [LOG_ID] must be URL-encoded. For example, |
| 1467 * "projects/my-project-id/logs/syslog", | 1515 * "projects/my-project-id/logs/syslog", |
| 1468 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 1516 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 1469 * For more information about log names, see LogEntry. | 1517 * For more information about log names, see LogEntry. |
| 1470 * Value must have pattern "^projects/[^/]+/logs/[^/]+$". | 1518 * Value must have pattern "^projects/[^/]+/logs/[^/]+$". |
| 1471 * | 1519 * |
| 1472 * Completes with a [Empty]. | 1520 * Completes with a [Empty]. |
| 1473 * | 1521 * |
| 1474 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1522 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1475 * error. | 1523 * error. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1495 "DELETE", | 1543 "DELETE", |
| 1496 body: _body, | 1544 body: _body, |
| 1497 queryParams: _queryParams, | 1545 queryParams: _queryParams, |
| 1498 uploadOptions: _uploadOptions, | 1546 uploadOptions: _uploadOptions, |
| 1499 uploadMedia: _uploadMedia, | 1547 uploadMedia: _uploadMedia, |
| 1500 downloadOptions: _downloadOptions); | 1548 downloadOptions: _downloadOptions); |
| 1501 return _response.then((data) => new Empty.fromJson(data)); | 1549 return _response.then((data) => new Empty.fromJson(data)); |
| 1502 } | 1550 } |
| 1503 | 1551 |
| 1504 /** | 1552 /** |
| 1505 * Lists the logs in projects or organizations. Only logs that have entries | 1553 * Lists the logs in projects, organizations, folders, or billing accounts. |
| 1506 * are listed. | 1554 * Only logs that have entries are listed. |
| 1507 * | 1555 * |
| 1508 * Request parameters: | 1556 * Request parameters: |
| 1509 * | 1557 * |
| 1510 * [parent] - Required. The resource name that owns the logs: | 1558 * [parent] - Required. The resource name that owns the logs: |
| 1511 * "projects/[PROJECT_ID]" | 1559 * "projects/[PROJECT_ID]" |
| 1512 * "organizations/[ORGANIZATION_ID]" | 1560 * "organizations/[ORGANIZATION_ID]" |
| 1561 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1562 * "folders/[FOLDER_ID]" |
| 1513 * | 1563 * |
| 1514 * Value must have pattern "^projects/[^/]+$". | 1564 * Value must have pattern "^projects/[^/]+$". |
| 1515 * | 1565 * |
| 1516 * [pageSize] - Optional. The maximum number of results to return from this | |
| 1517 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 1518 * the response indicates that more results might be available. | |
| 1519 * | |
| 1520 * [pageToken] - Optional. If present, then retrieve the next batch of results | 1566 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 1521 * from the preceding call to this method. pageToken must be the value of | 1567 * from the preceding call to this method. pageToken must be the value of |
| 1522 * nextPageToken from the previous response. The values of other method | 1568 * nextPageToken from the previous response. The values of other method |
| 1523 * parameters should be identical to those in the previous call. | 1569 * parameters should be identical to those in the previous call. |
| 1524 * | 1570 * |
| 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 * |
| 1525 * Completes with a [ListLogsResponse]. | 1575 * Completes with a [ListLogsResponse]. |
| 1526 * | 1576 * |
| 1527 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1577 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1528 * error. | 1578 * error. |
| 1529 * | 1579 * |
| 1530 * 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, |
| 1531 * this method will complete with the same error. | 1581 * this method will complete with the same error. |
| 1532 */ | 1582 */ |
| 1533 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { | 1583 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken
, core.int pageSize}) { |
| 1534 var _url = null; | 1584 var _url = null; |
| 1535 var _queryParams = new core.Map(); | 1585 var _queryParams = new core.Map(); |
| 1536 var _uploadMedia = null; | 1586 var _uploadMedia = null; |
| 1537 var _uploadOptions = null; | 1587 var _uploadOptions = null; |
| 1538 var _downloadOptions = commons.DownloadOptions.Metadata; | 1588 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1539 var _body = null; | 1589 var _body = null; |
| 1540 | 1590 |
| 1541 if (parent == null) { | 1591 if (parent == null) { |
| 1542 throw new core.ArgumentError("Parameter parent is required."); | 1592 throw new core.ArgumentError("Parameter parent is required."); |
| 1543 } | 1593 } |
| 1594 if (pageToken != null) { |
| 1595 _queryParams["pageToken"] = [pageToken]; |
| 1596 } |
| 1544 if (pageSize != null) { | 1597 if (pageSize != null) { |
| 1545 _queryParams["pageSize"] = ["${pageSize}"]; | 1598 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1546 } | 1599 } |
| 1547 if (pageToken != null) { | |
| 1548 _queryParams["pageToken"] = [pageToken]; | |
| 1549 } | |
| 1550 | 1600 |
| 1551 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; | 1601 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; |
| 1552 | 1602 |
| 1553 var _response = _requester.request(_url, | 1603 var _response = _requester.request(_url, |
| 1554 "GET", | 1604 "GET", |
| 1555 body: _body, | 1605 body: _body, |
| 1556 queryParams: _queryParams, | 1606 queryParams: _queryParams, |
| 1557 uploadOptions: _uploadOptions, | 1607 uploadOptions: _uploadOptions, |
| 1558 uploadMedia: _uploadMedia, | 1608 uploadMedia: _uploadMedia, |
| 1559 downloadOptions: _downloadOptions); | 1609 downloadOptions: _downloadOptions); |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1822 * writer_identity is not permitted to write to the destination. A sink can | 1872 * writer_identity is not permitted to write to the destination. A sink can |
| 1823 * export log entries only from the resource owning the sink. | 1873 * export log entries only from the resource owning the sink. |
| 1824 * | 1874 * |
| 1825 * [request] - The metadata request object. | 1875 * [request] - The metadata request object. |
| 1826 * | 1876 * |
| 1827 * Request parameters: | 1877 * Request parameters: |
| 1828 * | 1878 * |
| 1829 * [parent] - Required. The resource in which to create the sink: | 1879 * [parent] - Required. The resource in which to create the sink: |
| 1830 * "projects/[PROJECT_ID]" | 1880 * "projects/[PROJECT_ID]" |
| 1831 * "organizations/[ORGANIZATION_ID]" | 1881 * "organizations/[ORGANIZATION_ID]" |
| 1882 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1883 * "folders/[FOLDER_ID]" |
| 1832 * Examples: "projects/my-logging-project", "organizations/123456789". | 1884 * Examples: "projects/my-logging-project", "organizations/123456789". |
| 1833 * Value must have pattern "^projects/[^/]+$". | 1885 * Value must have pattern "^projects/[^/]+$". |
| 1834 * | 1886 * |
| 1835 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity | 1887 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity |
| 1836 * 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 |
| 1837 * 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 |
| 1838 * returned as writer_identity is cloud-logs@google.com, the same identity | 1890 * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the |
| 1839 * used before the addition of writer identities to this API. The sink's | 1891 * same identity used before the addition of writer identities to this API. |
| 1840 * destination must be in the same project as the sink itself.If this field is | 1892 * The sink's destination must be in the same project as the sink itself.If |
| 1841 * set to true, or if the sink is owned by a non-project resource such as an | 1893 * this field is set to true, or if the sink is owned by a non-project |
| 1842 * organization, then the value of writer_identity will be a unique service | 1894 * resource such as an organization, then the value of writer_identity will be |
| 1843 * account used only for exports from the new sink. For more information, see | 1895 * a unique service account used only for exports from the new sink. For more |
| 1844 * writer_identity in LogSink. | 1896 * information, see writer_identity in LogSink. |
| 1845 * | 1897 * |
| 1846 * Completes with a [LogSink]. | 1898 * Completes with a [LogSink]. |
| 1847 * | 1899 * |
| 1848 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1900 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1849 * error. | 1901 * error. |
| 1850 * | 1902 * |
| 1851 * If the used [http.Client] completes with an error when making a REST call, | 1903 * If the used [http.Client] completes with an error when making a REST call, |
| 1852 * this method will complete with the same error. | 1904 * this method will complete with the same error. |
| 1853 */ | 1905 */ |
| 1854 async.Future<LogSink> create(LogSink request, core.String parent, {core.bool u
niqueWriterIdentity}) { | 1906 async.Future<LogSink> create(LogSink request, core.String parent, {core.bool u
niqueWriterIdentity}) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1884 /** | 1936 /** |
| 1885 * Deletes a sink. If the sink has a unique writer_identity, then that service | 1937 * Deletes a sink. If the sink has a unique writer_identity, then that service |
| 1886 * account is also deleted. | 1938 * account is also deleted. |
| 1887 * | 1939 * |
| 1888 * Request parameters: | 1940 * Request parameters: |
| 1889 * | 1941 * |
| 1890 * [sinkName] - Required. The full resource name of the sink to delete, | 1942 * [sinkName] - Required. The full resource name of the sink to delete, |
| 1891 * including the parent resource and the sink identifier: | 1943 * including the parent resource and the sink identifier: |
| 1892 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 1944 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 1893 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 1945 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 1894 * It is an error if the sink does not exist. Example: | 1946 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 1895 * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does | 1947 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 1896 * not exist. | 1948 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 1897 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". | 1949 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". |
| 1898 * | 1950 * |
| 1899 * Completes with a [Empty]. | 1951 * Completes with a [Empty]. |
| 1900 * | 1952 * |
| 1901 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1953 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1902 * error. | 1954 * error. |
| 1903 * | 1955 * |
| 1904 * If the used [http.Client] completes with an error when making a REST call, | 1956 * If the used [http.Client] completes with an error when making a REST call, |
| 1905 * this method will complete with the same error. | 1957 * this method will complete with the same error. |
| 1906 */ | 1958 */ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1926 uploadMedia: _uploadMedia, | 1978 uploadMedia: _uploadMedia, |
| 1927 downloadOptions: _downloadOptions); | 1979 downloadOptions: _downloadOptions); |
| 1928 return _response.then((data) => new Empty.fromJson(data)); | 1980 return _response.then((data) => new Empty.fromJson(data)); |
| 1929 } | 1981 } |
| 1930 | 1982 |
| 1931 /** | 1983 /** |
| 1932 * Gets a sink. | 1984 * Gets a sink. |
| 1933 * | 1985 * |
| 1934 * Request parameters: | 1986 * Request parameters: |
| 1935 * | 1987 * |
| 1936 * [sinkName] - Required. The parent resource name of the sink: | 1988 * [sinkName] - Required. The resource name of the sink: |
| 1937 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 1989 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 1938 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 1990 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 1991 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 1992 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 1939 * Example: "projects/my-project-id/sinks/my-sink-id". | 1993 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 1940 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". | 1994 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". |
| 1941 * | 1995 * |
| 1942 * Completes with a [LogSink]. | 1996 * Completes with a [LogSink]. |
| 1943 * | 1997 * |
| 1944 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1998 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1945 * error. | 1999 * error. |
| 1946 * | 2000 * |
| 1947 * If the used [http.Client] completes with an error when making a REST call, | 2001 * If the used [http.Client] completes with an error when making a REST call, |
| 1948 * this method will complete with the same error. | 2002 * this method will complete with the same error. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1969 uploadMedia: _uploadMedia, | 2023 uploadMedia: _uploadMedia, |
| 1970 downloadOptions: _downloadOptions); | 2024 downloadOptions: _downloadOptions); |
| 1971 return _response.then((data) => new LogSink.fromJson(data)); | 2025 return _response.then((data) => new LogSink.fromJson(data)); |
| 1972 } | 2026 } |
| 1973 | 2027 |
| 1974 /** | 2028 /** |
| 1975 * Lists sinks. | 2029 * Lists sinks. |
| 1976 * | 2030 * |
| 1977 * Request parameters: | 2031 * Request parameters: |
| 1978 * | 2032 * |
| 1979 * [parent] - Required. The parent resource whose sinks are to be listed. | 2033 * [parent] - Required. The parent resource whose sinks are to be listed: |
| 1980 * Examples: "projects/my-logging-project", "organizations/123456789". | 2034 * "projects/[PROJECT_ID]" |
| 2035 * "organizations/[ORGANIZATION_ID]" |
| 2036 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 2037 * "folders/[FOLDER_ID]" |
| 2038 * |
| 1981 * Value must have pattern "^projects/[^/]+$". | 2039 * Value must have pattern "^projects/[^/]+$". |
| 1982 * | 2040 * |
| 1983 * [pageToken] - Optional. If present, then retrieve the next batch of results | 2041 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 1984 * from the preceding call to this method. pageToken must be the value of | 2042 * from the preceding call to this method. pageToken must be the value of |
| 1985 * nextPageToken from the previous response. The values of other method | 2043 * nextPageToken from the previous response. The values of other method |
| 1986 * parameters should be identical to those in the previous call. | 2044 * parameters should be identical to those in the previous call. |
| 1987 * | 2045 * |
| 1988 * [pageSize] - Optional. The maximum number of results to return from this | 2046 * [pageSize] - Optional. The maximum number of results to return from this |
| 1989 * request. Non-positive values are ignored. The presence of nextPageToken in | 2047 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 1990 * the response indicates that more results might be available. | 2048 * the response indicates that more results might be available. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2036 * unique_writer_identity field. | 2094 * unique_writer_identity field. |
| 2037 * | 2095 * |
| 2038 * [request] - The metadata request object. | 2096 * [request] - The metadata request object. |
| 2039 * | 2097 * |
| 2040 * Request parameters: | 2098 * Request parameters: |
| 2041 * | 2099 * |
| 2042 * [sinkName] - Required. The full resource name of the sink to update, | 2100 * [sinkName] - Required. The full resource name of the sink to update, |
| 2043 * including the parent resource and the sink identifier: | 2101 * including the parent resource and the sink identifier: |
| 2044 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 2102 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 2045 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 2103 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 2104 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 2105 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 2046 * Example: "projects/my-project-id/sinks/my-sink-id". | 2106 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 2047 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". | 2107 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". |
| 2048 * | 2108 * |
| 2049 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of | 2109 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of |
| 2050 * 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 |
| 2051 * 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 |
| 2052 * of this field: | 2112 * of this field: |
| 2053 * 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 |
| 2054 * there is no change to the sink's writer_identity. | 2114 * there is no change to the sink's writer_identity. |
| 2055 * If the old value was false and the new value is true, then writer_identity | 2115 * If the old value was false and the new value is true, then writer_identity |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2365 */ | 2425 */ |
| 2366 core.String pageToken; | 2426 core.String pageToken; |
| 2367 /** | 2427 /** |
| 2368 * Deprecated. Use resource_names instead. One or more project identifiers or | 2428 * Deprecated. Use resource_names instead. One or more project identifiers or |
| 2369 * project numbers from which to retrieve log entries. Example: | 2429 * project numbers from which to retrieve log entries. Example: |
| 2370 * "my-project-1A". If present, these project identifiers are converted to | 2430 * "my-project-1A". If present, these project identifiers are converted to |
| 2371 * resource name format and added to the list of resources in resource_names. | 2431 * resource name format and added to the list of resources in resource_names. |
| 2372 */ | 2432 */ |
| 2373 core.List<core.String> projectIds; | 2433 core.List<core.String> projectIds; |
| 2374 /** | 2434 /** |
| 2375 * Required. Names of one or more resources from which to retrieve log | 2435 * Required. Names of one or more parent resources from which to retrieve log |
| 2376 * entries: | 2436 * entries: |
| 2377 * "projects/[PROJECT_ID]" | 2437 * "projects/[PROJECT_ID]" |
| 2378 * "organizations/[ORGANIZATION_ID]" | 2438 * "organizations/[ORGANIZATION_ID]" |
| 2439 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 2440 * "folders/[FOLDER_ID]" |
| 2379 * Projects listed in the project_ids field are added to this list. | 2441 * Projects listed in the project_ids field are added to this list. |
| 2380 */ | 2442 */ |
| 2381 core.List<core.String> resourceNames; | 2443 core.List<core.String> resourceNames; |
| 2382 | 2444 |
| 2383 ListLogEntriesRequest(); | 2445 ListLogEntriesRequest(); |
| 2384 | 2446 |
| 2385 ListLogEntriesRequest.fromJson(core.Map _json) { | 2447 ListLogEntriesRequest.fromJson(core.Map _json) { |
| 2386 if (_json.containsKey("filter")) { | 2448 if (_json.containsKey("filter")) { |
| 2387 filter = _json["filter"]; | 2449 filter = _json["filter"]; |
| 2388 } | 2450 } |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2630 core.Map<core.String, core.Object> jsonPayload; | 2692 core.Map<core.String, core.Object> jsonPayload; |
| 2631 /** | 2693 /** |
| 2632 * Optional. A set of user-defined (key, value) data that provides additional | 2694 * Optional. A set of user-defined (key, value) data that provides additional |
| 2633 * information about the log entry. | 2695 * information about the log entry. |
| 2634 */ | 2696 */ |
| 2635 core.Map<core.String, core.String> labels; | 2697 core.Map<core.String, core.String> labels; |
| 2636 /** | 2698 /** |
| 2637 * Required. The resource name of the log to which this log entry belongs: | 2699 * Required. The resource name of the log to which this log entry belongs: |
| 2638 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 2700 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 2639 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 2701 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 2702 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 2703 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 2640 * [LOG_ID] must be URL-encoded within log_name. Example: | 2704 * [LOG_ID] must be URL-encoded within log_name. Example: |
| 2641 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 2705 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 2642 * [LOG_ID] must be less than 512 characters long and can only include the | 2706 * [LOG_ID] must be less than 512 characters long and can only include the |
| 2643 * following characters: upper and lower case alphanumeric characters, | 2707 * following characters: upper and lower case alphanumeric characters, |
| 2644 * forward-slash, underscore, hyphen, and period.For backward compatibility, | 2708 * forward-slash, underscore, hyphen, and period.For backward compatibility, |
| 2645 * if log_name begins with a forward-slash, such as /projects/..., then the | 2709 * if log_name begins with a forward-slash, such as /projects/..., then the |
| 2646 * log entry is ingested as usual but the forward-slash is removed. Listing | 2710 * log entry is ingested as usual but the forward-slash is removed. Listing |
| 2647 * the log entry will not show the leading slash and filtering for a log name | 2711 * the log entry will not show the leading slash and filtering for a log name |
| 2648 * with a leading slash will never return any results. | 2712 * with a leading slash will never return any results. |
| 2649 */ | 2713 */ |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3038 _json["version"] = version; | 3102 _json["version"] = version; |
| 3039 } | 3103 } |
| 3040 return _json; | 3104 return _json; |
| 3041 } | 3105 } |
| 3042 } | 3106 } |
| 3043 | 3107 |
| 3044 /** | 3108 /** |
| 3045 * Describes a sink used to export log entries to one of the following | 3109 * Describes a sink used to export log entries to one of the following |
| 3046 * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a | 3110 * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a |
| 3047 * Cloud Pub/Sub topic. A logs filter controls which log entries are exported. | 3111 * Cloud Pub/Sub topic. A logs filter controls which log entries are exported. |
| 3048 * The sink must be created within a project or organization. | 3112 * The sink must be created within a project, organization, billing account, or |
| 3113 * folder. |
| 3049 */ | 3114 */ |
| 3050 class LogSink { | 3115 class LogSink { |
| 3051 /** | 3116 /** |
| 3052 * Required. The export destination: | 3117 * Required. The export destination: |
| 3053 * "storage.googleapis.com/[GCS_BUCKET]" | 3118 * "storage.googleapis.com/[GCS_BUCKET]" |
| 3054 * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" | 3119 * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" |
| 3055 * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" | 3120 * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" |
| 3056 * The sink's writer_identity, set when the sink is created, must have | 3121 * The sink's writer_identity, set when the sink is created, must have |
| 3057 * permission to write to the destination or else the log entries are not | 3122 * permission to write to the destination or else the log entries are not |
| 3058 * exported. For more information, see Exporting Logs With Sinks. | 3123 * exported. For more information, see Exporting Logs With Sinks. |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3705 * entries in entries. If a log entry already has a label with the same key as | 3770 * entries in entries. If a log entry already has a label with the same key as |
| 3706 * a label in this parameter, then the log entry's label is not changed. See | 3771 * a label in this parameter, then the log entry's label is not changed. See |
| 3707 * LogEntry. | 3772 * LogEntry. |
| 3708 */ | 3773 */ |
| 3709 core.Map<core.String, core.String> labels; | 3774 core.Map<core.String, core.String> labels; |
| 3710 /** | 3775 /** |
| 3711 * Optional. A default log resource name that is assigned to all log entries | 3776 * Optional. A default log resource name that is assigned to all log entries |
| 3712 * in entries that do not specify a value for log_name: | 3777 * in entries that do not specify a value for log_name: |
| 3713 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 3778 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 3714 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 3779 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 3780 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 3781 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 3715 * [LOG_ID] must be URL-encoded. For example, | 3782 * [LOG_ID] must be URL-encoded. For example, |
| 3716 * "projects/my-project-id/logs/syslog" or | 3783 * "projects/my-project-id/logs/syslog" or |
| 3717 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 3784 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 3718 * For more information about log names, see LogEntry. | 3785 * For more information about log names, see LogEntry. |
| 3719 */ | 3786 */ |
| 3720 core.String logName; | 3787 core.String logName; |
| 3721 /** | 3788 /** |
| 3722 * Optional. Whether valid entries should be written even if some other | 3789 * Optional. Whether valid entries should be written even if some other |
| 3723 * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any | 3790 * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any |
| 3724 * entry is not written, the response status will be the error associated with | 3791 * entry is not written, the response status will be the error associated with |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3783 WriteLogEntriesResponse(); | 3850 WriteLogEntriesResponse(); |
| 3784 | 3851 |
| 3785 WriteLogEntriesResponse.fromJson(core.Map _json) { | 3852 WriteLogEntriesResponse.fromJson(core.Map _json) { |
| 3786 } | 3853 } |
| 3787 | 3854 |
| 3788 core.Map toJson() { | 3855 core.Map toJson() { |
| 3789 var _json = new core.Map(); | 3856 var _json = new core.Map(); |
| 3790 return _json; | 3857 return _json; |
| 3791 } | 3858 } |
| 3792 } | 3859 } |
| OLD | NEW |