• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "auth": {
3    "oauth2": {
4      "scopes": {
5        "https://www.googleapis.com/auth/cloud-platform": {
6          "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
7        },
8        "https://www.googleapis.com/auth/cloud-platform.read-only": {
9          "description": "View your data across Google Cloud services and see the email address of your Google Account"
10        },
11        "https://www.googleapis.com/auth/logging.admin": {
12          "description": "Administrate log data for your projects"
13        },
14        "https://www.googleapis.com/auth/logging.read": {
15          "description": "View log data for your projects"
16        },
17        "https://www.googleapis.com/auth/logging.write": {
18          "description": "Submit log data for your projects"
19        }
20      }
21    }
22  },
23  "basePath": "",
24  "baseUrl": "https://logging.googleapis.com/",
25  "batchPath": "batch",
26  "canonicalName": "Logging",
27  "description": "Writes log entries and manages your Cloud Logging configuration.",
28  "discoveryVersion": "v1",
29  "documentationLink": "https://cloud.google.com/logging/docs/",
30  "fullyEncodeReservedExpansion": true,
31  "icons": {
32    "x16": "http://www.google.com/images/icons/product/search-16.gif",
33    "x32": "http://www.google.com/images/icons/product/search-32.gif"
34  },
35  "id": "logging:v2",
36  "kind": "discovery#restDescription",
37  "mtlsRootUrl": "https://logging.mtls.googleapis.com/",
38  "name": "logging",
39  "ownerDomain": "google.com",
40  "ownerName": "Google",
41  "parameters": {
42    "$.xgafv": {
43      "description": "V1 error format.",
44      "enum": [
45        "1",
46        "2"
47      ],
48      "enumDescriptions": [
49        "v1 error format",
50        "v2 error format"
51      ],
52      "location": "query",
53      "type": "string"
54    },
55    "access_token": {
56      "description": "OAuth access token.",
57      "location": "query",
58      "type": "string"
59    },
60    "alt": {
61      "default": "json",
62      "description": "Data format for response.",
63      "enum": [
64        "json",
65        "media",
66        "proto"
67      ],
68      "enumDescriptions": [
69        "Responses with Content-Type of application/json",
70        "Media download with context-dependent Content-Type",
71        "Responses with Content-Type of application/x-protobuf"
72      ],
73      "location": "query",
74      "type": "string"
75    },
76    "callback": {
77      "description": "JSONP",
78      "location": "query",
79      "type": "string"
80    },
81    "fields": {
82      "description": "Selector specifying which fields to include in a partial response.",
83      "location": "query",
84      "type": "string"
85    },
86    "key": {
87      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
88      "location": "query",
89      "type": "string"
90    },
91    "oauth_token": {
92      "description": "OAuth 2.0 token for the current user.",
93      "location": "query",
94      "type": "string"
95    },
96    "prettyPrint": {
97      "default": "true",
98      "description": "Returns response with indentations and line breaks.",
99      "location": "query",
100      "type": "boolean"
101    },
102    "quotaUser": {
103      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
104      "location": "query",
105      "type": "string"
106    },
107    "uploadType": {
108      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
109      "location": "query",
110      "type": "string"
111    },
112    "upload_protocol": {
113      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
114      "location": "query",
115      "type": "string"
116    }
117  },
118  "protocol": "rest",
119  "resources": {
120    "billingAccounts": {
121      "methods": {
122        "getCmekSettings": {
123          "description": "Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.",
124          "flatPath": "v2/billingAccounts/{billingAccountsId}/cmekSettings",
125          "httpMethod": "GET",
126          "id": "logging.billingAccounts.getCmekSettings",
127          "parameterOrder": [
128            "name"
129          ],
130          "parameters": {
131            "name": {
132              "description": "Required. The resource for which to retrieve CMEK settings. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" For example:\"organizations/12345/cmekSettings\"Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.",
133              "location": "path",
134              "pattern": "^billingAccounts/[^/]+$",
135              "required": true,
136              "type": "string"
137            }
138          },
139          "path": "v2/{+name}/cmekSettings",
140          "response": {
141            "$ref": "CmekSettings"
142          },
143          "scopes": [
144            "https://www.googleapis.com/auth/cloud-platform",
145            "https://www.googleapis.com/auth/cloud-platform.read-only",
146            "https://www.googleapis.com/auth/logging.admin",
147            "https://www.googleapis.com/auth/logging.read"
148          ]
149        }
150      },
151      "resources": {
152        "buckets": {
153          "methods": {
154            "get": {
155              "description": "Gets a log bucket.",
156              "flatPath": "v2/billingAccounts/{billingAccountsId}/buckets/{bucketsId}",
157              "httpMethod": "GET",
158              "id": "logging.billingAccounts.buckets.get",
159              "parameterOrder": [
160                "name"
161              ],
162              "parameters": {
163                "name": {
164                  "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
165                  "location": "path",
166                  "pattern": "^billingAccounts/[^/]+/buckets/[^/]+$",
167                  "required": true,
168                  "type": "string"
169                }
170              },
171              "path": "v2/{+name}",
172              "response": {
173                "$ref": "LogBucket"
174              },
175              "scopes": [
176                "https://www.googleapis.com/auth/cloud-platform",
177                "https://www.googleapis.com/auth/cloud-platform.read-only",
178                "https://www.googleapis.com/auth/logging.admin",
179                "https://www.googleapis.com/auth/logging.read"
180              ]
181            }
182          },
183          "resources": {
184            "views": {
185              "methods": {
186                "get": {
187                  "description": "Gets a view on a log bucket..",
188                  "flatPath": "v2/billingAccounts/{billingAccountsId}/buckets/{bucketsId}/views/{viewsId}",
189                  "httpMethod": "GET",
190                  "id": "logging.billingAccounts.buckets.views.get",
191                  "parameterOrder": [
192                    "name"
193                  ],
194                  "parameters": {
195                    "name": {
196                      "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
197                      "location": "path",
198                      "pattern": "^billingAccounts/[^/]+/buckets/[^/]+/views/[^/]+$",
199                      "required": true,
200                      "type": "string"
201                    }
202                  },
203                  "path": "v2/{+name}",
204                  "response": {
205                    "$ref": "LogView"
206                  },
207                  "scopes": [
208                    "https://www.googleapis.com/auth/cloud-platform",
209                    "https://www.googleapis.com/auth/cloud-platform.read-only",
210                    "https://www.googleapis.com/auth/logging.admin",
211                    "https://www.googleapis.com/auth/logging.read"
212                  ]
213                }
214              }
215            }
216          }
217        },
218        "exclusions": {
219          "methods": {
220            "create": {
221              "description": "Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.",
222              "flatPath": "v2/billingAccounts/{billingAccountsId}/exclusions",
223              "httpMethod": "POST",
224              "id": "logging.billingAccounts.exclusions.create",
225              "parameterOrder": [
226                "parent"
227              ],
228              "parameters": {
229                "parent": {
230                  "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" For examples:\"projects/my-logging-project\" \"organizations/123456789\"",
231                  "location": "path",
232                  "pattern": "^billingAccounts/[^/]+$",
233                  "required": true,
234                  "type": "string"
235                }
236              },
237              "path": "v2/{+parent}/exclusions",
238              "request": {
239                "$ref": "LogExclusion"
240              },
241              "response": {
242                "$ref": "LogExclusion"
243              },
244              "scopes": [
245                "https://www.googleapis.com/auth/cloud-platform",
246                "https://www.googleapis.com/auth/logging.admin"
247              ]
248            },
249            "delete": {
250              "description": "Deletes an exclusion in the _Default sink.",
251              "flatPath": "v2/billingAccounts/{billingAccountsId}/exclusions/{exclusionsId}",
252              "httpMethod": "DELETE",
253              "id": "logging.billingAccounts.exclusions.delete",
254              "parameterOrder": [
255                "name"
256              ],
257              "parameters": {
258                "name": {
259                  "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
260                  "location": "path",
261                  "pattern": "^billingAccounts/[^/]+/exclusions/[^/]+$",
262                  "required": true,
263                  "type": "string"
264                }
265              },
266              "path": "v2/{+name}",
267              "response": {
268                "$ref": "Empty"
269              },
270              "scopes": [
271                "https://www.googleapis.com/auth/cloud-platform",
272                "https://www.googleapis.com/auth/logging.admin"
273              ]
274            },
275            "get": {
276              "description": "Gets the description of an exclusion in the _Default sink.",
277              "flatPath": "v2/billingAccounts/{billingAccountsId}/exclusions/{exclusionsId}",
278              "httpMethod": "GET",
279              "id": "logging.billingAccounts.exclusions.get",
280              "parameterOrder": [
281                "name"
282              ],
283              "parameters": {
284                "name": {
285                  "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
286                  "location": "path",
287                  "pattern": "^billingAccounts/[^/]+/exclusions/[^/]+$",
288                  "required": true,
289                  "type": "string"
290                }
291              },
292              "path": "v2/{+name}",
293              "response": {
294                "$ref": "LogExclusion"
295              },
296              "scopes": [
297                "https://www.googleapis.com/auth/cloud-platform",
298                "https://www.googleapis.com/auth/cloud-platform.read-only",
299                "https://www.googleapis.com/auth/logging.admin",
300                "https://www.googleapis.com/auth/logging.read"
301              ]
302            },
303            "list": {
304              "description": "Lists all the exclusions on the _Default sink in a parent resource.",
305              "flatPath": "v2/billingAccounts/{billingAccountsId}/exclusions",
306              "httpMethod": "GET",
307              "id": "logging.billingAccounts.exclusions.list",
308              "parameterOrder": [
309                "parent"
310              ],
311              "parameters": {
312                "pageSize": {
313                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
314                  "format": "int32",
315                  "location": "query",
316                  "type": "integer"
317                },
318                "pageToken": {
319                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
320                  "location": "query",
321                  "type": "string"
322                },
323                "parent": {
324                  "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ",
325                  "location": "path",
326                  "pattern": "^billingAccounts/[^/]+$",
327                  "required": true,
328                  "type": "string"
329                }
330              },
331              "path": "v2/{+parent}/exclusions",
332              "response": {
333                "$ref": "ListExclusionsResponse"
334              },
335              "scopes": [
336                "https://www.googleapis.com/auth/cloud-platform",
337                "https://www.googleapis.com/auth/cloud-platform.read-only",
338                "https://www.googleapis.com/auth/logging.admin",
339                "https://www.googleapis.com/auth/logging.read"
340              ]
341            },
342            "patch": {
343              "description": "Changes one or more properties of an existing exclusion in the _Default sink.",
344              "flatPath": "v2/billingAccounts/{billingAccountsId}/exclusions/{exclusionsId}",
345              "httpMethod": "PATCH",
346              "id": "logging.billingAccounts.exclusions.patch",
347              "parameterOrder": [
348                "name"
349              ],
350              "parameters": {
351                "name": {
352                  "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
353                  "location": "path",
354                  "pattern": "^billingAccounts/[^/]+/exclusions/[^/]+$",
355                  "required": true,
356                  "type": "string"
357                },
358                "updateMask": {
359                  "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".",
360                  "format": "google-fieldmask",
361                  "location": "query",
362                  "type": "string"
363                }
364              },
365              "path": "v2/{+name}",
366              "request": {
367                "$ref": "LogExclusion"
368              },
369              "response": {
370                "$ref": "LogExclusion"
371              },
372              "scopes": [
373                "https://www.googleapis.com/auth/cloud-platform",
374                "https://www.googleapis.com/auth/logging.admin"
375              ]
376            }
377          }
378        },
379        "locations": {
380          "methods": {
381            "get": {
382              "description": "Gets information about a location.",
383              "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}",
384              "httpMethod": "GET",
385              "id": "logging.billingAccounts.locations.get",
386              "parameterOrder": [
387                "name"
388              ],
389              "parameters": {
390                "name": {
391                  "description": "Resource name for the location.",
392                  "location": "path",
393                  "pattern": "^billingAccounts/[^/]+/locations/[^/]+$",
394                  "required": true,
395                  "type": "string"
396                }
397              },
398              "path": "v2/{+name}",
399              "response": {
400                "$ref": "Location"
401              },
402              "scopes": [
403                "https://www.googleapis.com/auth/cloud-platform",
404                "https://www.googleapis.com/auth/cloud-platform.read-only",
405                "https://www.googleapis.com/auth/logging.admin",
406                "https://www.googleapis.com/auth/logging.read"
407              ]
408            },
409            "list": {
410              "description": "Lists information about the supported locations for this service.",
411              "flatPath": "v2/billingAccounts/{billingAccountsId}/locations",
412              "httpMethod": "GET",
413              "id": "logging.billingAccounts.locations.list",
414              "parameterOrder": [
415                "name"
416              ],
417              "parameters": {
418                "filter": {
419                  "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).",
420                  "location": "query",
421                  "type": "string"
422                },
423                "name": {
424                  "description": "The resource that owns the locations collection, if applicable.",
425                  "location": "path",
426                  "pattern": "^billingAccounts/[^/]+$",
427                  "required": true,
428                  "type": "string"
429                },
430                "pageSize": {
431                  "description": "The maximum number of results to return. If not set, the service selects a default.",
432                  "format": "int32",
433                  "location": "query",
434                  "type": "integer"
435                },
436                "pageToken": {
437                  "description": "A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.",
438                  "location": "query",
439                  "type": "string"
440                }
441              },
442              "path": "v2/{+name}/locations",
443              "response": {
444                "$ref": "ListLocationsResponse"
445              },
446              "scopes": [
447                "https://www.googleapis.com/auth/cloud-platform",
448                "https://www.googleapis.com/auth/cloud-platform.read-only",
449                "https://www.googleapis.com/auth/logging.admin",
450                "https://www.googleapis.com/auth/logging.read"
451              ]
452            }
453          },
454          "resources": {
455            "buckets": {
456              "methods": {
457                "create": {
458                  "description": "Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.",
459                  "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets",
460                  "httpMethod": "POST",
461                  "id": "logging.billingAccounts.locations.buckets.create",
462                  "parameterOrder": [
463                    "parent"
464                  ],
465                  "parameters": {
466                    "bucketId": {
467                      "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.",
468                      "location": "query",
469                      "type": "string"
470                    },
471                    "parent": {
472                      "description": "Required. The resource in which to create the log bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"",
473                      "location": "path",
474                      "pattern": "^billingAccounts/[^/]+/locations/[^/]+$",
475                      "required": true,
476                      "type": "string"
477                    }
478                  },
479                  "path": "v2/{+parent}/buckets",
480                  "request": {
481                    "$ref": "LogBucket"
482                  },
483                  "response": {
484                    "$ref": "LogBucket"
485                  },
486                  "scopes": [
487                    "https://www.googleapis.com/auth/cloud-platform",
488                    "https://www.googleapis.com/auth/logging.admin"
489                  ]
490                },
491                "delete": {
492                  "description": "Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.",
493                  "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}",
494                  "httpMethod": "DELETE",
495                  "id": "logging.billingAccounts.locations.buckets.delete",
496                  "parameterOrder": [
497                    "name"
498                  ],
499                  "parameters": {
500                    "name": {
501                      "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
502                      "location": "path",
503                      "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$",
504                      "required": true,
505                      "type": "string"
506                    }
507                  },
508                  "path": "v2/{+name}",
509                  "response": {
510                    "$ref": "Empty"
511                  },
512                  "scopes": [
513                    "https://www.googleapis.com/auth/cloud-platform",
514                    "https://www.googleapis.com/auth/logging.admin"
515                  ]
516                },
517                "list": {
518                  "description": "Lists log buckets.",
519                  "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets",
520                  "httpMethod": "GET",
521                  "id": "logging.billingAccounts.locations.buckets.list",
522                  "parameterOrder": [
523                    "parent"
524                  ],
525                  "parameters": {
526                    "pageSize": {
527                      "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
528                      "format": "int32",
529                      "location": "query",
530                      "type": "integer"
531                    },
532                    "pageToken": {
533                      "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
534                      "location": "query",
535                      "type": "string"
536                    },
537                    "parent": {
538                      "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.",
539                      "location": "path",
540                      "pattern": "^billingAccounts/[^/]+/locations/[^/]+$",
541                      "required": true,
542                      "type": "string"
543                    }
544                  },
545                  "path": "v2/{+parent}/buckets",
546                  "response": {
547                    "$ref": "ListBucketsResponse"
548                  },
549                  "scopes": [
550                    "https://www.googleapis.com/auth/cloud-platform",
551                    "https://www.googleapis.com/auth/cloud-platform.read-only",
552                    "https://www.googleapis.com/auth/logging.admin",
553                    "https://www.googleapis.com/auth/logging.read"
554                  ]
555                },
556                "patch": {
557                  "description": "Updates a log bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.",
558                  "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}",
559                  "httpMethod": "PATCH",
560                  "id": "logging.billingAccounts.locations.buckets.patch",
561                  "parameterOrder": [
562                    "name"
563                  ],
564                  "parameters": {
565                    "name": {
566                      "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
567                      "location": "path",
568                      "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$",
569                      "required": true,
570                      "type": "string"
571                    },
572                    "updateMask": {
573                      "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=retention_days",
574                      "format": "google-fieldmask",
575                      "location": "query",
576                      "type": "string"
577                    }
578                  },
579                  "path": "v2/{+name}",
580                  "request": {
581                    "$ref": "LogBucket"
582                  },
583                  "response": {
584                    "$ref": "LogBucket"
585                  },
586                  "scopes": [
587                    "https://www.googleapis.com/auth/cloud-platform",
588                    "https://www.googleapis.com/auth/logging.admin"
589                  ]
590                },
591                "undelete": {
592                  "description": "Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.",
593                  "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}:undelete",
594                  "httpMethod": "POST",
595                  "id": "logging.billingAccounts.locations.buckets.undelete",
596                  "parameterOrder": [
597                    "name"
598                  ],
599                  "parameters": {
600                    "name": {
601                      "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
602                      "location": "path",
603                      "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$",
604                      "required": true,
605                      "type": "string"
606                    }
607                  },
608                  "path": "v2/{+name}:undelete",
609                  "request": {
610                    "$ref": "UndeleteBucketRequest"
611                  },
612                  "response": {
613                    "$ref": "Empty"
614                  },
615                  "scopes": [
616                    "https://www.googleapis.com/auth/cloud-platform",
617                    "https://www.googleapis.com/auth/logging.admin"
618                  ]
619                }
620              },
621              "resources": {
622                "views": {
623                  "methods": {
624                    "create": {
625                      "description": "Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.",
626                      "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views",
627                      "httpMethod": "POST",
628                      "id": "logging.billingAccounts.locations.buckets.views.create",
629                      "parameterOrder": [
630                        "parent"
631                      ],
632                      "parameters": {
633                        "parent": {
634                          "description": "Required. The bucket in which to create the view `\"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\"` For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
635                          "location": "path",
636                          "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$",
637                          "required": true,
638                          "type": "string"
639                        },
640                        "viewId": {
641                          "description": "Required. The id to use for this view.",
642                          "location": "query",
643                          "type": "string"
644                        }
645                      },
646                      "path": "v2/{+parent}/views",
647                      "request": {
648                        "$ref": "LogView"
649                      },
650                      "response": {
651                        "$ref": "LogView"
652                      },
653                      "scopes": [
654                        "https://www.googleapis.com/auth/cloud-platform",
655                        "https://www.googleapis.com/auth/logging.admin"
656                      ]
657                    },
658                    "delete": {
659                      "description": "Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.",
660                      "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
661                      "httpMethod": "DELETE",
662                      "id": "logging.billingAccounts.locations.buckets.views.delete",
663                      "parameterOrder": [
664                        "name"
665                      ],
666                      "parameters": {
667                        "name": {
668                          "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
669                          "location": "path",
670                          "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
671                          "required": true,
672                          "type": "string"
673                        }
674                      },
675                      "path": "v2/{+name}",
676                      "response": {
677                        "$ref": "Empty"
678                      },
679                      "scopes": [
680                        "https://www.googleapis.com/auth/cloud-platform",
681                        "https://www.googleapis.com/auth/logging.admin"
682                      ]
683                    },
684                    "list": {
685                      "description": "Lists views on a log bucket.",
686                      "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views",
687                      "httpMethod": "GET",
688                      "id": "logging.billingAccounts.locations.buckets.views.list",
689                      "parameterOrder": [
690                        "parent"
691                      ],
692                      "parameters": {
693                        "pageSize": {
694                          "description": "Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
695                          "format": "int32",
696                          "location": "query",
697                          "type": "integer"
698                        },
699                        "pageToken": {
700                          "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
701                          "location": "query",
702                          "type": "string"
703                        },
704                        "parent": {
705                          "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ",
706                          "location": "path",
707                          "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+$",
708                          "required": true,
709                          "type": "string"
710                        }
711                      },
712                      "path": "v2/{+parent}/views",
713                      "response": {
714                        "$ref": "ListViewsResponse"
715                      },
716                      "scopes": [
717                        "https://www.googleapis.com/auth/cloud-platform",
718                        "https://www.googleapis.com/auth/cloud-platform.read-only",
719                        "https://www.googleapis.com/auth/logging.admin",
720                        "https://www.googleapis.com/auth/logging.read"
721                      ]
722                    },
723                    "patch": {
724                      "description": "Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: filter. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.",
725                      "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
726                      "httpMethod": "PATCH",
727                      "id": "logging.billingAccounts.locations.buckets.views.patch",
728                      "parameterOrder": [
729                        "name"
730                      ],
731                      "parameters": {
732                        "name": {
733                          "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
734                          "location": "path",
735                          "pattern": "^billingAccounts/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
736                          "required": true,
737                          "type": "string"
738                        },
739                        "updateMask": {
740                          "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
741                          "format": "google-fieldmask",
742                          "location": "query",
743                          "type": "string"
744                        }
745                      },
746                      "path": "v2/{+name}",
747                      "request": {
748                        "$ref": "LogView"
749                      },
750                      "response": {
751                        "$ref": "LogView"
752                      },
753                      "scopes": [
754                        "https://www.googleapis.com/auth/cloud-platform",
755                        "https://www.googleapis.com/auth/logging.admin"
756                      ]
757                    }
758                  }
759                }
760              }
761            },
762            "operations": {
763              "methods": {
764                "cancel": {
765                  "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.",
766                  "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/operations/{operationsId}:cancel",
767                  "httpMethod": "POST",
768                  "id": "logging.billingAccounts.locations.operations.cancel",
769                  "parameterOrder": [
770                    "name"
771                  ],
772                  "parameters": {
773                    "name": {
774                      "description": "The name of the operation resource to be cancelled.",
775                      "location": "path",
776                      "pattern": "^billingAccounts/[^/]+/locations/[^/]+/operations/[^/]+$",
777                      "required": true,
778                      "type": "string"
779                    }
780                  },
781                  "path": "v2/{+name}:cancel",
782                  "request": {
783                    "$ref": "CancelOperationRequest"
784                  },
785                  "response": {
786                    "$ref": "Empty"
787                  },
788                  "scopes": [
789                    "https://www.googleapis.com/auth/cloud-platform",
790                    "https://www.googleapis.com/auth/logging.admin"
791                  ]
792                },
793                "list": {
794                  "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
795                  "flatPath": "v2/billingAccounts/{billingAccountsId}/locations/{locationsId}/operations",
796                  "httpMethod": "GET",
797                  "id": "logging.billingAccounts.locations.operations.list",
798                  "parameterOrder": [
799                    "name"
800                  ],
801                  "parameters": {
802                    "filter": {
803                      "description": "The standard list filter.",
804                      "location": "query",
805                      "type": "string"
806                    },
807                    "name": {
808                      "description": "The name of the operation's parent resource.",
809                      "location": "path",
810                      "pattern": "^billingAccounts/[^/]+/locations/[^/]+$",
811                      "required": true,
812                      "type": "string"
813                    },
814                    "pageSize": {
815                      "description": "The standard list page size.",
816                      "format": "int32",
817                      "location": "query",
818                      "type": "integer"
819                    },
820                    "pageToken": {
821                      "description": "The standard list page token.",
822                      "location": "query",
823                      "type": "string"
824                    }
825                  },
826                  "path": "v2/{+name}/operations",
827                  "response": {
828                    "$ref": "ListOperationsResponse"
829                  },
830                  "scopes": [
831                    "https://www.googleapis.com/auth/cloud-platform",
832                    "https://www.googleapis.com/auth/cloud-platform.read-only",
833                    "https://www.googleapis.com/auth/logging.admin",
834                    "https://www.googleapis.com/auth/logging.read"
835                  ]
836                }
837              }
838            }
839          }
840        },
841        "logs": {
842          "methods": {
843            "delete": {
844              "description": "Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.",
845              "flatPath": "v2/billingAccounts/{billingAccountsId}/logs/{logsId}",
846              "httpMethod": "DELETE",
847              "id": "logging.billingAccounts.logs.delete",
848              "parameterOrder": [
849                "logName"
850              ],
851              "parameters": {
852                "logName": {
853                  "description": "Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/123/logs/cloudaudit.googleapis.com%2Factivity\".For more information about log names, see LogEntry.",
854                  "location": "path",
855                  "pattern": "^billingAccounts/[^/]+/logs/[^/]+$",
856                  "required": true,
857                  "type": "string"
858                }
859              },
860              "path": "v2/{+logName}",
861              "response": {
862                "$ref": "Empty"
863              },
864              "scopes": [
865                "https://www.googleapis.com/auth/cloud-platform",
866                "https://www.googleapis.com/auth/logging.admin"
867              ]
868            },
869            "list": {
870              "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.",
871              "flatPath": "v2/billingAccounts/{billingAccountsId}/logs",
872              "httpMethod": "GET",
873              "id": "logging.billingAccounts.logs.list",
874              "parameterOrder": [
875                "parent"
876              ],
877              "parameters": {
878                "pageSize": {
879                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
880                  "format": "int32",
881                  "location": "query",
882                  "type": "integer"
883                },
884                "pageToken": {
885                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
886                  "location": "query",
887                  "type": "string"
888                },
889                "parent": {
890                  "description": "Required. The resource name that owns the logs: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]",
891                  "location": "path",
892                  "pattern": "^billingAccounts/[^/]+$",
893                  "required": true,
894                  "type": "string"
895                },
896                "resourceNames": {
897                  "description": "Optional. The resource name that owns the logs: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]",
898                  "location": "query",
899                  "repeated": true,
900                  "type": "string"
901                }
902              },
903              "path": "v2/{+parent}/logs",
904              "response": {
905                "$ref": "ListLogsResponse"
906              },
907              "scopes": [
908                "https://www.googleapis.com/auth/cloud-platform",
909                "https://www.googleapis.com/auth/cloud-platform.read-only",
910                "https://www.googleapis.com/auth/logging.admin",
911                "https://www.googleapis.com/auth/logging.read"
912              ]
913            }
914          }
915        },
916        "operations": {
917          "methods": {
918            "get": {
919              "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
920              "flatPath": "v2/billingAccounts/{billingAccountsId}/operations/{operationsId}",
921              "httpMethod": "GET",
922              "id": "logging.billingAccounts.operations.get",
923              "parameterOrder": [
924                "name"
925              ],
926              "parameters": {
927                "name": {
928                  "description": "The name of the operation resource.",
929                  "location": "path",
930                  "pattern": "^billingAccounts/[^/]+/operations/[^/]+$",
931                  "required": true,
932                  "type": "string"
933                }
934              },
935              "path": "v2/{+name}",
936              "response": {
937                "$ref": "Operation"
938              },
939              "scopes": [
940                "https://www.googleapis.com/auth/cloud-platform",
941                "https://www.googleapis.com/auth/cloud-platform.read-only",
942                "https://www.googleapis.com/auth/logging.admin",
943                "https://www.googleapis.com/auth/logging.read"
944              ]
945            }
946          }
947        },
948        "sinks": {
949          "methods": {
950            "create": {
951              "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.",
952              "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks",
953              "httpMethod": "POST",
954              "id": "logging.billingAccounts.sinks.create",
955              "parameterOrder": [
956                "parent"
957              ],
958              "parameters": {
959                "parent": {
960                  "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" For examples:\"projects/my-project\" \"organizations/123456789\"",
961                  "location": "path",
962                  "pattern": "^billingAccounts/[^/]+$",
963                  "required": true,
964                  "type": "string"
965                },
966                "uniqueWriterIdentity": {
967                  "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.",
968                  "location": "query",
969                  "type": "boolean"
970                }
971              },
972              "path": "v2/{+parent}/sinks",
973              "request": {
974                "$ref": "LogSink"
975              },
976              "response": {
977                "$ref": "LogSink"
978              },
979              "scopes": [
980                "https://www.googleapis.com/auth/cloud-platform",
981                "https://www.googleapis.com/auth/logging.admin"
982              ]
983            },
984            "delete": {
985              "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.",
986              "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}",
987              "httpMethod": "DELETE",
988              "id": "logging.billingAccounts.sinks.delete",
989              "parameterOrder": [
990                "sinkName"
991              ],
992              "parameters": {
993                "sinkName": {
994                  "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
995                  "location": "path",
996                  "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$",
997                  "required": true,
998                  "type": "string"
999                }
1000              },
1001              "path": "v2/{+sinkName}",
1002              "response": {
1003                "$ref": "Empty"
1004              },
1005              "scopes": [
1006                "https://www.googleapis.com/auth/cloud-platform",
1007                "https://www.googleapis.com/auth/logging.admin"
1008              ]
1009            },
1010            "get": {
1011              "description": "Gets a sink.",
1012              "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}",
1013              "httpMethod": "GET",
1014              "id": "logging.billingAccounts.sinks.get",
1015              "parameterOrder": [
1016                "sinkName"
1017              ],
1018              "parameters": {
1019                "sinkName": {
1020                  "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
1021                  "location": "path",
1022                  "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$",
1023                  "required": true,
1024                  "type": "string"
1025                }
1026              },
1027              "path": "v2/{+sinkName}",
1028              "response": {
1029                "$ref": "LogSink"
1030              },
1031              "scopes": [
1032                "https://www.googleapis.com/auth/cloud-platform",
1033                "https://www.googleapis.com/auth/cloud-platform.read-only",
1034                "https://www.googleapis.com/auth/logging.admin",
1035                "https://www.googleapis.com/auth/logging.read"
1036              ]
1037            },
1038            "list": {
1039              "description": "Lists sinks.",
1040              "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks",
1041              "httpMethod": "GET",
1042              "id": "logging.billingAccounts.sinks.list",
1043              "parameterOrder": [
1044                "parent"
1045              ],
1046              "parameters": {
1047                "pageSize": {
1048                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
1049                  "format": "int32",
1050                  "location": "query",
1051                  "type": "integer"
1052                },
1053                "pageToken": {
1054                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
1055                  "location": "query",
1056                  "type": "string"
1057                },
1058                "parent": {
1059                  "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ",
1060                  "location": "path",
1061                  "pattern": "^billingAccounts/[^/]+$",
1062                  "required": true,
1063                  "type": "string"
1064                }
1065              },
1066              "path": "v2/{+parent}/sinks",
1067              "response": {
1068                "$ref": "ListSinksResponse"
1069              },
1070              "scopes": [
1071                "https://www.googleapis.com/auth/cloud-platform",
1072                "https://www.googleapis.com/auth/cloud-platform.read-only",
1073                "https://www.googleapis.com/auth/logging.admin",
1074                "https://www.googleapis.com/auth/logging.read"
1075              ]
1076            },
1077            "patch": {
1078              "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.",
1079              "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}",
1080              "httpMethod": "PATCH",
1081              "id": "logging.billingAccounts.sinks.patch",
1082              "parameterOrder": [
1083                "sinkName"
1084              ],
1085              "parameters": {
1086                "sinkName": {
1087                  "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
1088                  "location": "path",
1089                  "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$",
1090                  "required": true,
1091                  "type": "string"
1092                },
1093                "uniqueWriterIdentity": {
1094                  "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.",
1095                  "location": "query",
1096                  "type": "boolean"
1097                },
1098                "updateMask": {
1099                  "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
1100                  "format": "google-fieldmask",
1101                  "location": "query",
1102                  "type": "string"
1103                }
1104              },
1105              "path": "v2/{+sinkName}",
1106              "request": {
1107                "$ref": "LogSink"
1108              },
1109              "response": {
1110                "$ref": "LogSink"
1111              },
1112              "scopes": [
1113                "https://www.googleapis.com/auth/cloud-platform",
1114                "https://www.googleapis.com/auth/logging.admin"
1115              ]
1116            },
1117            "update": {
1118              "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.",
1119              "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}",
1120              "httpMethod": "PUT",
1121              "id": "logging.billingAccounts.sinks.update",
1122              "parameterOrder": [
1123                "sinkName"
1124              ],
1125              "parameters": {
1126                "sinkName": {
1127                  "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
1128                  "location": "path",
1129                  "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$",
1130                  "required": true,
1131                  "type": "string"
1132                },
1133                "uniqueWriterIdentity": {
1134                  "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.",
1135                  "location": "query",
1136                  "type": "boolean"
1137                },
1138                "updateMask": {
1139                  "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
1140                  "format": "google-fieldmask",
1141                  "location": "query",
1142                  "type": "string"
1143                }
1144              },
1145              "path": "v2/{+sinkName}",
1146              "request": {
1147                "$ref": "LogSink"
1148              },
1149              "response": {
1150                "$ref": "LogSink"
1151              },
1152              "scopes": [
1153                "https://www.googleapis.com/auth/cloud-platform",
1154                "https://www.googleapis.com/auth/logging.admin"
1155              ]
1156            }
1157          }
1158        }
1159      }
1160    },
1161    "entries": {
1162      "methods": {
1163        "copy": {
1164          "description": "Copies a set of log entries from a log bucket to a Cloud Storage bucket.",
1165          "flatPath": "v2/entries:copy",
1166          "httpMethod": "POST",
1167          "id": "logging.entries.copy",
1168          "parameterOrder": [],
1169          "parameters": {},
1170          "path": "v2/entries:copy",
1171          "request": {
1172            "$ref": "CopyLogEntriesRequest"
1173          },
1174          "response": {
1175            "$ref": "Operation"
1176          },
1177          "scopes": [
1178            "https://www.googleapis.com/auth/cloud-platform",
1179            "https://www.googleapis.com/auth/logging.admin"
1180          ]
1181        },
1182        "list": {
1183          "description": "Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs (https://cloud.google.com/logging/docs/export).",
1184          "flatPath": "v2/entries:list",
1185          "httpMethod": "POST",
1186          "id": "logging.entries.list",
1187          "parameterOrder": [],
1188          "parameters": {},
1189          "path": "v2/entries:list",
1190          "request": {
1191            "$ref": "ListLogEntriesRequest"
1192          },
1193          "response": {
1194            "$ref": "ListLogEntriesResponse"
1195          },
1196          "scopes": [
1197            "https://www.googleapis.com/auth/cloud-platform",
1198            "https://www.googleapis.com/auth/cloud-platform.read-only",
1199            "https://www.googleapis.com/auth/logging.admin",
1200            "https://www.googleapis.com/auth/logging.read"
1201          ]
1202        },
1203        "tail": {
1204          "description": "Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.",
1205          "flatPath": "v2/entries:tail",
1206          "httpMethod": "POST",
1207          "id": "logging.entries.tail",
1208          "parameterOrder": [],
1209          "parameters": {},
1210          "path": "v2/entries:tail",
1211          "request": {
1212            "$ref": "TailLogEntriesRequest"
1213          },
1214          "response": {
1215            "$ref": "TailLogEntriesResponse"
1216          },
1217          "scopes": [
1218            "https://www.googleapis.com/auth/cloud-platform",
1219            "https://www.googleapis.com/auth/cloud-platform.read-only",
1220            "https://www.googleapis.com/auth/logging.admin",
1221            "https://www.googleapis.com/auth/logging.read"
1222          ]
1223        },
1224        "write": {
1225          "description": "Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)",
1226          "flatPath": "v2/entries:write",
1227          "httpMethod": "POST",
1228          "id": "logging.entries.write",
1229          "parameterOrder": [],
1230          "parameters": {},
1231          "path": "v2/entries:write",
1232          "request": {
1233            "$ref": "WriteLogEntriesRequest"
1234          },
1235          "response": {
1236            "$ref": "WriteLogEntriesResponse"
1237          },
1238          "scopes": [
1239            "https://www.googleapis.com/auth/cloud-platform",
1240            "https://www.googleapis.com/auth/logging.admin",
1241            "https://www.googleapis.com/auth/logging.write"
1242          ]
1243        }
1244      }
1245    },
1246    "exclusions": {
1247      "methods": {
1248        "create": {
1249          "description": "Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.",
1250          "flatPath": "v2/{v2Id}/{v2Id1}/exclusions",
1251          "httpMethod": "POST",
1252          "id": "logging.exclusions.create",
1253          "parameterOrder": [
1254            "parent"
1255          ],
1256          "parameters": {
1257            "parent": {
1258              "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" For examples:\"projects/my-logging-project\" \"organizations/123456789\"",
1259              "location": "path",
1260              "pattern": "^[^/]+/[^/]+$",
1261              "required": true,
1262              "type": "string"
1263            }
1264          },
1265          "path": "v2/{+parent}/exclusions",
1266          "request": {
1267            "$ref": "LogExclusion"
1268          },
1269          "response": {
1270            "$ref": "LogExclusion"
1271          },
1272          "scopes": [
1273            "https://www.googleapis.com/auth/cloud-platform",
1274            "https://www.googleapis.com/auth/logging.admin"
1275          ]
1276        },
1277        "delete": {
1278          "description": "Deletes an exclusion in the _Default sink.",
1279          "flatPath": "v2/{v2Id}/{v2Id1}/exclusions/{exclusionsId}",
1280          "httpMethod": "DELETE",
1281          "id": "logging.exclusions.delete",
1282          "parameterOrder": [
1283            "name"
1284          ],
1285          "parameters": {
1286            "name": {
1287              "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
1288              "location": "path",
1289              "pattern": "^[^/]+/[^/]+/exclusions/[^/]+$",
1290              "required": true,
1291              "type": "string"
1292            }
1293          },
1294          "path": "v2/{+name}",
1295          "response": {
1296            "$ref": "Empty"
1297          },
1298          "scopes": [
1299            "https://www.googleapis.com/auth/cloud-platform",
1300            "https://www.googleapis.com/auth/logging.admin"
1301          ]
1302        },
1303        "get": {
1304          "description": "Gets the description of an exclusion in the _Default sink.",
1305          "flatPath": "v2/{v2Id}/{v2Id1}/exclusions/{exclusionsId}",
1306          "httpMethod": "GET",
1307          "id": "logging.exclusions.get",
1308          "parameterOrder": [
1309            "name"
1310          ],
1311          "parameters": {
1312            "name": {
1313              "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
1314              "location": "path",
1315              "pattern": "^[^/]+/[^/]+/exclusions/[^/]+$",
1316              "required": true,
1317              "type": "string"
1318            }
1319          },
1320          "path": "v2/{+name}",
1321          "response": {
1322            "$ref": "LogExclusion"
1323          },
1324          "scopes": [
1325            "https://www.googleapis.com/auth/cloud-platform",
1326            "https://www.googleapis.com/auth/cloud-platform.read-only",
1327            "https://www.googleapis.com/auth/logging.admin",
1328            "https://www.googleapis.com/auth/logging.read"
1329          ]
1330        },
1331        "list": {
1332          "description": "Lists all the exclusions on the _Default sink in a parent resource.",
1333          "flatPath": "v2/{v2Id}/{v2Id1}/exclusions",
1334          "httpMethod": "GET",
1335          "id": "logging.exclusions.list",
1336          "parameterOrder": [
1337            "parent"
1338          ],
1339          "parameters": {
1340            "pageSize": {
1341              "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
1342              "format": "int32",
1343              "location": "query",
1344              "type": "integer"
1345            },
1346            "pageToken": {
1347              "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
1348              "location": "query",
1349              "type": "string"
1350            },
1351            "parent": {
1352              "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ",
1353              "location": "path",
1354              "pattern": "^[^/]+/[^/]+$",
1355              "required": true,
1356              "type": "string"
1357            }
1358          },
1359          "path": "v2/{+parent}/exclusions",
1360          "response": {
1361            "$ref": "ListExclusionsResponse"
1362          },
1363          "scopes": [
1364            "https://www.googleapis.com/auth/cloud-platform",
1365            "https://www.googleapis.com/auth/cloud-platform.read-only",
1366            "https://www.googleapis.com/auth/logging.admin",
1367            "https://www.googleapis.com/auth/logging.read"
1368          ]
1369        },
1370        "patch": {
1371          "description": "Changes one or more properties of an existing exclusion in the _Default sink.",
1372          "flatPath": "v2/{v2Id}/{v2Id1}/exclusions/{exclusionsId}",
1373          "httpMethod": "PATCH",
1374          "id": "logging.exclusions.patch",
1375          "parameterOrder": [
1376            "name"
1377          ],
1378          "parameters": {
1379            "name": {
1380              "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
1381              "location": "path",
1382              "pattern": "^[^/]+/[^/]+/exclusions/[^/]+$",
1383              "required": true,
1384              "type": "string"
1385            },
1386            "updateMask": {
1387              "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".",
1388              "format": "google-fieldmask",
1389              "location": "query",
1390              "type": "string"
1391            }
1392          },
1393          "path": "v2/{+name}",
1394          "request": {
1395            "$ref": "LogExclusion"
1396          },
1397          "response": {
1398            "$ref": "LogExclusion"
1399          },
1400          "scopes": [
1401            "https://www.googleapis.com/auth/cloud-platform",
1402            "https://www.googleapis.com/auth/logging.admin"
1403          ]
1404        }
1405      }
1406    },
1407    "folders": {
1408      "methods": {
1409        "getCmekSettings": {
1410          "description": "Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.",
1411          "flatPath": "v2/folders/{foldersId}/cmekSettings",
1412          "httpMethod": "GET",
1413          "id": "logging.folders.getCmekSettings",
1414          "parameterOrder": [
1415            "name"
1416          ],
1417          "parameters": {
1418            "name": {
1419              "description": "Required. The resource for which to retrieve CMEK settings. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" For example:\"organizations/12345/cmekSettings\"Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.",
1420              "location": "path",
1421              "pattern": "^folders/[^/]+$",
1422              "required": true,
1423              "type": "string"
1424            }
1425          },
1426          "path": "v2/{+name}/cmekSettings",
1427          "response": {
1428            "$ref": "CmekSettings"
1429          },
1430          "scopes": [
1431            "https://www.googleapis.com/auth/cloud-platform",
1432            "https://www.googleapis.com/auth/cloud-platform.read-only",
1433            "https://www.googleapis.com/auth/logging.admin",
1434            "https://www.googleapis.com/auth/logging.read"
1435          ]
1436        }
1437      },
1438      "resources": {
1439        "exclusions": {
1440          "methods": {
1441            "create": {
1442              "description": "Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.",
1443              "flatPath": "v2/folders/{foldersId}/exclusions",
1444              "httpMethod": "POST",
1445              "id": "logging.folders.exclusions.create",
1446              "parameterOrder": [
1447                "parent"
1448              ],
1449              "parameters": {
1450                "parent": {
1451                  "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" For examples:\"projects/my-logging-project\" \"organizations/123456789\"",
1452                  "location": "path",
1453                  "pattern": "^folders/[^/]+$",
1454                  "required": true,
1455                  "type": "string"
1456                }
1457              },
1458              "path": "v2/{+parent}/exclusions",
1459              "request": {
1460                "$ref": "LogExclusion"
1461              },
1462              "response": {
1463                "$ref": "LogExclusion"
1464              },
1465              "scopes": [
1466                "https://www.googleapis.com/auth/cloud-platform",
1467                "https://www.googleapis.com/auth/logging.admin"
1468              ]
1469            },
1470            "delete": {
1471              "description": "Deletes an exclusion in the _Default sink.",
1472              "flatPath": "v2/folders/{foldersId}/exclusions/{exclusionsId}",
1473              "httpMethod": "DELETE",
1474              "id": "logging.folders.exclusions.delete",
1475              "parameterOrder": [
1476                "name"
1477              ],
1478              "parameters": {
1479                "name": {
1480                  "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
1481                  "location": "path",
1482                  "pattern": "^folders/[^/]+/exclusions/[^/]+$",
1483                  "required": true,
1484                  "type": "string"
1485                }
1486              },
1487              "path": "v2/{+name}",
1488              "response": {
1489                "$ref": "Empty"
1490              },
1491              "scopes": [
1492                "https://www.googleapis.com/auth/cloud-platform",
1493                "https://www.googleapis.com/auth/logging.admin"
1494              ]
1495            },
1496            "get": {
1497              "description": "Gets the description of an exclusion in the _Default sink.",
1498              "flatPath": "v2/folders/{foldersId}/exclusions/{exclusionsId}",
1499              "httpMethod": "GET",
1500              "id": "logging.folders.exclusions.get",
1501              "parameterOrder": [
1502                "name"
1503              ],
1504              "parameters": {
1505                "name": {
1506                  "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
1507                  "location": "path",
1508                  "pattern": "^folders/[^/]+/exclusions/[^/]+$",
1509                  "required": true,
1510                  "type": "string"
1511                }
1512              },
1513              "path": "v2/{+name}",
1514              "response": {
1515                "$ref": "LogExclusion"
1516              },
1517              "scopes": [
1518                "https://www.googleapis.com/auth/cloud-platform",
1519                "https://www.googleapis.com/auth/cloud-platform.read-only",
1520                "https://www.googleapis.com/auth/logging.admin",
1521                "https://www.googleapis.com/auth/logging.read"
1522              ]
1523            },
1524            "list": {
1525              "description": "Lists all the exclusions on the _Default sink in a parent resource.",
1526              "flatPath": "v2/folders/{foldersId}/exclusions",
1527              "httpMethod": "GET",
1528              "id": "logging.folders.exclusions.list",
1529              "parameterOrder": [
1530                "parent"
1531              ],
1532              "parameters": {
1533                "pageSize": {
1534                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
1535                  "format": "int32",
1536                  "location": "query",
1537                  "type": "integer"
1538                },
1539                "pageToken": {
1540                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
1541                  "location": "query",
1542                  "type": "string"
1543                },
1544                "parent": {
1545                  "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ",
1546                  "location": "path",
1547                  "pattern": "^folders/[^/]+$",
1548                  "required": true,
1549                  "type": "string"
1550                }
1551              },
1552              "path": "v2/{+parent}/exclusions",
1553              "response": {
1554                "$ref": "ListExclusionsResponse"
1555              },
1556              "scopes": [
1557                "https://www.googleapis.com/auth/cloud-platform",
1558                "https://www.googleapis.com/auth/cloud-platform.read-only",
1559                "https://www.googleapis.com/auth/logging.admin",
1560                "https://www.googleapis.com/auth/logging.read"
1561              ]
1562            },
1563            "patch": {
1564              "description": "Changes one or more properties of an existing exclusion in the _Default sink.",
1565              "flatPath": "v2/folders/{foldersId}/exclusions/{exclusionsId}",
1566              "httpMethod": "PATCH",
1567              "id": "logging.folders.exclusions.patch",
1568              "parameterOrder": [
1569                "name"
1570              ],
1571              "parameters": {
1572                "name": {
1573                  "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
1574                  "location": "path",
1575                  "pattern": "^folders/[^/]+/exclusions/[^/]+$",
1576                  "required": true,
1577                  "type": "string"
1578                },
1579                "updateMask": {
1580                  "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".",
1581                  "format": "google-fieldmask",
1582                  "location": "query",
1583                  "type": "string"
1584                }
1585              },
1586              "path": "v2/{+name}",
1587              "request": {
1588                "$ref": "LogExclusion"
1589              },
1590              "response": {
1591                "$ref": "LogExclusion"
1592              },
1593              "scopes": [
1594                "https://www.googleapis.com/auth/cloud-platform",
1595                "https://www.googleapis.com/auth/logging.admin"
1596              ]
1597            }
1598          }
1599        },
1600        "locations": {
1601          "methods": {
1602            "get": {
1603              "description": "Gets information about a location.",
1604              "flatPath": "v2/folders/{foldersId}/locations/{locationsId}",
1605              "httpMethod": "GET",
1606              "id": "logging.folders.locations.get",
1607              "parameterOrder": [
1608                "name"
1609              ],
1610              "parameters": {
1611                "name": {
1612                  "description": "Resource name for the location.",
1613                  "location": "path",
1614                  "pattern": "^folders/[^/]+/locations/[^/]+$",
1615                  "required": true,
1616                  "type": "string"
1617                }
1618              },
1619              "path": "v2/{+name}",
1620              "response": {
1621                "$ref": "Location"
1622              },
1623              "scopes": [
1624                "https://www.googleapis.com/auth/cloud-platform",
1625                "https://www.googleapis.com/auth/cloud-platform.read-only",
1626                "https://www.googleapis.com/auth/logging.admin",
1627                "https://www.googleapis.com/auth/logging.read"
1628              ]
1629            },
1630            "list": {
1631              "description": "Lists information about the supported locations for this service.",
1632              "flatPath": "v2/folders/{foldersId}/locations",
1633              "httpMethod": "GET",
1634              "id": "logging.folders.locations.list",
1635              "parameterOrder": [
1636                "name"
1637              ],
1638              "parameters": {
1639                "filter": {
1640                  "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).",
1641                  "location": "query",
1642                  "type": "string"
1643                },
1644                "name": {
1645                  "description": "The resource that owns the locations collection, if applicable.",
1646                  "location": "path",
1647                  "pattern": "^folders/[^/]+$",
1648                  "required": true,
1649                  "type": "string"
1650                },
1651                "pageSize": {
1652                  "description": "The maximum number of results to return. If not set, the service selects a default.",
1653                  "format": "int32",
1654                  "location": "query",
1655                  "type": "integer"
1656                },
1657                "pageToken": {
1658                  "description": "A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.",
1659                  "location": "query",
1660                  "type": "string"
1661                }
1662              },
1663              "path": "v2/{+name}/locations",
1664              "response": {
1665                "$ref": "ListLocationsResponse"
1666              },
1667              "scopes": [
1668                "https://www.googleapis.com/auth/cloud-platform",
1669                "https://www.googleapis.com/auth/cloud-platform.read-only",
1670                "https://www.googleapis.com/auth/logging.admin",
1671                "https://www.googleapis.com/auth/logging.read"
1672              ]
1673            }
1674          },
1675          "resources": {
1676            "buckets": {
1677              "methods": {
1678                "create": {
1679                  "description": "Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.",
1680                  "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets",
1681                  "httpMethod": "POST",
1682                  "id": "logging.folders.locations.buckets.create",
1683                  "parameterOrder": [
1684                    "parent"
1685                  ],
1686                  "parameters": {
1687                    "bucketId": {
1688                      "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.",
1689                      "location": "query",
1690                      "type": "string"
1691                    },
1692                    "parent": {
1693                      "description": "Required. The resource in which to create the log bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"",
1694                      "location": "path",
1695                      "pattern": "^folders/[^/]+/locations/[^/]+$",
1696                      "required": true,
1697                      "type": "string"
1698                    }
1699                  },
1700                  "path": "v2/{+parent}/buckets",
1701                  "request": {
1702                    "$ref": "LogBucket"
1703                  },
1704                  "response": {
1705                    "$ref": "LogBucket"
1706                  },
1707                  "scopes": [
1708                    "https://www.googleapis.com/auth/cloud-platform",
1709                    "https://www.googleapis.com/auth/logging.admin"
1710                  ]
1711                },
1712                "delete": {
1713                  "description": "Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.",
1714                  "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}",
1715                  "httpMethod": "DELETE",
1716                  "id": "logging.folders.locations.buckets.delete",
1717                  "parameterOrder": [
1718                    "name"
1719                  ],
1720                  "parameters": {
1721                    "name": {
1722                      "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
1723                      "location": "path",
1724                      "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$",
1725                      "required": true,
1726                      "type": "string"
1727                    }
1728                  },
1729                  "path": "v2/{+name}",
1730                  "response": {
1731                    "$ref": "Empty"
1732                  },
1733                  "scopes": [
1734                    "https://www.googleapis.com/auth/cloud-platform",
1735                    "https://www.googleapis.com/auth/logging.admin"
1736                  ]
1737                },
1738                "get": {
1739                  "description": "Gets a log bucket.",
1740                  "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}",
1741                  "httpMethod": "GET",
1742                  "id": "logging.folders.locations.buckets.get",
1743                  "parameterOrder": [
1744                    "name"
1745                  ],
1746                  "parameters": {
1747                    "name": {
1748                      "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
1749                      "location": "path",
1750                      "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$",
1751                      "required": true,
1752                      "type": "string"
1753                    }
1754                  },
1755                  "path": "v2/{+name}",
1756                  "response": {
1757                    "$ref": "LogBucket"
1758                  },
1759                  "scopes": [
1760                    "https://www.googleapis.com/auth/cloud-platform",
1761                    "https://www.googleapis.com/auth/cloud-platform.read-only",
1762                    "https://www.googleapis.com/auth/logging.admin",
1763                    "https://www.googleapis.com/auth/logging.read"
1764                  ]
1765                },
1766                "list": {
1767                  "description": "Lists log buckets.",
1768                  "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets",
1769                  "httpMethod": "GET",
1770                  "id": "logging.folders.locations.buckets.list",
1771                  "parameterOrder": [
1772                    "parent"
1773                  ],
1774                  "parameters": {
1775                    "pageSize": {
1776                      "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
1777                      "format": "int32",
1778                      "location": "query",
1779                      "type": "integer"
1780                    },
1781                    "pageToken": {
1782                      "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
1783                      "location": "query",
1784                      "type": "string"
1785                    },
1786                    "parent": {
1787                      "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.",
1788                      "location": "path",
1789                      "pattern": "^folders/[^/]+/locations/[^/]+$",
1790                      "required": true,
1791                      "type": "string"
1792                    }
1793                  },
1794                  "path": "v2/{+parent}/buckets",
1795                  "response": {
1796                    "$ref": "ListBucketsResponse"
1797                  },
1798                  "scopes": [
1799                    "https://www.googleapis.com/auth/cloud-platform",
1800                    "https://www.googleapis.com/auth/cloud-platform.read-only",
1801                    "https://www.googleapis.com/auth/logging.admin",
1802                    "https://www.googleapis.com/auth/logging.read"
1803                  ]
1804                },
1805                "patch": {
1806                  "description": "Updates a log bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.",
1807                  "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}",
1808                  "httpMethod": "PATCH",
1809                  "id": "logging.folders.locations.buckets.patch",
1810                  "parameterOrder": [
1811                    "name"
1812                  ],
1813                  "parameters": {
1814                    "name": {
1815                      "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
1816                      "location": "path",
1817                      "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$",
1818                      "required": true,
1819                      "type": "string"
1820                    },
1821                    "updateMask": {
1822                      "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=retention_days",
1823                      "format": "google-fieldmask",
1824                      "location": "query",
1825                      "type": "string"
1826                    }
1827                  },
1828                  "path": "v2/{+name}",
1829                  "request": {
1830                    "$ref": "LogBucket"
1831                  },
1832                  "response": {
1833                    "$ref": "LogBucket"
1834                  },
1835                  "scopes": [
1836                    "https://www.googleapis.com/auth/cloud-platform",
1837                    "https://www.googleapis.com/auth/logging.admin"
1838                  ]
1839                },
1840                "undelete": {
1841                  "description": "Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.",
1842                  "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}:undelete",
1843                  "httpMethod": "POST",
1844                  "id": "logging.folders.locations.buckets.undelete",
1845                  "parameterOrder": [
1846                    "name"
1847                  ],
1848                  "parameters": {
1849                    "name": {
1850                      "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
1851                      "location": "path",
1852                      "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$",
1853                      "required": true,
1854                      "type": "string"
1855                    }
1856                  },
1857                  "path": "v2/{+name}:undelete",
1858                  "request": {
1859                    "$ref": "UndeleteBucketRequest"
1860                  },
1861                  "response": {
1862                    "$ref": "Empty"
1863                  },
1864                  "scopes": [
1865                    "https://www.googleapis.com/auth/cloud-platform",
1866                    "https://www.googleapis.com/auth/logging.admin"
1867                  ]
1868                }
1869              },
1870              "resources": {
1871                "views": {
1872                  "methods": {
1873                    "create": {
1874                      "description": "Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.",
1875                      "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views",
1876                      "httpMethod": "POST",
1877                      "id": "logging.folders.locations.buckets.views.create",
1878                      "parameterOrder": [
1879                        "parent"
1880                      ],
1881                      "parameters": {
1882                        "parent": {
1883                          "description": "Required. The bucket in which to create the view `\"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\"` For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
1884                          "location": "path",
1885                          "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$",
1886                          "required": true,
1887                          "type": "string"
1888                        },
1889                        "viewId": {
1890                          "description": "Required. The id to use for this view.",
1891                          "location": "query",
1892                          "type": "string"
1893                        }
1894                      },
1895                      "path": "v2/{+parent}/views",
1896                      "request": {
1897                        "$ref": "LogView"
1898                      },
1899                      "response": {
1900                        "$ref": "LogView"
1901                      },
1902                      "scopes": [
1903                        "https://www.googleapis.com/auth/cloud-platform",
1904                        "https://www.googleapis.com/auth/logging.admin"
1905                      ]
1906                    },
1907                    "delete": {
1908                      "description": "Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.",
1909                      "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
1910                      "httpMethod": "DELETE",
1911                      "id": "logging.folders.locations.buckets.views.delete",
1912                      "parameterOrder": [
1913                        "name"
1914                      ],
1915                      "parameters": {
1916                        "name": {
1917                          "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
1918                          "location": "path",
1919                          "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
1920                          "required": true,
1921                          "type": "string"
1922                        }
1923                      },
1924                      "path": "v2/{+name}",
1925                      "response": {
1926                        "$ref": "Empty"
1927                      },
1928                      "scopes": [
1929                        "https://www.googleapis.com/auth/cloud-platform",
1930                        "https://www.googleapis.com/auth/logging.admin"
1931                      ]
1932                    },
1933                    "get": {
1934                      "description": "Gets a view on a log bucket..",
1935                      "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
1936                      "httpMethod": "GET",
1937                      "id": "logging.folders.locations.buckets.views.get",
1938                      "parameterOrder": [
1939                        "name"
1940                      ],
1941                      "parameters": {
1942                        "name": {
1943                          "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
1944                          "location": "path",
1945                          "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
1946                          "required": true,
1947                          "type": "string"
1948                        }
1949                      },
1950                      "path": "v2/{+name}",
1951                      "response": {
1952                        "$ref": "LogView"
1953                      },
1954                      "scopes": [
1955                        "https://www.googleapis.com/auth/cloud-platform",
1956                        "https://www.googleapis.com/auth/cloud-platform.read-only",
1957                        "https://www.googleapis.com/auth/logging.admin",
1958                        "https://www.googleapis.com/auth/logging.read"
1959                      ]
1960                    },
1961                    "list": {
1962                      "description": "Lists views on a log bucket.",
1963                      "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views",
1964                      "httpMethod": "GET",
1965                      "id": "logging.folders.locations.buckets.views.list",
1966                      "parameterOrder": [
1967                        "parent"
1968                      ],
1969                      "parameters": {
1970                        "pageSize": {
1971                          "description": "Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
1972                          "format": "int32",
1973                          "location": "query",
1974                          "type": "integer"
1975                        },
1976                        "pageToken": {
1977                          "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
1978                          "location": "query",
1979                          "type": "string"
1980                        },
1981                        "parent": {
1982                          "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ",
1983                          "location": "path",
1984                          "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+$",
1985                          "required": true,
1986                          "type": "string"
1987                        }
1988                      },
1989                      "path": "v2/{+parent}/views",
1990                      "response": {
1991                        "$ref": "ListViewsResponse"
1992                      },
1993                      "scopes": [
1994                        "https://www.googleapis.com/auth/cloud-platform",
1995                        "https://www.googleapis.com/auth/cloud-platform.read-only",
1996                        "https://www.googleapis.com/auth/logging.admin",
1997                        "https://www.googleapis.com/auth/logging.read"
1998                      ]
1999                    },
2000                    "patch": {
2001                      "description": "Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: filter. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.",
2002                      "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
2003                      "httpMethod": "PATCH",
2004                      "id": "logging.folders.locations.buckets.views.patch",
2005                      "parameterOrder": [
2006                        "name"
2007                      ],
2008                      "parameters": {
2009                        "name": {
2010                          "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
2011                          "location": "path",
2012                          "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
2013                          "required": true,
2014                          "type": "string"
2015                        },
2016                        "updateMask": {
2017                          "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
2018                          "format": "google-fieldmask",
2019                          "location": "query",
2020                          "type": "string"
2021                        }
2022                      },
2023                      "path": "v2/{+name}",
2024                      "request": {
2025                        "$ref": "LogView"
2026                      },
2027                      "response": {
2028                        "$ref": "LogView"
2029                      },
2030                      "scopes": [
2031                        "https://www.googleapis.com/auth/cloud-platform",
2032                        "https://www.googleapis.com/auth/logging.admin"
2033                      ]
2034                    }
2035                  }
2036                }
2037              }
2038            },
2039            "operations": {
2040              "methods": {
2041                "cancel": {
2042                  "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.",
2043                  "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/operations/{operationsId}:cancel",
2044                  "httpMethod": "POST",
2045                  "id": "logging.folders.locations.operations.cancel",
2046                  "parameterOrder": [
2047                    "name"
2048                  ],
2049                  "parameters": {
2050                    "name": {
2051                      "description": "The name of the operation resource to be cancelled.",
2052                      "location": "path",
2053                      "pattern": "^folders/[^/]+/locations/[^/]+/operations/[^/]+$",
2054                      "required": true,
2055                      "type": "string"
2056                    }
2057                  },
2058                  "path": "v2/{+name}:cancel",
2059                  "request": {
2060                    "$ref": "CancelOperationRequest"
2061                  },
2062                  "response": {
2063                    "$ref": "Empty"
2064                  },
2065                  "scopes": [
2066                    "https://www.googleapis.com/auth/cloud-platform",
2067                    "https://www.googleapis.com/auth/logging.admin"
2068                  ]
2069                },
2070                "get": {
2071                  "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
2072                  "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/operations/{operationsId}",
2073                  "httpMethod": "GET",
2074                  "id": "logging.folders.locations.operations.get",
2075                  "parameterOrder": [
2076                    "name"
2077                  ],
2078                  "parameters": {
2079                    "name": {
2080                      "description": "The name of the operation resource.",
2081                      "location": "path",
2082                      "pattern": "^folders/[^/]+/locations/[^/]+/operations/[^/]+$",
2083                      "required": true,
2084                      "type": "string"
2085                    }
2086                  },
2087                  "path": "v2/{+name}",
2088                  "response": {
2089                    "$ref": "Operation"
2090                  },
2091                  "scopes": [
2092                    "https://www.googleapis.com/auth/cloud-platform",
2093                    "https://www.googleapis.com/auth/cloud-platform.read-only",
2094                    "https://www.googleapis.com/auth/logging.admin",
2095                    "https://www.googleapis.com/auth/logging.read"
2096                  ]
2097                },
2098                "list": {
2099                  "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
2100                  "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/operations",
2101                  "httpMethod": "GET",
2102                  "id": "logging.folders.locations.operations.list",
2103                  "parameterOrder": [
2104                    "name"
2105                  ],
2106                  "parameters": {
2107                    "filter": {
2108                      "description": "The standard list filter.",
2109                      "location": "query",
2110                      "type": "string"
2111                    },
2112                    "name": {
2113                      "description": "The name of the operation's parent resource.",
2114                      "location": "path",
2115                      "pattern": "^folders/[^/]+/locations/[^/]+$",
2116                      "required": true,
2117                      "type": "string"
2118                    },
2119                    "pageSize": {
2120                      "description": "The standard list page size.",
2121                      "format": "int32",
2122                      "location": "query",
2123                      "type": "integer"
2124                    },
2125                    "pageToken": {
2126                      "description": "The standard list page token.",
2127                      "location": "query",
2128                      "type": "string"
2129                    }
2130                  },
2131                  "path": "v2/{+name}/operations",
2132                  "response": {
2133                    "$ref": "ListOperationsResponse"
2134                  },
2135                  "scopes": [
2136                    "https://www.googleapis.com/auth/cloud-platform",
2137                    "https://www.googleapis.com/auth/cloud-platform.read-only",
2138                    "https://www.googleapis.com/auth/logging.admin",
2139                    "https://www.googleapis.com/auth/logging.read"
2140                  ]
2141                }
2142              }
2143            }
2144          }
2145        },
2146        "logs": {
2147          "methods": {
2148            "delete": {
2149              "description": "Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.",
2150              "flatPath": "v2/folders/{foldersId}/logs/{logsId}",
2151              "httpMethod": "DELETE",
2152              "id": "logging.folders.logs.delete",
2153              "parameterOrder": [
2154                "logName"
2155              ],
2156              "parameters": {
2157                "logName": {
2158                  "description": "Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/123/logs/cloudaudit.googleapis.com%2Factivity\".For more information about log names, see LogEntry.",
2159                  "location": "path",
2160                  "pattern": "^folders/[^/]+/logs/[^/]+$",
2161                  "required": true,
2162                  "type": "string"
2163                }
2164              },
2165              "path": "v2/{+logName}",
2166              "response": {
2167                "$ref": "Empty"
2168              },
2169              "scopes": [
2170                "https://www.googleapis.com/auth/cloud-platform",
2171                "https://www.googleapis.com/auth/logging.admin"
2172              ]
2173            },
2174            "list": {
2175              "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.",
2176              "flatPath": "v2/folders/{foldersId}/logs",
2177              "httpMethod": "GET",
2178              "id": "logging.folders.logs.list",
2179              "parameterOrder": [
2180                "parent"
2181              ],
2182              "parameters": {
2183                "pageSize": {
2184                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
2185                  "format": "int32",
2186                  "location": "query",
2187                  "type": "integer"
2188                },
2189                "pageToken": {
2190                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
2191                  "location": "query",
2192                  "type": "string"
2193                },
2194                "parent": {
2195                  "description": "Required. The resource name that owns the logs: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]",
2196                  "location": "path",
2197                  "pattern": "^folders/[^/]+$",
2198                  "required": true,
2199                  "type": "string"
2200                },
2201                "resourceNames": {
2202                  "description": "Optional. The resource name that owns the logs: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]",
2203                  "location": "query",
2204                  "repeated": true,
2205                  "type": "string"
2206                }
2207              },
2208              "path": "v2/{+parent}/logs",
2209              "response": {
2210                "$ref": "ListLogsResponse"
2211              },
2212              "scopes": [
2213                "https://www.googleapis.com/auth/cloud-platform",
2214                "https://www.googleapis.com/auth/cloud-platform.read-only",
2215                "https://www.googleapis.com/auth/logging.admin",
2216                "https://www.googleapis.com/auth/logging.read"
2217              ]
2218            }
2219          }
2220        },
2221        "sinks": {
2222          "methods": {
2223            "create": {
2224              "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.",
2225              "flatPath": "v2/folders/{foldersId}/sinks",
2226              "httpMethod": "POST",
2227              "id": "logging.folders.sinks.create",
2228              "parameterOrder": [
2229                "parent"
2230              ],
2231              "parameters": {
2232                "parent": {
2233                  "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" For examples:\"projects/my-project\" \"organizations/123456789\"",
2234                  "location": "path",
2235                  "pattern": "^folders/[^/]+$",
2236                  "required": true,
2237                  "type": "string"
2238                },
2239                "uniqueWriterIdentity": {
2240                  "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.",
2241                  "location": "query",
2242                  "type": "boolean"
2243                }
2244              },
2245              "path": "v2/{+parent}/sinks",
2246              "request": {
2247                "$ref": "LogSink"
2248              },
2249              "response": {
2250                "$ref": "LogSink"
2251              },
2252              "scopes": [
2253                "https://www.googleapis.com/auth/cloud-platform",
2254                "https://www.googleapis.com/auth/logging.admin"
2255              ]
2256            },
2257            "delete": {
2258              "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.",
2259              "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}",
2260              "httpMethod": "DELETE",
2261              "id": "logging.folders.sinks.delete",
2262              "parameterOrder": [
2263                "sinkName"
2264              ],
2265              "parameters": {
2266                "sinkName": {
2267                  "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
2268                  "location": "path",
2269                  "pattern": "^folders/[^/]+/sinks/[^/]+$",
2270                  "required": true,
2271                  "type": "string"
2272                }
2273              },
2274              "path": "v2/{+sinkName}",
2275              "response": {
2276                "$ref": "Empty"
2277              },
2278              "scopes": [
2279                "https://www.googleapis.com/auth/cloud-platform",
2280                "https://www.googleapis.com/auth/logging.admin"
2281              ]
2282            },
2283            "get": {
2284              "description": "Gets a sink.",
2285              "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}",
2286              "httpMethod": "GET",
2287              "id": "logging.folders.sinks.get",
2288              "parameterOrder": [
2289                "sinkName"
2290              ],
2291              "parameters": {
2292                "sinkName": {
2293                  "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
2294                  "location": "path",
2295                  "pattern": "^folders/[^/]+/sinks/[^/]+$",
2296                  "required": true,
2297                  "type": "string"
2298                }
2299              },
2300              "path": "v2/{+sinkName}",
2301              "response": {
2302                "$ref": "LogSink"
2303              },
2304              "scopes": [
2305                "https://www.googleapis.com/auth/cloud-platform",
2306                "https://www.googleapis.com/auth/cloud-platform.read-only",
2307                "https://www.googleapis.com/auth/logging.admin",
2308                "https://www.googleapis.com/auth/logging.read"
2309              ]
2310            },
2311            "list": {
2312              "description": "Lists sinks.",
2313              "flatPath": "v2/folders/{foldersId}/sinks",
2314              "httpMethod": "GET",
2315              "id": "logging.folders.sinks.list",
2316              "parameterOrder": [
2317                "parent"
2318              ],
2319              "parameters": {
2320                "pageSize": {
2321                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
2322                  "format": "int32",
2323                  "location": "query",
2324                  "type": "integer"
2325                },
2326                "pageToken": {
2327                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
2328                  "location": "query",
2329                  "type": "string"
2330                },
2331                "parent": {
2332                  "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ",
2333                  "location": "path",
2334                  "pattern": "^folders/[^/]+$",
2335                  "required": true,
2336                  "type": "string"
2337                }
2338              },
2339              "path": "v2/{+parent}/sinks",
2340              "response": {
2341                "$ref": "ListSinksResponse"
2342              },
2343              "scopes": [
2344                "https://www.googleapis.com/auth/cloud-platform",
2345                "https://www.googleapis.com/auth/cloud-platform.read-only",
2346                "https://www.googleapis.com/auth/logging.admin",
2347                "https://www.googleapis.com/auth/logging.read"
2348              ]
2349            },
2350            "patch": {
2351              "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.",
2352              "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}",
2353              "httpMethod": "PATCH",
2354              "id": "logging.folders.sinks.patch",
2355              "parameterOrder": [
2356                "sinkName"
2357              ],
2358              "parameters": {
2359                "sinkName": {
2360                  "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
2361                  "location": "path",
2362                  "pattern": "^folders/[^/]+/sinks/[^/]+$",
2363                  "required": true,
2364                  "type": "string"
2365                },
2366                "uniqueWriterIdentity": {
2367                  "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.",
2368                  "location": "query",
2369                  "type": "boolean"
2370                },
2371                "updateMask": {
2372                  "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
2373                  "format": "google-fieldmask",
2374                  "location": "query",
2375                  "type": "string"
2376                }
2377              },
2378              "path": "v2/{+sinkName}",
2379              "request": {
2380                "$ref": "LogSink"
2381              },
2382              "response": {
2383                "$ref": "LogSink"
2384              },
2385              "scopes": [
2386                "https://www.googleapis.com/auth/cloud-platform",
2387                "https://www.googleapis.com/auth/logging.admin"
2388              ]
2389            },
2390            "update": {
2391              "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.",
2392              "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}",
2393              "httpMethod": "PUT",
2394              "id": "logging.folders.sinks.update",
2395              "parameterOrder": [
2396                "sinkName"
2397              ],
2398              "parameters": {
2399                "sinkName": {
2400                  "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
2401                  "location": "path",
2402                  "pattern": "^folders/[^/]+/sinks/[^/]+$",
2403                  "required": true,
2404                  "type": "string"
2405                },
2406                "uniqueWriterIdentity": {
2407                  "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.",
2408                  "location": "query",
2409                  "type": "boolean"
2410                },
2411                "updateMask": {
2412                  "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
2413                  "format": "google-fieldmask",
2414                  "location": "query",
2415                  "type": "string"
2416                }
2417              },
2418              "path": "v2/{+sinkName}",
2419              "request": {
2420                "$ref": "LogSink"
2421              },
2422              "response": {
2423                "$ref": "LogSink"
2424              },
2425              "scopes": [
2426                "https://www.googleapis.com/auth/cloud-platform",
2427                "https://www.googleapis.com/auth/logging.admin"
2428              ]
2429            }
2430          }
2431        }
2432      }
2433    },
2434    "locations": {
2435      "methods": {
2436        "get": {
2437          "description": "Gets information about a location.",
2438          "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}",
2439          "httpMethod": "GET",
2440          "id": "logging.locations.get",
2441          "parameterOrder": [
2442            "name"
2443          ],
2444          "parameters": {
2445            "name": {
2446              "description": "Resource name for the location.",
2447              "location": "path",
2448              "pattern": "^[^/]+/[^/]+/locations/[^/]+$",
2449              "required": true,
2450              "type": "string"
2451            }
2452          },
2453          "path": "v2/{+name}",
2454          "response": {
2455            "$ref": "Location"
2456          },
2457          "scopes": [
2458            "https://www.googleapis.com/auth/cloud-platform",
2459            "https://www.googleapis.com/auth/cloud-platform.read-only",
2460            "https://www.googleapis.com/auth/logging.admin",
2461            "https://www.googleapis.com/auth/logging.read"
2462          ]
2463        },
2464        "list": {
2465          "description": "Lists information about the supported locations for this service.",
2466          "flatPath": "v2/{v2Id}/{v2Id1}/locations",
2467          "httpMethod": "GET",
2468          "id": "logging.locations.list",
2469          "parameterOrder": [
2470            "name"
2471          ],
2472          "parameters": {
2473            "filter": {
2474              "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).",
2475              "location": "query",
2476              "type": "string"
2477            },
2478            "name": {
2479              "description": "The resource that owns the locations collection, if applicable.",
2480              "location": "path",
2481              "pattern": "^[^/]+/[^/]+$",
2482              "required": true,
2483              "type": "string"
2484            },
2485            "pageSize": {
2486              "description": "The maximum number of results to return. If not set, the service selects a default.",
2487              "format": "int32",
2488              "location": "query",
2489              "type": "integer"
2490            },
2491            "pageToken": {
2492              "description": "A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.",
2493              "location": "query",
2494              "type": "string"
2495            }
2496          },
2497          "path": "v2/{+name}/locations",
2498          "response": {
2499            "$ref": "ListLocationsResponse"
2500          },
2501          "scopes": [
2502            "https://www.googleapis.com/auth/cloud-platform",
2503            "https://www.googleapis.com/auth/cloud-platform.read-only",
2504            "https://www.googleapis.com/auth/logging.admin",
2505            "https://www.googleapis.com/auth/logging.read"
2506          ]
2507        }
2508      },
2509      "resources": {
2510        "buckets": {
2511          "methods": {
2512            "create": {
2513              "description": "Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.",
2514              "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets",
2515              "httpMethod": "POST",
2516              "id": "logging.locations.buckets.create",
2517              "parameterOrder": [
2518                "parent"
2519              ],
2520              "parameters": {
2521                "bucketId": {
2522                  "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.",
2523                  "location": "query",
2524                  "type": "string"
2525                },
2526                "parent": {
2527                  "description": "Required. The resource in which to create the log bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"",
2528                  "location": "path",
2529                  "pattern": "^[^/]+/[^/]+/locations/[^/]+$",
2530                  "required": true,
2531                  "type": "string"
2532                }
2533              },
2534              "path": "v2/{+parent}/buckets",
2535              "request": {
2536                "$ref": "LogBucket"
2537              },
2538              "response": {
2539                "$ref": "LogBucket"
2540              },
2541              "scopes": [
2542                "https://www.googleapis.com/auth/cloud-platform",
2543                "https://www.googleapis.com/auth/logging.admin"
2544              ]
2545            },
2546            "delete": {
2547              "description": "Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.",
2548              "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}",
2549              "httpMethod": "DELETE",
2550              "id": "logging.locations.buckets.delete",
2551              "parameterOrder": [
2552                "name"
2553              ],
2554              "parameters": {
2555                "name": {
2556                  "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
2557                  "location": "path",
2558                  "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$",
2559                  "required": true,
2560                  "type": "string"
2561                }
2562              },
2563              "path": "v2/{+name}",
2564              "response": {
2565                "$ref": "Empty"
2566              },
2567              "scopes": [
2568                "https://www.googleapis.com/auth/cloud-platform",
2569                "https://www.googleapis.com/auth/logging.admin"
2570              ]
2571            },
2572            "get": {
2573              "description": "Gets a log bucket.",
2574              "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}",
2575              "httpMethod": "GET",
2576              "id": "logging.locations.buckets.get",
2577              "parameterOrder": [
2578                "name"
2579              ],
2580              "parameters": {
2581                "name": {
2582                  "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
2583                  "location": "path",
2584                  "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$",
2585                  "required": true,
2586                  "type": "string"
2587                }
2588              },
2589              "path": "v2/{+name}",
2590              "response": {
2591                "$ref": "LogBucket"
2592              },
2593              "scopes": [
2594                "https://www.googleapis.com/auth/cloud-platform",
2595                "https://www.googleapis.com/auth/cloud-platform.read-only",
2596                "https://www.googleapis.com/auth/logging.admin",
2597                "https://www.googleapis.com/auth/logging.read"
2598              ]
2599            },
2600            "list": {
2601              "description": "Lists log buckets.",
2602              "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets",
2603              "httpMethod": "GET",
2604              "id": "logging.locations.buckets.list",
2605              "parameterOrder": [
2606                "parent"
2607              ],
2608              "parameters": {
2609                "pageSize": {
2610                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
2611                  "format": "int32",
2612                  "location": "query",
2613                  "type": "integer"
2614                },
2615                "pageToken": {
2616                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
2617                  "location": "query",
2618                  "type": "string"
2619                },
2620                "parent": {
2621                  "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.",
2622                  "location": "path",
2623                  "pattern": "^[^/]+/[^/]+/locations/[^/]+$",
2624                  "required": true,
2625                  "type": "string"
2626                }
2627              },
2628              "path": "v2/{+parent}/buckets",
2629              "response": {
2630                "$ref": "ListBucketsResponse"
2631              },
2632              "scopes": [
2633                "https://www.googleapis.com/auth/cloud-platform",
2634                "https://www.googleapis.com/auth/cloud-platform.read-only",
2635                "https://www.googleapis.com/auth/logging.admin",
2636                "https://www.googleapis.com/auth/logging.read"
2637              ]
2638            },
2639            "patch": {
2640              "description": "Updates a log bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.",
2641              "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}",
2642              "httpMethod": "PATCH",
2643              "id": "logging.locations.buckets.patch",
2644              "parameterOrder": [
2645                "name"
2646              ],
2647              "parameters": {
2648                "name": {
2649                  "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
2650                  "location": "path",
2651                  "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$",
2652                  "required": true,
2653                  "type": "string"
2654                },
2655                "updateMask": {
2656                  "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=retention_days",
2657                  "format": "google-fieldmask",
2658                  "location": "query",
2659                  "type": "string"
2660                }
2661              },
2662              "path": "v2/{+name}",
2663              "request": {
2664                "$ref": "LogBucket"
2665              },
2666              "response": {
2667                "$ref": "LogBucket"
2668              },
2669              "scopes": [
2670                "https://www.googleapis.com/auth/cloud-platform",
2671                "https://www.googleapis.com/auth/logging.admin"
2672              ]
2673            },
2674            "undelete": {
2675              "description": "Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.",
2676              "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}:undelete",
2677              "httpMethod": "POST",
2678              "id": "logging.locations.buckets.undelete",
2679              "parameterOrder": [
2680                "name"
2681              ],
2682              "parameters": {
2683                "name": {
2684                  "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
2685                  "location": "path",
2686                  "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$",
2687                  "required": true,
2688                  "type": "string"
2689                }
2690              },
2691              "path": "v2/{+name}:undelete",
2692              "request": {
2693                "$ref": "UndeleteBucketRequest"
2694              },
2695              "response": {
2696                "$ref": "Empty"
2697              },
2698              "scopes": [
2699                "https://www.googleapis.com/auth/cloud-platform",
2700                "https://www.googleapis.com/auth/logging.admin"
2701              ]
2702            }
2703          },
2704          "resources": {
2705            "views": {
2706              "methods": {
2707                "create": {
2708                  "description": "Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.",
2709                  "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views",
2710                  "httpMethod": "POST",
2711                  "id": "logging.locations.buckets.views.create",
2712                  "parameterOrder": [
2713                    "parent"
2714                  ],
2715                  "parameters": {
2716                    "parent": {
2717                      "description": "Required. The bucket in which to create the view `\"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\"` For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
2718                      "location": "path",
2719                      "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$",
2720                      "required": true,
2721                      "type": "string"
2722                    },
2723                    "viewId": {
2724                      "description": "Required. The id to use for this view.",
2725                      "location": "query",
2726                      "type": "string"
2727                    }
2728                  },
2729                  "path": "v2/{+parent}/views",
2730                  "request": {
2731                    "$ref": "LogView"
2732                  },
2733                  "response": {
2734                    "$ref": "LogView"
2735                  },
2736                  "scopes": [
2737                    "https://www.googleapis.com/auth/cloud-platform",
2738                    "https://www.googleapis.com/auth/logging.admin"
2739                  ]
2740                },
2741                "delete": {
2742                  "description": "Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.",
2743                  "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
2744                  "httpMethod": "DELETE",
2745                  "id": "logging.locations.buckets.views.delete",
2746                  "parameterOrder": [
2747                    "name"
2748                  ],
2749                  "parameters": {
2750                    "name": {
2751                      "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
2752                      "location": "path",
2753                      "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
2754                      "required": true,
2755                      "type": "string"
2756                    }
2757                  },
2758                  "path": "v2/{+name}",
2759                  "response": {
2760                    "$ref": "Empty"
2761                  },
2762                  "scopes": [
2763                    "https://www.googleapis.com/auth/cloud-platform",
2764                    "https://www.googleapis.com/auth/logging.admin"
2765                  ]
2766                },
2767                "get": {
2768                  "description": "Gets a view on a log bucket..",
2769                  "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
2770                  "httpMethod": "GET",
2771                  "id": "logging.locations.buckets.views.get",
2772                  "parameterOrder": [
2773                    "name"
2774                  ],
2775                  "parameters": {
2776                    "name": {
2777                      "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
2778                      "location": "path",
2779                      "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
2780                      "required": true,
2781                      "type": "string"
2782                    }
2783                  },
2784                  "path": "v2/{+name}",
2785                  "response": {
2786                    "$ref": "LogView"
2787                  },
2788                  "scopes": [
2789                    "https://www.googleapis.com/auth/cloud-platform",
2790                    "https://www.googleapis.com/auth/cloud-platform.read-only",
2791                    "https://www.googleapis.com/auth/logging.admin",
2792                    "https://www.googleapis.com/auth/logging.read"
2793                  ]
2794                },
2795                "list": {
2796                  "description": "Lists views on a log bucket.",
2797                  "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views",
2798                  "httpMethod": "GET",
2799                  "id": "logging.locations.buckets.views.list",
2800                  "parameterOrder": [
2801                    "parent"
2802                  ],
2803                  "parameters": {
2804                    "pageSize": {
2805                      "description": "Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
2806                      "format": "int32",
2807                      "location": "query",
2808                      "type": "integer"
2809                    },
2810                    "pageToken": {
2811                      "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
2812                      "location": "query",
2813                      "type": "string"
2814                    },
2815                    "parent": {
2816                      "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ",
2817                      "location": "path",
2818                      "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+$",
2819                      "required": true,
2820                      "type": "string"
2821                    }
2822                  },
2823                  "path": "v2/{+parent}/views",
2824                  "response": {
2825                    "$ref": "ListViewsResponse"
2826                  },
2827                  "scopes": [
2828                    "https://www.googleapis.com/auth/cloud-platform",
2829                    "https://www.googleapis.com/auth/cloud-platform.read-only",
2830                    "https://www.googleapis.com/auth/logging.admin",
2831                    "https://www.googleapis.com/auth/logging.read"
2832                  ]
2833                },
2834                "patch": {
2835                  "description": "Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: filter. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.",
2836                  "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
2837                  "httpMethod": "PATCH",
2838                  "id": "logging.locations.buckets.views.patch",
2839                  "parameterOrder": [
2840                    "name"
2841                  ],
2842                  "parameters": {
2843                    "name": {
2844                      "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
2845                      "location": "path",
2846                      "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
2847                      "required": true,
2848                      "type": "string"
2849                    },
2850                    "updateMask": {
2851                      "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
2852                      "format": "google-fieldmask",
2853                      "location": "query",
2854                      "type": "string"
2855                    }
2856                  },
2857                  "path": "v2/{+name}",
2858                  "request": {
2859                    "$ref": "LogView"
2860                  },
2861                  "response": {
2862                    "$ref": "LogView"
2863                  },
2864                  "scopes": [
2865                    "https://www.googleapis.com/auth/cloud-platform",
2866                    "https://www.googleapis.com/auth/logging.admin"
2867                  ]
2868                }
2869              }
2870            }
2871          }
2872        },
2873        "operations": {
2874          "methods": {
2875            "cancel": {
2876              "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.",
2877              "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/operations/{operationsId}:cancel",
2878              "httpMethod": "POST",
2879              "id": "logging.locations.operations.cancel",
2880              "parameterOrder": [
2881                "name"
2882              ],
2883              "parameters": {
2884                "name": {
2885                  "description": "The name of the operation resource to be cancelled.",
2886                  "location": "path",
2887                  "pattern": "^[^/]+/[^/]+/locations/[^/]+/operations/[^/]+$",
2888                  "required": true,
2889                  "type": "string"
2890                }
2891              },
2892              "path": "v2/{+name}:cancel",
2893              "request": {
2894                "$ref": "CancelOperationRequest"
2895              },
2896              "response": {
2897                "$ref": "Empty"
2898              },
2899              "scopes": [
2900                "https://www.googleapis.com/auth/cloud-platform",
2901                "https://www.googleapis.com/auth/logging.admin"
2902              ]
2903            },
2904            "get": {
2905              "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
2906              "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/operations/{operationsId}",
2907              "httpMethod": "GET",
2908              "id": "logging.locations.operations.get",
2909              "parameterOrder": [
2910                "name"
2911              ],
2912              "parameters": {
2913                "name": {
2914                  "description": "The name of the operation resource.",
2915                  "location": "path",
2916                  "pattern": "^[^/]+/[^/]+/locations/[^/]+/operations/[^/]+$",
2917                  "required": true,
2918                  "type": "string"
2919                }
2920              },
2921              "path": "v2/{+name}",
2922              "response": {
2923                "$ref": "Operation"
2924              },
2925              "scopes": [
2926                "https://www.googleapis.com/auth/cloud-platform",
2927                "https://www.googleapis.com/auth/cloud-platform.read-only",
2928                "https://www.googleapis.com/auth/logging.admin",
2929                "https://www.googleapis.com/auth/logging.read"
2930              ]
2931            },
2932            "list": {
2933              "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
2934              "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/operations",
2935              "httpMethod": "GET",
2936              "id": "logging.locations.operations.list",
2937              "parameterOrder": [
2938                "name"
2939              ],
2940              "parameters": {
2941                "filter": {
2942                  "description": "The standard list filter.",
2943                  "location": "query",
2944                  "type": "string"
2945                },
2946                "name": {
2947                  "description": "The name of the operation's parent resource.",
2948                  "location": "path",
2949                  "pattern": "^[^/]+/[^/]+/locations/[^/]+$",
2950                  "required": true,
2951                  "type": "string"
2952                },
2953                "pageSize": {
2954                  "description": "The standard list page size.",
2955                  "format": "int32",
2956                  "location": "query",
2957                  "type": "integer"
2958                },
2959                "pageToken": {
2960                  "description": "The standard list page token.",
2961                  "location": "query",
2962                  "type": "string"
2963                }
2964              },
2965              "path": "v2/{+name}/operations",
2966              "response": {
2967                "$ref": "ListOperationsResponse"
2968              },
2969              "scopes": [
2970                "https://www.googleapis.com/auth/cloud-platform",
2971                "https://www.googleapis.com/auth/cloud-platform.read-only",
2972                "https://www.googleapis.com/auth/logging.admin",
2973                "https://www.googleapis.com/auth/logging.read"
2974              ]
2975            }
2976          }
2977        }
2978      }
2979    },
2980    "logs": {
2981      "methods": {
2982        "delete": {
2983          "description": "Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.",
2984          "flatPath": "v2/{v2Id}/{v2Id1}/logs/{logsId}",
2985          "httpMethod": "DELETE",
2986          "id": "logging.logs.delete",
2987          "parameterOrder": [
2988            "logName"
2989          ],
2990          "parameters": {
2991            "logName": {
2992              "description": "Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/123/logs/cloudaudit.googleapis.com%2Factivity\".For more information about log names, see LogEntry.",
2993              "location": "path",
2994              "pattern": "^[^/]+/[^/]+/logs/[^/]+$",
2995              "required": true,
2996              "type": "string"
2997            }
2998          },
2999          "path": "v2/{+logName}",
3000          "response": {
3001            "$ref": "Empty"
3002          },
3003          "scopes": [
3004            "https://www.googleapis.com/auth/cloud-platform",
3005            "https://www.googleapis.com/auth/logging.admin"
3006          ]
3007        },
3008        "list": {
3009          "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.",
3010          "flatPath": "v2/{v2Id}/{v2Id1}/logs",
3011          "httpMethod": "GET",
3012          "id": "logging.logs.list",
3013          "parameterOrder": [
3014            "parent"
3015          ],
3016          "parameters": {
3017            "pageSize": {
3018              "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
3019              "format": "int32",
3020              "location": "query",
3021              "type": "integer"
3022            },
3023            "pageToken": {
3024              "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
3025              "location": "query",
3026              "type": "string"
3027            },
3028            "parent": {
3029              "description": "Required. The resource name that owns the logs: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]",
3030              "location": "path",
3031              "pattern": "^[^/]+/[^/]+$",
3032              "required": true,
3033              "type": "string"
3034            },
3035            "resourceNames": {
3036              "description": "Optional. The resource name that owns the logs: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]",
3037              "location": "query",
3038              "repeated": true,
3039              "type": "string"
3040            }
3041          },
3042          "path": "v2/{+parent}/logs",
3043          "response": {
3044            "$ref": "ListLogsResponse"
3045          },
3046          "scopes": [
3047            "https://www.googleapis.com/auth/cloud-platform",
3048            "https://www.googleapis.com/auth/cloud-platform.read-only",
3049            "https://www.googleapis.com/auth/logging.admin",
3050            "https://www.googleapis.com/auth/logging.read"
3051          ]
3052        }
3053      }
3054    },
3055    "monitoredResourceDescriptors": {
3056      "methods": {
3057        "list": {
3058          "description": "Lists the descriptors for monitored resource types used by Logging.",
3059          "flatPath": "v2/monitoredResourceDescriptors",
3060          "httpMethod": "GET",
3061          "id": "logging.monitoredResourceDescriptors.list",
3062          "parameterOrder": [],
3063          "parameters": {
3064            "pageSize": {
3065              "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
3066              "format": "int32",
3067              "location": "query",
3068              "type": "integer"
3069            },
3070            "pageToken": {
3071              "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
3072              "location": "query",
3073              "type": "string"
3074            }
3075          },
3076          "path": "v2/monitoredResourceDescriptors",
3077          "response": {
3078            "$ref": "ListMonitoredResourceDescriptorsResponse"
3079          },
3080          "scopes": [
3081            "https://www.googleapis.com/auth/cloud-platform",
3082            "https://www.googleapis.com/auth/cloud-platform.read-only",
3083            "https://www.googleapis.com/auth/logging.admin",
3084            "https://www.googleapis.com/auth/logging.read"
3085          ]
3086        }
3087      }
3088    },
3089    "organizations": {
3090      "methods": {
3091        "getCmekSettings": {
3092          "description": "Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.",
3093          "flatPath": "v2/organizations/{organizationsId}/cmekSettings",
3094          "httpMethod": "GET",
3095          "id": "logging.organizations.getCmekSettings",
3096          "parameterOrder": [
3097            "name"
3098          ],
3099          "parameters": {
3100            "name": {
3101              "description": "Required. The resource for which to retrieve CMEK settings. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" For example:\"organizations/12345/cmekSettings\"Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.",
3102              "location": "path",
3103              "pattern": "^organizations/[^/]+$",
3104              "required": true,
3105              "type": "string"
3106            }
3107          },
3108          "path": "v2/{+name}/cmekSettings",
3109          "response": {
3110            "$ref": "CmekSettings"
3111          },
3112          "scopes": [
3113            "https://www.googleapis.com/auth/cloud-platform",
3114            "https://www.googleapis.com/auth/cloud-platform.read-only",
3115            "https://www.googleapis.com/auth/logging.admin",
3116            "https://www.googleapis.com/auth/logging.read"
3117          ]
3118        },
3119        "updateCmekSettings": {
3120          "description": "Updates the Log Router CMEK settings for the given resource.Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.UpdateCmekSettings will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.",
3121          "flatPath": "v2/organizations/{organizationsId}/cmekSettings",
3122          "httpMethod": "PATCH",
3123          "id": "logging.organizations.updateCmekSettings",
3124          "parameterOrder": [
3125            "name"
3126          ],
3127          "parameters": {
3128            "name": {
3129              "description": "Required. The resource name for the CMEK settings to update. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" For example:\"organizations/12345/cmekSettings\"Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.",
3130              "location": "path",
3131              "pattern": "^organizations/[^/]+$",
3132              "required": true,
3133              "type": "string"
3134            },
3135            "updateMask": {
3136              "description": "Optional. Field mask identifying which fields from cmek_settings should be updated. A field will be overwritten if and only if it is in the update mask. Output only fields cannot be updated.See FieldMask for more information.For example: \"updateMask=kmsKeyName\"",
3137              "format": "google-fieldmask",
3138              "location": "query",
3139              "type": "string"
3140            }
3141          },
3142          "path": "v2/{+name}/cmekSettings",
3143          "request": {
3144            "$ref": "CmekSettings"
3145          },
3146          "response": {
3147            "$ref": "CmekSettings"
3148          },
3149          "scopes": [
3150            "https://www.googleapis.com/auth/cloud-platform",
3151            "https://www.googleapis.com/auth/logging.admin"
3152          ]
3153        }
3154      },
3155      "resources": {
3156        "exclusions": {
3157          "methods": {
3158            "create": {
3159              "description": "Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.",
3160              "flatPath": "v2/organizations/{organizationsId}/exclusions",
3161              "httpMethod": "POST",
3162              "id": "logging.organizations.exclusions.create",
3163              "parameterOrder": [
3164                "parent"
3165              ],
3166              "parameters": {
3167                "parent": {
3168                  "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" For examples:\"projects/my-logging-project\" \"organizations/123456789\"",
3169                  "location": "path",
3170                  "pattern": "^organizations/[^/]+$",
3171                  "required": true,
3172                  "type": "string"
3173                }
3174              },
3175              "path": "v2/{+parent}/exclusions",
3176              "request": {
3177                "$ref": "LogExclusion"
3178              },
3179              "response": {
3180                "$ref": "LogExclusion"
3181              },
3182              "scopes": [
3183                "https://www.googleapis.com/auth/cloud-platform",
3184                "https://www.googleapis.com/auth/logging.admin"
3185              ]
3186            },
3187            "delete": {
3188              "description": "Deletes an exclusion in the _Default sink.",
3189              "flatPath": "v2/organizations/{organizationsId}/exclusions/{exclusionsId}",
3190              "httpMethod": "DELETE",
3191              "id": "logging.organizations.exclusions.delete",
3192              "parameterOrder": [
3193                "name"
3194              ],
3195              "parameters": {
3196                "name": {
3197                  "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
3198                  "location": "path",
3199                  "pattern": "^organizations/[^/]+/exclusions/[^/]+$",
3200                  "required": true,
3201                  "type": "string"
3202                }
3203              },
3204              "path": "v2/{+name}",
3205              "response": {
3206                "$ref": "Empty"
3207              },
3208              "scopes": [
3209                "https://www.googleapis.com/auth/cloud-platform",
3210                "https://www.googleapis.com/auth/logging.admin"
3211              ]
3212            },
3213            "get": {
3214              "description": "Gets the description of an exclusion in the _Default sink.",
3215              "flatPath": "v2/organizations/{organizationsId}/exclusions/{exclusionsId}",
3216              "httpMethod": "GET",
3217              "id": "logging.organizations.exclusions.get",
3218              "parameterOrder": [
3219                "name"
3220              ],
3221              "parameters": {
3222                "name": {
3223                  "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
3224                  "location": "path",
3225                  "pattern": "^organizations/[^/]+/exclusions/[^/]+$",
3226                  "required": true,
3227                  "type": "string"
3228                }
3229              },
3230              "path": "v2/{+name}",
3231              "response": {
3232                "$ref": "LogExclusion"
3233              },
3234              "scopes": [
3235                "https://www.googleapis.com/auth/cloud-platform",
3236                "https://www.googleapis.com/auth/cloud-platform.read-only",
3237                "https://www.googleapis.com/auth/logging.admin",
3238                "https://www.googleapis.com/auth/logging.read"
3239              ]
3240            },
3241            "list": {
3242              "description": "Lists all the exclusions on the _Default sink in a parent resource.",
3243              "flatPath": "v2/organizations/{organizationsId}/exclusions",
3244              "httpMethod": "GET",
3245              "id": "logging.organizations.exclusions.list",
3246              "parameterOrder": [
3247                "parent"
3248              ],
3249              "parameters": {
3250                "pageSize": {
3251                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
3252                  "format": "int32",
3253                  "location": "query",
3254                  "type": "integer"
3255                },
3256                "pageToken": {
3257                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
3258                  "location": "query",
3259                  "type": "string"
3260                },
3261                "parent": {
3262                  "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ",
3263                  "location": "path",
3264                  "pattern": "^organizations/[^/]+$",
3265                  "required": true,
3266                  "type": "string"
3267                }
3268              },
3269              "path": "v2/{+parent}/exclusions",
3270              "response": {
3271                "$ref": "ListExclusionsResponse"
3272              },
3273              "scopes": [
3274                "https://www.googleapis.com/auth/cloud-platform",
3275                "https://www.googleapis.com/auth/cloud-platform.read-only",
3276                "https://www.googleapis.com/auth/logging.admin",
3277                "https://www.googleapis.com/auth/logging.read"
3278              ]
3279            },
3280            "patch": {
3281              "description": "Changes one or more properties of an existing exclusion in the _Default sink.",
3282              "flatPath": "v2/organizations/{organizationsId}/exclusions/{exclusionsId}",
3283              "httpMethod": "PATCH",
3284              "id": "logging.organizations.exclusions.patch",
3285              "parameterOrder": [
3286                "name"
3287              ],
3288              "parameters": {
3289                "name": {
3290                  "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
3291                  "location": "path",
3292                  "pattern": "^organizations/[^/]+/exclusions/[^/]+$",
3293                  "required": true,
3294                  "type": "string"
3295                },
3296                "updateMask": {
3297                  "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".",
3298                  "format": "google-fieldmask",
3299                  "location": "query",
3300                  "type": "string"
3301                }
3302              },
3303              "path": "v2/{+name}",
3304              "request": {
3305                "$ref": "LogExclusion"
3306              },
3307              "response": {
3308                "$ref": "LogExclusion"
3309              },
3310              "scopes": [
3311                "https://www.googleapis.com/auth/cloud-platform",
3312                "https://www.googleapis.com/auth/logging.admin"
3313              ]
3314            }
3315          }
3316        },
3317        "locations": {
3318          "methods": {
3319            "get": {
3320              "description": "Gets information about a location.",
3321              "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}",
3322              "httpMethod": "GET",
3323              "id": "logging.organizations.locations.get",
3324              "parameterOrder": [
3325                "name"
3326              ],
3327              "parameters": {
3328                "name": {
3329                  "description": "Resource name for the location.",
3330                  "location": "path",
3331                  "pattern": "^organizations/[^/]+/locations/[^/]+$",
3332                  "required": true,
3333                  "type": "string"
3334                }
3335              },
3336              "path": "v2/{+name}",
3337              "response": {
3338                "$ref": "Location"
3339              },
3340              "scopes": [
3341                "https://www.googleapis.com/auth/cloud-platform",
3342                "https://www.googleapis.com/auth/cloud-platform.read-only",
3343                "https://www.googleapis.com/auth/logging.admin",
3344                "https://www.googleapis.com/auth/logging.read"
3345              ]
3346            },
3347            "list": {
3348              "description": "Lists information about the supported locations for this service.",
3349              "flatPath": "v2/organizations/{organizationsId}/locations",
3350              "httpMethod": "GET",
3351              "id": "logging.organizations.locations.list",
3352              "parameterOrder": [
3353                "name"
3354              ],
3355              "parameters": {
3356                "filter": {
3357                  "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).",
3358                  "location": "query",
3359                  "type": "string"
3360                },
3361                "name": {
3362                  "description": "The resource that owns the locations collection, if applicable.",
3363                  "location": "path",
3364                  "pattern": "^organizations/[^/]+$",
3365                  "required": true,
3366                  "type": "string"
3367                },
3368                "pageSize": {
3369                  "description": "The maximum number of results to return. If not set, the service selects a default.",
3370                  "format": "int32",
3371                  "location": "query",
3372                  "type": "integer"
3373                },
3374                "pageToken": {
3375                  "description": "A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.",
3376                  "location": "query",
3377                  "type": "string"
3378                }
3379              },
3380              "path": "v2/{+name}/locations",
3381              "response": {
3382                "$ref": "ListLocationsResponse"
3383              },
3384              "scopes": [
3385                "https://www.googleapis.com/auth/cloud-platform",
3386                "https://www.googleapis.com/auth/cloud-platform.read-only",
3387                "https://www.googleapis.com/auth/logging.admin",
3388                "https://www.googleapis.com/auth/logging.read"
3389              ]
3390            }
3391          },
3392          "resources": {
3393            "buckets": {
3394              "methods": {
3395                "create": {
3396                  "description": "Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.",
3397                  "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets",
3398                  "httpMethod": "POST",
3399                  "id": "logging.organizations.locations.buckets.create",
3400                  "parameterOrder": [
3401                    "parent"
3402                  ],
3403                  "parameters": {
3404                    "bucketId": {
3405                      "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.",
3406                      "location": "query",
3407                      "type": "string"
3408                    },
3409                    "parent": {
3410                      "description": "Required. The resource in which to create the log bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"",
3411                      "location": "path",
3412                      "pattern": "^organizations/[^/]+/locations/[^/]+$",
3413                      "required": true,
3414                      "type": "string"
3415                    }
3416                  },
3417                  "path": "v2/{+parent}/buckets",
3418                  "request": {
3419                    "$ref": "LogBucket"
3420                  },
3421                  "response": {
3422                    "$ref": "LogBucket"
3423                  },
3424                  "scopes": [
3425                    "https://www.googleapis.com/auth/cloud-platform",
3426                    "https://www.googleapis.com/auth/logging.admin"
3427                  ]
3428                },
3429                "delete": {
3430                  "description": "Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.",
3431                  "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}",
3432                  "httpMethod": "DELETE",
3433                  "id": "logging.organizations.locations.buckets.delete",
3434                  "parameterOrder": [
3435                    "name"
3436                  ],
3437                  "parameters": {
3438                    "name": {
3439                      "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
3440                      "location": "path",
3441                      "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$",
3442                      "required": true,
3443                      "type": "string"
3444                    }
3445                  },
3446                  "path": "v2/{+name}",
3447                  "response": {
3448                    "$ref": "Empty"
3449                  },
3450                  "scopes": [
3451                    "https://www.googleapis.com/auth/cloud-platform",
3452                    "https://www.googleapis.com/auth/logging.admin"
3453                  ]
3454                },
3455                "get": {
3456                  "description": "Gets a log bucket.",
3457                  "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}",
3458                  "httpMethod": "GET",
3459                  "id": "logging.organizations.locations.buckets.get",
3460                  "parameterOrder": [
3461                    "name"
3462                  ],
3463                  "parameters": {
3464                    "name": {
3465                      "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
3466                      "location": "path",
3467                      "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$",
3468                      "required": true,
3469                      "type": "string"
3470                    }
3471                  },
3472                  "path": "v2/{+name}",
3473                  "response": {
3474                    "$ref": "LogBucket"
3475                  },
3476                  "scopes": [
3477                    "https://www.googleapis.com/auth/cloud-platform",
3478                    "https://www.googleapis.com/auth/cloud-platform.read-only",
3479                    "https://www.googleapis.com/auth/logging.admin",
3480                    "https://www.googleapis.com/auth/logging.read"
3481                  ]
3482                },
3483                "list": {
3484                  "description": "Lists log buckets.",
3485                  "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets",
3486                  "httpMethod": "GET",
3487                  "id": "logging.organizations.locations.buckets.list",
3488                  "parameterOrder": [
3489                    "parent"
3490                  ],
3491                  "parameters": {
3492                    "pageSize": {
3493                      "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
3494                      "format": "int32",
3495                      "location": "query",
3496                      "type": "integer"
3497                    },
3498                    "pageToken": {
3499                      "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
3500                      "location": "query",
3501                      "type": "string"
3502                    },
3503                    "parent": {
3504                      "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.",
3505                      "location": "path",
3506                      "pattern": "^organizations/[^/]+/locations/[^/]+$",
3507                      "required": true,
3508                      "type": "string"
3509                    }
3510                  },
3511                  "path": "v2/{+parent}/buckets",
3512                  "response": {
3513                    "$ref": "ListBucketsResponse"
3514                  },
3515                  "scopes": [
3516                    "https://www.googleapis.com/auth/cloud-platform",
3517                    "https://www.googleapis.com/auth/cloud-platform.read-only",
3518                    "https://www.googleapis.com/auth/logging.admin",
3519                    "https://www.googleapis.com/auth/logging.read"
3520                  ]
3521                },
3522                "patch": {
3523                  "description": "Updates a log bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.",
3524                  "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}",
3525                  "httpMethod": "PATCH",
3526                  "id": "logging.organizations.locations.buckets.patch",
3527                  "parameterOrder": [
3528                    "name"
3529                  ],
3530                  "parameters": {
3531                    "name": {
3532                      "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
3533                      "location": "path",
3534                      "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$",
3535                      "required": true,
3536                      "type": "string"
3537                    },
3538                    "updateMask": {
3539                      "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=retention_days",
3540                      "format": "google-fieldmask",
3541                      "location": "query",
3542                      "type": "string"
3543                    }
3544                  },
3545                  "path": "v2/{+name}",
3546                  "request": {
3547                    "$ref": "LogBucket"
3548                  },
3549                  "response": {
3550                    "$ref": "LogBucket"
3551                  },
3552                  "scopes": [
3553                    "https://www.googleapis.com/auth/cloud-platform",
3554                    "https://www.googleapis.com/auth/logging.admin"
3555                  ]
3556                },
3557                "undelete": {
3558                  "description": "Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.",
3559                  "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}:undelete",
3560                  "httpMethod": "POST",
3561                  "id": "logging.organizations.locations.buckets.undelete",
3562                  "parameterOrder": [
3563                    "name"
3564                  ],
3565                  "parameters": {
3566                    "name": {
3567                      "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
3568                      "location": "path",
3569                      "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$",
3570                      "required": true,
3571                      "type": "string"
3572                    }
3573                  },
3574                  "path": "v2/{+name}:undelete",
3575                  "request": {
3576                    "$ref": "UndeleteBucketRequest"
3577                  },
3578                  "response": {
3579                    "$ref": "Empty"
3580                  },
3581                  "scopes": [
3582                    "https://www.googleapis.com/auth/cloud-platform",
3583                    "https://www.googleapis.com/auth/logging.admin"
3584                  ]
3585                }
3586              },
3587              "resources": {
3588                "views": {
3589                  "methods": {
3590                    "create": {
3591                      "description": "Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.",
3592                      "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views",
3593                      "httpMethod": "POST",
3594                      "id": "logging.organizations.locations.buckets.views.create",
3595                      "parameterOrder": [
3596                        "parent"
3597                      ],
3598                      "parameters": {
3599                        "parent": {
3600                          "description": "Required. The bucket in which to create the view `\"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\"` For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
3601                          "location": "path",
3602                          "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$",
3603                          "required": true,
3604                          "type": "string"
3605                        },
3606                        "viewId": {
3607                          "description": "Required. The id to use for this view.",
3608                          "location": "query",
3609                          "type": "string"
3610                        }
3611                      },
3612                      "path": "v2/{+parent}/views",
3613                      "request": {
3614                        "$ref": "LogView"
3615                      },
3616                      "response": {
3617                        "$ref": "LogView"
3618                      },
3619                      "scopes": [
3620                        "https://www.googleapis.com/auth/cloud-platform",
3621                        "https://www.googleapis.com/auth/logging.admin"
3622                      ]
3623                    },
3624                    "delete": {
3625                      "description": "Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.",
3626                      "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
3627                      "httpMethod": "DELETE",
3628                      "id": "logging.organizations.locations.buckets.views.delete",
3629                      "parameterOrder": [
3630                        "name"
3631                      ],
3632                      "parameters": {
3633                        "name": {
3634                          "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
3635                          "location": "path",
3636                          "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
3637                          "required": true,
3638                          "type": "string"
3639                        }
3640                      },
3641                      "path": "v2/{+name}",
3642                      "response": {
3643                        "$ref": "Empty"
3644                      },
3645                      "scopes": [
3646                        "https://www.googleapis.com/auth/cloud-platform",
3647                        "https://www.googleapis.com/auth/logging.admin"
3648                      ]
3649                    },
3650                    "get": {
3651                      "description": "Gets a view on a log bucket..",
3652                      "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
3653                      "httpMethod": "GET",
3654                      "id": "logging.organizations.locations.buckets.views.get",
3655                      "parameterOrder": [
3656                        "name"
3657                      ],
3658                      "parameters": {
3659                        "name": {
3660                          "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
3661                          "location": "path",
3662                          "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
3663                          "required": true,
3664                          "type": "string"
3665                        }
3666                      },
3667                      "path": "v2/{+name}",
3668                      "response": {
3669                        "$ref": "LogView"
3670                      },
3671                      "scopes": [
3672                        "https://www.googleapis.com/auth/cloud-platform",
3673                        "https://www.googleapis.com/auth/cloud-platform.read-only",
3674                        "https://www.googleapis.com/auth/logging.admin",
3675                        "https://www.googleapis.com/auth/logging.read"
3676                      ]
3677                    },
3678                    "list": {
3679                      "description": "Lists views on a log bucket.",
3680                      "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views",
3681                      "httpMethod": "GET",
3682                      "id": "logging.organizations.locations.buckets.views.list",
3683                      "parameterOrder": [
3684                        "parent"
3685                      ],
3686                      "parameters": {
3687                        "pageSize": {
3688                          "description": "Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
3689                          "format": "int32",
3690                          "location": "query",
3691                          "type": "integer"
3692                        },
3693                        "pageToken": {
3694                          "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
3695                          "location": "query",
3696                          "type": "string"
3697                        },
3698                        "parent": {
3699                          "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ",
3700                          "location": "path",
3701                          "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+$",
3702                          "required": true,
3703                          "type": "string"
3704                        }
3705                      },
3706                      "path": "v2/{+parent}/views",
3707                      "response": {
3708                        "$ref": "ListViewsResponse"
3709                      },
3710                      "scopes": [
3711                        "https://www.googleapis.com/auth/cloud-platform",
3712                        "https://www.googleapis.com/auth/cloud-platform.read-only",
3713                        "https://www.googleapis.com/auth/logging.admin",
3714                        "https://www.googleapis.com/auth/logging.read"
3715                      ]
3716                    },
3717                    "patch": {
3718                      "description": "Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: filter. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.",
3719                      "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
3720                      "httpMethod": "PATCH",
3721                      "id": "logging.organizations.locations.buckets.views.patch",
3722                      "parameterOrder": [
3723                        "name"
3724                      ],
3725                      "parameters": {
3726                        "name": {
3727                          "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
3728                          "location": "path",
3729                          "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
3730                          "required": true,
3731                          "type": "string"
3732                        },
3733                        "updateMask": {
3734                          "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
3735                          "format": "google-fieldmask",
3736                          "location": "query",
3737                          "type": "string"
3738                        }
3739                      },
3740                      "path": "v2/{+name}",
3741                      "request": {
3742                        "$ref": "LogView"
3743                      },
3744                      "response": {
3745                        "$ref": "LogView"
3746                      },
3747                      "scopes": [
3748                        "https://www.googleapis.com/auth/cloud-platform",
3749                        "https://www.googleapis.com/auth/logging.admin"
3750                      ]
3751                    }
3752                  }
3753                }
3754              }
3755            },
3756            "operations": {
3757              "methods": {
3758                "cancel": {
3759                  "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.",
3760                  "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}:cancel",
3761                  "httpMethod": "POST",
3762                  "id": "logging.organizations.locations.operations.cancel",
3763                  "parameterOrder": [
3764                    "name"
3765                  ],
3766                  "parameters": {
3767                    "name": {
3768                      "description": "The name of the operation resource to be cancelled.",
3769                      "location": "path",
3770                      "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$",
3771                      "required": true,
3772                      "type": "string"
3773                    }
3774                  },
3775                  "path": "v2/{+name}:cancel",
3776                  "request": {
3777                    "$ref": "CancelOperationRequest"
3778                  },
3779                  "response": {
3780                    "$ref": "Empty"
3781                  },
3782                  "scopes": [
3783                    "https://www.googleapis.com/auth/cloud-platform",
3784                    "https://www.googleapis.com/auth/logging.admin"
3785                  ]
3786                },
3787                "get": {
3788                  "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
3789                  "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/operations/{operationsId}",
3790                  "httpMethod": "GET",
3791                  "id": "logging.organizations.locations.operations.get",
3792                  "parameterOrder": [
3793                    "name"
3794                  ],
3795                  "parameters": {
3796                    "name": {
3797                      "description": "The name of the operation resource.",
3798                      "location": "path",
3799                      "pattern": "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$",
3800                      "required": true,
3801                      "type": "string"
3802                    }
3803                  },
3804                  "path": "v2/{+name}",
3805                  "response": {
3806                    "$ref": "Operation"
3807                  },
3808                  "scopes": [
3809                    "https://www.googleapis.com/auth/cloud-platform",
3810                    "https://www.googleapis.com/auth/cloud-platform.read-only",
3811                    "https://www.googleapis.com/auth/logging.admin",
3812                    "https://www.googleapis.com/auth/logging.read"
3813                  ]
3814                },
3815                "list": {
3816                  "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
3817                  "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/operations",
3818                  "httpMethod": "GET",
3819                  "id": "logging.organizations.locations.operations.list",
3820                  "parameterOrder": [
3821                    "name"
3822                  ],
3823                  "parameters": {
3824                    "filter": {
3825                      "description": "The standard list filter.",
3826                      "location": "query",
3827                      "type": "string"
3828                    },
3829                    "name": {
3830                      "description": "The name of the operation's parent resource.",
3831                      "location": "path",
3832                      "pattern": "^organizations/[^/]+/locations/[^/]+$",
3833                      "required": true,
3834                      "type": "string"
3835                    },
3836                    "pageSize": {
3837                      "description": "The standard list page size.",
3838                      "format": "int32",
3839                      "location": "query",
3840                      "type": "integer"
3841                    },
3842                    "pageToken": {
3843                      "description": "The standard list page token.",
3844                      "location": "query",
3845                      "type": "string"
3846                    }
3847                  },
3848                  "path": "v2/{+name}/operations",
3849                  "response": {
3850                    "$ref": "ListOperationsResponse"
3851                  },
3852                  "scopes": [
3853                    "https://www.googleapis.com/auth/cloud-platform",
3854                    "https://www.googleapis.com/auth/cloud-platform.read-only",
3855                    "https://www.googleapis.com/auth/logging.admin",
3856                    "https://www.googleapis.com/auth/logging.read"
3857                  ]
3858                }
3859              }
3860            }
3861          }
3862        },
3863        "logs": {
3864          "methods": {
3865            "delete": {
3866              "description": "Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.",
3867              "flatPath": "v2/organizations/{organizationsId}/logs/{logsId}",
3868              "httpMethod": "DELETE",
3869              "id": "logging.organizations.logs.delete",
3870              "parameterOrder": [
3871                "logName"
3872              ],
3873              "parameters": {
3874                "logName": {
3875                  "description": "Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/123/logs/cloudaudit.googleapis.com%2Factivity\".For more information about log names, see LogEntry.",
3876                  "location": "path",
3877                  "pattern": "^organizations/[^/]+/logs/[^/]+$",
3878                  "required": true,
3879                  "type": "string"
3880                }
3881              },
3882              "path": "v2/{+logName}",
3883              "response": {
3884                "$ref": "Empty"
3885              },
3886              "scopes": [
3887                "https://www.googleapis.com/auth/cloud-platform",
3888                "https://www.googleapis.com/auth/logging.admin"
3889              ]
3890            },
3891            "list": {
3892              "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.",
3893              "flatPath": "v2/organizations/{organizationsId}/logs",
3894              "httpMethod": "GET",
3895              "id": "logging.organizations.logs.list",
3896              "parameterOrder": [
3897                "parent"
3898              ],
3899              "parameters": {
3900                "pageSize": {
3901                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
3902                  "format": "int32",
3903                  "location": "query",
3904                  "type": "integer"
3905                },
3906                "pageToken": {
3907                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
3908                  "location": "query",
3909                  "type": "string"
3910                },
3911                "parent": {
3912                  "description": "Required. The resource name that owns the logs: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]",
3913                  "location": "path",
3914                  "pattern": "^organizations/[^/]+$",
3915                  "required": true,
3916                  "type": "string"
3917                },
3918                "resourceNames": {
3919                  "description": "Optional. The resource name that owns the logs: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]",
3920                  "location": "query",
3921                  "repeated": true,
3922                  "type": "string"
3923                }
3924              },
3925              "path": "v2/{+parent}/logs",
3926              "response": {
3927                "$ref": "ListLogsResponse"
3928              },
3929              "scopes": [
3930                "https://www.googleapis.com/auth/cloud-platform",
3931                "https://www.googleapis.com/auth/cloud-platform.read-only",
3932                "https://www.googleapis.com/auth/logging.admin",
3933                "https://www.googleapis.com/auth/logging.read"
3934              ]
3935            }
3936          }
3937        },
3938        "sinks": {
3939          "methods": {
3940            "create": {
3941              "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.",
3942              "flatPath": "v2/organizations/{organizationsId}/sinks",
3943              "httpMethod": "POST",
3944              "id": "logging.organizations.sinks.create",
3945              "parameterOrder": [
3946                "parent"
3947              ],
3948              "parameters": {
3949                "parent": {
3950                  "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" For examples:\"projects/my-project\" \"organizations/123456789\"",
3951                  "location": "path",
3952                  "pattern": "^organizations/[^/]+$",
3953                  "required": true,
3954                  "type": "string"
3955                },
3956                "uniqueWriterIdentity": {
3957                  "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.",
3958                  "location": "query",
3959                  "type": "boolean"
3960                }
3961              },
3962              "path": "v2/{+parent}/sinks",
3963              "request": {
3964                "$ref": "LogSink"
3965              },
3966              "response": {
3967                "$ref": "LogSink"
3968              },
3969              "scopes": [
3970                "https://www.googleapis.com/auth/cloud-platform",
3971                "https://www.googleapis.com/auth/logging.admin"
3972              ]
3973            },
3974            "delete": {
3975              "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.",
3976              "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}",
3977              "httpMethod": "DELETE",
3978              "id": "logging.organizations.sinks.delete",
3979              "parameterOrder": [
3980                "sinkName"
3981              ],
3982              "parameters": {
3983                "sinkName": {
3984                  "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
3985                  "location": "path",
3986                  "pattern": "^organizations/[^/]+/sinks/[^/]+$",
3987                  "required": true,
3988                  "type": "string"
3989                }
3990              },
3991              "path": "v2/{+sinkName}",
3992              "response": {
3993                "$ref": "Empty"
3994              },
3995              "scopes": [
3996                "https://www.googleapis.com/auth/cloud-platform",
3997                "https://www.googleapis.com/auth/logging.admin"
3998              ]
3999            },
4000            "get": {
4001              "description": "Gets a sink.",
4002              "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}",
4003              "httpMethod": "GET",
4004              "id": "logging.organizations.sinks.get",
4005              "parameterOrder": [
4006                "sinkName"
4007              ],
4008              "parameters": {
4009                "sinkName": {
4010                  "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
4011                  "location": "path",
4012                  "pattern": "^organizations/[^/]+/sinks/[^/]+$",
4013                  "required": true,
4014                  "type": "string"
4015                }
4016              },
4017              "path": "v2/{+sinkName}",
4018              "response": {
4019                "$ref": "LogSink"
4020              },
4021              "scopes": [
4022                "https://www.googleapis.com/auth/cloud-platform",
4023                "https://www.googleapis.com/auth/cloud-platform.read-only",
4024                "https://www.googleapis.com/auth/logging.admin",
4025                "https://www.googleapis.com/auth/logging.read"
4026              ]
4027            },
4028            "list": {
4029              "description": "Lists sinks.",
4030              "flatPath": "v2/organizations/{organizationsId}/sinks",
4031              "httpMethod": "GET",
4032              "id": "logging.organizations.sinks.list",
4033              "parameterOrder": [
4034                "parent"
4035              ],
4036              "parameters": {
4037                "pageSize": {
4038                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
4039                  "format": "int32",
4040                  "location": "query",
4041                  "type": "integer"
4042                },
4043                "pageToken": {
4044                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
4045                  "location": "query",
4046                  "type": "string"
4047                },
4048                "parent": {
4049                  "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ",
4050                  "location": "path",
4051                  "pattern": "^organizations/[^/]+$",
4052                  "required": true,
4053                  "type": "string"
4054                }
4055              },
4056              "path": "v2/{+parent}/sinks",
4057              "response": {
4058                "$ref": "ListSinksResponse"
4059              },
4060              "scopes": [
4061                "https://www.googleapis.com/auth/cloud-platform",
4062                "https://www.googleapis.com/auth/cloud-platform.read-only",
4063                "https://www.googleapis.com/auth/logging.admin",
4064                "https://www.googleapis.com/auth/logging.read"
4065              ]
4066            },
4067            "patch": {
4068              "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.",
4069              "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}",
4070              "httpMethod": "PATCH",
4071              "id": "logging.organizations.sinks.patch",
4072              "parameterOrder": [
4073                "sinkName"
4074              ],
4075              "parameters": {
4076                "sinkName": {
4077                  "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
4078                  "location": "path",
4079                  "pattern": "^organizations/[^/]+/sinks/[^/]+$",
4080                  "required": true,
4081                  "type": "string"
4082                },
4083                "uniqueWriterIdentity": {
4084                  "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.",
4085                  "location": "query",
4086                  "type": "boolean"
4087                },
4088                "updateMask": {
4089                  "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
4090                  "format": "google-fieldmask",
4091                  "location": "query",
4092                  "type": "string"
4093                }
4094              },
4095              "path": "v2/{+sinkName}",
4096              "request": {
4097                "$ref": "LogSink"
4098              },
4099              "response": {
4100                "$ref": "LogSink"
4101              },
4102              "scopes": [
4103                "https://www.googleapis.com/auth/cloud-platform",
4104                "https://www.googleapis.com/auth/logging.admin"
4105              ]
4106            },
4107            "update": {
4108              "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.",
4109              "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}",
4110              "httpMethod": "PUT",
4111              "id": "logging.organizations.sinks.update",
4112              "parameterOrder": [
4113                "sinkName"
4114              ],
4115              "parameters": {
4116                "sinkName": {
4117                  "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
4118                  "location": "path",
4119                  "pattern": "^organizations/[^/]+/sinks/[^/]+$",
4120                  "required": true,
4121                  "type": "string"
4122                },
4123                "uniqueWriterIdentity": {
4124                  "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.",
4125                  "location": "query",
4126                  "type": "boolean"
4127                },
4128                "updateMask": {
4129                  "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
4130                  "format": "google-fieldmask",
4131                  "location": "query",
4132                  "type": "string"
4133                }
4134              },
4135              "path": "v2/{+sinkName}",
4136              "request": {
4137                "$ref": "LogSink"
4138              },
4139              "response": {
4140                "$ref": "LogSink"
4141              },
4142              "scopes": [
4143                "https://www.googleapis.com/auth/cloud-platform",
4144                "https://www.googleapis.com/auth/logging.admin"
4145              ]
4146            }
4147          }
4148        }
4149      }
4150    },
4151    "projects": {
4152      "methods": {
4153        "getCmekSettings": {
4154          "description": "Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.",
4155          "flatPath": "v2/projects/{projectsId}/cmekSettings",
4156          "httpMethod": "GET",
4157          "id": "logging.projects.getCmekSettings",
4158          "parameterOrder": [
4159            "name"
4160          ],
4161          "parameters": {
4162            "name": {
4163              "description": "Required. The resource for which to retrieve CMEK settings. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" For example:\"organizations/12345/cmekSettings\"Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.",
4164              "location": "path",
4165              "pattern": "^projects/[^/]+$",
4166              "required": true,
4167              "type": "string"
4168            }
4169          },
4170          "path": "v2/{+name}/cmekSettings",
4171          "response": {
4172            "$ref": "CmekSettings"
4173          },
4174          "scopes": [
4175            "https://www.googleapis.com/auth/cloud-platform",
4176            "https://www.googleapis.com/auth/cloud-platform.read-only",
4177            "https://www.googleapis.com/auth/logging.admin",
4178            "https://www.googleapis.com/auth/logging.read"
4179          ]
4180        }
4181      },
4182      "resources": {
4183        "exclusions": {
4184          "methods": {
4185            "create": {
4186              "description": "Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.",
4187              "flatPath": "v2/projects/{projectsId}/exclusions",
4188              "httpMethod": "POST",
4189              "id": "logging.projects.exclusions.create",
4190              "parameterOrder": [
4191                "parent"
4192              ],
4193              "parameters": {
4194                "parent": {
4195                  "description": "Required. The parent resource in which to create the exclusion: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" For examples:\"projects/my-logging-project\" \"organizations/123456789\"",
4196                  "location": "path",
4197                  "pattern": "^projects/[^/]+$",
4198                  "required": true,
4199                  "type": "string"
4200                }
4201              },
4202              "path": "v2/{+parent}/exclusions",
4203              "request": {
4204                "$ref": "LogExclusion"
4205              },
4206              "response": {
4207                "$ref": "LogExclusion"
4208              },
4209              "scopes": [
4210                "https://www.googleapis.com/auth/cloud-platform",
4211                "https://www.googleapis.com/auth/logging.admin"
4212              ]
4213            },
4214            "delete": {
4215              "description": "Deletes an exclusion in the _Default sink.",
4216              "flatPath": "v2/projects/{projectsId}/exclusions/{exclusionsId}",
4217              "httpMethod": "DELETE",
4218              "id": "logging.projects.exclusions.delete",
4219              "parameterOrder": [
4220                "name"
4221              ],
4222              "parameters": {
4223                "name": {
4224                  "description": "Required. The resource name of an existing exclusion to delete: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
4225                  "location": "path",
4226                  "pattern": "^projects/[^/]+/exclusions/[^/]+$",
4227                  "required": true,
4228                  "type": "string"
4229                }
4230              },
4231              "path": "v2/{+name}",
4232              "response": {
4233                "$ref": "Empty"
4234              },
4235              "scopes": [
4236                "https://www.googleapis.com/auth/cloud-platform",
4237                "https://www.googleapis.com/auth/logging.admin"
4238              ]
4239            },
4240            "get": {
4241              "description": "Gets the description of an exclusion in the _Default sink.",
4242              "flatPath": "v2/projects/{projectsId}/exclusions/{exclusionsId}",
4243              "httpMethod": "GET",
4244              "id": "logging.projects.exclusions.get",
4245              "parameterOrder": [
4246                "name"
4247              ],
4248              "parameters": {
4249                "name": {
4250                  "description": "Required. The resource name of an existing exclusion: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
4251                  "location": "path",
4252                  "pattern": "^projects/[^/]+/exclusions/[^/]+$",
4253                  "required": true,
4254                  "type": "string"
4255                }
4256              },
4257              "path": "v2/{+name}",
4258              "response": {
4259                "$ref": "LogExclusion"
4260              },
4261              "scopes": [
4262                "https://www.googleapis.com/auth/cloud-platform",
4263                "https://www.googleapis.com/auth/cloud-platform.read-only",
4264                "https://www.googleapis.com/auth/logging.admin",
4265                "https://www.googleapis.com/auth/logging.read"
4266              ]
4267            },
4268            "list": {
4269              "description": "Lists all the exclusions on the _Default sink in a parent resource.",
4270              "flatPath": "v2/projects/{projectsId}/exclusions",
4271              "httpMethod": "GET",
4272              "id": "logging.projects.exclusions.list",
4273              "parameterOrder": [
4274                "parent"
4275              ],
4276              "parameters": {
4277                "pageSize": {
4278                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
4279                  "format": "int32",
4280                  "location": "query",
4281                  "type": "integer"
4282                },
4283                "pageToken": {
4284                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
4285                  "location": "query",
4286                  "type": "string"
4287                },
4288                "parent": {
4289                  "description": "Required. The parent resource whose exclusions are to be listed. \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ",
4290                  "location": "path",
4291                  "pattern": "^projects/[^/]+$",
4292                  "required": true,
4293                  "type": "string"
4294                }
4295              },
4296              "path": "v2/{+parent}/exclusions",
4297              "response": {
4298                "$ref": "ListExclusionsResponse"
4299              },
4300              "scopes": [
4301                "https://www.googleapis.com/auth/cloud-platform",
4302                "https://www.googleapis.com/auth/cloud-platform.read-only",
4303                "https://www.googleapis.com/auth/logging.admin",
4304                "https://www.googleapis.com/auth/logging.read"
4305              ]
4306            },
4307            "patch": {
4308              "description": "Changes one or more properties of an existing exclusion in the _Default sink.",
4309              "flatPath": "v2/projects/{projectsId}/exclusions/{exclusionsId}",
4310              "httpMethod": "PATCH",
4311              "id": "logging.projects.exclusions.patch",
4312              "parameterOrder": [
4313                "name"
4314              ],
4315              "parameters": {
4316                "name": {
4317                  "description": "Required. The resource name of the exclusion to update: \"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\" \"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]\" For example:\"projects/my-project/exclusions/my-exclusion\"",
4318                  "location": "path",
4319                  "pattern": "^projects/[^/]+/exclusions/[^/]+$",
4320                  "required": true,
4321                  "type": "string"
4322                },
4323                "updateMask": {
4324                  "description": "Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of \"filter,description\".",
4325                  "format": "google-fieldmask",
4326                  "location": "query",
4327                  "type": "string"
4328                }
4329              },
4330              "path": "v2/{+name}",
4331              "request": {
4332                "$ref": "LogExclusion"
4333              },
4334              "response": {
4335                "$ref": "LogExclusion"
4336              },
4337              "scopes": [
4338                "https://www.googleapis.com/auth/cloud-platform",
4339                "https://www.googleapis.com/auth/logging.admin"
4340              ]
4341            }
4342          }
4343        },
4344        "locations": {
4345          "methods": {
4346            "get": {
4347              "description": "Gets information about a location.",
4348              "flatPath": "v2/projects/{projectsId}/locations/{locationsId}",
4349              "httpMethod": "GET",
4350              "id": "logging.projects.locations.get",
4351              "parameterOrder": [
4352                "name"
4353              ],
4354              "parameters": {
4355                "name": {
4356                  "description": "Resource name for the location.",
4357                  "location": "path",
4358                  "pattern": "^projects/[^/]+/locations/[^/]+$",
4359                  "required": true,
4360                  "type": "string"
4361                }
4362              },
4363              "path": "v2/{+name}",
4364              "response": {
4365                "$ref": "Location"
4366              },
4367              "scopes": [
4368                "https://www.googleapis.com/auth/cloud-platform",
4369                "https://www.googleapis.com/auth/cloud-platform.read-only",
4370                "https://www.googleapis.com/auth/logging.admin",
4371                "https://www.googleapis.com/auth/logging.read"
4372              ]
4373            },
4374            "list": {
4375              "description": "Lists information about the supported locations for this service.",
4376              "flatPath": "v2/projects/{projectsId}/locations",
4377              "httpMethod": "GET",
4378              "id": "logging.projects.locations.list",
4379              "parameterOrder": [
4380                "name"
4381              ],
4382              "parameters": {
4383                "filter": {
4384                  "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).",
4385                  "location": "query",
4386                  "type": "string"
4387                },
4388                "name": {
4389                  "description": "The resource that owns the locations collection, if applicable.",
4390                  "location": "path",
4391                  "pattern": "^projects/[^/]+$",
4392                  "required": true,
4393                  "type": "string"
4394                },
4395                "pageSize": {
4396                  "description": "The maximum number of results to return. If not set, the service selects a default.",
4397                  "format": "int32",
4398                  "location": "query",
4399                  "type": "integer"
4400                },
4401                "pageToken": {
4402                  "description": "A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.",
4403                  "location": "query",
4404                  "type": "string"
4405                }
4406              },
4407              "path": "v2/{+name}/locations",
4408              "response": {
4409                "$ref": "ListLocationsResponse"
4410              },
4411              "scopes": [
4412                "https://www.googleapis.com/auth/cloud-platform",
4413                "https://www.googleapis.com/auth/cloud-platform.read-only",
4414                "https://www.googleapis.com/auth/logging.admin",
4415                "https://www.googleapis.com/auth/logging.read"
4416              ]
4417            }
4418          },
4419          "resources": {
4420            "buckets": {
4421              "methods": {
4422                "create": {
4423                  "description": "Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.",
4424                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets",
4425                  "httpMethod": "POST",
4426                  "id": "logging.projects.locations.buckets.create",
4427                  "parameterOrder": [
4428                    "parent"
4429                  ],
4430                  "parameters": {
4431                    "bucketId": {
4432                      "description": "Required. A client-assigned identifier such as \"my-bucket\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.",
4433                      "location": "query",
4434                      "type": "string"
4435                    },
4436                    "parent": {
4437                      "description": "Required. The resource in which to create the log bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" For example:\"projects/my-project/locations/global\"",
4438                      "location": "path",
4439                      "pattern": "^projects/[^/]+/locations/[^/]+$",
4440                      "required": true,
4441                      "type": "string"
4442                    }
4443                  },
4444                  "path": "v2/{+parent}/buckets",
4445                  "request": {
4446                    "$ref": "LogBucket"
4447                  },
4448                  "response": {
4449                    "$ref": "LogBucket"
4450                  },
4451                  "scopes": [
4452                    "https://www.googleapis.com/auth/cloud-platform",
4453                    "https://www.googleapis.com/auth/logging.admin"
4454                  ]
4455                },
4456                "delete": {
4457                  "description": "Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.",
4458                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}",
4459                  "httpMethod": "DELETE",
4460                  "id": "logging.projects.locations.buckets.delete",
4461                  "parameterOrder": [
4462                    "name"
4463                  ],
4464                  "parameters": {
4465                    "name": {
4466                      "description": "Required. The full resource name of the bucket to delete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
4467                      "location": "path",
4468                      "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+$",
4469                      "required": true,
4470                      "type": "string"
4471                    }
4472                  },
4473                  "path": "v2/{+name}",
4474                  "response": {
4475                    "$ref": "Empty"
4476                  },
4477                  "scopes": [
4478                    "https://www.googleapis.com/auth/cloud-platform",
4479                    "https://www.googleapis.com/auth/logging.admin"
4480                  ]
4481                },
4482                "get": {
4483                  "description": "Gets a log bucket.",
4484                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}",
4485                  "httpMethod": "GET",
4486                  "id": "logging.projects.locations.buckets.get",
4487                  "parameterOrder": [
4488                    "name"
4489                  ],
4490                  "parameters": {
4491                    "name": {
4492                      "description": "Required. The resource name of the bucket: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
4493                      "location": "path",
4494                      "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+$",
4495                      "required": true,
4496                      "type": "string"
4497                    }
4498                  },
4499                  "path": "v2/{+name}",
4500                  "response": {
4501                    "$ref": "LogBucket"
4502                  },
4503                  "scopes": [
4504                    "https://www.googleapis.com/auth/cloud-platform",
4505                    "https://www.googleapis.com/auth/cloud-platform.read-only",
4506                    "https://www.googleapis.com/auth/logging.admin",
4507                    "https://www.googleapis.com/auth/logging.read"
4508                  ]
4509                },
4510                "list": {
4511                  "description": "Lists log buckets.",
4512                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets",
4513                  "httpMethod": "GET",
4514                  "id": "logging.projects.locations.buckets.list",
4515                  "parameterOrder": [
4516                    "parent"
4517                  ],
4518                  "parameters": {
4519                    "pageSize": {
4520                      "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
4521                      "format": "int32",
4522                      "location": "query",
4523                      "type": "integer"
4524                    },
4525                    "pageToken": {
4526                      "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
4527                      "location": "query",
4528                      "type": "string"
4529                    },
4530                    "parent": {
4531                      "description": "Required. The parent resource whose buckets are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\" Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets.",
4532                      "location": "path",
4533                      "pattern": "^projects/[^/]+/locations/[^/]+$",
4534                      "required": true,
4535                      "type": "string"
4536                    }
4537                  },
4538                  "path": "v2/{+parent}/buckets",
4539                  "response": {
4540                    "$ref": "ListBucketsResponse"
4541                  },
4542                  "scopes": [
4543                    "https://www.googleapis.com/auth/cloud-platform",
4544                    "https://www.googleapis.com/auth/cloud-platform.read-only",
4545                    "https://www.googleapis.com/auth/logging.admin",
4546                    "https://www.googleapis.com/auth/logging.read"
4547                  ]
4548                },
4549                "patch": {
4550                  "description": "Updates a log bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.",
4551                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}",
4552                  "httpMethod": "PATCH",
4553                  "id": "logging.projects.locations.buckets.patch",
4554                  "parameterOrder": [
4555                    "name"
4556                  ],
4557                  "parameters": {
4558                    "name": {
4559                      "description": "Required. The full resource name of the bucket to update. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
4560                      "location": "path",
4561                      "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+$",
4562                      "required": true,
4563                      "type": "string"
4564                    },
4565                    "updateMask": {
4566                      "description": "Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=retention_days",
4567                      "format": "google-fieldmask",
4568                      "location": "query",
4569                      "type": "string"
4570                    }
4571                  },
4572                  "path": "v2/{+name}",
4573                  "request": {
4574                    "$ref": "LogBucket"
4575                  },
4576                  "response": {
4577                    "$ref": "LogBucket"
4578                  },
4579                  "scopes": [
4580                    "https://www.googleapis.com/auth/cloud-platform",
4581                    "https://www.googleapis.com/auth/logging.admin"
4582                  ]
4583                },
4584                "undelete": {
4585                  "description": "Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.",
4586                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}:undelete",
4587                  "httpMethod": "POST",
4588                  "id": "logging.projects.locations.buckets.undelete",
4589                  "parameterOrder": [
4590                    "name"
4591                  ],
4592                  "parameters": {
4593                    "name": {
4594                      "description": "Required. The full resource name of the bucket to undelete. \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" \"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
4595                      "location": "path",
4596                      "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+$",
4597                      "required": true,
4598                      "type": "string"
4599                    }
4600                  },
4601                  "path": "v2/{+name}:undelete",
4602                  "request": {
4603                    "$ref": "UndeleteBucketRequest"
4604                  },
4605                  "response": {
4606                    "$ref": "Empty"
4607                  },
4608                  "scopes": [
4609                    "https://www.googleapis.com/auth/cloud-platform",
4610                    "https://www.googleapis.com/auth/logging.admin"
4611                  ]
4612                }
4613              },
4614              "resources": {
4615                "views": {
4616                  "methods": {
4617                    "create": {
4618                      "description": "Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.",
4619                      "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views",
4620                      "httpMethod": "POST",
4621                      "id": "logging.projects.locations.buckets.views.create",
4622                      "parameterOrder": [
4623                        "parent"
4624                      ],
4625                      "parameters": {
4626                        "parent": {
4627                          "description": "Required. The bucket in which to create the view `\"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\"` For example:\"projects/my-project/locations/global/buckets/my-bucket\"",
4628                          "location": "path",
4629                          "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+$",
4630                          "required": true,
4631                          "type": "string"
4632                        },
4633                        "viewId": {
4634                          "description": "Required. The id to use for this view.",
4635                          "location": "query",
4636                          "type": "string"
4637                        }
4638                      },
4639                      "path": "v2/{+parent}/views",
4640                      "request": {
4641                        "$ref": "LogView"
4642                      },
4643                      "response": {
4644                        "$ref": "LogView"
4645                      },
4646                      "scopes": [
4647                        "https://www.googleapis.com/auth/cloud-platform",
4648                        "https://www.googleapis.com/auth/logging.admin"
4649                      ]
4650                    },
4651                    "delete": {
4652                      "description": "Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.",
4653                      "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
4654                      "httpMethod": "DELETE",
4655                      "id": "logging.projects.locations.buckets.views.delete",
4656                      "parameterOrder": [
4657                        "name"
4658                      ],
4659                      "parameters": {
4660                        "name": {
4661                          "description": "Required. The full resource name of the view to delete: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
4662                          "location": "path",
4663                          "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
4664                          "required": true,
4665                          "type": "string"
4666                        }
4667                      },
4668                      "path": "v2/{+name}",
4669                      "response": {
4670                        "$ref": "Empty"
4671                      },
4672                      "scopes": [
4673                        "https://www.googleapis.com/auth/cloud-platform",
4674                        "https://www.googleapis.com/auth/logging.admin"
4675                      ]
4676                    },
4677                    "get": {
4678                      "description": "Gets a view on a log bucket..",
4679                      "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
4680                      "httpMethod": "GET",
4681                      "id": "logging.projects.locations.buckets.views.get",
4682                      "parameterOrder": [
4683                        "name"
4684                      ],
4685                      "parameters": {
4686                        "name": {
4687                          "description": "Required. The resource name of the policy: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
4688                          "location": "path",
4689                          "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
4690                          "required": true,
4691                          "type": "string"
4692                        }
4693                      },
4694                      "path": "v2/{+name}",
4695                      "response": {
4696                        "$ref": "LogView"
4697                      },
4698                      "scopes": [
4699                        "https://www.googleapis.com/auth/cloud-platform",
4700                        "https://www.googleapis.com/auth/cloud-platform.read-only",
4701                        "https://www.googleapis.com/auth/logging.admin",
4702                        "https://www.googleapis.com/auth/logging.read"
4703                      ]
4704                    },
4705                    "list": {
4706                      "description": "Lists views on a log bucket.",
4707                      "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views",
4708                      "httpMethod": "GET",
4709                      "id": "logging.projects.locations.buckets.views.list",
4710                      "parameterOrder": [
4711                        "parent"
4712                      ],
4713                      "parameters": {
4714                        "pageSize": {
4715                          "description": "Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
4716                          "format": "int32",
4717                          "location": "query",
4718                          "type": "integer"
4719                        },
4720                        "pageToken": {
4721                          "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
4722                          "location": "query",
4723                          "type": "string"
4724                        },
4725                        "parent": {
4726                          "description": "Required. The bucket whose views are to be listed: \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" ",
4727                          "location": "path",
4728                          "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+$",
4729                          "required": true,
4730                          "type": "string"
4731                        }
4732                      },
4733                      "path": "v2/{+parent}/views",
4734                      "response": {
4735                        "$ref": "ListViewsResponse"
4736                      },
4737                      "scopes": [
4738                        "https://www.googleapis.com/auth/cloud-platform",
4739                        "https://www.googleapis.com/auth/cloud-platform.read-only",
4740                        "https://www.googleapis.com/auth/logging.admin",
4741                        "https://www.googleapis.com/auth/logging.read"
4742                      ]
4743                    },
4744                    "patch": {
4745                      "description": "Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: filter. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.",
4746                      "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}",
4747                      "httpMethod": "PATCH",
4748                      "id": "logging.projects.locations.buckets.views.patch",
4749                      "parameterOrder": [
4750                        "name"
4751                      ],
4752                      "parameters": {
4753                        "name": {
4754                          "description": "Required. The full resource name of the view to update \"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\" For example:\"projects/my-project/locations/global/buckets/my-bucket/views/my-view\"",
4755                          "location": "path",
4756                          "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$",
4757                          "required": true,
4758                          "type": "string"
4759                        },
4760                        "updateMask": {
4761                          "description": "Optional. Field mask that specifies the fields in view that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
4762                          "format": "google-fieldmask",
4763                          "location": "query",
4764                          "type": "string"
4765                        }
4766                      },
4767                      "path": "v2/{+name}",
4768                      "request": {
4769                        "$ref": "LogView"
4770                      },
4771                      "response": {
4772                        "$ref": "LogView"
4773                      },
4774                      "scopes": [
4775                        "https://www.googleapis.com/auth/cloud-platform",
4776                        "https://www.googleapis.com/auth/logging.admin"
4777                      ]
4778                    }
4779                  }
4780                }
4781              }
4782            },
4783            "operations": {
4784              "methods": {
4785                "cancel": {
4786                  "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.",
4787                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
4788                  "httpMethod": "POST",
4789                  "id": "logging.projects.locations.operations.cancel",
4790                  "parameterOrder": [
4791                    "name"
4792                  ],
4793                  "parameters": {
4794                    "name": {
4795                      "description": "The name of the operation resource to be cancelled.",
4796                      "location": "path",
4797                      "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
4798                      "required": true,
4799                      "type": "string"
4800                    }
4801                  },
4802                  "path": "v2/{+name}:cancel",
4803                  "request": {
4804                    "$ref": "CancelOperationRequest"
4805                  },
4806                  "response": {
4807                    "$ref": "Empty"
4808                  },
4809                  "scopes": [
4810                    "https://www.googleapis.com/auth/cloud-platform",
4811                    "https://www.googleapis.com/auth/logging.admin"
4812                  ]
4813                },
4814                "get": {
4815                  "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
4816                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
4817                  "httpMethod": "GET",
4818                  "id": "logging.projects.locations.operations.get",
4819                  "parameterOrder": [
4820                    "name"
4821                  ],
4822                  "parameters": {
4823                    "name": {
4824                      "description": "The name of the operation resource.",
4825                      "location": "path",
4826                      "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
4827                      "required": true,
4828                      "type": "string"
4829                    }
4830                  },
4831                  "path": "v2/{+name}",
4832                  "response": {
4833                    "$ref": "Operation"
4834                  },
4835                  "scopes": [
4836                    "https://www.googleapis.com/auth/cloud-platform",
4837                    "https://www.googleapis.com/auth/cloud-platform.read-only",
4838                    "https://www.googleapis.com/auth/logging.admin",
4839                    "https://www.googleapis.com/auth/logging.read"
4840                  ]
4841                },
4842                "list": {
4843                  "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
4844                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations",
4845                  "httpMethod": "GET",
4846                  "id": "logging.projects.locations.operations.list",
4847                  "parameterOrder": [
4848                    "name"
4849                  ],
4850                  "parameters": {
4851                    "filter": {
4852                      "description": "The standard list filter.",
4853                      "location": "query",
4854                      "type": "string"
4855                    },
4856                    "name": {
4857                      "description": "The name of the operation's parent resource.",
4858                      "location": "path",
4859                      "pattern": "^projects/[^/]+/locations/[^/]+$",
4860                      "required": true,
4861                      "type": "string"
4862                    },
4863                    "pageSize": {
4864                      "description": "The standard list page size.",
4865                      "format": "int32",
4866                      "location": "query",
4867                      "type": "integer"
4868                    },
4869                    "pageToken": {
4870                      "description": "The standard list page token.",
4871                      "location": "query",
4872                      "type": "string"
4873                    }
4874                  },
4875                  "path": "v2/{+name}/operations",
4876                  "response": {
4877                    "$ref": "ListOperationsResponse"
4878                  },
4879                  "scopes": [
4880                    "https://www.googleapis.com/auth/cloud-platform",
4881                    "https://www.googleapis.com/auth/cloud-platform.read-only",
4882                    "https://www.googleapis.com/auth/logging.admin",
4883                    "https://www.googleapis.com/auth/logging.read"
4884                  ]
4885                }
4886              }
4887            }
4888          }
4889        },
4890        "logs": {
4891          "methods": {
4892            "delete": {
4893              "description": "Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.",
4894              "flatPath": "v2/projects/{projectsId}/logs/{logsId}",
4895              "httpMethod": "DELETE",
4896              "id": "logging.projects.logs.delete",
4897              "parameterOrder": [
4898                "logName"
4899              ],
4900              "parameters": {
4901                "logName": {
4902                  "description": "Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/123/logs/cloudaudit.googleapis.com%2Factivity\".For more information about log names, see LogEntry.",
4903                  "location": "path",
4904                  "pattern": "^projects/[^/]+/logs/[^/]+$",
4905                  "required": true,
4906                  "type": "string"
4907                }
4908              },
4909              "path": "v2/{+logName}",
4910              "response": {
4911                "$ref": "Empty"
4912              },
4913              "scopes": [
4914                "https://www.googleapis.com/auth/cloud-platform",
4915                "https://www.googleapis.com/auth/logging.admin"
4916              ]
4917            },
4918            "list": {
4919              "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.",
4920              "flatPath": "v2/projects/{projectsId}/logs",
4921              "httpMethod": "GET",
4922              "id": "logging.projects.logs.list",
4923              "parameterOrder": [
4924                "parent"
4925              ],
4926              "parameters": {
4927                "pageSize": {
4928                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
4929                  "format": "int32",
4930                  "location": "query",
4931                  "type": "integer"
4932                },
4933                "pageToken": {
4934                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
4935                  "location": "query",
4936                  "type": "string"
4937                },
4938                "parent": {
4939                  "description": "Required. The resource name that owns the logs: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]",
4940                  "location": "path",
4941                  "pattern": "^projects/[^/]+$",
4942                  "required": true,
4943                  "type": "string"
4944                },
4945                "resourceNames": {
4946                  "description": "Optional. The resource name that owns the logs: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]",
4947                  "location": "query",
4948                  "repeated": true,
4949                  "type": "string"
4950                }
4951              },
4952              "path": "v2/{+parent}/logs",
4953              "response": {
4954                "$ref": "ListLogsResponse"
4955              },
4956              "scopes": [
4957                "https://www.googleapis.com/auth/cloud-platform",
4958                "https://www.googleapis.com/auth/cloud-platform.read-only",
4959                "https://www.googleapis.com/auth/logging.admin",
4960                "https://www.googleapis.com/auth/logging.read"
4961              ]
4962            }
4963          }
4964        },
4965        "metrics": {
4966          "methods": {
4967            "create": {
4968              "description": "Creates a logs-based metric.",
4969              "flatPath": "v2/projects/{projectsId}/metrics",
4970              "httpMethod": "POST",
4971              "id": "logging.projects.metrics.create",
4972              "parameterOrder": [
4973                "parent"
4974              ],
4975              "parameters": {
4976                "parent": {
4977                  "description": "Required. The resource name of the project in which to create the metric: \"projects/[PROJECT_ID]\" The new metric must be provided in the request.",
4978                  "location": "path",
4979                  "pattern": "^projects/[^/]+$",
4980                  "required": true,
4981                  "type": "string"
4982                }
4983              },
4984              "path": "v2/{+parent}/metrics",
4985              "request": {
4986                "$ref": "LogMetric"
4987              },
4988              "response": {
4989                "$ref": "LogMetric"
4990              },
4991              "scopes": [
4992                "https://www.googleapis.com/auth/cloud-platform",
4993                "https://www.googleapis.com/auth/logging.admin",
4994                "https://www.googleapis.com/auth/logging.write"
4995              ]
4996            },
4997            "delete": {
4998              "description": "Deletes a logs-based metric.",
4999              "flatPath": "v2/projects/{projectsId}/metrics/{metricsId}",
5000              "httpMethod": "DELETE",
5001              "id": "logging.projects.metrics.delete",
5002              "parameterOrder": [
5003                "metricName"
5004              ],
5005              "parameters": {
5006                "metricName": {
5007                  "description": "Required. The resource name of the metric to delete: \"projects/[PROJECT_ID]/metrics/[METRIC_ID]\" ",
5008                  "location": "path",
5009                  "pattern": "^projects/[^/]+/metrics/[^/]+$",
5010                  "required": true,
5011                  "type": "string"
5012                }
5013              },
5014              "path": "v2/{+metricName}",
5015              "response": {
5016                "$ref": "Empty"
5017              },
5018              "scopes": [
5019                "https://www.googleapis.com/auth/cloud-platform",
5020                "https://www.googleapis.com/auth/logging.admin",
5021                "https://www.googleapis.com/auth/logging.write"
5022              ]
5023            },
5024            "get": {
5025              "description": "Gets a logs-based metric.",
5026              "flatPath": "v2/projects/{projectsId}/metrics/{metricsId}",
5027              "httpMethod": "GET",
5028              "id": "logging.projects.metrics.get",
5029              "parameterOrder": [
5030                "metricName"
5031              ],
5032              "parameters": {
5033                "metricName": {
5034                  "description": "Required. The resource name of the desired metric: \"projects/[PROJECT_ID]/metrics/[METRIC_ID]\" ",
5035                  "location": "path",
5036                  "pattern": "^projects/[^/]+/metrics/[^/]+$",
5037                  "required": true,
5038                  "type": "string"
5039                }
5040              },
5041              "path": "v2/{+metricName}",
5042              "response": {
5043                "$ref": "LogMetric"
5044              },
5045              "scopes": [
5046                "https://www.googleapis.com/auth/cloud-platform",
5047                "https://www.googleapis.com/auth/cloud-platform.read-only",
5048                "https://www.googleapis.com/auth/logging.admin",
5049                "https://www.googleapis.com/auth/logging.read"
5050              ]
5051            },
5052            "list": {
5053              "description": "Lists logs-based metrics.",
5054              "flatPath": "v2/projects/{projectsId}/metrics",
5055              "httpMethod": "GET",
5056              "id": "logging.projects.metrics.list",
5057              "parameterOrder": [
5058                "parent"
5059              ],
5060              "parameters": {
5061                "pageSize": {
5062                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
5063                  "format": "int32",
5064                  "location": "query",
5065                  "type": "integer"
5066                },
5067                "pageToken": {
5068                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
5069                  "location": "query",
5070                  "type": "string"
5071                },
5072                "parent": {
5073                  "description": "Required. The name of the project containing the metrics: \"projects/[PROJECT_ID]\" ",
5074                  "location": "path",
5075                  "pattern": "^projects/[^/]+$",
5076                  "required": true,
5077                  "type": "string"
5078                }
5079              },
5080              "path": "v2/{+parent}/metrics",
5081              "response": {
5082                "$ref": "ListLogMetricsResponse"
5083              },
5084              "scopes": [
5085                "https://www.googleapis.com/auth/cloud-platform",
5086                "https://www.googleapis.com/auth/cloud-platform.read-only",
5087                "https://www.googleapis.com/auth/logging.admin",
5088                "https://www.googleapis.com/auth/logging.read"
5089              ]
5090            },
5091            "update": {
5092              "description": "Creates or updates a logs-based metric.",
5093              "flatPath": "v2/projects/{projectsId}/metrics/{metricsId}",
5094              "httpMethod": "PUT",
5095              "id": "logging.projects.metrics.update",
5096              "parameterOrder": [
5097                "metricName"
5098              ],
5099              "parameters": {
5100                "metricName": {
5101                  "description": "Required. The resource name of the metric to update: \"projects/[PROJECT_ID]/metrics/[METRIC_ID]\" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.",
5102                  "location": "path",
5103                  "pattern": "^projects/[^/]+/metrics/[^/]+$",
5104                  "required": true,
5105                  "type": "string"
5106                }
5107              },
5108              "path": "v2/{+metricName}",
5109              "request": {
5110                "$ref": "LogMetric"
5111              },
5112              "response": {
5113                "$ref": "LogMetric"
5114              },
5115              "scopes": [
5116                "https://www.googleapis.com/auth/cloud-platform",
5117                "https://www.googleapis.com/auth/logging.admin",
5118                "https://www.googleapis.com/auth/logging.write"
5119              ]
5120            }
5121          }
5122        },
5123        "sinks": {
5124          "methods": {
5125            "create": {
5126              "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.",
5127              "flatPath": "v2/projects/{projectsId}/sinks",
5128              "httpMethod": "POST",
5129              "id": "logging.projects.sinks.create",
5130              "parameterOrder": [
5131                "parent"
5132              ],
5133              "parameters": {
5134                "parent": {
5135                  "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" For examples:\"projects/my-project\" \"organizations/123456789\"",
5136                  "location": "path",
5137                  "pattern": "^projects/[^/]+$",
5138                  "required": true,
5139                  "type": "string"
5140                },
5141                "uniqueWriterIdentity": {
5142                  "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.",
5143                  "location": "query",
5144                  "type": "boolean"
5145                }
5146              },
5147              "path": "v2/{+parent}/sinks",
5148              "request": {
5149                "$ref": "LogSink"
5150              },
5151              "response": {
5152                "$ref": "LogSink"
5153              },
5154              "scopes": [
5155                "https://www.googleapis.com/auth/cloud-platform",
5156                "https://www.googleapis.com/auth/logging.admin"
5157              ]
5158            },
5159            "delete": {
5160              "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.",
5161              "flatPath": "v2/projects/{projectsId}/sinks/{sinksId}",
5162              "httpMethod": "DELETE",
5163              "id": "logging.projects.sinks.delete",
5164              "parameterOrder": [
5165                "sinkName"
5166              ],
5167              "parameters": {
5168                "sinkName": {
5169                  "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
5170                  "location": "path",
5171                  "pattern": "^projects/[^/]+/sinks/[^/]+$",
5172                  "required": true,
5173                  "type": "string"
5174                }
5175              },
5176              "path": "v2/{+sinkName}",
5177              "response": {
5178                "$ref": "Empty"
5179              },
5180              "scopes": [
5181                "https://www.googleapis.com/auth/cloud-platform",
5182                "https://www.googleapis.com/auth/logging.admin"
5183              ]
5184            },
5185            "get": {
5186              "description": "Gets a sink.",
5187              "flatPath": "v2/projects/{projectsId}/sinks/{sinksId}",
5188              "httpMethod": "GET",
5189              "id": "logging.projects.sinks.get",
5190              "parameterOrder": [
5191                "sinkName"
5192              ],
5193              "parameters": {
5194                "sinkName": {
5195                  "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
5196                  "location": "path",
5197                  "pattern": "^projects/[^/]+/sinks/[^/]+$",
5198                  "required": true,
5199                  "type": "string"
5200                }
5201              },
5202              "path": "v2/{+sinkName}",
5203              "response": {
5204                "$ref": "LogSink"
5205              },
5206              "scopes": [
5207                "https://www.googleapis.com/auth/cloud-platform",
5208                "https://www.googleapis.com/auth/cloud-platform.read-only",
5209                "https://www.googleapis.com/auth/logging.admin",
5210                "https://www.googleapis.com/auth/logging.read"
5211              ]
5212            },
5213            "list": {
5214              "description": "Lists sinks.",
5215              "flatPath": "v2/projects/{projectsId}/sinks",
5216              "httpMethod": "GET",
5217              "id": "logging.projects.sinks.list",
5218              "parameterOrder": [
5219                "parent"
5220              ],
5221              "parameters": {
5222                "pageSize": {
5223                  "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
5224                  "format": "int32",
5225                  "location": "query",
5226                  "type": "integer"
5227                },
5228                "pageToken": {
5229                  "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
5230                  "location": "query",
5231                  "type": "string"
5232                },
5233                "parent": {
5234                  "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ",
5235                  "location": "path",
5236                  "pattern": "^projects/[^/]+$",
5237                  "required": true,
5238                  "type": "string"
5239                }
5240              },
5241              "path": "v2/{+parent}/sinks",
5242              "response": {
5243                "$ref": "ListSinksResponse"
5244              },
5245              "scopes": [
5246                "https://www.googleapis.com/auth/cloud-platform",
5247                "https://www.googleapis.com/auth/cloud-platform.read-only",
5248                "https://www.googleapis.com/auth/logging.admin",
5249                "https://www.googleapis.com/auth/logging.read"
5250              ]
5251            },
5252            "patch": {
5253              "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.",
5254              "flatPath": "v2/projects/{projectsId}/sinks/{sinksId}",
5255              "httpMethod": "PATCH",
5256              "id": "logging.projects.sinks.patch",
5257              "parameterOrder": [
5258                "sinkName"
5259              ],
5260              "parameters": {
5261                "sinkName": {
5262                  "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
5263                  "location": "path",
5264                  "pattern": "^projects/[^/]+/sinks/[^/]+$",
5265                  "required": true,
5266                  "type": "string"
5267                },
5268                "uniqueWriterIdentity": {
5269                  "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.",
5270                  "location": "query",
5271                  "type": "boolean"
5272                },
5273                "updateMask": {
5274                  "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
5275                  "format": "google-fieldmask",
5276                  "location": "query",
5277                  "type": "string"
5278                }
5279              },
5280              "path": "v2/{+sinkName}",
5281              "request": {
5282                "$ref": "LogSink"
5283              },
5284              "response": {
5285                "$ref": "LogSink"
5286              },
5287              "scopes": [
5288                "https://www.googleapis.com/auth/cloud-platform",
5289                "https://www.googleapis.com/auth/logging.admin"
5290              ]
5291            },
5292            "update": {
5293              "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.",
5294              "flatPath": "v2/projects/{projectsId}/sinks/{sinksId}",
5295              "httpMethod": "PUT",
5296              "id": "logging.projects.sinks.update",
5297              "parameterOrder": [
5298                "sinkName"
5299              ],
5300              "parameters": {
5301                "sinkName": {
5302                  "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
5303                  "location": "path",
5304                  "pattern": "^projects/[^/]+/sinks/[^/]+$",
5305                  "required": true,
5306                  "type": "string"
5307                },
5308                "uniqueWriterIdentity": {
5309                  "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.",
5310                  "location": "query",
5311                  "type": "boolean"
5312                },
5313                "updateMask": {
5314                  "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
5315                  "format": "google-fieldmask",
5316                  "location": "query",
5317                  "type": "string"
5318                }
5319              },
5320              "path": "v2/{+sinkName}",
5321              "request": {
5322                "$ref": "LogSink"
5323              },
5324              "response": {
5325                "$ref": "LogSink"
5326              },
5327              "scopes": [
5328                "https://www.googleapis.com/auth/cloud-platform",
5329                "https://www.googleapis.com/auth/logging.admin"
5330              ]
5331            }
5332          }
5333        }
5334      }
5335    },
5336    "sinks": {
5337      "methods": {
5338        "create": {
5339          "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.",
5340          "flatPath": "v2/{v2Id}/{v2Id1}/sinks",
5341          "httpMethod": "POST",
5342          "id": "logging.sinks.create",
5343          "parameterOrder": [
5344            "parent"
5345          ],
5346          "parameters": {
5347            "parent": {
5348              "description": "Required. The resource in which to create the sink: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" For examples:\"projects/my-project\" \"organizations/123456789\"",
5349              "location": "path",
5350              "pattern": "^[^/]+/[^/]+$",
5351              "required": true,
5352              "type": "string"
5353            },
5354            "uniqueWriterIdentity": {
5355              "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.",
5356              "location": "query",
5357              "type": "boolean"
5358            }
5359          },
5360          "path": "v2/{+parent}/sinks",
5361          "request": {
5362            "$ref": "LogSink"
5363          },
5364          "response": {
5365            "$ref": "LogSink"
5366          },
5367          "scopes": [
5368            "https://www.googleapis.com/auth/cloud-platform",
5369            "https://www.googleapis.com/auth/logging.admin"
5370          ]
5371        },
5372        "delete": {
5373          "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.",
5374          "flatPath": "v2/{v2Id}/{v2Id1}/sinks/{sinksId}",
5375          "httpMethod": "DELETE",
5376          "id": "logging.sinks.delete",
5377          "parameterOrder": [
5378            "sinkName"
5379          ],
5380          "parameters": {
5381            "sinkName": {
5382              "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
5383              "location": "path",
5384              "pattern": "^[^/]+/[^/]+/sinks/[^/]+$",
5385              "required": true,
5386              "type": "string"
5387            }
5388          },
5389          "path": "v2/{+sinkName}",
5390          "response": {
5391            "$ref": "Empty"
5392          },
5393          "scopes": [
5394            "https://www.googleapis.com/auth/cloud-platform",
5395            "https://www.googleapis.com/auth/logging.admin"
5396          ]
5397        },
5398        "get": {
5399          "description": "Gets a sink.",
5400          "flatPath": "v2/{v2Id}/{v2Id1}/sinks/{sinksId}",
5401          "httpMethod": "GET",
5402          "id": "logging.sinks.get",
5403          "parameterOrder": [
5404            "sinkName"
5405          ],
5406          "parameters": {
5407            "sinkName": {
5408              "description": "Required. The resource name of the sink: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
5409              "location": "path",
5410              "pattern": "^[^/]+/[^/]+/sinks/[^/]+$",
5411              "required": true,
5412              "type": "string"
5413            }
5414          },
5415          "path": "v2/{+sinkName}",
5416          "response": {
5417            "$ref": "LogSink"
5418          },
5419          "scopes": [
5420            "https://www.googleapis.com/auth/cloud-platform",
5421            "https://www.googleapis.com/auth/cloud-platform.read-only",
5422            "https://www.googleapis.com/auth/logging.admin",
5423            "https://www.googleapis.com/auth/logging.read"
5424          ]
5425        },
5426        "list": {
5427          "description": "Lists sinks.",
5428          "flatPath": "v2/{v2Id}/{v2Id1}/sinks",
5429          "httpMethod": "GET",
5430          "id": "logging.sinks.list",
5431          "parameterOrder": [
5432            "parent"
5433          ],
5434          "parameters": {
5435            "pageSize": {
5436              "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
5437              "format": "int32",
5438              "location": "query",
5439              "type": "integer"
5440            },
5441            "pageToken": {
5442              "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
5443              "location": "query",
5444              "type": "string"
5445            },
5446            "parent": {
5447              "description": "Required. The parent resource whose sinks are to be listed: \"projects/[PROJECT_ID]\" \"organizations/[ORGANIZATION_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]\" \"folders/[FOLDER_ID]\" ",
5448              "location": "path",
5449              "pattern": "^[^/]+/[^/]+$",
5450              "required": true,
5451              "type": "string"
5452            }
5453          },
5454          "path": "v2/{+parent}/sinks",
5455          "response": {
5456            "$ref": "ListSinksResponse"
5457          },
5458          "scopes": [
5459            "https://www.googleapis.com/auth/cloud-platform",
5460            "https://www.googleapis.com/auth/cloud-platform.read-only",
5461            "https://www.googleapis.com/auth/logging.admin",
5462            "https://www.googleapis.com/auth/logging.read"
5463          ]
5464        },
5465        "update": {
5466          "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.",
5467          "flatPath": "v2/{v2Id}/{v2Id1}/sinks/{sinksId}",
5468          "httpMethod": "PUT",
5469          "id": "logging.sinks.update",
5470          "parameterOrder": [
5471            "sinkName"
5472          ],
5473          "parameters": {
5474            "sinkName": {
5475              "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier: \"projects/[PROJECT_ID]/sinks/[SINK_ID]\" \"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\" \"folders/[FOLDER_ID]/sinks/[SINK_ID]\" For example:\"projects/my-project/sinks/my-sink\"",
5476              "location": "path",
5477              "pattern": "^[^/]+/[^/]+/sinks/[^/]+$",
5478              "required": true,
5479              "type": "string"
5480            },
5481            "uniqueWriterIdentity": {
5482              "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.",
5483              "location": "query",
5484              "type": "boolean"
5485            },
5486            "updateMask": {
5487              "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter",
5488              "format": "google-fieldmask",
5489              "location": "query",
5490              "type": "string"
5491            }
5492          },
5493          "path": "v2/{+sinkName}",
5494          "request": {
5495            "$ref": "LogSink"
5496          },
5497          "response": {
5498            "$ref": "LogSink"
5499          },
5500          "scopes": [
5501            "https://www.googleapis.com/auth/cloud-platform",
5502            "https://www.googleapis.com/auth/logging.admin"
5503          ]
5504        }
5505      }
5506    },
5507    "v2": {
5508      "methods": {
5509        "getCmekSettings": {
5510          "description": "Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.",
5511          "flatPath": "v2/{v2Id}/{v2Id1}/cmekSettings",
5512          "httpMethod": "GET",
5513          "id": "logging.getCmekSettings",
5514          "parameterOrder": [
5515            "name"
5516          ],
5517          "parameters": {
5518            "name": {
5519              "description": "Required. The resource for which to retrieve CMEK settings. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" For example:\"organizations/12345/cmekSettings\"Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.",
5520              "location": "path",
5521              "pattern": "^[^/]+/[^/]+$",
5522              "required": true,
5523              "type": "string"
5524            }
5525          },
5526          "path": "v2/{+name}/cmekSettings",
5527          "response": {
5528            "$ref": "CmekSettings"
5529          },
5530          "scopes": [
5531            "https://www.googleapis.com/auth/cloud-platform",
5532            "https://www.googleapis.com/auth/cloud-platform.read-only",
5533            "https://www.googleapis.com/auth/logging.admin",
5534            "https://www.googleapis.com/auth/logging.read"
5535          ]
5536        },
5537        "updateCmekSettings": {
5538          "description": "Updates the Log Router CMEK settings for the given resource.Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.UpdateCmekSettings will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.",
5539          "flatPath": "v2/{v2Id}/{v2Id1}/cmekSettings",
5540          "httpMethod": "PATCH",
5541          "id": "logging.updateCmekSettings",
5542          "parameterOrder": [
5543            "name"
5544          ],
5545          "parameters": {
5546            "name": {
5547              "description": "Required. The resource name for the CMEK settings to update. \"projects/[PROJECT_ID]/cmekSettings\" \"organizations/[ORGANIZATION_ID]/cmekSettings\" \"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings\" \"folders/[FOLDER_ID]/cmekSettings\" For example:\"organizations/12345/cmekSettings\"Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.",
5548              "location": "path",
5549              "pattern": "^[^/]+/[^/]+$",
5550              "required": true,
5551              "type": "string"
5552            },
5553            "updateMask": {
5554              "description": "Optional. Field mask identifying which fields from cmek_settings should be updated. A field will be overwritten if and only if it is in the update mask. Output only fields cannot be updated.See FieldMask for more information.For example: \"updateMask=kmsKeyName\"",
5555              "format": "google-fieldmask",
5556              "location": "query",
5557              "type": "string"
5558            }
5559          },
5560          "path": "v2/{+name}/cmekSettings",
5561          "request": {
5562            "$ref": "CmekSettings"
5563          },
5564          "response": {
5565            "$ref": "CmekSettings"
5566          },
5567          "scopes": [
5568            "https://www.googleapis.com/auth/cloud-platform",
5569            "https://www.googleapis.com/auth/logging.admin"
5570          ]
5571        }
5572      }
5573    }
5574  },
5575  "revision": "20211130",
5576  "rootUrl": "https://logging.googleapis.com/",
5577  "schemas": {
5578    "BigQueryOptions": {
5579      "description": "Options that change functionality of a sink exporting data to BigQuery.",
5580      "id": "BigQueryOptions",
5581      "properties": {
5582        "usePartitionedTables": {
5583          "description": "Optional. Whether to use BigQuery's partition tables (https://cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries' timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.",
5584          "type": "boolean"
5585        },
5586        "usesTimestampColumnPartitioning": {
5587          "description": "Output only. True if new timestamp column based partitioning is in use, false if legacy ingestion-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.",
5588          "readOnly": true,
5589          "type": "boolean"
5590        }
5591      },
5592      "type": "object"
5593    },
5594    "BucketOptions": {
5595      "description": "BucketOptions describes the bucket boundaries used to create a histogram for the distribution. The buckets can be in a linear sequence, an exponential sequence, or each bucket can be specified explicitly. BucketOptions does not include the number of values in each bucket.A bucket has an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket must be strictly greater than the lower bound. The sequence of N buckets for a distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite.",
5596      "id": "BucketOptions",
5597      "properties": {
5598        "explicitBuckets": {
5599          "$ref": "Explicit",
5600          "description": "The explicit buckets."
5601        },
5602        "exponentialBuckets": {
5603          "$ref": "Exponential",
5604          "description": "The exponential buckets."
5605        },
5606        "linearBuckets": {
5607          "$ref": "Linear",
5608          "description": "The linear bucket."
5609        }
5610      },
5611      "type": "object"
5612    },
5613    "CancelOperationRequest": {
5614      "description": "The request message for Operations.CancelOperation.",
5615      "id": "CancelOperationRequest",
5616      "properties": {},
5617      "type": "object"
5618    },
5619    "CmekSettings": {
5620      "description": "Describes the customer-managed encryption key (CMEK) settings associated with a project, folder, organization, billing account, or flexible resource.Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.",
5621      "id": "CmekSettings",
5622      "properties": {
5623        "kmsKeyName": {
5624          "description": "The resource name for the configured Cloud KMS key.KMS key name format: \"projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]\" For example:\"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key\"To enable CMEK for the Log Router, set this field to a valid kms_key_name for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.The Cloud KMS key used by the Log Router can be updated by changing the kms_key_name to a new valid key name or disabled by setting the key name to an empty string. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked.To disable CMEK for the Log Router, set this field to an empty string.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.",
5625          "type": "string"
5626        },
5627        "name": {
5628          "description": "Output only. The resource name of the CMEK settings.",
5629          "readOnly": true,
5630          "type": "string"
5631        },
5632        "serviceAccountId": {
5633          "description": "Output only. The service account that will be used by the Log Router to access your Cloud KMS key.Before enabling CMEK for Log Router, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account that the Log Router will use to access your Cloud KMS key. Use GetCmekSettings to obtain the service account ID.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.",
5634          "readOnly": true,
5635          "type": "string"
5636        }
5637      },
5638      "type": "object"
5639    },
5640    "CopyLogEntriesMetadata": {
5641      "description": "Metadata for CopyLogEntries long running operations.",
5642      "id": "CopyLogEntriesMetadata",
5643      "properties": {
5644        "cancellationRequested": {
5645          "description": "Identifies whether the user has requested cancellation of the operation.",
5646          "type": "boolean"
5647        },
5648        "endTime": {
5649          "description": "The end time of an operation.",
5650          "format": "google-datetime",
5651          "type": "string"
5652        },
5653        "progress": {
5654          "description": "Estimated progress of the operation (0 - 100%).",
5655          "format": "int32",
5656          "type": "integer"
5657        },
5658        "request": {
5659          "$ref": "CopyLogEntriesRequest",
5660          "description": "CopyLogEntries RPC request."
5661        },
5662        "startTime": {
5663          "description": "The create time of an operation.",
5664          "format": "google-datetime",
5665          "type": "string"
5666        },
5667        "state": {
5668          "description": "State of an operation.",
5669          "enum": [
5670            "OPERATION_STATE_UNSPECIFIED",
5671            "OPERATION_STATE_SCHEDULED",
5672            "OPERATION_STATE_WAITING_FOR_PERMISSIONS",
5673            "OPERATION_STATE_RUNNING",
5674            "OPERATION_STATE_SUCCEEDED",
5675            "OPERATION_STATE_FAILED",
5676            "OPERATION_STATE_CANCELLED"
5677          ],
5678          "enumDescriptions": [
5679            "Should not be used.",
5680            "The operation is scheduled.",
5681            "Waiting for necessary permissions.",
5682            "The operation is running.",
5683            "The operation was completed successfully.",
5684            "The operation failed.",
5685            "The operation was cancelled by the user."
5686          ],
5687          "type": "string"
5688        },
5689        "writerIdentity": {
5690          "description": "The IAM identity of a service account that must be granted access to the destination.If the service account is not granted permission to the destination within an hour, the operation will be cancelled.For example: \"serviceAccount:foo@bar.com\"",
5691          "type": "string"
5692        }
5693      },
5694      "type": "object"
5695    },
5696    "CopyLogEntriesRequest": {
5697      "description": "The parameters to CopyLogEntries.",
5698      "id": "CopyLogEntriesRequest",
5699      "properties": {
5700        "destination": {
5701          "description": "Required. Destination to which to copy log entries.",
5702          "type": "string"
5703        },
5704        "filter": {
5705          "description": "Optional. A filter specifying which log entries to copy. The filter must be no more than 20k characters. An empty filter matches all log entries.",
5706          "type": "string"
5707        },
5708        "name": {
5709          "description": "Required. Log bucket from which to copy log entries.For example:\"projects/my-project/locations/global/buckets/my-source-bucket\"",
5710          "type": "string"
5711        }
5712      },
5713      "type": "object"
5714    },
5715    "CopyLogEntriesResponse": {
5716      "description": "Response type for CopyLogEntries long running operations.",
5717      "id": "CopyLogEntriesResponse",
5718      "properties": {
5719        "logEntriesCopiedCount": {
5720          "description": "Number of log entries copied.",
5721          "format": "int64",
5722          "type": "string"
5723        }
5724      },
5725      "type": "object"
5726    },
5727    "Empty": {
5728      "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}.",
5729      "id": "Empty",
5730      "properties": {},
5731      "type": "object"
5732    },
5733    "Explicit": {
5734      "description": "Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at least one element. If bounds has only one element, then there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.",
5735      "id": "Explicit",
5736      "properties": {
5737        "bounds": {
5738          "description": "The values must be monotonically increasing.",
5739          "items": {
5740            "format": "double",
5741            "type": "number"
5742          },
5743          "type": "array"
5744        }
5745      },
5746      "type": "object"
5747    },
5748    "Exponential": {
5749      "description": "Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).",
5750      "id": "Exponential",
5751      "properties": {
5752        "growthFactor": {
5753          "description": "Must be greater than 1.",
5754          "format": "double",
5755          "type": "number"
5756        },
5757        "numFiniteBuckets": {
5758          "description": "Must be greater than 0.",
5759          "format": "int32",
5760          "type": "integer"
5761        },
5762        "scale": {
5763          "description": "Must be greater than 0.",
5764          "format": "double",
5765          "type": "number"
5766        }
5767      },
5768      "type": "object"
5769    },
5770    "HttpRequest": {
5771      "description": "A common proto for logging HTTP requests. Only contains semantics defined by the HTTP specification. Product-specific logging information MUST be defined in a separate message.",
5772      "id": "HttpRequest",
5773      "properties": {
5774        "cacheFillBytes": {
5775          "description": "The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.",
5776          "format": "int64",
5777          "type": "string"
5778        },
5779        "cacheHit": {
5780          "description": "Whether or not an entity was served from cache (with or without validation).",
5781          "type": "boolean"
5782        },
5783        "cacheLookup": {
5784          "description": "Whether or not a cache lookup was attempted.",
5785          "type": "boolean"
5786        },
5787        "cacheValidatedWithOriginServer": {
5788          "description": "Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if cache_hit is True.",
5789          "type": "boolean"
5790        },
5791        "latency": {
5792          "description": "The request processing latency on the server, from the time the request was received until the response was sent.",
5793          "format": "google-duration",
5794          "type": "string"
5795        },
5796        "protocol": {
5797          "description": "Protocol used for the request. Examples: \"HTTP/1.1\", \"HTTP/2\", \"websocket\"",
5798          "type": "string"
5799        },
5800        "referer": {
5801          "description": "The referer URL of the request, as defined in HTTP/1.1 Header Field Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).",
5802          "type": "string"
5803        },
5804        "remoteIp": {
5805          "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP request. This field can include port information. Examples: \"192.168.1.1\", \"10.0.0.1:80\", \"FE80::0202:B3FF:FE1E:8329\".",
5806          "type": "string"
5807        },
5808        "requestMethod": {
5809          "description": "The request method. Examples: \"GET\", \"HEAD\", \"PUT\", \"POST\".",
5810          "type": "string"
5811        },
5812        "requestSize": {
5813          "description": "The size of the HTTP request message in bytes, including the request headers and the request body.",
5814          "format": "int64",
5815          "type": "string"
5816        },
5817        "requestUrl": {
5818          "description": "The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: \"http://example.com/some/info?color=red\".",
5819          "type": "string"
5820        },
5821        "responseSize": {
5822          "description": "The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.",
5823          "format": "int64",
5824          "type": "string"
5825        },
5826        "serverIp": {
5827          "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can include port information. Examples: \"192.168.1.1\", \"10.0.0.1:80\", \"FE80::0202:B3FF:FE1E:8329\".",
5828          "type": "string"
5829        },
5830        "status": {
5831          "description": "The response code indicating the status of response. Examples: 200, 404.",
5832          "format": "int32",
5833          "type": "integer"
5834        },
5835        "userAgent": {
5836          "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\".",
5837          "type": "string"
5838        }
5839      },
5840      "type": "object"
5841    },
5842    "LabelDescriptor": {
5843      "description": "A description of a label.",
5844      "id": "LabelDescriptor",
5845      "properties": {
5846        "description": {
5847          "description": "A human-readable description for the label.",
5848          "type": "string"
5849        },
5850        "key": {
5851          "description": "The label key.",
5852          "type": "string"
5853        },
5854        "valueType": {
5855          "description": "The type of data that can be assigned to the label.",
5856          "enum": [
5857            "STRING",
5858            "BOOL",
5859            "INT64"
5860          ],
5861          "enumDescriptions": [
5862            "A variable-length string. This is the default.",
5863            "Boolean; true or false.",
5864            "A 64-bit signed integer."
5865          ],
5866          "type": "string"
5867        }
5868      },
5869      "type": "object"
5870    },
5871    "Linear": {
5872      "description": "Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).",
5873      "id": "Linear",
5874      "properties": {
5875        "numFiniteBuckets": {
5876          "description": "Must be greater than 0.",
5877          "format": "int32",
5878          "type": "integer"
5879        },
5880        "offset": {
5881          "description": "Lower bound of the first bucket.",
5882          "format": "double",
5883          "type": "number"
5884        },
5885        "width": {
5886          "description": "Must be greater than 0.",
5887          "format": "double",
5888          "type": "number"
5889        }
5890      },
5891      "type": "object"
5892    },
5893    "ListBucketsResponse": {
5894      "description": "The response from ListBuckets.",
5895      "id": "ListBucketsResponse",
5896      "properties": {
5897        "buckets": {
5898          "description": "A list of buckets.",
5899          "items": {
5900            "$ref": "LogBucket"
5901          },
5902          "type": "array"
5903        },
5904        "nextPageToken": {
5905          "description": "If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.",
5906          "type": "string"
5907        }
5908      },
5909      "type": "object"
5910    },
5911    "ListExclusionsResponse": {
5912      "description": "Result returned from ListExclusions.",
5913      "id": "ListExclusionsResponse",
5914      "properties": {
5915        "exclusions": {
5916          "description": "A list of exclusions.",
5917          "items": {
5918            "$ref": "LogExclusion"
5919          },
5920          "type": "array"
5921        },
5922        "nextPageToken": {
5923          "description": "If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.",
5924          "type": "string"
5925        }
5926      },
5927      "type": "object"
5928    },
5929    "ListLocationsResponse": {
5930      "description": "The response message for Locations.ListLocations.",
5931      "id": "ListLocationsResponse",
5932      "properties": {
5933        "locations": {
5934          "description": "A list of locations that matches the specified filter in the request.",
5935          "items": {
5936            "$ref": "Location"
5937          },
5938          "type": "array"
5939        },
5940        "nextPageToken": {
5941          "description": "The standard List next-page token.",
5942          "type": "string"
5943        }
5944      },
5945      "type": "object"
5946    },
5947    "ListLogEntriesRequest": {
5948      "description": "The parameters to ListLogEntries.",
5949      "id": "ListLogEntriesRequest",
5950      "properties": {
5951        "filter": {
5952          "description": "Optional. A filter that chooses which log entries to return. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries in the resources listed in resource_names. Referencing a parent resource that is not listed in resource_names will cause the filter to return no results. The maximum length of the filter is 20000 characters.",
5953          "type": "string"
5954        },
5955        "orderBy": {
5956          "description": "Optional. How the results should be sorted. Presently, the only permitted values are \"timestamp asc\" (default) and \"timestamp desc\". The first option returns entries in order of increasing values of LogEntry.timestamp (oldest first), and the second option returns entries in order of decreasing timestamps (newest first). Entries with equal timestamps are returned in order of their insert_id values.",
5957          "type": "string"
5958        },
5959        "pageSize": {
5960          "description": "Optional. The maximum number of results to return from this request. Default is 50. If the value is negative or exceeds 1000, the request is rejected. The presence of next_page_token in the response indicates that more results might be available.",
5961          "format": "int32",
5962          "type": "integer"
5963        },
5964        "pageToken": {
5965          "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. page_token must be the value of next_page_token from the previous response. The values of other method parameters should be identical to those in the previous call.",
5966          "type": "string"
5967        },
5968        "projectIds": {
5969          "description": "Optional. Deprecated. Use resource_names instead. One or more project identifiers or project numbers from which to retrieve log entries. Example: \"my-project-1A\".",
5970          "items": {
5971            "type": "string"
5972          },
5973          "type": "array"
5974        },
5975        "resourceNames": {
5976          "description": "Required. Names of one or more parent resources from which to retrieve log entries: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]Projects listed in the project_ids field are added to this list.",
5977          "items": {
5978            "type": "string"
5979          },
5980          "type": "array"
5981        }
5982      },
5983      "type": "object"
5984    },
5985    "ListLogEntriesResponse": {
5986      "description": "Result returned from ListLogEntries.",
5987      "id": "ListLogEntriesResponse",
5988      "properties": {
5989        "entries": {
5990          "description": "A list of log entries. If entries is empty, nextPageToken may still be returned, indicating that more entries may exist. See nextPageToken for more information.",
5991          "items": {
5992            "$ref": "LogEntry"
5993          },
5994          "type": "array"
5995        },
5996        "nextPageToken": {
5997          "description": "If there might be more results than those appearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.If a value for next_page_token appears and the entries field is empty, it means that the search found no log entries so far but it did not have time to search all the possible log entries. Retry the method with this value for page_token to continue the search. Alternatively, consider speeding up the search by changing your filter to specify a single log name or resource type, or to narrow the time range of the search.",
5998          "type": "string"
5999        }
6000      },
6001      "type": "object"
6002    },
6003    "ListLogMetricsResponse": {
6004      "description": "Result returned from ListLogMetrics.",
6005      "id": "ListLogMetricsResponse",
6006      "properties": {
6007        "metrics": {
6008          "description": "A list of logs-based metrics.",
6009          "items": {
6010            "$ref": "LogMetric"
6011          },
6012          "type": "array"
6013        },
6014        "nextPageToken": {
6015          "description": "If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.",
6016          "type": "string"
6017        }
6018      },
6019      "type": "object"
6020    },
6021    "ListLogsResponse": {
6022      "description": "Result returned from ListLogs.",
6023      "id": "ListLogsResponse",
6024      "properties": {
6025        "logNames": {
6026          "description": "A list of log names. For example, \"projects/my-project/logs/syslog\" or \"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity\".",
6027          "items": {
6028            "type": "string"
6029          },
6030          "type": "array"
6031        },
6032        "nextPageToken": {
6033          "description": "If there might be more results than those appearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.",
6034          "type": "string"
6035        }
6036      },
6037      "type": "object"
6038    },
6039    "ListMonitoredResourceDescriptorsResponse": {
6040      "description": "Result returned from ListMonitoredResourceDescriptors.",
6041      "id": "ListMonitoredResourceDescriptorsResponse",
6042      "properties": {
6043        "nextPageToken": {
6044          "description": "If there might be more results than those appearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.",
6045          "type": "string"
6046        },
6047        "resourceDescriptors": {
6048          "description": "A list of resource descriptors.",
6049          "items": {
6050            "$ref": "MonitoredResourceDescriptor"
6051          },
6052          "type": "array"
6053        }
6054      },
6055      "type": "object"
6056    },
6057    "ListOperationsResponse": {
6058      "description": "The response message for Operations.ListOperations.",
6059      "id": "ListOperationsResponse",
6060      "properties": {
6061        "nextPageToken": {
6062          "description": "The standard List next-page token.",
6063          "type": "string"
6064        },
6065        "operations": {
6066          "description": "A list of operations that matches the specified filter in the request.",
6067          "items": {
6068            "$ref": "Operation"
6069          },
6070          "type": "array"
6071        }
6072      },
6073      "type": "object"
6074    },
6075    "ListSinksResponse": {
6076      "description": "Result returned from ListSinks.",
6077      "id": "ListSinksResponse",
6078      "properties": {
6079        "nextPageToken": {
6080          "description": "If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.",
6081          "type": "string"
6082        },
6083        "sinks": {
6084          "description": "A list of sinks.",
6085          "items": {
6086            "$ref": "LogSink"
6087          },
6088          "type": "array"
6089        }
6090      },
6091      "type": "object"
6092    },
6093    "ListViewsResponse": {
6094      "description": "The response from ListViews.",
6095      "id": "ListViewsResponse",
6096      "properties": {
6097        "nextPageToken": {
6098          "description": "If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.",
6099          "type": "string"
6100        },
6101        "views": {
6102          "description": "A list of views.",
6103          "items": {
6104            "$ref": "LogView"
6105          },
6106          "type": "array"
6107        }
6108      },
6109      "type": "object"
6110    },
6111    "Location": {
6112      "description": "A resource that represents Google Cloud Platform location.",
6113      "id": "Location",
6114      "properties": {
6115        "displayName": {
6116          "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".",
6117          "type": "string"
6118        },
6119        "labels": {
6120          "additionalProperties": {
6121            "type": "string"
6122          },
6123          "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"} ",
6124          "type": "object"
6125        },
6126        "locationId": {
6127          "description": "The canonical id for this location. For example: \"us-east1\".",
6128          "type": "string"
6129        },
6130        "metadata": {
6131          "additionalProperties": {
6132            "description": "Properties of the object. Contains field @type with type URL.",
6133            "type": "any"
6134          },
6135          "description": "Service-specific metadata. For example the available capacity at the given location.",
6136          "type": "object"
6137        },
6138        "name": {
6139          "description": "Resource name for the location, which may vary between implementations. For example: \"projects/example-project/locations/us-east1\"",
6140          "type": "string"
6141        }
6142      },
6143      "type": "object"
6144    },
6145    "LogBucket": {
6146      "description": "Describes a repository in which log entries are stored.",
6147      "id": "LogBucket",
6148      "properties": {
6149        "cmekSettings": {
6150          "$ref": "CmekSettings",
6151          "description": "The CMEK settings of the log bucket. If present, new log entries written to this log bucket are encrypted using the CMEK key provided in this configuration. If a log bucket has CMEK settings, the CMEK settings cannot be disabled later by updating the log bucket. Changing the KMS key is allowed."
6152        },
6153        "createTime": {
6154          "description": "Output only. The creation timestamp of the bucket. This is not set for any of the default buckets.",
6155          "format": "google-datetime",
6156          "readOnly": true,
6157          "type": "string"
6158        },
6159        "description": {
6160          "description": "Describes this bucket.",
6161          "type": "string"
6162        },
6163        "lifecycleState": {
6164          "description": "Output only. The bucket lifecycle state.",
6165          "enum": [
6166            "LIFECYCLE_STATE_UNSPECIFIED",
6167            "ACTIVE",
6168            "DELETE_REQUESTED"
6169          ],
6170          "enumDescriptions": [
6171            "Unspecified state. This is only used/useful for distinguishing unset values.",
6172            "The normal and active state.",
6173            "The bucket has been marked for deletion by the user."
6174          ],
6175          "readOnly": true,
6176          "type": "string"
6177        },
6178        "locked": {
6179          "description": "Whether the bucket is locked.The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty.",
6180          "type": "boolean"
6181        },
6182        "name": {
6183          "description": "Output only. The resource name of the bucket.For example:projects/my-project/locations/global/buckets/my-bucketFor a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support)For the location of global it is unspecified where log entries are actually stored.After a bucket has been created, the location cannot be changed.",
6184          "readOnly": true,
6185          "type": "string"
6186        },
6187        "restrictedFields": {
6188          "description": "Log entry field paths that are denied access in this bucket.The following fields and their children are eligible: textPayload, jsonPayload, protoPayload, httpRequest, labels, sourceLocation.Restricting a repeated field will restrict all values. Adding a parent will block all child fields. (e.g. foo.bar will block foo.bar.baz)",
6189          "items": {
6190            "type": "string"
6191          },
6192          "type": "array"
6193        },
6194        "retentionDays": {
6195          "description": "Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.",
6196          "format": "int32",
6197          "type": "integer"
6198        },
6199        "updateTime": {
6200          "description": "Output only. The last update timestamp of the bucket.",
6201          "format": "google-datetime",
6202          "readOnly": true,
6203          "type": "string"
6204        }
6205      },
6206      "type": "object"
6207    },
6208    "LogEntry": {
6209      "description": "An individual entry in a log.",
6210      "id": "LogEntry",
6211      "properties": {
6212        "httpRequest": {
6213          "$ref": "HttpRequest",
6214          "description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
6215        },
6216        "insertId": {
6217          "description": "Optional. A unique identifier for the log entry. If you provide a value, then Logging considers other log entries in the same project, with the same timestamp, and with the same insert_id to be duplicates which are removed in a single query result. However, there are no guarantees of de-duplication in the export of logs.If the insert_id is omitted when writing a log entry, the Logging API assigns its own unique identifier in this field.In queries, the insert_id is also used to order log entries that have the same log_name and timestamp values.",
6218          "type": "string"
6219        },
6220        "jsonPayload": {
6221          "additionalProperties": {
6222            "description": "Properties of the object.",
6223            "type": "any"
6224          },
6225          "description": "The log entry payload, represented as a structure that is expressed as a JSON object.",
6226          "type": "object"
6227        },
6228        "labels": {
6229          "additionalProperties": {
6230            "type": "string"
6231          },
6232          "description": "Optional. A map of key, value pairs that provides additional information about the log entry. The labels can be user-defined or system-defined.User-defined labels are arbitrary key, value pairs that you can use to classify logs.System-defined labels are defined by GCP services for platform logs. They have two components - a service namespace component and the attribute name. For example: compute.googleapis.com/resource_name.Cloud Logging truncates label keys that exceed 512 B and label values that exceed 64 KB upon their associated log entry being written. The truncation is indicated by an ellipsis at the end of the character string.",
6233          "type": "object"
6234        },
6235        "logName": {
6236          "description": "Required. The resource name of the log to which this log entry belongs: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" A project number may be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be URL-encoded within log_name. Example: \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\".[LOG_ID] must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period.For backward compatibility, if log_name begins with a forward-slash, such as /projects/..., then the log entry is ingested as usual, but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leading slash will never return any results.",
6237          "type": "string"
6238        },
6239        "metadata": {
6240          "$ref": "MonitoredResourceMetadata",
6241          "description": "Output only. Deprecated. This field is not used by Logging. Any value written to it is cleared.",
6242          "readOnly": true
6243        },
6244        "operation": {
6245          "$ref": "LogEntryOperation",
6246          "description": "Optional. Information about an operation associated with the log entry, if applicable."
6247        },
6248        "protoPayload": {
6249          "additionalProperties": {
6250            "description": "Properties of the object. Contains field @type with type URL.",
6251            "type": "any"
6252          },
6253          "description": "The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.The following protocol buffer types are supported; user-defined types are not supported:\"type.googleapis.com/google.cloud.audit.AuditLog\" \"type.googleapis.com/google.appengine.logging.v1.RequestLog\"",
6254          "type": "object"
6255        },
6256        "receiveTimestamp": {
6257          "description": "Output only. The time the log entry was received by Logging.",
6258          "format": "google-datetime",
6259          "readOnly": true,
6260          "type": "string"
6261        },
6262        "resource": {
6263          "$ref": "MonitoredResource",
6264          "description": "Required. The monitored resource that produced this log entry.Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error."
6265        },
6266        "severity": {
6267          "description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT.",
6268          "enum": [
6269            "DEFAULT",
6270            "DEBUG",
6271            "INFO",
6272            "NOTICE",
6273            "WARNING",
6274            "ERROR",
6275            "CRITICAL",
6276            "ALERT",
6277            "EMERGENCY"
6278          ],
6279          "enumDescriptions": [
6280            "(0) The log entry has no assigned severity level.",
6281            "(100) Debug or trace information.",
6282            "(200) Routine information, such as ongoing status or performance.",
6283            "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
6284            "(400) Warning events might cause problems.",
6285            "(500) Error events are likely to cause problems.",
6286            "(600) Critical events cause more severe problems or outages.",
6287            "(700) A person must take an action immediately.",
6288            "(800) One or more systems are unusable."
6289          ],
6290          "type": "string"
6291        },
6292        "sourceLocation": {
6293          "$ref": "LogEntrySourceLocation",
6294          "description": "Optional. Source code location information associated with the log entry, if any."
6295        },
6296        "spanId": {
6297          "description": "Optional. The span ID within the trace associated with the log entry.For Trace spans, this is the same format that the Trace API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such as 000000000000004a.",
6298          "type": "string"
6299        },
6300        "textPayload": {
6301          "description": "The log entry payload, represented as a Unicode string (UTF-8).",
6302          "type": "string"
6303        },
6304        "timestamp": {
6305          "description": "Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Logging assigns it the current time. Timestamps have nanosecond accuracy, but trailing zeros in the fractional seconds might be omitted when the timestamp is displayed.Incoming log entries must have timestamps that don't exceed the logs retention period (https://cloud.google.com/logging/quotas#logs_retention_periods) in the past, and that don't exceed 24 hours in the future. Log entries outside those time boundaries aren't ingested by Logging.",
6306          "format": "google-datetime",
6307          "type": "string"
6308        },
6309        "trace": {
6310          "description": "Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824",
6311          "type": "string"
6312        },
6313        "traceSampled": {
6314          "description": "Optional. The sampling decision of the trace associated with the log entry.True means that the trace resource name in the trace field was sampled for storage in a trace backend. False means that the trace was not sampled for storage when this log entry was written, or the sampling decision was unknown at the time. A non-sampled trace value is still useful as a request correlation identifier. The default is False.",
6315          "type": "boolean"
6316        }
6317      },
6318      "type": "object"
6319    },
6320    "LogEntryOperation": {
6321      "description": "Additional information about a potentially long-running operation with which a log entry is associated.",
6322      "id": "LogEntryOperation",
6323      "properties": {
6324        "first": {
6325          "description": "Optional. Set this to True if this is the first log entry in the operation.",
6326          "type": "boolean"
6327        },
6328        "id": {
6329          "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.",
6330          "type": "string"
6331        },
6332        "last": {
6333          "description": "Optional. Set this to True if this is the last log entry in the operation.",
6334          "type": "boolean"
6335        },
6336        "producer": {
6337          "description": "Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for producer: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".",
6338          "type": "string"
6339        }
6340      },
6341      "type": "object"
6342    },
6343    "LogEntrySourceLocation": {
6344      "description": "Additional information about the source code location that produced the log entry.",
6345      "id": "LogEntrySourceLocation",
6346      "properties": {
6347        "file": {
6348          "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
6349          "type": "string"
6350        },
6351        "function": {
6352          "description": "Optional. Human-readable name of the function or method being invoked, with optional context such as the class or package name. This information may be used in contexts such as the logs viewer, where a file and line number are less meaningful. The format can vary by language. For example: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python).",
6353          "type": "string"
6354        },
6355        "line": {
6356          "description": "Optional. Line within the source file. 1-based; 0 indicates no line number available.",
6357          "format": "int64",
6358          "type": "string"
6359        }
6360      },
6361      "type": "object"
6362    },
6363    "LogExclusion": {
6364      "description": "Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don't apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.",
6365      "id": "LogExclusion",
6366      "properties": {
6367        "createTime": {
6368          "description": "Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.",
6369          "format": "google-datetime",
6370          "readOnly": true,
6371          "type": "string"
6372        },
6373        "description": {
6374          "description": "Optional. A description of this exclusion.",
6375          "type": "string"
6376        },
6377        "disabled": {
6378          "description": "Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.",
6379          "type": "boolean"
6380        },
6381        "filter": {
6382          "description": "Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)",
6383          "type": "string"
6384        },
6385        "name": {
6386          "description": "Required. A client-assigned identifier, such as \"load-balancer-exclusion\". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.",
6387          "type": "string"
6388        },
6389        "updateTime": {
6390          "description": "Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.",
6391          "format": "google-datetime",
6392          "readOnly": true,
6393          "type": "string"
6394        }
6395      },
6396      "type": "object"
6397    },
6398    "LogLine": {
6399      "description": "Application log line emitted while processing a request.",
6400      "id": "LogLine",
6401      "properties": {
6402        "logMessage": {
6403          "description": "App-provided log message.",
6404          "type": "string"
6405        },
6406        "severity": {
6407          "description": "Severity of this log entry.",
6408          "enum": [
6409            "DEFAULT",
6410            "DEBUG",
6411            "INFO",
6412            "NOTICE",
6413            "WARNING",
6414            "ERROR",
6415            "CRITICAL",
6416            "ALERT",
6417            "EMERGENCY"
6418          ],
6419          "enumDescriptions": [
6420            "(0) The log entry has no assigned severity level.",
6421            "(100) Debug or trace information.",
6422            "(200) Routine information, such as ongoing status or performance.",
6423            "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
6424            "(400) Warning events might cause problems.",
6425            "(500) Error events are likely to cause problems.",
6426            "(600) Critical events cause more severe problems or outages.",
6427            "(700) A person must take an action immediately.",
6428            "(800) One or more systems are unusable."
6429          ],
6430          "type": "string"
6431        },
6432        "sourceLocation": {
6433          "$ref": "SourceLocation",
6434          "description": "Where in the source code this log message was written."
6435        },
6436        "time": {
6437          "description": "Approximate time when this log entry was made.",
6438          "format": "google-datetime",
6439          "type": "string"
6440        }
6441      },
6442      "type": "object"
6443    },
6444    "LogMetric": {
6445      "description": "Describes a logs-based metric. The value of the metric is the number of log entries that match a logs filter in a given time interval.Logs-based metrics can also be used to extract values from logs and create a distribution of the values. The distribution records the statistics of the extracted values along with an optional histogram of the values as specified by the bucket options.",
6446      "id": "LogMetric",
6447      "properties": {
6448        "bucketOptions": {
6449          "$ref": "BucketOptions",
6450          "description": "Optional. The bucket_options are required when the logs-based metric is using a DISTRIBUTION value type and it describes the bucket boundaries used to create a histogram of the extracted values."
6451        },
6452        "createTime": {
6453          "description": "Output only. The creation timestamp of the metric.This field may not be present for older metrics.",
6454          "format": "google-datetime",
6455          "readOnly": true,
6456          "type": "string"
6457        },
6458        "description": {
6459          "description": "Optional. A description of this metric, which is used in documentation. The maximum length of the description is 8000 characters.",
6460          "type": "string"
6461        },
6462        "disabled": {
6463          "description": "Optional. If set to True, then this metric is disabled and it does not generate any points.",
6464          "type": "boolean"
6465        },
6466        "filter": {
6467          "description": "Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced_filters) which is used to match log entries. Example: \"resource.type=gae_app AND severity>=ERROR\" The maximum length of the filter is 20000 characters.",
6468          "type": "string"
6469        },
6470        "labelExtractors": {
6471          "additionalProperties": {
6472            "type": "string"
6473          },
6474          "description": "Optional. A map from a label key string to an extractor expression which is used to extract data from a log entry field and assign as the label value. Each label key specified in the LabelDescriptor must have an associated extractor expression in this map. The syntax of the extractor expression is the same as for the value_extractor field.The extracted value is converted to the type defined in the label descriptor. If the either the extraction or the type conversion fails, the label will have a default value. The default value for a string label is an empty string, for an integer label its 0, and for a boolean label its false.Note that there are upper bounds on the maximum number of labels and the number of active time series that are allowed in a project.",
6475          "type": "object"
6476        },
6477        "metricDescriptor": {
6478          "$ref": "MetricDescriptor",
6479          "description": "Optional. The metric descriptor associated with the logs-based metric. If unspecified, it uses a default metric descriptor with a DELTA metric kind, INT64 value type, with no labels and a unit of \"1\". Such a metric counts the number of log entries matching the filter expression.The name, type, and description fields in the metric_descriptor are output only, and is constructed using the name and description field in the LogMetric.To create a logs-based metric that records a distribution of log values, a DELTA metric kind with a DISTRIBUTION value type must be used along with a value_extractor expression in the LogMetric.Each label in the metric descriptor must have a matching label name as the key and an extractor expression as the value in the label_extractors map.The metric_kind and value_type fields in the metric_descriptor cannot be updated once initially configured. New labels can be added in the metric_descriptor, but existing labels cannot be modified except for their description."
6480        },
6481        "name": {
6482          "description": "Required. The client-assigned metric identifier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.The metric identifier in this field must not be URL-encoded (https://en.wikipedia.org/wiki/Percent-encoding). However, when the metric identifier appears as the [METRIC_ID] part of a metric_name API parameter, then the metric identifier must be URL-encoded. Example: \"projects/my-project/metrics/nginx%2Frequests\".",
6483          "type": "string"
6484        },
6485        "updateTime": {
6486          "description": "Output only. The last update timestamp of the metric.This field may not be present for older metrics.",
6487          "format": "google-datetime",
6488          "readOnly": true,
6489          "type": "string"
6490        },
6491        "valueExtractor": {
6492          "description": "Optional. A value_extractor is required when using a distribution logs-based metric to extract the values to record from a log entry. Two functions are supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex). The argument are: 1. field: The name of the log entry field from which the value is to be extracted. 2. regex: A regular expression using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group to extract data from the specified log entry field. The value of the field is converted to a string before applying the regex. It is an error to specify a regex that does not include exactly one capture group.The result of the extraction must be convertible to a double type, as the distribution always records double values. If either the extraction or the conversion to double fails, then those values are not recorded in the distribution.Example: REGEXP_EXTRACT(jsonPayload.request, \".*quantity=(\\d+).*\")",
6493          "type": "string"
6494        },
6495        "version": {
6496          "description": "Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.",
6497          "enum": [
6498            "V2",
6499            "V1"
6500          ],
6501          "enumDescriptions": [
6502            "Logging API v2.",
6503            "Logging API v1."
6504          ],
6505          "type": "string"
6506        }
6507      },
6508      "type": "object"
6509    },
6510    "LogSink": {
6511      "description": "Describes a sink used to export log entries to one of the following destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.",
6512      "id": "LogSink",
6513      "properties": {
6514        "bigqueryOptions": {
6515          "$ref": "BigQueryOptions",
6516          "description": "Optional. Options that affect sinks exporting data to BigQuery."
6517        },
6518        "createTime": {
6519          "description": "Output only. The creation timestamp of the sink.This field may not be present for older sinks.",
6520          "format": "google-datetime",
6521          "readOnly": true,
6522          "type": "string"
6523        },
6524        "description": {
6525          "description": "Optional. A description of this sink.The maximum length of the description is 8000 characters.",
6526          "type": "string"
6527        },
6528        "destination": {
6529          "description": "Required. The export destination: \"storage.googleapis.com/[GCS_BUCKET]\" \"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]\" \"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]\" The sink's writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Exporting Logs with Sinks (https://cloud.google.com/logging/docs/api/tasks/exporting-logs).",
6530          "type": "string"
6531        },
6532        "disabled": {
6533          "description": "Optional. If set to true, then this sink is disabled and it does not export any log entries.",
6534          "type": "boolean"
6535        },
6536        "exclusions": {
6537          "description": "Optional. Log entries that match any of these exclusion filters will not be exported.If a log entry is matched by both filter and one of exclusion_filters it will not be exported.",
6538          "items": {
6539            "$ref": "LogExclusion"
6540          },
6541          "type": "array"
6542        },
6543        "filter": {
6544          "description": "Optional. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=\"projects/[PROJECT_ID]/logs/[LOG_ID]\" AND severity>=ERROR",
6545          "type": "string"
6546        },
6547        "includeChildren": {
6548          "description": "Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink's parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink's parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink's filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink's parent.To only export entries from certain child projects, filter on the project part of the log name:logName:(\"projects/test-project1/\" OR \"projects/test-project2/\") AND resource.type=gce_instance",
6549          "type": "boolean"
6550        },
6551        "name": {
6552          "description": "Required. The client-assigned sink identifier, unique within the project.For example: \"my-syslog-errors-to-pubsub\". Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods. First character has to be alphanumeric.",
6553          "type": "string"
6554        },
6555        "outputVersionFormat": {
6556          "description": "Deprecated. This field is unused.",
6557          "enum": [
6558            "VERSION_FORMAT_UNSPECIFIED",
6559            "V2",
6560            "V1"
6561          ],
6562          "enumDescriptions": [
6563            "An unspecified format version that will default to V2.",
6564            "LogEntry version 2 format.",
6565            "LogEntry version 1 format."
6566          ],
6567          "type": "string"
6568        },
6569        "updateTime": {
6570          "description": "Output only. The last update timestamp of the sink.This field may not be present for older sinks.",
6571          "format": "google-datetime",
6572          "readOnly": true,
6573          "type": "string"
6574        },
6575        "writerIdentity": {
6576          "description": "Output only. An IAM identity\u2014a service account or group\u2014under which Cloud Logging writes the exported log entries to the sink's destination. This field is set by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Granting Access for a Resource (https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service's documentation to determine the appropriate IAM roles to assign to the identity.Sinks that have a destination that is a log bucket in the same project as the sink do not have a writer_identity and no additional permissions are required.",
6577          "readOnly": true,
6578          "type": "string"
6579        }
6580      },
6581      "type": "object"
6582    },
6583    "LogView": {
6584      "description": "Describes a view over log entries in a bucket.",
6585      "id": "LogView",
6586      "properties": {
6587        "createTime": {
6588          "description": "Output only. The creation timestamp of the view.",
6589          "format": "google-datetime",
6590          "readOnly": true,
6591          "type": "string"
6592        },
6593        "description": {
6594          "description": "Describes this view.",
6595          "type": "string"
6596        },
6597        "filter": {
6598          "description": "Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(\"projects/myproject\") AND resource.type = \"gce_instance\" AND LOG_ID(\"stdout\")",
6599          "type": "string"
6600        },
6601        "name": {
6602          "description": "The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view",
6603          "type": "string"
6604        },
6605        "updateTime": {
6606          "description": "Output only. The last update timestamp of the view.",
6607          "format": "google-datetime",
6608          "readOnly": true,
6609          "type": "string"
6610        }
6611      },
6612      "type": "object"
6613    },
6614    "MetricDescriptor": {
6615      "description": "Defines a metric type and its schema. Once a metric descriptor is created, deleting or altering it stops data collection and makes the metric type's existing data unusable.",
6616      "id": "MetricDescriptor",
6617      "properties": {
6618        "description": {
6619          "description": "A detailed description of the metric, which can be used in documentation.",
6620          "type": "string"
6621        },
6622        "displayName": {
6623          "description": "A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example \"Request count\". This field is optional but it is recommended to be set for any metrics associated with user-visible concepts, such as Quota.",
6624          "type": "string"
6625        },
6626        "labels": {
6627          "description": "The set of labels that can be used to describe a specific instance of this metric type. For example, the appengine.googleapis.com/http/server/response_latencies metric type has a label for the HTTP response code, response_code, so you can look at latencies for successful responses or just for responses that failed.",
6628          "items": {
6629            "$ref": "LabelDescriptor"
6630          },
6631          "type": "array"
6632        },
6633        "launchStage": {
6634          "description": "Optional. The launch stage of the metric definition.",
6635          "enum": [
6636            "LAUNCH_STAGE_UNSPECIFIED",
6637            "UNIMPLEMENTED",
6638            "PRELAUNCH",
6639            "EARLY_ACCESS",
6640            "ALPHA",
6641            "BETA",
6642            "GA",
6643            "DEPRECATED"
6644          ],
6645          "enumDescriptions": [
6646            "Do not use this default value.",
6647            "The feature is not yet implemented. Users can not use it.",
6648            "Prelaunch features are hidden from users and are only visible internally.",
6649            "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.",
6650            "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don\u2019t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.",
6651            "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.",
6652            "GA features are open to all developers and are considered stable and fully qualified for production use.",
6653            "Deprecated features are scheduled to be shut down and removed. For more information, see the \u201cDeprecation Policy\u201d section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation."
6654          ],
6655          "type": "string"
6656        },
6657        "metadata": {
6658          "$ref": "MetricDescriptorMetadata",
6659          "description": "Optional. Metadata which can be used to guide usage of the metric."
6660        },
6661        "metricKind": {
6662          "description": "Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metric_kind and value_type might not be supported.",
6663          "enum": [
6664            "METRIC_KIND_UNSPECIFIED",
6665            "GAUGE",
6666            "DELTA",
6667            "CUMULATIVE"
6668          ],
6669          "enumDescriptions": [
6670            "Do not use this default value.",
6671            "An instantaneous measurement of a value.",
6672            "The change in a value during a time interval.",
6673            "A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points."
6674          ],
6675          "type": "string"
6676        },
6677        "monitoredResourceTypes": {
6678          "description": "Read-only. If present, then a time series, which is identified partially by a metric type and a MonitoredResourceDescriptor, that is associated with this metric type can only be associated with one of the monitored resource types listed here.",
6679          "items": {
6680            "type": "string"
6681          },
6682          "type": "array"
6683        },
6684        "name": {
6685          "description": "The resource name of the metric descriptor.",
6686          "type": "string"
6687        },
6688        "type": {
6689          "description": "The metric type, including its DNS name prefix. The type is not URL-encoded. All user-defined metric types have the DNS name custom.googleapis.com or external.googleapis.com. Metric types should use a natural hierarchical grouping. For example: \"custom.googleapis.com/invoice/paid/amount\" \"external.googleapis.com/prometheus/up\" \"appengine.googleapis.com/http/server/response_latencies\" ",
6690          "type": "string"
6691        },
6692        "unit": {
6693          "description": "The units in which the metric value is reported. It is only applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The unit defines the representation of the stored metric values.Different systems might scale the values to be more easily displayed (so a value of 0.02kBy might be displayed as 20By, and a value of 3523kBy might be displayed as 3.5MBy). However, if the unit is kBy, then the value of the metric is always in thousands of bytes, no matter how it might be displayed.If you want a custom metric to record the exact number of CPU-seconds used by a job, you can create an INT64 CUMULATIVE metric whose unit is s{CPU} (or equivalently 1s{CPU} or just s). If the job uses 12,005 CPU-seconds, then the value is written as 12005.Alternatively, if you want a custom metric to record data in a more granular way, you can create a DOUBLE CUMULATIVE metric whose unit is ks{CPU}, and then write the value 12.005 (which is 12005/1000), or use Kis{CPU} and write 11.723 (which is 12005/1024).The supported units are a subset of The Unified Code for Units of Measure (https://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) bit bit By byte s second min minute h hour d day 1 dimensionlessPrefixes (PREFIX) k kilo (10^3) M mega (10^6) G giga (10^9) T tera (10^12) P peta (10^15) E exa (10^18) Z zetta (10^21) Y yotta (10^24) m milli (10^-3) u micro (10^-6) n nano (10^-9) p pico (10^-12) f femto (10^-15) a atto (10^-18) z zepto (10^-21) y yocto (10^-24) Ki kibi (2^10) Mi mebi (2^20) Gi gibi (2^30) Ti tebi (2^40) Pi pebi (2^50)GrammarThe grammar also includes these connectors: / division or ratio (as an infix operator). For examples, kBy/{email} or MiBy/10ms (although you should almost never have /s in a metric unit; rates should always be computed at query time from the underlying cumulative or delta value). . multiplication or composition (as an infix operator). For examples, GBy.d or k{watt}.h.The grammar for a unit is as follows: Expression = Component { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: Annotation is just a comment if it follows a UNIT. If the annotation is used alone, then the unit is equivalent to 1. For examples, {request}/s == 1/s, By{transmitted}/s == By/s. NAME is a sequence of non-blank printable ASCII characters not containing { or }. 1 represents a unitary dimensionless unit (https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in 1/s. It is typically used when none of the basic units are appropriate. For example, \"new users per day\" can be represented as 1/d or {new-users}/d (and a metric value 5 would mean \"5 new users). Alternatively, \"thousands of page views per day\" would be represented as 1000/d or k1/d or k{page_views}/d (and a metric value of 5.3 would mean \"5300 page views per day\"). % represents dimensionless value of 1/100, and annotates values giving a percentage (so the metric values are typically in the range of 0..100, and a metric value 3 means \"3 percent\"). 10^2.% indicates a metric contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value 0.03 means \"3 percent\").",
6694          "type": "string"
6695        },
6696        "valueType": {
6697          "description": "Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported.",
6698          "enum": [
6699            "VALUE_TYPE_UNSPECIFIED",
6700            "BOOL",
6701            "INT64",
6702            "DOUBLE",
6703            "STRING",
6704            "DISTRIBUTION",
6705            "MONEY"
6706          ],
6707          "enumDescriptions": [
6708            "Do not use this default value.",
6709            "The value is a boolean. This value type can be used only if the metric kind is GAUGE.",
6710            "The value is a signed 64-bit integer.",
6711            "The value is a double precision floating point number.",
6712            "The value is a text string. This value type can be used only if the metric kind is GAUGE.",
6713            "The value is a Distribution.",
6714            "The value is money."
6715          ],
6716          "type": "string"
6717        }
6718      },
6719      "type": "object"
6720    },
6721    "MetricDescriptorMetadata": {
6722      "description": "Additional annotations that can be used to guide the usage of a metric.",
6723      "id": "MetricDescriptorMetadata",
6724      "properties": {
6725        "ingestDelay": {
6726          "description": "The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.",
6727          "format": "google-duration",
6728          "type": "string"
6729        },
6730        "launchStage": {
6731          "description": "Deprecated. Must use the MetricDescriptor.launch_stage instead.",
6732          "enum": [
6733            "LAUNCH_STAGE_UNSPECIFIED",
6734            "UNIMPLEMENTED",
6735            "PRELAUNCH",
6736            "EARLY_ACCESS",
6737            "ALPHA",
6738            "BETA",
6739            "GA",
6740            "DEPRECATED"
6741          ],
6742          "enumDescriptions": [
6743            "Do not use this default value.",
6744            "The feature is not yet implemented. Users can not use it.",
6745            "Prelaunch features are hidden from users and are only visible internally.",
6746            "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.",
6747            "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don\u2019t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.",
6748            "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.",
6749            "GA features are open to all developers and are considered stable and fully qualified for production use.",
6750            "Deprecated features are scheduled to be shut down and removed. For more information, see the \u201cDeprecation Policy\u201d section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation."
6751          ],
6752          "type": "string"
6753        },
6754        "samplePeriod": {
6755          "description": "The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.",
6756          "format": "google-duration",
6757          "type": "string"
6758        }
6759      },
6760      "type": "object"
6761    },
6762    "MonitoredResource": {
6763      "description": "An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\": { \"type\": \"gce_instance\", \"labels\": { \"instance_id\": \"12345678901234\", \"zone\": \"us-central1-a\" }} ",
6764      "id": "MonitoredResource",
6765      "properties": {
6766        "labels": {
6767          "additionalProperties": {
6768            "type": "string"
6769          },
6770          "description": "Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels \"project_id\", \"instance_id\", and \"zone\".",
6771          "type": "object"
6772        },
6773        "type": {
6774          "description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance.",
6775          "type": "string"
6776        }
6777      },
6778      "type": "object"
6779    },
6780    "MonitoredResourceDescriptor": {
6781      "description": "An object that describes the schema of a MonitoredResource object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of \"gce_instance\" and specifies the use of the labels \"instance_id\" and \"zone\" to identify particular VM instances.Different APIs can support different monitored resource types. APIs generally provide a list method that returns the monitored resource descriptors used by the API.",
6782      "id": "MonitoredResourceDescriptor",
6783      "properties": {
6784        "description": {
6785          "description": "Optional. A detailed description of the monitored resource type that might be used in documentation.",
6786          "type": "string"
6787        },
6788        "displayName": {
6789          "description": "Optional. A concise name for the monitored resource type that might be displayed in user interfaces. It should be a Title Cased Noun Phrase, without any article or other determiners. For example, \"Google Cloud SQL Database\".",
6790          "type": "string"
6791        },
6792        "labels": {
6793          "description": "Required. A set of labels used to describe instances of this monitored resource type. For example, an individual Google Cloud SQL database is identified by values for the labels \"database_id\" and \"zone\".",
6794          "items": {
6795            "$ref": "LabelDescriptor"
6796          },
6797          "type": "array"
6798        },
6799        "launchStage": {
6800          "description": "Optional. The launch stage of the monitored resource definition.",
6801          "enum": [
6802            "LAUNCH_STAGE_UNSPECIFIED",
6803            "UNIMPLEMENTED",
6804            "PRELAUNCH",
6805            "EARLY_ACCESS",
6806            "ALPHA",
6807            "BETA",
6808            "GA",
6809            "DEPRECATED"
6810          ],
6811          "enumDescriptions": [
6812            "Do not use this default value.",
6813            "The feature is not yet implemented. Users can not use it.",
6814            "Prelaunch features are hidden from users and are only visible internally.",
6815            "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.",
6816            "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don\u2019t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.",
6817            "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.",
6818            "GA features are open to all developers and are considered stable and fully qualified for production use.",
6819            "Deprecated features are scheduled to be shut down and removed. For more information, see the \u201cDeprecation Policy\u201d section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation."
6820          ],
6821          "type": "string"
6822        },
6823        "name": {
6824          "description": "Optional. The resource name of the monitored resource descriptor: \"projects/{project_id}/monitoredResourceDescriptors/{type}\" where {type} is the value of the type field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format \"monitoredResourceDescriptors/{type}\".",
6825          "type": "string"
6826        },
6827        "type": {
6828          "description": "Required. The monitored resource type. For example, the type \"cloudsql_database\" represents databases in Google Cloud SQL. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).",
6829          "type": "string"
6830        }
6831      },
6832      "type": "object"
6833    },
6834    "MonitoredResourceMetadata": {
6835      "description": "Auxiliary metadata for a MonitoredResource object. MonitoredResource objects contain the minimum set of information to uniquely identify a monitored resource instance. There is some other useful auxiliary metadata. Monitoring and Logging use an ingestion pipeline to extract metadata for cloud resources of all types, and store the metadata in this message.",
6836      "id": "MonitoredResourceMetadata",
6837      "properties": {
6838        "systemLabels": {
6839          "additionalProperties": {
6840            "description": "Properties of the object.",
6841            "type": "any"
6842          },
6843          "description": "Output only. Values for predefined system metadata labels. System labels are a kind of metadata extracted by Google, including \"machine_image\", \"vpc\", \"subnet_id\", \"security_group\", \"name\", etc. System label values can be only strings, Boolean values, or a list of strings. For example: { \"name\": \"my-test-instance\", \"security_group\": [\"a\", \"b\", \"c\"], \"spot_instance\": false } ",
6844          "type": "object"
6845        },
6846        "userLabels": {
6847          "additionalProperties": {
6848            "type": "string"
6849          },
6850          "description": "Output only. A map of user-defined metadata labels.",
6851          "type": "object"
6852        }
6853      },
6854      "type": "object"
6855    },
6856    "Operation": {
6857      "description": "This resource represents a long-running operation that is the result of a network API call.",
6858      "id": "Operation",
6859      "properties": {
6860        "done": {
6861          "description": "If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.",
6862          "type": "boolean"
6863        },
6864        "error": {
6865          "$ref": "Status",
6866          "description": "The error result of the operation in case of failure or cancellation."
6867        },
6868        "metadata": {
6869          "additionalProperties": {
6870            "description": "Properties of the object. Contains field @type with type URL.",
6871            "type": "any"
6872          },
6873          "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
6874          "type": "object"
6875        },
6876        "name": {
6877          "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.",
6878          "type": "string"
6879        },
6880        "response": {
6881          "additionalProperties": {
6882            "description": "Properties of the object. Contains field @type with type URL.",
6883            "type": "any"
6884          },
6885          "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.",
6886          "type": "object"
6887        }
6888      },
6889      "type": "object"
6890    },
6891    "RequestLog": {
6892      "description": "Complete log information about a single HTTP request to an App Engine application.",
6893      "id": "RequestLog",
6894      "properties": {
6895        "appEngineRelease": {
6896          "description": "App Engine release version.",
6897          "type": "string"
6898        },
6899        "appId": {
6900          "description": "Application that handled this request.",
6901          "type": "string"
6902        },
6903        "cost": {
6904          "description": "An indication of the relative cost of serving this request.",
6905          "format": "double",
6906          "type": "number"
6907        },
6908        "endTime": {
6909          "description": "Time when the request finished.",
6910          "format": "google-datetime",
6911          "type": "string"
6912        },
6913        "finished": {
6914          "description": "Whether this request is finished or active.",
6915          "type": "boolean"
6916        },
6917        "first": {
6918          "description": "Whether this is the first RequestLog entry for this request. If an active request has several RequestLog entries written to Stackdriver Logging, then this field will be set for one of them.",
6919          "type": "boolean"
6920        },
6921        "host": {
6922          "description": "Internet host and port number of the resource being requested.",
6923          "type": "string"
6924        },
6925        "httpVersion": {
6926          "description": "HTTP version of request. Example: \"HTTP/1.1\".",
6927          "type": "string"
6928        },
6929        "instanceId": {
6930          "description": "An identifier for the instance that handled the request.",
6931          "type": "string"
6932        },
6933        "instanceIndex": {
6934          "description": "If the instance processing this request belongs to a manually scaled module, then this is the 0-based index of the instance. Otherwise, this value is -1.",
6935          "format": "int32",
6936          "type": "integer"
6937        },
6938        "ip": {
6939          "description": "Origin IP address.",
6940          "type": "string"
6941        },
6942        "latency": {
6943          "description": "Latency of the request.",
6944          "format": "google-duration",
6945          "type": "string"
6946        },
6947        "line": {
6948          "description": "A list of log lines emitted by the application while serving this request.",
6949          "items": {
6950            "$ref": "LogLine"
6951          },
6952          "type": "array"
6953        },
6954        "megaCycles": {
6955          "description": "Number of CPU megacycles used to process request.",
6956          "format": "int64",
6957          "type": "string"
6958        },
6959        "method": {
6960          "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
6961          "type": "string"
6962        },
6963        "moduleId": {
6964          "description": "Module of the application that handled this request.",
6965          "type": "string"
6966        },
6967        "nickname": {
6968          "description": "The logged-in user who made the request.Most likely, this is the part of the user's email before the @ sign. The field value is the same for different requests from the same user, but different users can have similar names. This information is also available to the application via the App Engine Users API.This field will be populated starting with App Engine 1.9.21.",
6969          "type": "string"
6970        },
6971        "pendingTime": {
6972          "description": "Time this request spent in the pending request queue.",
6973          "format": "google-duration",
6974          "type": "string"
6975        },
6976        "referrer": {
6977          "description": "Referrer URL of request.",
6978          "type": "string"
6979        },
6980        "requestId": {
6981          "description": "Globally unique identifier for a request, which is based on the request start time. Request IDs for requests which started later will compare greater as strings than those for requests which started earlier.",
6982          "type": "string"
6983        },
6984        "resource": {
6985          "description": "Contains the path and query portion of the URL that was requested. For example, if the URL was \"http://example.com/app?name=val\", the resource would be \"/app?name=val\". The fragment identifier, which is identified by the # character, is not included.",
6986          "type": "string"
6987        },
6988        "responseSize": {
6989          "description": "Size in bytes sent back to client by request.",
6990          "format": "int64",
6991          "type": "string"
6992        },
6993        "sourceReference": {
6994          "description": "Source code for the application that handled this request. There can be more than one source reference per deployed application if source code is distributed among multiple repositories.",
6995          "items": {
6996            "$ref": "SourceReference"
6997          },
6998          "type": "array"
6999        },
7000        "startTime": {
7001          "description": "Time when the request started.",
7002          "format": "google-datetime",
7003          "type": "string"
7004        },
7005        "status": {
7006          "description": "HTTP response status code. Example: 200, 404.",
7007          "format": "int32",
7008          "type": "integer"
7009        },
7010        "taskName": {
7011          "description": "Task name of the request, in the case of an offline request.",
7012          "type": "string"
7013        },
7014        "taskQueueName": {
7015          "description": "Queue name of the request, in the case of an offline request.",
7016          "type": "string"
7017        },
7018        "traceId": {
7019          "description": "Stackdriver Trace identifier for this request.",
7020          "type": "string"
7021        },
7022        "traceSampled": {
7023          "description": "If true, the value in the 'trace_id' field was sampled for storage in a trace backend.",
7024          "type": "boolean"
7025        },
7026        "urlMapEntry": {
7027          "description": "File or class that handled the request.",
7028          "type": "string"
7029        },
7030        "userAgent": {
7031          "description": "User agent that made the request.",
7032          "type": "string"
7033        },
7034        "versionId": {
7035          "description": "Version of the application that handled this request.",
7036          "type": "string"
7037        },
7038        "wasLoadingRequest": {
7039          "description": "Whether this was a loading request for the instance.",
7040          "type": "boolean"
7041        }
7042      },
7043      "type": "object"
7044    },
7045    "SourceLocation": {
7046      "description": "Specifies a location in a source code file.",
7047      "id": "SourceLocation",
7048      "properties": {
7049        "file": {
7050          "description": "Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
7051          "type": "string"
7052        },
7053        "functionName": {
7054          "description": "Human-readable name of the function or method being invoked, with optional context such as the class or package name. This information is used in contexts such as the logs viewer, where a file and line number are less meaningful. The format can vary by language. For example: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python).",
7055          "type": "string"
7056        },
7057        "line": {
7058          "description": "Line within the source file.",
7059          "format": "int64",
7060          "type": "string"
7061        }
7062      },
7063      "type": "object"
7064    },
7065    "SourceReference": {
7066      "description": "A reference to a particular snapshot of the source tree used to build and deploy an application.",
7067      "id": "SourceReference",
7068      "properties": {
7069        "repository": {
7070          "description": "Optional. A URI string identifying the repository. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
7071          "type": "string"
7072        },
7073        "revisionId": {
7074          "description": "The canonical and persistent identifier of the deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"",
7075          "type": "string"
7076        }
7077      },
7078      "type": "object"
7079    },
7080    "Status": {
7081      "description": "The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).",
7082      "id": "Status",
7083      "properties": {
7084        "code": {
7085          "description": "The status code, which should be an enum value of google.rpc.Code.",
7086          "format": "int32",
7087          "type": "integer"
7088        },
7089        "details": {
7090          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
7091          "items": {
7092            "additionalProperties": {
7093              "description": "Properties of the object. Contains field @type with type URL.",
7094              "type": "any"
7095            },
7096            "type": "object"
7097          },
7098          "type": "array"
7099        },
7100        "message": {
7101          "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
7102          "type": "string"
7103        }
7104      },
7105      "type": "object"
7106    },
7107    "SuppressionInfo": {
7108      "description": "Information about entries that were omitted from the session.",
7109      "id": "SuppressionInfo",
7110      "properties": {
7111        "reason": {
7112          "description": "The reason that entries were omitted from the session.",
7113          "enum": [
7114            "REASON_UNSPECIFIED",
7115            "RATE_LIMIT",
7116            "NOT_CONSUMED"
7117          ],
7118          "enumDescriptions": [
7119            "Unexpected default.",
7120            "Indicates suppression occurred due to relevant entries being received in excess of rate limits. For quotas and limits, see Logging API quotas and limits (https://cloud.google.com/logging/quotas#api-limits).",
7121            "Indicates suppression occurred due to the client not consuming responses quickly enough."
7122          ],
7123          "type": "string"
7124        },
7125        "suppressedCount": {
7126          "description": "A lower bound on the count of entries omitted due to reason.",
7127          "format": "int32",
7128          "type": "integer"
7129        }
7130      },
7131      "type": "object"
7132    },
7133    "TailLogEntriesRequest": {
7134      "description": "The parameters to TailLogEntries.",
7135      "id": "TailLogEntriesRequest",
7136      "properties": {
7137        "bufferWindow": {
7138          "description": "Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.",
7139          "format": "google-duration",
7140          "type": "string"
7141        },
7142        "filter": {
7143          "description": "Optional. A filter that chooses which log entries to return. See Advanced Logs Filters (https://cloud.google.com/logging/docs/view/advanced_filters). Only log entries that match the filter are returned. An empty filter matches all log entries in the resources listed in resource_names. Referencing a parent resource that is not in resource_names will cause the filter to return no results. The maximum length of the filter is 20000 characters.",
7144          "type": "string"
7145        },
7146        "resourceNames": {
7147          "description": "Required. Name of a parent resource from which to retrieve log entries: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]",
7148          "items": {
7149            "type": "string"
7150          },
7151          "type": "array"
7152        }
7153      },
7154      "type": "object"
7155    },
7156    "TailLogEntriesResponse": {
7157      "description": "Result returned from TailLogEntries.",
7158      "id": "TailLogEntriesResponse",
7159      "properties": {
7160        "entries": {
7161          "description": "A list of log entries. Each response in the stream will order entries with increasing values of LogEntry.timestamp. Ordering is not guaranteed between separate responses.",
7162          "items": {
7163            "$ref": "LogEntry"
7164          },
7165          "type": "array"
7166        },
7167        "suppressionInfo": {
7168          "description": "If entries that otherwise would have been included in the session were not sent back to the client, counts of relevant entries omitted from the session with the reason that they were not included. There will be at most one of each reason per response. The counts represent the number of suppressed entries since the last streamed response.",
7169          "items": {
7170            "$ref": "SuppressionInfo"
7171          },
7172          "type": "array"
7173        }
7174      },
7175      "type": "object"
7176    },
7177    "UndeleteBucketRequest": {
7178      "description": "The parameters to UndeleteBucket.",
7179      "id": "UndeleteBucketRequest",
7180      "properties": {},
7181      "type": "object"
7182    },
7183    "WriteLogEntriesRequest": {
7184      "description": "The parameters to WriteLogEntries.",
7185      "id": "WriteLogEntriesRequest",
7186      "properties": {
7187        "dryRun": {
7188          "description": "Optional. If true, the request should expect normal response, but the entries won't be persisted nor exported. Useful for checking whether the logging API endpoints are working properly before sending valuable data.",
7189          "type": "boolean"
7190        },
7191        "entries": {
7192          "description": "Required. The log entries to send to Logging. The order of log entries in this list does not matter. Values supplied in this method's log_name, resource, and labels fields are copied into those log entries in this list that do not include values for their corresponding fields. For more information, see the LogEntry type.If the timestamp or insert_id fields are missing in log entries, then this method supplies the current time or a unique identifier, respectively. The supplied values are chosen so that, among the log entries that did not supply their own values, the entries earlier in the list will sort before the entries later in the list. See the entries.list method.Log entries with timestamps that are more than the logs retention period (https://cloud.google.com/logging/quotas) in the past or more than 24 hours in the future will not be available when calling entries.list. However, those log entries can still be exported with LogSinks (https://cloud.google.com/logging/docs/api/tasks/exporting-logs).To improve throughput and to avoid exceeding the quota limit (https://cloud.google.com/logging/quotas) for calls to entries.write, you should try to include several log entries in this list, rather than calling this method for each individual log entry.",
7193          "items": {
7194            "$ref": "LogEntry"
7195          },
7196          "type": "array"
7197        },
7198        "labels": {
7199          "additionalProperties": {
7200            "type": "string"
7201          },
7202          "description": "Optional. Default labels that are added to the labels field of all log entries in entries. If a log entry already has a label with the same key as a label in this parameter, then the log entry's label is not changed. See LogEntry.",
7203          "type": "object"
7204        },
7205        "logName": {
7206          "description": "Optional. A default log resource name that is assigned to all log entries in entries that do not specify a value for log_name: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID] billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example: \"projects/my-project-id/logs/syslog\" \"organizations/123/logs/cloudaudit.googleapis.com%2Factivity\" The permission logging.logEntries.create is needed on each project, organization, billing account, or folder that is receiving new log entries, whether the resource is specified in logName or in an individual log entry.",
7207          "type": "string"
7208        },
7209        "partialSuccess": {
7210          "description": "Optional. Whether valid entries should be written even if some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not written, then the response status is the error associated with one of the failed entries and the response includes error details keyed by the entries' zero-based index in the entries.write method.",
7211          "type": "boolean"
7212        },
7213        "resource": {
7214          "$ref": "MonitoredResource",
7215          "description": "Optional. A default monitored resource object that is assigned to all log entries in entries that do not specify a value for resource. Example: { \"type\": \"gce_instance\", \"labels\": { \"zone\": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }} See LogEntry."
7216        }
7217      },
7218      "type": "object"
7219    },
7220    "WriteLogEntriesResponse": {
7221      "description": "Result returned from WriteLogEntries.",
7222      "id": "WriteLogEntriesResponse",
7223      "properties": {},
7224      "type": "object"
7225    }
7226  },
7227  "servicePath": "",
7228  "title": "Cloud Logging API",
7229  "version": "v2",
7230  "version_module": true
7231}