on develop help sign in
Updating logging service definition
0e443d0Brendan Hay
gen/model/logging/v2/logging-api.json+1842−1256
@@ -1,848 +1,311 @@
1{
1{
2− "id": "logging:v2",
2+ "discoveryVersion": "v1",
3− "auth": {
3+ "version_module": "True",
4− "oauth2": {
4+ "schemas": {
5− "scopes": {
5+ "MonitoredResource": {
6− "https://www.googleapis.com/auth/cloud-platform": {
6+ "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\":\n{ \"type\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}\n",
7− "description": "View and manage your data across Google Cloud Platform services"
7+ "type": "object",
8+ "properties": {
9+ "type": {
10+ "description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL database is \"cloudsql_database\".",
11+ "type": "string"
8 },
12 },
9− "https://www.googleapis.com/auth/cloud-platform.read-only": {
13+ "labels": {
10− "description": "View your data across Google Cloud Platform services"
14+ "type": "object",
15+ "additionalProperties": {
16+ "type": "string"
17+ },
18+ "description": "Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Cloud SQL databases use the labels \"database_id\" and \"zone\"."
19+ }
20+ },
21+ "id": "MonitoredResource"
22+ },
23+ "WriteLogEntriesRequest": {
24+ "type": "object",
25+ "properties": {
26+ "resource": {
27+ "$ref": "MonitoredResource",
28+ "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:\n{ \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\nSee LogEntry."
11 },
29 },
12− "https://www.googleapis.com/auth/logging.read": {
30+ "logName": {
13− "description": "View log data for your projects"
31+ "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:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
32+ "type": "string"
14 },
33 },
15− "https://www.googleapis.com/auth/logging.write": {
34+ "entries": {
16− "description": "Submit log data for your projects"
35+ "description": "Required. The log entries to write. Values supplied for the fields log_name, resource, and labels in this entries.write request are added to those log entries that do not provide their own values for the fields.To improve throughput and to avoid exceeding the quota limit for calls to entries.write, you should write multiple log entries at once rather than calling this method for each individual log entry.",
36+ "type": "array",
37+ "items": {
38+ "$ref": "LogEntry"
39+ }
17 },
40 },
18− "https://www.googleapis.com/auth/logging.admin": {
41+ "partialSuccess": {
19− "description": "Administrate log data for your projects"
42+ "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, the response status will be the error associated with one of the failed entries and include error details in the form of WriteLogEntriesPartialErrors.",
43+ "type": "boolean"
44+ },
45+ "labels": {
46+ "type": "object",
47+ "additionalProperties": {
48+ "type": "string"
49+ },
50+ "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."
20 }
51 }
21− }
52+ },
22− }
53+ "id": "WriteLogEntriesRequest",
23− },
54+ "description": "The parameters to WriteLogEntries."
24− "description": "Writes log entries and manages your Stackdriver Logging configuration.",
55+ },
25− "protocol": "rest",
56+ "LogSink": {
26− "title": "Stackdriver Logging API",
57+ "type": "object",
27− "resources": {
58+ "properties": {
28− "projects": {
59+ "name": {
29− "resources": {
60+ "description": "Required. The client-assigned sink identifier, unique within the project. 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.",
30− "metrics": {
31− "methods": {
32− "update": {
33− "id": "logging.projects.metrics.update",
34− "response": {
35− "$ref": "LogMetric"
36− },
37− "parameterOrder": [
38− "metricName"
39− ],
40− "description": "Creates or updates a logs-based metric.",
41− "request": {
42− "$ref": "LogMetric"
43− },
44− "flatPath": "v2/projects/{projectsId}/metrics/{metricsId}",
45− "httpMethod": "PUT",
46− "parameters": {
47− "metricName": {
48− "description": "The resource name of the metric to update.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.\n\nThe updated metric must be provided in the request and have the\nsame identifier that is specified in `metricName`.\nIf the metric does not exist, it is created.",
49− "required": true,
50− "pattern": "^projects/[^/]+/metrics/[^/]+$",
51− "location": "path",
52− "type": "string"
53− }
54− },
55− "path": "v2/{+metricName}",
56− "scopes": [
57− "https://www.googleapis.com/auth/cloud-platform",
58− "https://www.googleapis.com/auth/logging.admin",
59− "https://www.googleapis.com/auth/logging.write"
60− ]
61− },
62− "get": {
63− "id": "logging.projects.metrics.get",
64− "response": {
65− "$ref": "LogMetric"
66− },
67− "parameterOrder": [
68− "metricName"
69− ],
70− "description": "Gets a logs-based metric.",
71− "flatPath": "v2/projects/{projectsId}/metrics/{metricsId}",
72− "httpMethod": "GET",
73− "parameters": {
74− "metricName": {
75− "description": "The resource name of the desired metric.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.",
76− "required": true,
77− "pattern": "^projects/[^/]+/metrics/[^/]+$",
78− "location": "path",
79− "type": "string"
80− }
81− },
82− "path": "v2/{+metricName}",
83− "scopes": [
84− "https://www.googleapis.com/auth/cloud-platform",
85− "https://www.googleapis.com/auth/cloud-platform.read-only",
86− "https://www.googleapis.com/auth/logging.admin",
87− "https://www.googleapis.com/auth/logging.read"
88− ]
89− },
90− "create": {
91− "id": "logging.projects.metrics.create",
92− "response": {
93− "$ref": "LogMetric"
94− },
95− "parameterOrder": [
96− "parent"
97− ],
98− "description": "Creates a logs-based metric.",
99− "request": {
100− "$ref": "LogMetric"
101− },
102− "flatPath": "v2/projects/{projectsId}/metrics",
103− "httpMethod": "POST",
104− "parameters": {
105− "parent": {
106− "description": "The resource name of the project in which to create the metric.\nExample: `\"projects/my-project-id\"`.\n\nThe new metric must be provided in the request.",
107− "required": true,
108− "pattern": "^projects/[^/]+$",
109− "location": "path",
110− "type": "string"
111− }
112− },
113− "path": "v2/{+parent}/metrics",
114− "scopes": [
115− "https://www.googleapis.com/auth/cloud-platform",
116− "https://www.googleapis.com/auth/logging.admin",
117− "https://www.googleapis.com/auth/logging.write"
118− ]
119− },
120− "list": {
121− "id": "logging.projects.metrics.list",
122− "response": {
123− "$ref": "ListLogMetricsResponse"
124− },
125− "parameterOrder": [
126− "parent"
127− ],
128− "description": "Lists logs-based metrics.",
129− "flatPath": "v2/projects/{projectsId}/metrics",
130− "httpMethod": "GET",
131− "parameters": {
132− "pageSize": {
133− "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.",
134− "location": "query",
135− "type": "integer",
136− "format": "int32"
137− },
138− "parent": {
139− "description": "Required. The resource name containing the metrics.\nExample: `\"projects/my-project-id\"`.",
140− "required": true,
141− "pattern": "^projects/[^/]+$",
142− "location": "path",
143− "type": "string"
144− },
145− "pageToken": {
146− "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
147− "location": "query",
148− "type": "string"
149− }
150− },
151− "path": "v2/{+parent}/metrics",
152− "scopes": [
153− "https://www.googleapis.com/auth/cloud-platform",
154− "https://www.googleapis.com/auth/cloud-platform.read-only",
155− "https://www.googleapis.com/auth/logging.admin",
156− "https://www.googleapis.com/auth/logging.read"
157− ]
158− },
159− "delete": {
160− "id": "logging.projects.metrics.delete",
161− "response": {
162− "$ref": "Empty"
163− },
164− "parameterOrder": [
165− "metricName"
166− ],
167− "description": "Deletes a logs-based metric.",
168− "flatPath": "v2/projects/{projectsId}/metrics/{metricsId}",
169− "httpMethod": "DELETE",
170− "parameters": {
171− "metricName": {
172− "description": "The resource name of the metric to delete.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.",
173− "required": true,
174− "pattern": "^projects/[^/]+/metrics/[^/]+$",
175− "location": "path",
176− "type": "string"
61+ "type": "string"
177− }
178− },
179− "path": "v2/{+metricName}",
180− "scopes": [
181− "https://www.googleapis.com/auth/cloud-platform",
182− "https://www.googleapis.com/auth/logging.admin",
183− "https://www.googleapis.com/auth/logging.write"
184− ]
185− }
186− }
187 },
62 },
188− "logs": {
63+ "filter": {
189− "methods": {
64+ "description": "Optional. An advanced logs filter. The only exported log entries are those that are in the resource owning the sink and that match the filter. The filter must use the log entry format specified by the output_version_format parameter. For example, in the v2 format:\nlogName=\"projects/[PROJECT_ID]/logs/[LOG_ID]\" AND severity\u003e=ERROR\n",
190− "delete": {
191− "id": "logging.projects.logs.delete",
192− "response": {
193− "$ref": "Empty"
194− },
195− "parameterOrder": [
196− "logName"
197− ],
198− "description": "Deletes a log and all its log entries.\nThe log will reappear if it receives new entries.",
199− "flatPath": "v2/projects/{projectsId}/logs/{logsId}",
200− "httpMethod": "DELETE",
201− "parameters": {
202− "logName": {
203− "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.",
204− "required": true,
205− "pattern": "^projects/[^/]+/logs/[^/]+$",
206− "location": "path",
207− "type": "string"
65+ "type": "string"
208− }
209− },
210− "path": "v2/{+logName}",
211− "scopes": [
212− "https://www.googleapis.com/auth/cloud-platform",
213− "https://www.googleapis.com/auth/logging.admin"
214− ]
215− }
216− }
217 },
66 },
218− "sinks": {
67+ "destination": {
219− "methods": {
68+ "description": "Required. The export destination:\n\"storage.googleapis.com/[GCS_BUCKET]\"\n\"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]\"\n\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]\"\nThe 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.",
220− "update": {
69+ "type": "string"
221− "id": "logging.projects.sinks.update",
70+ },
222− "response": {
71+ "endTime": {
223− "$ref": "LogSink"
72+ "description": "Optional. The time at which this sink will stop exporting log entries. Log entries are exported only if their timestamp is earlier than the end time. If this field is not supplied, there is no end time. If both a start time and an end time are provided, then the end time must be later than the start time.",
224− },
73+ "format": "google-datetime",
225− "parameterOrder": [
74+ "type": "string"
226− "sinkName"
75+ },
227− ],
76+ "writerIdentity": {
228− "description": "Updates or creates a sink.",
77+ "type": "string",
229− "request": {
78+ "description": "Output only. An IAM identity—a service account or group—under which Stackdriver Logging writes the exported log entries to the sink's destination. This field is set by sinks.create and sinks.update, based on the setting 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. Consult the destination service's documentation to determine the appropriate IAM roles to assign to the identity."
230− "$ref": "LogSink"
79+ },
231− },
80+ "startTime": {
232− "flatPath": "v2/projects/{projectsId}/sinks/{sinksId}",
81+ "description": "Optional. The time at which this sink will begin exporting log entries. Log entries are exported only if their timestamp is not earlier than the start time. The default value of this field is the time the sink is created or updated.",
233− "httpMethod": "PUT",
82+ "format": "google-datetime",
234− "parameters": {
83+ "type": "string"
235− "sinkName": {
84+ },
236− "description": "Required. The resource name of the sink to update, including the parent\nresource and the sink identifier. If the sink does not exist, this method\ncreates the sink. Example: `\"projects/my-project-id/sinks/my-sink-id\"`.",
85+ "outputVersionFormat": {
237− "required": true,
86+ "enum": [
238− "pattern": "^projects/[^/]+/sinks/[^/]+$",
87+ "VERSION_FORMAT_UNSPECIFIED",
239− "location": "path",
88+ "V2",
240− "type": "string"
89+ "V1"
241− }
90+ ],
242− },
91+ "description": "Optional. The log entry format to use for this sink's exported log entries. The v2 format is used by default. The v1 format is deprecated and should be used only as part of a migration effort to v2. See Migration to the v2 API.",
243− "path": "v2/{+sinkName}",
92+ "type": "string",
244− "scopes": [
93+ "enumDescriptions": [
245− "https://www.googleapis.com/auth/cloud-platform",
94+ "An unspecified format version that will default to V2.",
246− "https://www.googleapis.com/auth/logging.admin"
95+ "LogEntry version 2 format.",
247− ]
96+ "LogEntry version 1 format."
248− },
97+ ]
249− "get": {
250− "id": "logging.projects.sinks.get",
251− "response": {
252− "$ref": "LogSink"
253− },
254− "parameterOrder": [
255− "sinkName"
256− ],
257− "description": "Gets a sink.",
258− "flatPath": "v2/projects/{projectsId}/sinks/{sinksId}",
259− "httpMethod": "GET",
260− "parameters": {
261− "sinkName": {
262− "description": "Required. The resource name of the sink to return.\nExample: `\"projects/my-project-id/sinks/my-sink-id\"`.",
263− "required": true,
264− "pattern": "^projects/[^/]+/sinks/[^/]+$",
265− "location": "path",
266− "type": "string"
267− }
268− },
269− "path": "v2/{+sinkName}",
270− "scopes": [
271− "https://www.googleapis.com/auth/cloud-platform",
272− "https://www.googleapis.com/auth/cloud-platform.read-only",
273− "https://www.googleapis.com/auth/logging.admin",
274− "https://www.googleapis.com/auth/logging.read"
275− ]
276− },
277− "create": {
278− "id": "logging.projects.sinks.create",
279− "response": {
280− "$ref": "LogSink"
281− },
282− "parameterOrder": [
283− "parent"
284− ],
285− "description": "Creates a sink.",
286− "request": {
287− "$ref": "LogSink"
288− },
289− "flatPath": "v2/projects/{projectsId}/sinks",
290− "httpMethod": "POST",
291− "parameters": {
292− "parent": {
293− "description": "Required. The resource in which to create the sink.\nExample: `\"projects/my-project-id\"`.\nThe new sink must be provided in the request.",
294− "required": true,
295− "pattern": "^projects/[^/]+$",
296− "location": "path",
297− "type": "string"
298− }
299− },
300− "path": "v2/{+parent}/sinks",
301− "scopes": [
302− "https://www.googleapis.com/auth/cloud-platform",
303− "https://www.googleapis.com/auth/logging.admin"
304− ]
305− },
306− "list": {
307− "id": "logging.projects.sinks.list",
308− "response": {
309− "$ref": "ListSinksResponse"
310− },
311− "parameterOrder": [
312− "parent"
313− ],
314− "description": "Lists sinks.",
315− "flatPath": "v2/projects/{projectsId}/sinks",
316− "httpMethod": "GET",
317− "parameters": {
318− "pageSize": {
319− "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.",
320− "location": "query",
321− "type": "integer",
322− "format": "int32"
323− },
324− "parent": {
325− "description": "Required. The cloud resource containing the sinks.\nExample: `\"projects/my-logging-project\"`.",
326− "required": true,
327− "pattern": "^projects/[^/]+$",
328− "location": "path",
329− "type": "string"
330− },
331− "pageToken": {
332− "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
333− "location": "query",
334− "type": "string"
335− }
336− },
337− "path": "v2/{+parent}/sinks",
338− "scopes": [
339− "https://www.googleapis.com/auth/cloud-platform",
340− "https://www.googleapis.com/auth/cloud-platform.read-only",
341− "https://www.googleapis.com/auth/logging.admin",
342− "https://www.googleapis.com/auth/logging.read"
343− ]
344− },
345− "delete": {
346− "id": "logging.projects.sinks.delete",
347− "response": {
348− "$ref": "Empty"
349− },
350− "parameterOrder": [
351− "sinkName"
352− ],
353− "description": "Deletes a sink.",
354− "flatPath": "v2/projects/{projectsId}/sinks/{sinksId}",
355− "httpMethod": "DELETE",
356− "parameters": {
357− "sinkName": {
358− "description": "Required. The resource name of the sink to delete, including the parent\nresource and the sink identifier. Example:\n`\"projects/my-project-id/sinks/my-sink-id\"`. It is an error if the sink\ndoes not exist.",
359− "required": true,
360− "pattern": "^projects/[^/]+/sinks/[^/]+$",
361− "location": "path",
362− "type": "string"
363− }
364− },
365− "path": "v2/{+sinkName}",
366− "scopes": [
367− "https://www.googleapis.com/auth/cloud-platform",
368− "https://www.googleapis.com/auth/logging.admin"
369− ]
370− }
371− }
372 }
98 }
373− }
99+ },
100+ "id": "LogSink",
101+ "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, or a Cloud Pub/Sub topic. A logs filter controls which log entries are exported. The sink must be created within a project or organization."
374 },
102 },
375− "organizations": {
103+ "ListLogsResponse": {
376− "resources": {
104+ "type": "object",
377− "logs": {
105+ "properties": {
378− "methods": {
106+ "logNames": {
379− "delete": {
107+ "type": "array",
380− "id": "logging.organizations.logs.delete",
108+ "items": {
381− "response": {
109+ "type": "string"
382− "$ref": "Empty"
383− },
110+ },
384− "parameterOrder": [
111+ "description": "A list of log names. For example, \"projects/my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com%2Factivity\"."
385− "logName"
112+ },
386− ],
113+ "nextPageToken": {
387− "description": "Deletes a log and all its log entries.\nThe log will reappear if it receives new entries.",
114+ "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.",
388− "flatPath": "v2/organizations/{organizationsId}/logs/{logsId}",
115+ "type": "string"
389− "httpMethod": "DELETE",
116+ }
390− "parameters": {
117+ },
391− "logName": {
118+ "id": "ListLogsResponse",
392− "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.",
119+ "description": "Result returned from ListLogs."
393− "required": true,
394− "pattern": "^organizations/[^/]+/logs/[^/]+$",
395− "location": "path",
396− "type": "string"
397− }
398− },
120+ },
399− "path": "v2/{+logName}",
121+ "ListSinksResponse": {
400− "scopes": [
122+ "description": "Result returned from ListSinks.",
401− "https://www.googleapis.com/auth/cloud-platform",
123+ "type": "object",
402− "https://www.googleapis.com/auth/logging.admin"
124+ "properties": {
403− ]
125+ "nextPageToken": {
404− }
126+ "type": "string",
405− }
127+ "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."
406 },
128 },
407 "sinks": {
129 "sinks": {
408− "methods": {
409− "update": {
410− "id": "logging.organizations.sinks.update",
411− "response": {
412− "$ref": "LogSink"
413− },
414− "parameterOrder": [
415− "sinkName"
416− ],
417− "description": "Updates or creates a sink.",
418− "request": {
419− "$ref": "LogSink"
420− },
421− "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}",
422− "httpMethod": "PUT",
423− "parameters": {
424− "sinkName": {
425− "description": "Required. The resource name of the sink to update, including the parent\nresource and the sink identifier. If the sink does not exist, this method\ncreates the sink. Example: `\"projects/my-project-id/sinks/my-sink-id\"`.",
426− "required": true,
427− "pattern": "^organizations/[^/]+/sinks/[^/]+$",
428− "location": "path",
429− "type": "string"
430− }
431− },
432− "path": "v2/{+sinkName}",
433− "scopes": [
434− "https://www.googleapis.com/auth/cloud-platform",
435− "https://www.googleapis.com/auth/logging.admin"
436− ]
437− },
438− "get": {
439− "id": "logging.organizations.sinks.get",
440− "response": {
441− "$ref": "LogSink"
442− },
443− "parameterOrder": [
444− "sinkName"
445− ],
446− "description": "Gets a sink.",
447− "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}",
448− "httpMethod": "GET",
449− "parameters": {
450− "sinkName": {
451− "description": "Required. The resource name of the sink to return.\nExample: `\"projects/my-project-id/sinks/my-sink-id\"`.",
452− "required": true,
453− "pattern": "^organizations/[^/]+/sinks/[^/]+$",
454− "location": "path",
455− "type": "string"
456− }
457− },
458− "path": "v2/{+sinkName}",
459− "scopes": [
460− "https://www.googleapis.com/auth/cloud-platform",
461− "https://www.googleapis.com/auth/cloud-platform.read-only",
462− "https://www.googleapis.com/auth/logging.admin",
463− "https://www.googleapis.com/auth/logging.read"
464− ]
465− },
466− "create": {
467− "id": "logging.organizations.sinks.create",
468− "response": {
469− "$ref": "LogSink"
470− },
471− "parameterOrder": [
472− "parent"
473− ],
474− "description": "Creates a sink.",
475− "request": {
476− "$ref": "LogSink"
477− },
478− "flatPath": "v2/organizations/{organizationsId}/sinks",
479− "httpMethod": "POST",
480− "parameters": {
481− "parent": {
482− "description": "Required. The resource in which to create the sink.\nExample: `\"projects/my-project-id\"`.\nThe new sink must be provided in the request.",
483− "required": true,
484− "pattern": "^organizations/[^/]+$",
485− "location": "path",
486− "type": "string"
487− }
488− },
489− "path": "v2/{+parent}/sinks",
490− "scopes": [
491− "https://www.googleapis.com/auth/cloud-platform",
492− "https://www.googleapis.com/auth/logging.admin"
493− ]
494− },
495− "list": {
496− "id": "logging.organizations.sinks.list",
497− "response": {
498− "$ref": "ListSinksResponse"
499− },
500− "parameterOrder": [
501− "parent"
502− ],
503− "description": "Lists sinks.",
504− "flatPath": "v2/organizations/{organizationsId}/sinks",
505− "httpMethod": "GET",
506− "parameters": {
507− "pageSize": {
508− "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.",
509− "location": "query",
510− "type": "integer",
511− "format": "int32"
512− },
513− "parent": {
514− "description": "Required. The cloud resource containing the sinks.\nExample: `\"projects/my-logging-project\"`.",
515− "required": true,
516− "pattern": "^organizations/[^/]+$",
517− "location": "path",
518− "type": "string"
519− },
520− "pageToken": {
521− "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
522− "location": "query",
523− "type": "string"
524− }
525− },
526− "path": "v2/{+parent}/sinks",
527− "scopes": [
528− "https://www.googleapis.com/auth/cloud-platform",
529− "https://www.googleapis.com/auth/cloud-platform.read-only",
530− "https://www.googleapis.com/auth/logging.admin",
531− "https://www.googleapis.com/auth/logging.read"
532− ]
533− },
534− "delete": {
535− "id": "logging.organizations.sinks.delete",
536− "response": {
537− "$ref": "Empty"
538− },
539− "parameterOrder": [
540− "sinkName"
541− ],
542− "description": "Deletes a sink.",
543− "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}",
544− "httpMethod": "DELETE",
545− "parameters": {
546− "sinkName": {
547− "description": "Required. The resource name of the sink to delete, including the parent\nresource and the sink identifier. Example:\n`\"projects/my-project-id/sinks/my-sink-id\"`. It is an error if the sink\ndoes not exist.",
548− "required": true,
549− "pattern": "^organizations/[^/]+/sinks/[^/]+$",
550− "location": "path",
551− "type": "string"
552− }
553− },
554− "path": "v2/{+sinkName}",
555− "scopes": [
556− "https://www.googleapis.com/auth/cloud-platform",
557− "https://www.googleapis.com/auth/logging.admin"
558− ]
559− }
560− }
561− }
562− }
563− },
564− "entries": {
565− "methods": {
566− "write": {
567− "id": "logging.entries.write",
568− "response": {
569− "$ref": "WriteLogEntriesResponse"
570− },
571− "parameterOrder": [],
572− "description": "Writes log entries to Stackdriver Logging. All log entries are\nwritten by this method.",
573− "request": {
574− "$ref": "WriteLogEntriesRequest"
575− },
576− "flatPath": "v2/entries:write",
577− "httpMethod": "POST",
578− "parameters": {},
579− "path": "v2/entries:write",
580− "scopes": [
581− "https://www.googleapis.com/auth/cloud-platform",
582− "https://www.googleapis.com/auth/logging.admin",
583− "https://www.googleapis.com/auth/logging.write"
584− ]
585− },
586− "list": {
587− "id": "logging.entries.list",
588− "response": {
589− "$ref": "ListLogEntriesResponse"
590− },
591− "parameterOrder": [],
592− "description": "Lists log entries. Use this method to retrieve log entries from Cloud\nLogging. For ways to export log entries, see\n[Exporting Logs](/logging/docs/export).",
593− "request": {
594− "$ref": "ListLogEntriesRequest"
595− },
596− "flatPath": "v2/entries:list",
597− "httpMethod": "POST",
598− "parameters": {},
599− "path": "v2/entries:list",
600− "scopes": [
601− "https://www.googleapis.com/auth/cloud-platform",
602− "https://www.googleapis.com/auth/cloud-platform.read-only",
603− "https://www.googleapis.com/auth/logging.admin",
604− "https://www.googleapis.com/auth/logging.read"
605− ]
606− }
607− }
608− },
609− "monitoredResourceDescriptors": {
610− "methods": {
611− "list": {
612− "id": "logging.monitoredResourceDescriptors.list",
613− "response": {
614− "$ref": "ListMonitoredResourceDescriptorsResponse"
615− },
616− "parameterOrder": [],
617− "description": "Lists the monitored resource descriptors used by Stackdriver Logging.",
618− "flatPath": "v2/monitoredResourceDescriptors",
619− "httpMethod": "GET",
620− "parameters": {
621− "pageSize": {
622− "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.",
623− "location": "query",
624− "type": "integer",
625− "format": "int32"
626− },
627− "pageToken": {
628− "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
629− "location": "query",
630− "type": "string"
631− }
632− },
633− "path": "v2/monitoredResourceDescriptors",
634− "scopes": [
635− "https://www.googleapis.com/auth/cloud-platform",
636− "https://www.googleapis.com/auth/cloud-platform.read-only",
637− "https://www.googleapis.com/auth/logging.admin",
638− "https://www.googleapis.com/auth/logging.read"
639− ]
640− }
641− }
642− },
643− "billingAccounts": {
644− "resources": {
645− "logs": {
646− "methods": {
647− "delete": {
648− "id": "logging.billingAccounts.logs.delete",
649− "response": {
650− "$ref": "Empty"
651− },
652− "parameterOrder": [
653− "logName"
654− ],
655− "description": "Deletes a log and all its log entries.\nThe log will reappear if it receives new entries.",
656− "flatPath": "v2/billingAccounts/{billingAccountsId}/logs/{logsId}",
657− "httpMethod": "DELETE",
658− "parameters": {
659− "logName": {
660− "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.",
661− "required": true,
662− "pattern": "^billingAccounts/[^/]+/logs/[^/]+$",
663− "location": "path",
664− "type": "string"
665− }
666− },
667− "path": "v2/{+logName}",
668− "scopes": [
669− "https://www.googleapis.com/auth/cloud-platform",
670− "https://www.googleapis.com/auth/logging.admin"
671− ]
672− }
673− }
674− }
675− }
676− }
677− },
678− "schemas": {
679− "ListLogEntriesResponse": {
680− "description": "Result returned from `ListLogEntries`.",
681− "type": "object",
682− "properties": {
683− "entries": {
684− "description": "A list of log entries.",
685− "type": "array",
686− "items": {
687− "$ref": "LogEntry"
688− }
689− },
690− "nextPageToken": {
691− "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`.",
692− "type": "string"
693− }
694− },
695− "id": "ListLogEntriesResponse"
696− },
697− "ListSinksResponse": {
698− "description": "Result returned from `ListSinks`.",
699− "type": "object",
700− "properties": {
701− "nextPageToken": {
702− "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call the same\nmethod again using the value of `nextPageToken` as `pageToken`.",
703− "type": "string"
704− },
705− "sinks": {
706− "description": "A list of sinks.",
707 "type": "array",
130 "type": "array",
708 "items": {
131 "items": {
709 "$ref": "LogSink"
132 "$ref": "LogSink"
710− }
133+ },
134+ "description": "A list of sinks."
711 }
135 }
712 },
136 },
713 "id": "ListSinksResponse"
137 "id": "ListSinksResponse"
714 },
138 },
715− "SourceLocation": {
139+ "HttpRequest": {
716− "description": "Specifies a location in a source code file.",
140+ "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.",
717 "type": "object",
141 "type": "object",
718 "properties": {
142 "properties": {
719− "file": {
143+ "latency": {
720− "description": "Source file name. Depending on the runtime environment, this might be a\nsimple name or a fully-qualified name.",
144+ "type": "string",
721− "type": "string"
145+ "description": "The request processing latency on the server, from the time the request was received until the response was sent.",
146+ "format": "google-duration"
722 },
147 },
723− "functionName": {
148+ "userAgent": {
724− "description": "Human-readable name of the function or method being invoked, with optional\ncontext such as the class or package name. This information is used in\ncontexts such as the logs viewer, where a file and line number are less\nmeaningful. The format can vary by language. For example:\n`qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`\n(Python).",
149+ "type": "string",
150+ "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"."
151+ },
152+ "cacheFillBytes": {
153+ "description": "The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.",
154+ "format": "int64",
725 "type": "string"
155 "type": "string"
726 },
156 },
727− "line": {
157+ "requestMethod": {
728− "description": "Line within the source file.",
729 "type": "string",
158 "type": "string",
730− "format": "int64"
159+ "description": "The request method. Examples: \"GET\", \"HEAD\", \"PUT\", \"POST\"."
731− }
732− },
733− "id": "SourceLocation"
734− },
735− "LogSink": {
736− "description": "Describes a sink used to export log entries outside of Stackdriver Logging.",
737− "type": "object",
738− "properties": {
739− "destination": {
740− "description": "Required. The export destination. See\n[Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).\nExamples:\n\n \"storage.googleapis.com/my-gcs-bucket\"\n \"bigquery.googleapis.com/projects/my-project-id/datasets/my-dataset\"\n \"pubsub.googleapis.com/projects/my-project/topics/my-topic\"",
741− "type": "string"
742 },
160 },
743− "filter": {
161+ "responseSize": {
744− "description": "Optional. An [advanced logs filter](/logging/docs/view/advanced_filters).\nOnly log entries matching the filter are exported. The filter\nmust be consistent with the log entry format specified by the\n`outputVersionFormat` parameter, regardless of the format of the\nlog entry that was originally written to Stackdriver Logging.\nExample filter (V2 format):\n\n logName=projects/my-projectid/logs/syslog AND severity\u003e=ERROR",
162+ "description": "The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.",
163+ "format": "int64",
745 "type": "string"
164 "type": "string"
746 },
165 },
747− "endTime": {
166+ "requestSize": {
748− "description": "Optional. Time at which this sink expires.",
749 "type": "string",
167 "type": "string",
750− "format": "google-datetime"
168+ "description": "The size of the HTTP request message in bytes, including the request headers and the request body.",
169+ "format": "int64"
751 },
170 },
752− "name": {
171+ "requestUrl": {
753− "description": "Required. The client-assigned sink identifier, unique within the\nproject. Example: `\"my-syslog-errors-to-pubsub\"`. Sink identifiers are\nlimited to 1000 characters and can include only the following characters:\n`A-Z`, `a-z`, `0-9`, and the special characters `_-.`. The maximum length\nof the name is 100 characters.",
754− "type": "string"
172+ "type": "string",
173+ "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\"."
755 },
174 },
756− "startTime": {
175+ "serverIp": {
757− "description": "Optional. Time range for which this sink is active.\nLogs are exported only if start_time \u003c= entry.timestamp \u003c end_time\nBoth start_time and end_time may be omitted to specify\n(half) infinite ranges. The start_time must be less than the end_time.",
758 "type": "string",
176 "type": "string",
759− "format": "google-datetime"
177+ "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to."
760 },
178 },
761− "outputVersionFormat": {
179+ "remoteIp": {
762− "description": "Optional. The log entry version to use for this sink's exported log\nentries. This version does not have to correspond to the version of the\nlog entry that was written to Stackdriver Logging. If omitted, the\nv2 format is used.",
180+ "type": "string",
763− "enum": [
181+ "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: \"192.168.1.1\", \"FE80::0202:B3FF:FE1E:8329\"."
764− "VERSION_FORMAT_UNSPECIFIED",
765− "V2",
766− "V1"
767− ],
768− "enumDescriptions": [
769− "An unspecified version format will default to V2.",
770− "`LogEntry` version 2 format.",
771− "`LogEntry` version 1 format."
772− ],
773− "type": "string"
774 },
182 },
775− "writerIdentity": {
183+ "cacheLookup": {
776− "description": "Output only. The IAM identity to which the destination needs to grant write\naccess. This may be a service account or a group.\nExamples (Do not assume these specific values):\n \"serviceAccount:cloud-logs@system.gserviceaccount.com\"\n \"group:cloud-logs@google.com\"\n\n For GCS destinations, the role \"roles/owner\" is required on the bucket\n For Cloud Pubsub destinations, the role \"roles/pubsub.publisher\" is\n required on the topic\n For BigQuery, the role \"roles/editor\" is required on the dataset",
184+ "type": "boolean",
777− "type": "string"
185+ "description": "Whether or not a cache lookup was attempted."
778− }
779− },
780− "id": "LogSink"
781− },
782− "LogMetric": {
783− "description": "Describes a logs-based metric. The value of the metric is the\nnumber of log entries that match a logs filter.",
784− "type": "object",
785− "properties": {
786− "description": {
787− "description": "Optional. A description of this metric, which is used in documentation.",
788− "type": "string"
789 },
186 },
790− "filter": {
187+ "cacheHit": {
791− "description": "Required. An [advanced logs filter](/logging/docs/view/advanced_filters).\nExample: `\"resource.type=gae_app AND severity\u003e=ERROR\"`.",
188+ "description": "Whether or not an entity was served from cache (with or without validation).",
792− "type": "string"
189+ "type": "boolean"
793 },
190 },
794− "name": {
191+ "cacheValidatedWithOriginServer": {
795− "description": "Required. The client-assigned metric identifier. Example:\n`\"severe_errors\"`. Metric identifiers are limited to 100\ncharacters and can include only the following characters: `A-Z`,\n`a-z`, `0-9`, and the special characters `_-.,+!*',()%/`. The\nforward-slash character (`/`) denotes a hierarchy of name pieces,\nand it cannot be the first character of the name. The '%' character\nis used to URL encode unsafe and reserved characters and must be\nfollowed by two hexadecimal digits according to RFC 1738.",
192+ "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.",
796− "type": "string"
193+ "type": "boolean"
797 },
194 },
798− "version": {
195+ "status": {
799− "description": "Output only. The API version that created or updated this metric.\nThe version also dictates the syntax of the filter expression. When a value\nfor this field is missing, the default value of V2 should be assumed.",
196+ "description": "The response code indicating the status of response. Examples: 200, 404.",
197+ "format": "int32",
198+ "type": "integer"
199+ },
200+ "referer": {
201+ "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).",
202+ "type": "string"
203+ }
204+ },
205+ "id": "HttpRequest"
206+ },
207+ "LabelDescriptor": {
208+ "type": "object",
209+ "properties": {
210+ "valueType": {
800 "enum": [
211 "enum": [
801− "V2",
212+ "STRING",
802− "V1"
213+ "BOOL",
214+ "INT64"
803 ],
215 ],
216+ "description": "The type of data that can be assigned to the label.",
217+ "type": "string",
804 "enumDescriptions": [
218 "enumDescriptions": [
805− "Stackdriver Logging API v2.",
219+ "A variable-length string. This is the default.",
806− "Stackdriver Logging API v1."
220+ "Boolean; true or false.",
221+ "A 64-bit signed integer."
807− ],
222+ ]
223+ },
224+ "key": {
225+ "type": "string",
226+ "description": "The label key."
227+ },
228+ "description": {
229+ "description": "A human-readable description for the label.",
808 "type": "string"
230 "type": "string"
809 }
231 }
810 },
232 },
811− "id": "LogMetric"
233+ "id": "LabelDescriptor",
234+ "description": "A description of a label."
812 },
235 },
813− "LogEntry": {
236+ "MonitoredResourceDescriptor": {
814− "description": "An individual entry in a log.",
237+ "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.",
815 "type": "object",
238 "type": "object",
816 "properties": {
239 "properties": {
817− "textPayload": {
240+ "name": {
818− "description": "The log entry payload, represented as a Unicode string (UTF-8).",
241+ "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}\".",
819 "type": "string"
242 "type": "string"
820 },
243 },
821− "httpRequest": {
244+ "displayName": {
822− "description": "Optional. Information about the HTTP request associated with this\nlog entry, if applicable.",
245+ "type": "string",
823− "$ref": "HttpRequest"
246+ "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\"."
824 },
247 },
825− "jsonPayload": {
248+ "description": {
826− "description": "The log entry payload, represented as a structure that\nis expressed as a JSON object.",
249+ "description": "Optional. A detailed description of the monitored resource type that might be used in documentation.",
827− "additionalProperties": {
828− "description": "Properties of the object.",
829− "type": "any"
830− },
831− "type": "object"
250+ "type": "string"
832 },
251 },
833− "labels": {
252+ "type": {
834− "description": "Optional. A set of user-defined (key, value) data that provides additional\ninformation about the log entry.",
253+ "description": "Required. The monitored resource type. For example, the type \"cloudsql_database\" represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.",
835− "additionalProperties": {
836− "type": "string"
254+ "type": "string"
837− },
838− "type": "object"
839 },
255 },
840− "logName": {
256+ "labels": {
841− "description": "Required. The resource name of the log to which this log entry\nbelongs. The format of the name is\n`\"projects/\u003cproject-id\u003e/logs/\u003clog-id\u003e\"`. Examples:\n`\"projects/my-projectid/logs/syslog\"`,\n`\"projects/my-projectid/logs/library.googleapis.com%2Fbook_log\"`.\n\nThe log ID part of resource name must be less than 512 characters\nlong and can only include the following characters: upper and\nlower case alphanumeric characters: [A-Za-z0-9]; and punctuation\ncharacters: forward-slash, underscore, hyphen, and period.\nForward-slash (`/`) characters in the log ID must be URL-encoded.",
257+ "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\".",
258+ "type": "array",
259+ "items": {
260+ "$ref": "LabelDescriptor"
261+ }
262+ }
263+ },
264+ "id": "MonitoredResourceDescriptor"
265+ },
266+ "LogEntrySourceLocation": {
267+ "description": "Additional information about the source code location that produced the log entry.",
268+ "type": "object",
269+ "properties": {
270+ "file": {
271+ "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
842 "type": "string"
272 "type": "string"
843 },
273 },
274+ "function": {
275+ "type": "string",
276+ "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)."
277+ },
278+ "line": {
279+ "type": "string",
280+ "description": "Optional. Line within the source file. 1-based; 0 indicates no line number available.",
281+ "format": "int64"
282+ }
283+ },
284+ "id": "LogEntrySourceLocation"
285+ },
286+ "ListLogEntriesResponse": {
287+ "description": "Result returned from ListLogEntries.",
288+ "type": "object",
289+ "properties": {
290+ "nextPageToken": {
291+ "type": "string",
292+ "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."
293+ },
294+ "entries": {
295+ "type": "array",
296+ "items": {
297+ "$ref": "LogEntry"
298+ },
299+ "description": "A list of log entries."
300+ }
301+ },
302+ "id": "ListLogEntriesResponse"
303+ },
304+ "LogLine": {
305+ "description": "Application log line emitted while processing a request.",
306+ "type": "object",
307+ "properties": {
844 "severity": {
308 "severity": {
845− "description": "Optional. The severity of the log entry. The default value is\n`LogSeverity.DEFAULT`.",
846 "enum": [
309 "enum": [
847 "DEFAULT",
310 "DEFAULT",
848 "DEBUG",
311 "DEBUG",
@@ -854,58 +317,121 @@
854 "ALERT",
317 "ALERT",
855 "EMERGENCY"
318 "EMERGENCY"
856 ],
319 ],
320+ "description": "Severity of this log entry.",
321+ "type": "string",
857 "enumDescriptions": [
322 "enumDescriptions": [
858 "(0) The log entry has no assigned severity level.",
323 "(0) The log entry has no assigned severity level.",
859 "(100) Debug or trace information.",
324 "(100) Debug or trace information.",
860 "(200) Routine information, such as ongoing status or performance.",
325 "(200) Routine information, such as ongoing status or performance.",
861− "(300) Normal but significant events, such as start up, shut down, or\na configuration change.",
326+ "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
862 "(400) Warning events might cause problems.",
327 "(400) Warning events might cause problems.",
863 "(500) Error events are likely to cause problems.",
328 "(500) Error events are likely to cause problems.",
864 "(600) Critical events cause more severe problems or outages.",
329 "(600) Critical events cause more severe problems or outages.",
865 "(700) A person must take an action immediately.",
330 "(700) A person must take an action immediately.",
866 "(800) One or more systems are unusable."
331 "(800) One or more systems are unusable."
867− ],
332+ ]
333+ },
334+ "logMessage": {
335+ "description": "App-provided log message.",
336+ "type": "string"
337+ },
338+ "sourceLocation": {
339+ "$ref": "SourceLocation",
340+ "description": "Where in the source code this log message was written."
341+ },
342+ "time": {
343+ "description": "Approximate time when this log entry was made.",
344+ "format": "google-datetime",
345+ "type": "string"
346+ }
347+ },
348+ "id": "LogLine"
349+ },
350+ "ListLogMetricsResponse": {
351+ "type": "object",
352+ "properties": {
353+ "metrics": {
354+ "description": "A list of logs-based metrics.",
355+ "type": "array",
356+ "items": {
357+ "$ref": "LogMetric"
358+ }
359+ },
360+ "nextPageToken": {
361+ "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.",
868 "type": "string"
362 "type": "string"
363+ }
364+ },
365+ "id": "ListLogMetricsResponse",
366+ "description": "Result returned from ListLogMetrics."
367+ },
368+ "LogEntry": {
369+ "type": "object",
370+ "properties": {
371+ "logName": {
372+ "type": "string",
373+ "description": "Required. The resource name of the log to which this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[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."
869 },
374 },
870 "resource": {
375 "resource": {
376+ "$ref": "MonitoredResource",
871− "description": "Required. The monitored resource associated with this log entry.\nExample: a log entry that reports a database error would be\nassociated with the monitored resource designating the particular\ndatabase that reported the error.",
377+ "description": "Required. The monitored resource associated with 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."
872− "$ref": "MonitoredResource"
378+ },
379+ "httpRequest": {
380+ "$ref": "HttpRequest",
381+ "description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
382+ },
383+ "jsonPayload": {
384+ "type": "object",
385+ "additionalProperties": {
386+ "description": "Properties of the object.",
387+ "type": "any"
388+ },
389+ "description": "The log entry payload, represented as a structure that is expressed as a JSON object."
390+ },
391+ "operation": {
392+ "$ref": "LogEntryOperation",
393+ "description": "Optional. Information about an operation associated with the log entry, if applicable."
394+ },
395+ "insertId": {
396+ "type": "string",
397+ "description": "Optional. A unique ID for the log entry. If you provide this field, the logging service considers other log entries in the same project with the same ID as duplicates which can be removed. If omitted, Stackdriver Logging will generate a unique ID for this log entry."
398+ },
399+ "textPayload": {
400+ "description": "The log entry payload, represented as a Unicode string (UTF-8).",
401+ "type": "string"
873 },
402 },
874 "protoPayload": {
403 "protoPayload": {
875− "description": "The log entry payload, represented as a protocol buffer. Some\nGoogle Cloud Platform services use this field for their log\nentry payloads.",
876 "additionalProperties": {
404 "additionalProperties": {
877 "description": "Properties of the object. Contains field @type with type URL.",
405 "description": "Properties of the object. Contains field @type with type URL.",
878 "type": "any"
406 "type": "any"
879 },
407 },
408+ "description": "The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.",
880 "type": "object"
409 "type": "object"
881 },
410 },
882− "timestamp": {
411+ "labels": {
883− "description": "Optional. The time the event described by the log entry occurred. If\nomitted, Stackdriver Logging will use the time the log entry is received.",
412+ "type": "object",
884− "type": "string",
413+ "additionalProperties": {
885− "format": "google-datetime"
414+ "type": "string"
415+ },
416+ "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry."
886 },
417 },
887− "insertId": {
418+ "trace": {
888− "description": "Optional. A unique ID for the log entry. If you provide this\nfield, the logging service considers other log entries in the\nsame project with the same ID as duplicates which can be removed. If\nomitted, Stackdriver Logging will generate a unique ID for this\nlog entry.",
419+ "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",
889 "type": "string"
420 "type": "string"
890 },
421 },
891− "operation": {
892− "description": "Optional. Information about an operation associated with the log entry, if\napplicable.",
893− "$ref": "LogEntryOperation"
894− }
895− },
896− "id": "LogEntry"
897− },
898− "LogLine": {
899− "description": "Application log line emitted while processing a request.",
900− "type": "object",
901− "properties": {
902− "time": {
903− "description": "Approximate time when this log entry was made.",
904− "type": "string",
905− "format": "google-datetime"
906− },
907 "severity": {
422 "severity": {
908− "description": "Severity of this log entry.",
423+ "type": "string",
424+ "enumDescriptions": [
425+ "(0) The log entry has no assigned severity level.",
426+ "(100) Debug or trace information.",
427+ "(200) Routine information, such as ongoing status or performance.",
428+ "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
429+ "(400) Warning events might cause problems.",
430+ "(500) Error events are likely to cause problems.",
431+ "(600) Critical events cause more severe problems or outages.",
432+ "(700) A person must take an action immediately.",
433+ "(800) One or more systems are unusable."
434+ ],
909 "enum": [
435 "enum": [
910 "DEFAULT",
436 "DEFAULT",
911 "DEBUG",
437 "DEBUG",
@@ -917,588 +443,1648 @@
917 "ALERT",
443 "ALERT",
918 "EMERGENCY"
444 "EMERGENCY"
919 ],
445 ],
920− "enumDescriptions": [
446+ "description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT."
921− "(0) The log entry has no assigned severity level.",
922− "(100) Debug or trace information.",
923− "(200) Routine information, such as ongoing status or performance.",
924− "(300) Normal but significant events, such as start up, shut down, or\na configuration change.",
925− "(400) Warning events might cause problems.",
926− "(500) Error events are likely to cause problems.",
927− "(600) Critical events cause more severe problems or outages.",
928− "(700) A person must take an action immediately.",
929− "(800) One or more systems are unusable."
930− ],
931− "type": "string"
932 },
447 },
933 "sourceLocation": {
448 "sourceLocation": {
934− "description": "Where in the source code this log message was written.",
449+ "$ref": "LogEntrySourceLocation",
935− "$ref": "SourceLocation"
450+ "description": "Optional. Source code location information associated with the log entry, if any."
936 },
451 },
937− "logMessage": {
452+ "timestamp": {
938− "description": "App-provided log message.",
453+ "description": "Optional. The time the event described by the log entry occurred. If omitted, Stackdriver Logging will use the time the log entry is received.",
454+ "format": "google-datetime",
939 "type": "string"
455 "type": "string"
940 }
456 }
941 },
457 },
942− "id": "LogLine"
458+ "id": "LogEntry",
459+ "description": "An individual entry in a log."
943 },
460 },
944− "SourceReference": {
461+ "Empty": {
945− "description": "A reference to a particular snapshot of the source tree used to build and\ndeploy an application.",
462+ "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:\nservice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe JSON representation for Empty is empty JSON object {}.",
463+ "type": "object",
464+ "properties": {},
465+ "id": "Empty"
466+ },
467+ "SourceLocation": {
468+ "description": "Specifies a location in a source code file.",
946 "type": "object",
469 "type": "object",
947 "properties": {
470 "properties": {
948− "repository": {
471+ "file": {
949− "description": "Optional. A URI string identifying the repository.\nExample: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
472+ "type": "string",
473+ "description": "Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name."
474+ },
475+ "functionName": {
476+ "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).",
950 "type": "string"
477 "type": "string"
951 },
478 },
952− "revisionId": {
479+ "line": {
953− "description": "The canonical and persistent identifier of the deployed revision.\nExample (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"",
480+ "description": "Line within the source file.",
481+ "format": "int64",
954 "type": "string"
482 "type": "string"
955 }
483 }
956 },
484 },
957− "id": "SourceReference"
485+ "id": "SourceLocation"
958 },
486 },
959− "MonitoredResource": {
487+ "ListLogEntriesRequest": {
960− "description": "An object representing a resource that can be used for monitoring, logging,\nbilling, or other purposes. Examples include virtual machine instances,\ndatabases, and storage devices such as disks. The `type` field identifies a\nMonitoredResourceDescriptor object that describes the resource's\nschema. Information in the `labels` field identifies the actual resource and\nits attributes according to the schema. For example, a particular Compute\nEngine VM instance could be represented by the following object, because the\nMonitoredResourceDescriptor for `\"gce_instance\"` has labels\n`\"instance_id\"` and `\"zone\"`:\n\n { \"type\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}",
961 "type": "object",
488 "type": "object",
962 "properties": {
489 "properties": {
963− "labels": {
490+ "resourceNames": {
964− "description": "Required. Values for all of the labels listed in the associated monitored\nresource descriptor. For example, Cloud SQL databases use the labels\n`\"database_id\"` and `\"zone\"`.",
491+ "description": "Required. Names of one or more resources from which to retrieve log entries:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\nProjects listed in the project_ids field are added to this list.",
965− "additionalProperties": {
492+ "type": "array",
493+ "items": {
966 "type": "string"
494 "type": "string"
967− },
495+ }
968− "type": "object"
969 },
496 },
970− "type": {
497+ "filter": {
971− "description": "Required. The monitored resource type. This field must match\nthe `type` field of a MonitoredResourceDescriptor object. For\nexample, the type of a Cloud SQL database is `\"cloudsql_database\"`.",
498+ "description": "Optional. A filter that chooses which log entries to return. See Advanced Logs 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 listed in resource_names will cause the filter to return no results. The maximum length of the filter is 20000 characters.",
972 "type": "string"
499 "type": "string"
973− }
974− },
975− "id": "MonitoredResource"
976− },
977− "WriteLogEntriesRequest": {
978− "description": "The parameters to WriteLogEntries.",
979− "type": "object",
980− "properties": {
981− "labels": {
982− "description": "Optional. Default labels that are added to the `labels` field of all log\nentries in `entries`. If a log entry already has a label with the same key\nas a label in this parameter, then the log entry's label is not changed.\nSee LogEntry.",
983− "additionalProperties": {
984− "type": "string"
985− },
986− "type": "object"
987 },
500 },
988− "entries": {
501+ "projectIds": {
989− "description": "Required. The log entries to write. Values supplied for the fields\n`log_name`, `resource`, and `labels` in this `entries.write` request are\nadded to those log entries that do not provide their own values for the\nfields.\n\nTo improve throughput and to avoid exceeding the\n[quota limit](/logging/quota-policy) for calls to `entries.write`,\nyou should write multiple log entries at once rather than\ncalling this method for each individual log entry.",
502+ "description": "Deprecated. Use resource_names instead. One or more project identifiers or project numbers from which to retrieve log entries. Example: \"my-project-1A\". If present, these project identifiers are converted to resource name format and added to the list of resources in resource_names.",
990 "type": "array",
503 "type": "array",
991 "items": {
504 "items": {
992− "$ref": "LogEntry"
505+ "type": "string"
993 }
506 }
994 },
507 },
995− "logName": {
508+ "pageToken": {
996− "description": "Optional. A default log resource name that is assigned to all log entries\nin `entries` that do not specify a value for `log_name`. Example:\n`\"projects/my-project/logs/syslog\"`. See\nLogEntry.",
509+ "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.",
997 "type": "string"
510 "type": "string"
998 },
511 },
999− "partialSuccess": {
512+ "pageSize": {
1000− "description": "Optional. Whether valid entries should be written even if some other\nentries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any\nentry is not written, the response status will be the error associated\nwith one of the failed entries and include error details in the form of\nWriteLogEntriesPartialErrors.",
513+ "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.",
1001− "type": "boolean"
514+ "format": "int32",
515+ "type": "integer"
1002 },
516 },
1003− "resource": {
517+ "orderBy": {
1004− "description": "Optional. A default monitored resource object that is assigned to all log\nentries in `entries` that do not specify a value for `resource`. Example:\n\n { \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\n\nSee LogEntry.",
518+ "type": "string",
1005− "$ref": "MonitoredResource"
519+ "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 LogEntry.insertId."
1006 }
520 }
1007 },
521 },
1008− "id": "WriteLogEntriesRequest"
522+ "id": "ListLogEntriesRequest",
523+ "description": "The parameters to ListLogEntries."
1009 },
524 },
1010− "LabelDescriptor": {
525+ "RequestLog": {
1011− "description": "A description of a label.",
1012 "type": "object",
526 "type": "object",
1013 "properties": {
527 "properties": {
1014− "description": {
528+ "moduleId": {
1015− "description": "A human-readable description for the label.",
529+ "description": "Module of the application that handled this request.",
1016 "type": "string"
530 "type": "string"
1017 },
531 },
1018− "valueType": {
532+ "endTime": {
1019− "description": "The type of data that can be assigned to the label.",
533+ "type": "string",
1020− "enum": [
534+ "description": "Time when the request finished.",
1021− "STRING",
535+ "format": "google-datetime"
1022− "BOOL",
1023− "INT64"
1024− ],
1025− "enumDescriptions": [
1026− "A variable-length string. This is the default.",
1027− "Boolean; true or false.",
1028− "A 64-bit signed integer."
1029− ],
1030− "type": "string"
1031 },
536 },
1032− "key": {
537+ "userAgent": {
1033− "description": "The label key.",
1034− "type": "string"
538+ "type": "string",
1035− }
539+ "description": "User agent that made the request."
1036− },
1037− "id": "LabelDescriptor"
1038− },
540+ },
1039− "ListLogMetricsResponse": {
541+ "wasLoadingRequest": {
1040− "description": "Result returned from ListLogMetrics.",
542+ "description": "Whether this was a loading request for the instance.",
1041− "type": "object",
543+ "type": "boolean"
1042− "properties": {
544+ },
1043− "metrics": {
545+ "sourceReference": {
1044− "description": "A list of logs-based metrics.",
546+ "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.",
1045 "type": "array",
547 "type": "array",
1046 "items": {
548 "items": {
1047− "$ref": "LogMetric"
549+ "$ref": "SourceReference"
1048 }
550 }
1049 },
551 },
1050− "nextPageToken": {
552+ "responseSize": {
1051− "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`.",
553+ "description": "Size in bytes sent back to client by request.",
1052− "type": "string"
554+ "format": "int64",
1053− }
1054− },
1055− "id": "ListLogMetricsResponse"
1056− },
1057− "MonitoredResourceDescriptor": {
1058− "description": "An object that describes the schema of a MonitoredResource object using a\ntype name and a set of labels. For example, the monitored resource\ndescriptor for Google Compute Engine VM instances has a type of\n`\"gce_instance\"` and specifies the use of the labels `\"instance_id\"` and\n`\"zone\"` to identify particular VM instances.\n\nDifferent APIs can support different monitored resource types. APIs generally\nprovide a `list` method that returns the monitored resource descriptors used\nby the API.",
1059− "type": "object",
1060− "properties": {
1061− "displayName": {
1062− "description": "Optional. A concise name for the monitored resource type that might be\ndisplayed in user interfaces. It should be a Title Cased Noun Phrase,\nwithout any article or other determiners. For example,\n`\"Google Cloud SQL Database\"`.",
1063 "type": "string"
555 "type": "string"
1064 },
556 },
1065− "description": {
557+ "traceId": {
1066− "description": "Optional. A detailed description of the monitored resource type that might\nbe used in documentation.",
558+ "type": "string",
1067− "type": "string"
559+ "description": "Stackdriver Trace identifier for this request."
1068 },
560 },
1069− "labels": {
561+ "line": {
1070− "description": "Required. A set of labels used to describe instances of this monitored\nresource type. For example, an individual Google Cloud SQL database is\nidentified by values for the labels `\"database_id\"` and `\"zone\"`.",
1071 "type": "array",
562 "type": "array",
1072 "items": {
563 "items": {
1073− "$ref": "LabelDescriptor"
564+ "$ref": "LogLine"
1074− }
565+ },
566+ "description": "A list of log lines emitted by the application while serving this request."
1075 },
567 },
1076− "type": {
568+ "taskQueueName": {
1077− "description": "Required. The monitored resource type. For example, the type\n`\"cloudsql_database\"` represents databases in Google Cloud SQL.\nThe maximum length of this value is 256 characters.",
569+ "description": "Queue name of the request, in the case of an offline request.",
1078 "type": "string"
570 "type": "string"
1079 },
571 },
1080− "name": {
572+ "referrer": {
1081− "description": "Optional. The resource name of the monitored resource descriptor:\n`\"projects/{project_id}/monitoredResourceDescriptors/{type}\"` where\n{type} is the value of the `type` field in this object and\n{project_id} is a project ID that provides API-specific context for\naccessing the type. APIs that do not use project information can use the\nresource name format `\"monitoredResourceDescriptors/{type}\"`.",
573+ "type": "string",
574+ "description": "Referrer URL of request."
575+ },
576+ "requestId": {
577+ "type": "string",
578+ "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."
579+ },
580+ "nickname": {
581+ "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.",
582+ "type": "string"
583+ },
584+ "pendingTime": {
585+ "type": "string",
586+ "description": "Time this request spent in the pending request queue.",
587+ "format": "google-duration"
588+ },
589+ "resource": {
590+ "type": "string",
591+ "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."
592+ },
593+ "status": {
594+ "description": "HTTP response status code. Example: 200, 404.",
595+ "format": "int32",
596+ "type": "integer"
597+ },
598+ "taskName": {
599+ "type": "string",
600+ "description": "Task name of the request, in the case of an offline request."
601+ },
602+ "urlMapEntry": {
603+ "description": "File or class that handled the request.",
604+ "type": "string"
605+ },
606+ "instanceIndex": {
607+ "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.",
608+ "format": "int32",
609+ "type": "integer"
610+ },
611+ "host": {
612+ "type": "string",
613+ "description": "Internet host and port number of the resource being requested."
614+ },
615+ "finished": {
616+ "type": "boolean",
617+ "description": "Whether this request is finished or active."
618+ },
619+ "httpVersion": {
620+ "type": "string",
621+ "description": "HTTP version of request. Example: \"HTTP/1.1\"."
622+ },
623+ "startTime": {
624+ "type": "string",
625+ "description": "Time when the request started.",
626+ "format": "google-datetime"
627+ },
628+ "latency": {
629+ "description": "Latency of the request.",
630+ "format": "google-duration",
631+ "type": "string"
632+ },
633+ "ip": {
634+ "type": "string",
635+ "description": "Origin IP address."
636+ },
637+ "appId": {
638+ "type": "string",
639+ "description": "Application that handled this request."
640+ },
641+ "appEngineRelease": {
642+ "description": "App Engine release version.",
643+ "type": "string"
644+ },
645+ "method": {
646+ "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
647+ "type": "string"
648+ },
649+ "cost": {
650+ "type": "number",
651+ "description": "An indication of the relative cost of serving this request.",
652+ "format": "double"
653+ },
654+ "instanceId": {
655+ "type": "string",
656+ "description": "An identifier for the instance that handled the request."
657+ },
658+ "megaCycles": {
659+ "type": "string",
660+ "description": "Number of CPU megacycles used to process request.",
661+ "format": "int64"
662+ },
663+ "first": {
664+ "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.",
665+ "type": "boolean"
666+ },
667+ "versionId": {
668+ "description": "Version of the application that handled this request.",
1082 "type": "string"
669 "type": "string"
1083 }
670 }
1084 },
671 },
1085− "id": "MonitoredResourceDescriptor"
672+ "id": "RequestLog",
673+ "description": "Complete log information about a single HTTP request to an App Engine application."
1086 },
674 },
1087 "ListMonitoredResourceDescriptorsResponse": {
675 "ListMonitoredResourceDescriptorsResponse": {
1088 "description": "Result returned from ListMonitoredResourceDescriptors.",
676 "description": "Result returned from ListMonitoredResourceDescriptors.",
1089 "type": "object",
677 "type": "object",
1090 "properties": {
678 "properties": {
1091 "nextPageToken": {
679 "nextPageToken": {
680+ "type": "string",
1092− "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`.",
681+ "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."
1093− "type": "string"
1094 },
682 },
1095 "resourceDescriptors": {
683 "resourceDescriptors": {
1096− "description": "A list of resource descriptors.",
1097 "type": "array",
684 "type": "array",
1098 "items": {
685 "items": {
1099 "$ref": "MonitoredResourceDescriptor"
686 "$ref": "MonitoredResourceDescriptor"
1100− }
687+ },
688+ "description": "A list of resource descriptors."
1101 }
689 }
1102 },
690 },
1103 "id": "ListMonitoredResourceDescriptorsResponse"
691 "id": "ListMonitoredResourceDescriptorsResponse"
1104 },
692 },
1105− "LogEntryOperation": {
693+ "SourceReference": {
1106− "description": "Additional information about a potentially long-running operation with which\na log entry is associated.",
1107 "type": "object",
694 "type": "object",
1108 "properties": {
695 "properties": {
1109− "producer": {
696+ "repository": {
1110− "description": "Optional. An arbitrary producer identifier. The combination of\n`id` and `producer` must be globally unique. Examples for `producer`:\n`\"MyDivision.MyBigCompany.com\"`, `\"github.com/MyProject/MyApplication\"`.",
697+ "type": "string",
1111− "type": "string"
698+ "description": "Optional. A URI string identifying the repository. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\""
1112− },
1113− "last": {
1114− "description": "Optional. Set this to True if this is the last log entry in the operation.",
1115− "type": "boolean"
1116− },
1117− "first": {
1118− "description": "Optional. Set this to True if this is the first log entry in the operation.",
1119− "type": "boolean"
1120 },
699 },
1121− "id": {
700+ "revisionId": {
1122− "description": "Optional. An arbitrary operation identifier. Log entries with the\nsame identifier are assumed to be part of the same operation.",
701+ "type": "string",
1123− "type": "string"
702+ "description": "The canonical and persistent identifier of the deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\""
1124 }
703 }
1125 },
704 },
1126− "id": "LogEntryOperation"
705+ "id": "SourceReference",
1127− },
706+ "description": "A reference to a particular snapshot of the source tree used to build and deploy an application."
1128− "Empty": {
1129− "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
1130− "type": "object",
1131− "properties": {},
1132− "id": "Empty"
1133 },
707 },
1134− "HttpRequest": {
708+ "LogMetric": {
1135− "description": "A common proto for logging HTTP requests. Only contains semantics\ndefined by the HTTP specification. Product-specific logging\ninformation MUST be defined in a separate message.",
709+ "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.",
1136 "type": "object",
710 "type": "object",
1137 "properties": {
711 "properties": {
1138− "cacheLookup": {
712+ "name": {
1139− "description": "Whether or not a cache lookup was attempted.",
713+ "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\".",
1140− "type": "boolean"
1141− },
1142− "responseSize": {
1143− "description": "The size of the HTTP response message sent back to the client, in bytes,\nincluding the response headers and the response body.",
1144− "type": "string",
1145− "format": "int64"
1146− },
1147− "status": {
1148− "description": "The response code indicating the status of response.\nExamples: 200, 404.",
1149− "type": "integer",
1150− "format": "int32"
1151− },
1152− "cacheValidatedWithOriginServer": {
1153− "description": "Whether or not the response was validated with the origin server before\nbeing served from cache. This field is only meaningful if `cache_hit` is\nTrue.",
1154− "type": "boolean"
1155− },
1156− "referer": {
1157− "description": "The referer URL of the request, as defined in\n[HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).",
1158− "type": "string"
1159− },
1160− "cacheHit": {
1161− "description": "Whether or not an entity was served from cache\n(with or without validation).",
1162− "type": "boolean"
1163− },
1164− "requestUrl": {
1165− "description": "The scheme (http, https), the host name, the path and the query\nportion of the URL that was requested.\nExample: `\"http://example.com/some/info?color=red\"`.",
1166 "type": "string"
714 "type": "string"
1167 },
715 },
1168− "latency": {
716+ "description": {
1169− "description": "The request processing latency on the server, from the time the request was\nreceived until the response was sent.",
1170 "type": "string",
717 "type": "string",
1171− "format": "google-duration"
718+ "description": "Optional. A description of this metric, which is used in documentation."
1172 },
719 },
1173− "cacheFillBytes": {
720+ "version": {
1174− "description": "The number of HTTP response bytes inserted into cache. Set only when a\ncache fill was attempted.",
1175 "type": "string",
721 "type": "string",
1176− "format": "int64"
722+ "enumDescriptions": [
1177− },
723+ "Stackdriver Logging API v2.",
1178− "requestMethod": {
724+ "Stackdriver Logging API v1."
1179− "description": "The request method. Examples: `\"GET\"`, `\"HEAD\"`, `\"PUT\"`, `\"POST\"`.",
725+ ],
1180− "type": "string"
726+ "enum": [
1181− },
727+ "V2",
1182− "remoteIp": {
728+ "V1"
1183− "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP\nrequest. Examples: `\"192.168.1.1\"`, `\"FE80::0202:B3FF:FE1E:8329\"`.",
729+ ],
1184− "type": "string"
730+ "description": "Output only. The API version that created or updated this metric. The version also dictates the syntax of the filter expression. When a value for this field is missing, the default value of V2 should be assumed."
1185− },
1186− "serverIp": {
1187− "description": "The IP address (IPv4 or IPv6) of the origin server that the request was\nsent to.",
1188− "type": "string"
1189− },
1190− "userAgent": {
1191− "description": "The user agent sent by the client. Example:\n`\"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"`.",
1192− "type": "string"
1193 },
731 },
1194− "requestSize": {
732+ "filter": {
1195− "description": "The size of the HTTP request message in bytes, including the request\nheaders and the request body.",
1196 "type": "string",
733 "type": "string",
1197− "format": "int64"
734+ "description": "Required. An advanced logs filter which is used to match log entries. Example:\n\"resource.type=gae_app AND severity\u003e=ERROR\"\nThe maximum length of the filter is 20000 characters."
1198 }
735 }
1199 },
736 },
1200− "id": "HttpRequest"
737+ "id": "LogMetric"
1201 },
738 },
1202− "RequestLog": {
739+ "LogEntryOperation": {
1203− "description": "Complete log information about a single HTTP request to an App Engine\napplication.",
740+ "description": "Additional information about a potentially long-running operation with which a log entry is associated.",
1204 "type": "object",
741 "type": "object",
1205 "properties": {
742 "properties": {
1206− "responseSize": {
743+ "last": {
1207− "description": "Size in bytes sent back to client by request.",
744+ "type": "boolean",
1208− "type": "string",
745+ "description": "Optional. Set this to True if this is the last log entry in the operation."
1209− "format": "int64"
1210− },
1211− "requestId": {
1212− "description": "Globally unique identifier for a request, which is based on the request\nstart time. Request IDs for requests which started later will compare\ngreater as strings than those for requests which started earlier.",
1213− "type": "string"
1214− },
1215− "first": {
1216− "description": "Whether this is the first RequestLog entry for this request. If an active\nrequest has several RequestLog entries written to Cloud Logging, this field\nwill be set for one of them.",
1217− "type": "boolean"
1218 },
746 },
1219− "method": {
747+ "id": {
1220− "description": "Request method. Example: `\"GET\"`, `\"HEAD\"`, `\"PUT\"`, `\"POST\"`, `\"DELETE\"`.",
748+ "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.",
1221 "type": "string"
749 "type": "string"
1222 },
750 },
1223− "versionId": {
751+ "producer": {
1224− "description": "Version of the application that handled this request.",
752+ "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\".",
1225 "type": "string"
753 "type": "string"
1226 },
754 },
1227− "status": {
755+ "first": {
1228− "description": "HTTP response status code. Example: 200, 404.",
1229− "type": "integer",
1230− "format": "int32"
1231− },
1232− "wasLoadingRequest": {
1233− "description": "Whether this was a loading request for the instance.",
1234− "type": "boolean"
756+ "type": "boolean",
1235− },
757+ "description": "Optional. Set this to True if this is the first log entry in the operation."
1236− "ip": {
758+ }
1237− "description": "Origin IP address.",
759+ },
1238− "type": "string"
760+ "id": "LogEntryOperation"
1239− },
761+ },
1240− "nickname": {
762+ "WriteLogEntriesResponse": {
1241− "description": "The logged-in user who made the request.\n\nMost likely, this is the part of the user's email before the `@` sign. The\nfield value is the same for different requests from the same user, but\ndifferent users can have similar names. This information is also\navailable to the application via the App Engine Users API.\n\nThis field will be populated starting with App Engine 1.9.21.",
763+ "description": "Result returned from WriteLogEntries. empty",
1242− "type": "string"
764+ "type": "object",
765+ "properties": {},
766+ "id": "WriteLogEntriesResponse"
767+ }
768+ },
769+ "icons": {
770+ "x32": "http://www.google.com/images/icons/product/search-32.gif",
771+ "x16": "http://www.google.com/images/icons/product/search-16.gif"
772+ },
773+ "protocol": "rest",
774+ "canonicalName": "Logging",
775+ "auth": {
776+ "oauth2": {
777+ "scopes": {
778+ "https://www.googleapis.com/auth/cloud-platform.read-only": {
779+ "description": "View your data across Google Cloud Platform services"
1243 },
780 },
1244− "taskQueueName": {
781+ "https://www.googleapis.com/auth/logging.admin": {
1245− "description": "Queue name of the request, in the case of an offline request.",
782+ "description": "Administrate log data for your projects"
1246− "type": "string"
1247 },
783 },
1248− "pendingTime": {
784+ "https://www.googleapis.com/auth/logging.read": {
1249− "description": "Time this request spent in the pending request queue.",
785+ "description": "View log data for your projects"
1250− "type": "string",
1251− "format": "google-duration"
1252 },
786 },
1253− "instanceIndex": {
787+ "https://www.googleapis.com/auth/logging.write": {
1254− "description": "If the instance processing this request belongs to a manually scaled\nmodule, then this is the 0-based index of the instance. Otherwise, this\nvalue is -1.",
788+ "description": "Submit log data for your projects"
1255− "type": "integer",
1256− "format": "int32"
1257 },
789 },
1258− "sourceReference": {
790+ "https://www.googleapis.com/auth/cloud-platform": {
1259− "description": "Source code for the application that handled this request. There can be\nmore than one source reference per deployed application if source code is\ndistributed among multiple repositories.",
791+ "description": "View and manage your data across Google Cloud Platform services"
1260− "type": "array",
792+ }
1261− "items": {
793+ }
1262− "$ref": "SourceReference"
794+ }
795+ },
796+ "rootUrl": "https://logging.googleapis.com/",
797+ "ownerDomain": "google.com",
798+ "name": "logging",
799+ "batchPath": "batch",
800+ "title": "Stackdriver Logging API",
801+ "ownerName": "Google",
802+ "resources": {
803+ "entries": {
804+ "methods": {
805+ "list": {
806+ "response": {
807+ "$ref": "ListLogEntriesResponse"
808+ },
809+ "parameterOrder": [],
810+ "httpMethod": "POST",
811+ "scopes": [
812+ "https://www.googleapis.com/auth/cloud-platform",
813+ "https://www.googleapis.com/auth/cloud-platform.read-only",
814+ "https://www.googleapis.com/auth/logging.admin",
815+ "https://www.googleapis.com/auth/logging.read"
816+ ],
817+ "parameters": {},
818+ "flatPath": "v2/entries:list",
819+ "path": "v2/entries:list",
820+ "id": "logging.entries.list",
821+ "description": "Lists log entries. Use this method to retrieve log entries from Stackdriver Logging. For ways to export log entries, see Exporting Logs.",
822+ "request": {
823+ "$ref": "ListLogEntriesRequest"
1263 }
824 }
1264 },
825 },
1265− "moduleId": {
826+ "write": {
1266− "description": "Module of the application that handled this request.",
827+ "flatPath": "v2/entries:write",
828+ "path": "v2/entries:write",
829+ "id": "logging.entries.write",
830+ "description": "Writes log entries to Stackdriver Logging. All log entries are written by this method.",
831+ "request": {
832+ "$ref": "WriteLogEntriesRequest"
833+ },
834+ "response": {
835+ "$ref": "WriteLogEntriesResponse"
836+ },
837+ "parameterOrder": [],
838+ "httpMethod": "POST",
839+ "scopes": [
840+ "https://www.googleapis.com/auth/cloud-platform",
841+ "https://www.googleapis.com/auth/logging.admin",
842+ "https://www.googleapis.com/auth/logging.write"
843+ ],
844+ "parameters": {}
845+ }
846+ }
847+ },
848+ "projects": {
849+ "resources": {
850+ "logs": {
851+ "methods": {
852+ "delete": {
853+ "response": {
854+ "$ref": "Empty"
855+ },
856+ "parameterOrder": [
857+ "logName"
858+ ],
859+ "httpMethod": "DELETE",
860+ "parameters": {
861+ "logName": {
862+ "location": "path",
863+ "description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
864+ "required": true,
865+ "type": "string",
866+ "pattern": "^projects/[^/]+/logs/[^/]+$"
867+ }
868+ },
869+ "scopes": [
870+ "https://www.googleapis.com/auth/cloud-platform",
871+ "https://www.googleapis.com/auth/logging.admin"
872+ ],
873+ "flatPath": "v2/projects/{projectsId}/logs/{logsId}",
874+ "path": "v2/{+logName}",
875+ "id": "logging.projects.logs.delete",
876+ "description": "Deletes all the log entries in a log. The log reappears if it receives new entries."
877+ },
878+ "list": {
879+ "httpMethod": "GET",
880+ "parameterOrder": [
881+ "parent"
882+ ],
883+ "response": {
884+ "$ref": "ListLogsResponse"
885+ },
886+ "parameters": {
887+ "pageToken": {
888+ "location": "query",
889+ "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.",
1267− "type": "string"
890+ "type": "string"
1268− },
891+ },
1269− "host": {
892+ "pageSize": {
1270− "description": "Internet host and port number of the resource being requested.",
893+ "location": "query",
1271− "type": "string"
894+ "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.",
895+ "format": "int32",
896+ "type": "integer"
1272− },
897+ },
1273− "latency": {
898+ "parent": {
1274− "description": "Latency of the request.",
899+ "required": true,
1275− "type": "string",
900+ "type": "string",
1276− "format": "google-duration"
901+ "pattern": "^projects/[^/]+$",
1277− },
902+ "location": "path",
1278− "urlMapEntry": {
903+ "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n"
1279− "description": "File or class that handled the request.",
904+ }
1280− "type": "string"
905+ },
1281− },
906+ "scopes": [
1282− "endTime": {
907+ "https://www.googleapis.com/auth/cloud-platform",
1283− "description": "Time when the request finished.",
908+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1284− "type": "string",
909+ "https://www.googleapis.com/auth/logging.admin",
1285− "format": "google-datetime"
910+ "https://www.googleapis.com/auth/logging.read"
911+ ],
912+ "flatPath": "v2/projects/{projectsId}/logs",
913+ "id": "logging.projects.logs.list",
914+ "path": "v2/{+parent}/logs",
915+ "description": "Lists the logs in projects or organizations. Only logs that have entries are listed."
916+ }
917+ }
1286 },
918 },
1287− "line": {
919+ "sinks": {
1288− "description": "A list of log lines emitted by the application while serving this request.",
920+ "methods": {
1289− "type": "array",
921+ "list": {
1290− "items": {
922+ "description": "Lists sinks.",
1291− "$ref": "LogLine"
923+ "httpMethod": "GET",
924+ "parameterOrder": [
925+ "parent"
926+ ],
927+ "response": {
928+ "$ref": "ListSinksResponse"
929+ },
930+ "scopes": [
931+ "https://www.googleapis.com/auth/cloud-platform",
932+ "https://www.googleapis.com/auth/cloud-platform.read-only",
933+ "https://www.googleapis.com/auth/logging.admin",
934+ "https://www.googleapis.com/auth/logging.read"
935+ ],
936+ "parameters": {
937+ "parent": {
938+ "location": "path",
939+ "description": "Required. The parent resource whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"organizations/123456789\".",
940+ "required": true,
941+ "type": "string",
942+ "pattern": "^projects/[^/]+$"
943+ },
944+ "pageToken": {
945+ "type": "string",
946+ "location": "query",
947+ "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."
948+ },
949+ "pageSize": {
950+ "type": "integer",
951+ "location": "query",
952+ "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.",
953+ "format": "int32"
954+ }
955+ },
956+ "flatPath": "v2/projects/{projectsId}/sinks",
957+ "id": "logging.projects.sinks.list",
958+ "path": "v2/{+parent}/sinks"
959+ },
960+ "get": {
961+ "httpMethod": "GET",
962+ "parameterOrder": [
963+ "sinkName"
964+ ],
965+ "response": {
966+ "$ref": "LogSink"
967+ },
968+ "scopes": [
969+ "https://www.googleapis.com/auth/cloud-platform",
970+ "https://www.googleapis.com/auth/cloud-platform.read-only",
971+ "https://www.googleapis.com/auth/logging.admin",
972+ "https://www.googleapis.com/auth/logging.read"
973+ ],
974+ "parameters": {
975+ "sinkName": {
976+ "location": "path",
977+ "description": "Required. The parent resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".",
978+ "required": true,
979+ "type": "string",
980+ "pattern": "^projects/[^/]+/sinks/[^/]+$"
981+ }
982+ },
983+ "flatPath": "v2/projects/{projectsId}/sinks/{sinksId}",
984+ "id": "logging.projects.sinks.get",
985+ "path": "v2/{+sinkName}",
986+ "description": "Gets a sink."
987+ },
988+ "update": {
989+ "response": {
990+ "$ref": "LogSink"
991+ },
992+ "parameterOrder": [
993+ "sinkName"
994+ ],
995+ "httpMethod": "PUT",
996+ "parameters": {
997+ "sinkName": {
998+ "location": "path",
999+ "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".",
1000+ "required": true,
1001+ "type": "string",
1002+ "pattern": "^projects/[^/]+/sinks/[^/]+$"
1003+ },
1004+ "uniqueWriterIdentity": {
1005+ "location": "query",
1006+ "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:\nIf 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.\nIf the old value was false and the new value is true, then writer_identity is changed to a unique service account.\nIt is an error if the old value was true and the new value is false.",
1007+ "type": "boolean"
1008+ }
1009+ },
1010+ "scopes": [
1011+ "https://www.googleapis.com/auth/cloud-platform",
1012+ "https://www.googleapis.com/auth/logging.admin"
1013+ ],
1014+ "flatPath": "v2/projects/{projectsId}/sinks/{sinksId}",
1015+ "path": "v2/{+sinkName}",
1016+ "id": "logging.projects.sinks.update",
1017+ "request": {
1018+ "$ref": "LogSink"
1019+ },
1020+ "description": "Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field."
1021+ },
1022+ "create": {
1023+ "request": {
1024+ "$ref": "LogSink"
1025+ },
1026+ "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times or 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.",
1027+ "response": {
1028+ "$ref": "LogSink"
1029+ },
1030+ "parameterOrder": [
1031+ "parent"
1032+ ],
1033+ "httpMethod": "POST",
1034+ "parameters": {
1035+ "parent": {
1036+ "location": "path",
1037+ "description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".",
1038+ "required": true,
1039+ "type": "string",
1040+ "pattern": "^projects/[^/]+$"
1041+ },
1042+ "uniqueWriterIdentity": {
1043+ "location": "query",
1044+ "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 cloud-logs@google.com, the same identity used 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.",
1045+ "type": "boolean"
1046+ }
1047+ },
1048+ "scopes": [
1049+ "https://www.googleapis.com/auth/cloud-platform",
1050+ "https://www.googleapis.com/auth/logging.admin"
1051+ ],
1052+ "flatPath": "v2/projects/{projectsId}/sinks",
1053+ "path": "v2/{+parent}/sinks",
1054+ "id": "logging.projects.sinks.create"
1055+ },
1056+ "delete": {
1057+ "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.",
1058+ "response": {
1059+ "$ref": "Empty"
1060+ },
1061+ "parameterOrder": [
1062+ "sinkName"
1063+ ],
1064+ "httpMethod": "DELETE",
1065+ "scopes": [
1066+ "https://www.googleapis.com/auth/cloud-platform",
1067+ "https://www.googleapis.com/auth/logging.admin"
1068+ ],
1069+ "parameters": {
1070+ "sinkName": {
1071+ "location": "path",
1072+ "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nIt is an error if the sink does not exist. Example: \"projects/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist.",
1073+ "required": true,
1074+ "type": "string",
1075+ "pattern": "^projects/[^/]+/sinks/[^/]+$"
1076+ }
1077+ },
1078+ "flatPath": "v2/projects/{projectsId}/sinks/{sinksId}",
1079+ "path": "v2/{+sinkName}",
1080+ "id": "logging.projects.sinks.delete"
1081+ }
1082+ }
1083+ },
1084+ "metrics": {
1085+ "methods": {
1086+ "delete": {
1087+ "response": {
1088+ "$ref": "Empty"
1089+ },
1090+ "parameterOrder": [
1091+ "metricName"
1092+ ],
1093+ "httpMethod": "DELETE",
1094+ "parameters": {
1095+ "metricName": {
1096+ "location": "path",
1097+ "description": "The resource name of the metric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
1098+ "required": true,
1099+ "type": "string",
1100+ "pattern": "^projects/[^/]+/metrics/[^/]+$"
1101+ }
1102+ },
1103+ "scopes": [
1104+ "https://www.googleapis.com/auth/cloud-platform",
1105+ "https://www.googleapis.com/auth/logging.admin",
1106+ "https://www.googleapis.com/auth/logging.write"
1107+ ],
1108+ "flatPath": "v2/projects/{projectsId}/metrics/{metricsId}",
1109+ "path": "v2/{+metricName}",
1110+ "id": "logging.projects.metrics.delete",
1111+ "description": "Deletes a logs-based metric."
1112+ },
1113+ "list": {
1114+ "httpMethod": "GET",
1115+ "parameterOrder": [
1116+ "parent"
1117+ ],
1118+ "response": {
1119+ "$ref": "ListLogMetricsResponse"
1120+ },
1121+ "parameters": {
1122+ "pageToken": {
1123+ "location": "query",
1124+ "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.",
1125+ "type": "string"
1126+ },
1127+ "pageSize": {
1128+ "location": "query",
1129+ "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.",
1130+ "format": "int32",
1131+ "type": "integer"
1132+ },
1133+ "parent": {
1134+ "location": "path",
1135+ "description": "Required. The name of the project containing the metrics:\n\"projects/[PROJECT_ID]\"\n",
1136+ "required": true,
1137+ "type": "string",
1138+ "pattern": "^projects/[^/]+$"
1139+ }
1140+ },
1141+ "scopes": [
1142+ "https://www.googleapis.com/auth/cloud-platform",
1143+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1144+ "https://www.googleapis.com/auth/logging.admin",
1145+ "https://www.googleapis.com/auth/logging.read"
1146+ ],
1147+ "flatPath": "v2/projects/{projectsId}/metrics",
1148+ "id": "logging.projects.metrics.list",
1149+ "path": "v2/{+parent}/metrics",
1150+ "description": "Lists logs-based metrics."
1151+ },
1152+ "get": {
1153+ "description": "Gets a logs-based metric.",
1154+ "response": {
1155+ "$ref": "LogMetric"
1156+ },
1157+ "parameterOrder": [
1158+ "metricName"
1159+ ],
1160+ "httpMethod": "GET",
1161+ "parameters": {
1162+ "metricName": {
1163+ "location": "path",
1164+ "description": "The resource name of the desired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
1165+ "required": true,
1166+ "type": "string",
1167+ "pattern": "^projects/[^/]+/metrics/[^/]+$"
1168+ }
1169+ },
1170+ "scopes": [
1171+ "https://www.googleapis.com/auth/cloud-platform",
1172+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1173+ "https://www.googleapis.com/auth/logging.admin",
1174+ "https://www.googleapis.com/auth/logging.read"
1175+ ],
1176+ "flatPath": "v2/projects/{projectsId}/metrics/{metricsId}",
1177+ "path": "v2/{+metricName}",
1178+ "id": "logging.projects.metrics.get"
1179+ },
1180+ "update": {
1181+ "request": {
1182+ "$ref": "LogMetric"
1183+ },
1184+ "description": "Creates or updates a logs-based metric.",
1185+ "httpMethod": "PUT",
1186+ "parameterOrder": [
1187+ "metricName"
1188+ ],
1189+ "response": {
1190+ "$ref": "LogMetric"
1191+ },
1192+ "parameters": {
1193+ "metricName": {
1194+ "location": "path",
1195+ "description": "The resource name of the metric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe 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.",
1196+ "required": true,
1197+ "type": "string",
1198+ "pattern": "^projects/[^/]+/metrics/[^/]+$"
1199+ }
1200+ },
1201+ "scopes": [
1202+ "https://www.googleapis.com/auth/cloud-platform",
1203+ "https://www.googleapis.com/auth/logging.admin",
1204+ "https://www.googleapis.com/auth/logging.write"
1205+ ],
1206+ "flatPath": "v2/projects/{projectsId}/metrics/{metricsId}",
1207+ "id": "logging.projects.metrics.update",
1208+ "path": "v2/{+metricName}"
1209+ },
1210+ "create": {
1211+ "httpMethod": "POST",
1212+ "parameterOrder": [
1213+ "parent"
1214+ ],
1215+ "response": {
1216+ "$ref": "LogMetric"
1217+ },
1218+ "scopes": [
1219+ "https://www.googleapis.com/auth/cloud-platform",
1220+ "https://www.googleapis.com/auth/logging.admin",
1221+ "https://www.googleapis.com/auth/logging.write"
1222+ ],
1223+ "parameters": {
1224+ "parent": {
1225+ "location": "path",
1226+ "description": "The resource name of the project in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric must be provided in the request.",
1227+ "required": true,
1228+ "type": "string",
1229+ "pattern": "^projects/[^/]+$"
1230+ }
1231+ },
1232+ "flatPath": "v2/projects/{projectsId}/metrics",
1233+ "id": "logging.projects.metrics.create",
1234+ "path": "v2/{+parent}/metrics",
1235+ "description": "Creates a logs-based metric.",
1236+ "request": {
1237+ "$ref": "LogMetric"
1238+ }
1239+ }
1240+ }
1241+ }
1242+ }
1243+ },
1244+ "billingAccounts": {
1245+ "resources": {
1246+ "logs": {
1247+ "methods": {
1248+ "delete": {
1249+ "flatPath": "v2/billingAccounts/{billingAccountsId}/logs/{logsId}",
1250+ "path": "v2/{+logName}",
1251+ "id": "logging.billingAccounts.logs.delete",
1252+ "description": "Deletes all the log entries in a log. The log reappears if it receives new entries.",
1253+ "response": {
1254+ "$ref": "Empty"
1255+ },
1256+ "parameterOrder": [
1257+ "logName"
1258+ ],
1259+ "httpMethod": "DELETE",
1260+ "scopes": [
1261+ "https://www.googleapis.com/auth/cloud-platform",
1262+ "https://www.googleapis.com/auth/logging.admin"
1263+ ],
1264+ "parameters": {
1265+ "logName": {
1266+ "required": true,
1267+ "type": "string",
1268+ "pattern": "^billingAccounts/[^/]+/logs/[^/]+$",
1269+ "location": "path",
1270+ "description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry."
1271+ }
1272+ }
1273+ },
1274+ "list": {
1275+ "flatPath": "v2/billingAccounts/{billingAccountsId}/logs",
1276+ "path": "v2/{+parent}/logs",
1277+ "id": "logging.billingAccounts.logs.list",
1278+ "description": "Lists the logs in projects or organizations. Only logs that have entries are listed.",
1279+ "response": {
1280+ "$ref": "ListLogsResponse"
1281+ },
1282+ "parameterOrder": [
1283+ "parent"
1284+ ],
1285+ "httpMethod": "GET",
1286+ "parameters": {
1287+ "pageToken": {
1288+ "type": "string",
1289+ "location": "query",
1290+ "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."
1291+ },
1292+ "pageSize": {
1293+ "type": "integer",
1294+ "location": "query",
1295+ "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.",
1296+ "format": "int32"
1297+ },
1298+ "parent": {
1299+ "location": "path",
1300+ "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n",
1301+ "required": true,
1302+ "type": "string",
1303+ "pattern": "^billingAccounts/[^/]+$"
1304+ }
1305+ },
1306+ "scopes": [
1307+ "https://www.googleapis.com/auth/cloud-platform",
1308+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1309+ "https://www.googleapis.com/auth/logging.admin",
1310+ "https://www.googleapis.com/auth/logging.read"
1311+ ]
1312+ }
1313+ }
1314+ },
1315+ "sinks": {
1316+ "methods": {
1317+ "delete": {
1318+ "response": {
1319+ "$ref": "Empty"
1320+ },
1321+ "parameterOrder": [
1322+ "sinkName"
1323+ ],
1324+ "httpMethod": "DELETE",
1325+ "scopes": [
1326+ "https://www.googleapis.com/auth/cloud-platform",
1327+ "https://www.googleapis.com/auth/logging.admin"
1328+ ],
1329+ "parameters": {
1330+ "sinkName": {
1331+ "required": true,
1332+ "type": "string",
1333+ "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$",
1334+ "location": "path",
1335+ "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nIt is an error if the sink does not exist. Example: \"projects/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist."
1336+ }
1337+ },
1338+ "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}",
1339+ "path": "v2/{+sinkName}",
1340+ "id": "logging.billingAccounts.sinks.delete",
1341+ "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted."
1342+ },
1343+ "list": {
1344+ "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks",
1345+ "id": "logging.billingAccounts.sinks.list",
1346+ "path": "v2/{+parent}/sinks",
1347+ "description": "Lists sinks.",
1348+ "httpMethod": "GET",
1349+ "parameterOrder": [
1350+ "parent"
1351+ ],
1352+ "response": {
1353+ "$ref": "ListSinksResponse"
1354+ },
1355+ "scopes": [
1356+ "https://www.googleapis.com/auth/cloud-platform",
1357+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1358+ "https://www.googleapis.com/auth/logging.admin",
1359+ "https://www.googleapis.com/auth/logging.read"
1360+ ],
1361+ "parameters": {
1362+ "parent": {
1363+ "required": true,
1364+ "type": "string",
1365+ "pattern": "^billingAccounts/[^/]+$",
1366+ "location": "path",
1367+ "description": "Required. The parent resource whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"organizations/123456789\"."
1368+ },
1369+ "pageToken": {
1370+ "type": "string",
1371+ "location": "query",
1372+ "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."
1373+ },
1374+ "pageSize": {
1375+ "type": "integer",
1376+ "location": "query",
1377+ "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.",
1378+ "format": "int32"
1379+ }
1380+ }
1381+ },
1382+ "get": {
1383+ "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}",
1384+ "path": "v2/{+sinkName}",
1385+ "id": "logging.billingAccounts.sinks.get",
1386+ "description": "Gets a sink.",
1387+ "response": {
1388+ "$ref": "LogSink"
1389+ },
1390+ "parameterOrder": [
1391+ "sinkName"
1392+ ],
1393+ "httpMethod": "GET",
1394+ "scopes": [
1395+ "https://www.googleapis.com/auth/cloud-platform",
1396+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1397+ "https://www.googleapis.com/auth/logging.admin",
1398+ "https://www.googleapis.com/auth/logging.read"
1399+ ],
1400+ "parameters": {
1401+ "sinkName": {
1402+ "location": "path",
1403+ "description": "Required. The parent resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".",
1404+ "required": true,
1405+ "type": "string",
1406+ "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$"
1407+ }
1408+ }
1409+ },
1410+ "update": {
1411+ "request": {
1412+ "$ref": "LogSink"
1413+ },
1414+ "description": "Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.",
1415+ "httpMethod": "PUT",
1416+ "parameterOrder": [
1417+ "sinkName"
1418+ ],
1419+ "response": {
1420+ "$ref": "LogSink"
1421+ },
1422+ "parameters": {
1423+ "sinkName": {
1424+ "required": true,
1425+ "type": "string",
1426+ "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$",
1427+ "location": "path",
1428+ "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\"."
1429+ },
1430+ "uniqueWriterIdentity": {
1431+ "location": "query",
1432+ "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:\nIf 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.\nIf the old value was false and the new value is true, then writer_identity is changed to a unique service account.\nIt is an error if the old value was true and the new value is false.",
1433+ "type": "boolean"
1434+ }
1435+ },
1436+ "scopes": [
1437+ "https://www.googleapis.com/auth/cloud-platform",
1438+ "https://www.googleapis.com/auth/logging.admin"
1439+ ],
1440+ "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks/{sinksId}",
1441+ "id": "logging.billingAccounts.sinks.update",
1442+ "path": "v2/{+sinkName}"
1443+ },
1444+ "create": {
1445+ "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks",
1446+ "path": "v2/{+parent}/sinks",
1447+ "id": "logging.billingAccounts.sinks.create",
1448+ "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times or 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.",
1449+ "request": {
1450+ "$ref": "LogSink"
1451+ },
1452+ "response": {
1453+ "$ref": "LogSink"
1454+ },
1455+ "parameterOrder": [
1456+ "parent"
1457+ ],
1458+ "httpMethod": "POST",
1459+ "scopes": [
1460+ "https://www.googleapis.com/auth/cloud-platform",
1461+ "https://www.googleapis.com/auth/logging.admin"
1462+ ],
1463+ "parameters": {
1464+ "parent": {
1465+ "location": "path",
1466+ "description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".",
1467+ "required": true,
1468+ "type": "string",
1469+ "pattern": "^billingAccounts/[^/]+$"
1470+ },
1471+ "uniqueWriterIdentity": {
1472+ "location": "query",
1473+ "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 cloud-logs@google.com, the same identity used 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.",
1474+ "type": "boolean"
1475+ }
1476+ }
1477+ }
1478+ }
1479+ }
1480+ }
1481+ },
1482+ "folders": {
1483+ "resources": {
1484+ "logs": {
1485+ "methods": {
1486+ "delete": {
1487+ "description": "Deletes all the log entries in a log. The log reappears if it receives new entries.",
1488+ "response": {
1489+ "$ref": "Empty"
1490+ },
1491+ "parameterOrder": [
1492+ "logName"
1493+ ],
1494+ "httpMethod": "DELETE",
1495+ "parameters": {
1496+ "logName": {
1497+ "location": "path",
1498+ "description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
1499+ "required": true,
1500+ "type": "string",
1501+ "pattern": "^folders/[^/]+/logs/[^/]+$"
1502+ }
1503+ },
1504+ "scopes": [
1505+ "https://www.googleapis.com/auth/cloud-platform",
1506+ "https://www.googleapis.com/auth/logging.admin"
1507+ ],
1508+ "flatPath": "v2/folders/{foldersId}/logs/{logsId}",
1509+ "path": "v2/{+logName}",
1510+ "id": "logging.folders.logs.delete"
1511+ },
1512+ "list": {
1513+ "flatPath": "v2/folders/{foldersId}/logs",
1514+ "id": "logging.folders.logs.list",
1515+ "path": "v2/{+parent}/logs",
1516+ "description": "Lists the logs in projects or organizations. Only logs that have entries are listed.",
1517+ "httpMethod": "GET",
1518+ "parameterOrder": [
1519+ "parent"
1520+ ],
1521+ "response": {
1522+ "$ref": "ListLogsResponse"
1523+ },
1524+ "scopes": [
1525+ "https://www.googleapis.com/auth/cloud-platform",
1526+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1527+ "https://www.googleapis.com/auth/logging.admin",
1528+ "https://www.googleapis.com/auth/logging.read"
1529+ ],
1530+ "parameters": {
1531+ "pageToken": {
1532+ "type": "string",
1533+ "location": "query",
1534+ "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."
1535+ },
1536+ "pageSize": {
1537+ "type": "integer",
1538+ "location": "query",
1539+ "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.",
1540+ "format": "int32"
1541+ },
1542+ "parent": {
1543+ "required": true,
1544+ "type": "string",
1545+ "pattern": "^folders/[^/]+$",
1546+ "location": "path",
1547+ "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n"
1548+ }
1549+ }
1550+ }
1292 }
1551 }
1293 },
1552 },
1294− "megaCycles": {
1553+ "sinks": {
1295− "description": "Number of CPU megacycles used to process request.",
1554+ "methods": {
1296− "type": "string",
1555+ "delete": {
1297− "format": "int64"
1556+ "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.",
1557+ "httpMethod": "DELETE",
1558+ "parameterOrder": [
1559+ "sinkName"
1560+ ],
1561+ "response": {
1562+ "$ref": "Empty"
1563+ },
1564+ "parameters": {
1565+ "sinkName": {
1566+ "required": true,
1567+ "type": "string",
1568+ "pattern": "^folders/[^/]+/sinks/[^/]+$",
1569+ "location": "path",
1570+ "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nIt is an error if the sink does not exist. Example: \"projects/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist."
1571+ }
1572+ },
1573+ "scopes": [
1574+ "https://www.googleapis.com/auth/cloud-platform",
1575+ "https://www.googleapis.com/auth/logging.admin"
1576+ ],
1577+ "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}",
1578+ "id": "logging.folders.sinks.delete",
1579+ "path": "v2/{+sinkName}"
1298− },
1580+ },
1299− "appId": {
1581+ "list": {
1300− "description": "Application that handled this request.",
1582+ "response": {
1301− "type": "string"
1583+ "$ref": "ListSinksResponse"
1584+ },
1585+ "parameterOrder": [
1586+ "parent"
1302− },
1587+ ],
1303− "traceId": {
1588+ "httpMethod": "GET",
1304− "description": "Cloud Trace identifier for this request.",
1589+ "parameters": {
1590+ "pageToken": {
1305− "type": "string"
1591+ "type": "string",
1306− },
1592+ "location": "query",
1307− "taskName": {
1593+ "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."
1308− "description": "Task name of the request, in the case of an offline request.",
1594+ },
1309− "type": "string"
1595+ "pageSize": {
1310− },
1596+ "type": "integer",
1311− "cost": {
1597+ "location": "query",
1312− "description": "An indication of the relative cost of serving this request.",
1598+ "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.",
1313− "type": "number",
1599+ "format": "int32"
1314− "format": "double"
1315− },
1316− "instanceId": {
1317− "description": "An identifier for the instance that handled the request.",
1318− "type": "string"
1319− },
1600+ },
1320− "startTime": {
1601+ "parent": {
1321− "description": "Time when the request started.",
1602+ "required": true,
1322− "type": "string",
1603+ "type": "string",
1323− "format": "google-datetime"
1604+ "pattern": "^folders/[^/]+$",
1324− },
1605+ "location": "path",
1325− "appEngineRelease": {
1606+ "description": "Required. The parent resource whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"organizations/123456789\"."
1326− "description": "App Engine release version.",
1607+ }
1327− "type": "string"
1608+ },
1328− },
1609+ "scopes": [
1329− "resource": {
1610+ "https://www.googleapis.com/auth/cloud-platform",
1330− "description": "Contains the path and query portion of the URL that was requested. For\nexample, if the URL was \"http://example.com/app?name=val\", the resource\nwould be \"/app?name=val\". The fragment identifier, which is identified by\nthe `#` character, is not included.",
1611+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1331− "type": "string"
1612+ "https://www.googleapis.com/auth/logging.admin",
1332− },
1613+ "https://www.googleapis.com/auth/logging.read"
1333− "httpVersion": {
1614+ ],
1334− "description": "HTTP version of request. Example: `\"HTTP/1.1\"`.",
1615+ "flatPath": "v2/folders/{foldersId}/sinks",
1335− "type": "string"
1616+ "path": "v2/{+parent}/sinks",
1617+ "id": "logging.folders.sinks.list",
1618+ "description": "Lists sinks."
1619+ },
1620+ "get": {
1621+ "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}",
1622+ "path": "v2/{+sinkName}",
1623+ "id": "logging.folders.sinks.get",
1624+ "description": "Gets a sink.",
1625+ "response": {
1626+ "$ref": "LogSink"
1627+ },
1628+ "parameterOrder": [
1629+ "sinkName"
1630+ ],
1631+ "httpMethod": "GET",
1632+ "parameters": {
1633+ "sinkName": {
1634+ "required": true,
1635+ "type": "string",
1636+ "pattern": "^folders/[^/]+/sinks/[^/]+$",
1637+ "location": "path",
1638+ "description": "Required. The parent resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\"."
1639+ }
1640+ },
1641+ "scopes": [
1642+ "https://www.googleapis.com/auth/cloud-platform",
1643+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1644+ "https://www.googleapis.com/auth/logging.admin",
1645+ "https://www.googleapis.com/auth/logging.read"
1646+ ]
1647+ },
1648+ "update": {
1649+ "flatPath": "v2/folders/{foldersId}/sinks/{sinksId}",
1650+ "path": "v2/{+sinkName}",
1651+ "id": "logging.folders.sinks.update",
1652+ "request": {
1653+ "$ref": "LogSink"
1654+ },
1655+ "description": "Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.",
1656+ "response": {
1657+ "$ref": "LogSink"
1658+ },
1659+ "parameterOrder": [
1660+ "sinkName"
1661+ ],
1662+ "httpMethod": "PUT",
1663+ "parameters": {
1664+ "sinkName": {
1665+ "required": true,
1666+ "type": "string",
1667+ "pattern": "^folders/[^/]+/sinks/[^/]+$",
1668+ "location": "path",
1669+ "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\"."
1670+ },
1671+ "uniqueWriterIdentity": {
1672+ "location": "query",
1673+ "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:\nIf 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.\nIf the old value was false and the new value is true, then writer_identity is changed to a unique service account.\nIt is an error if the old value was true and the new value is false.",
1674+ "type": "boolean"
1675+ }
1676+ },
1677+ "scopes": [
1678+ "https://www.googleapis.com/auth/cloud-platform",
1679+ "https://www.googleapis.com/auth/logging.admin"
1680+ ]
1681+ },
1682+ "create": {
1683+ "httpMethod": "POST",
1684+ "parameterOrder": [
1685+ "parent"
1686+ ],
1687+ "response": {
1688+ "$ref": "LogSink"
1689+ },
1690+ "scopes": [
1691+ "https://www.googleapis.com/auth/cloud-platform",
1692+ "https://www.googleapis.com/auth/logging.admin"
1693+ ],
1694+ "parameters": {
1695+ "parent": {
1696+ "location": "path",
1697+ "description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".",
1698+ "required": true,
1699+ "type": "string",
1700+ "pattern": "^folders/[^/]+$"
1701+ },
1702+ "uniqueWriterIdentity": {
1703+ "type": "boolean",
1704+ "location": "query",
1705+ "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 cloud-logs@google.com, the same identity used 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."
1336− },
1706+ }
1337− "referrer": {
1707+ },
1338− "description": "Referrer URL of request.",
1708+ "flatPath": "v2/folders/{foldersId}/sinks",
1339− "type": "string"
1709+ "id": "logging.folders.sinks.create",
1340− },
1710+ "path": "v2/{+parent}/sinks",
1341− "userAgent": {
1711+ "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times or 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.",
1342− "description": "User agent that made the request.",
1712+ "request": {
1343− "type": "string"
1713+ "$ref": "LogSink"
1344− },
1714+ }
1345− "finished": {
1715+ }
1346− "description": "Whether this request is finished or active.",
1716+ }
1347− "type": "boolean"
1348 }
1717 }
1349− },
1718+ }
1350− "id": "RequestLog"
1351 },
1719 },
1352− "WriteLogEntriesResponse": {
1720+ "monitoredResourceDescriptors": {
1353− "description": "Result returned from WriteLogEntries.\nempty",
1721+ "methods": {
1722+ "list": {
1723+ "description": "Lists the descriptors for monitored resource types used by Stackdriver Logging.",
1724+ "response": {
1725+ "$ref": "ListMonitoredResourceDescriptorsResponse"
1726+ },
1727+ "parameterOrder": [],
1728+ "httpMethod": "GET",
1729+ "parameters": {
1730+ "pageToken": {
1354− "type": "object",
1731+ "type": "string",
1355− "properties": {},
1732+ "location": "query",
1356− "id": "WriteLogEntriesResponse"
1733+ "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."
1734+ },
1735+ "pageSize": {
1736+ "type": "integer",
1737+ "location": "query",
1738+ "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.",
1739+ "format": "int32"
1740+ }
1741+ },
1742+ "scopes": [
1743+ "https://www.googleapis.com/auth/cloud-platform",
1744+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1745+ "https://www.googleapis.com/auth/logging.admin",
1746+ "https://www.googleapis.com/auth/logging.read"
1747+ ],
1748+ "flatPath": "v2/monitoredResourceDescriptors",
1749+ "path": "v2/monitoredResourceDescriptors",
1750+ "id": "logging.monitoredResourceDescriptors.list"
1751+ }
1752+ }
1357 },
1753 },
1358− "ListLogEntriesRequest": {
1754+ "organizations": {
1359− "description": "The parameters to `ListLogEntries`.",
1755+ "resources": {
1360− "type": "object",
1756+ "logs": {
1361− "properties": {
1757+ "methods": {
1362− "filter": {
1758+ "list": {
1363− "description": "Optional. A filter that chooses which log entries to return. See [Advanced\nLogs Filters](/logging/docs/view/advanced_filters). Only log entries that\nmatch the filter are returned. An empty filter matches all log entries.",
1759+ "flatPath": "v2/organizations/{organizationsId}/logs",
1760+ "id": "logging.organizations.logs.list",
1761+ "path": "v2/{+parent}/logs",
1762+ "description": "Lists the logs in projects or organizations. Only logs that have entries are listed.",
1763+ "httpMethod": "GET",
1764+ "parameterOrder": [
1765+ "parent"
1766+ ],
1767+ "response": {
1768+ "$ref": "ListLogsResponse"
1769+ },
1770+ "scopes": [
1771+ "https://www.googleapis.com/auth/cloud-platform",
1772+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1773+ "https://www.googleapis.com/auth/logging.admin",
1774+ "https://www.googleapis.com/auth/logging.read"
1775+ ],
1776+ "parameters": {
1777+ "pageToken": {
1364− "type": "string"
1778+ "type": "string",
1365− },
1779+ "location": "query",
1366− "projectIds": {
1780+ "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."
1367− "description": "Deprecated. One or more project identifiers or project numbers from which\nto retrieve log entries. Examples: `\"my-project-1A\"`, `\"1234567890\"`. If\npresent, these project identifiers are converted to resource format and\nadded to the list of resources in `resourceNames`. Callers should use\n`resourceNames` rather than this parameter.",
1781+ },
1782+ "pageSize": {
1783+ "type": "integer",
1784+ "location": "query",
1785+ "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.",
1786+ "format": "int32"
1787+ },
1788+ "parent": {
1789+ "required": true,
1790+ "type": "string",
1791+ "pattern": "^organizations/[^/]+$",
1792+ "location": "path",
1793+ "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n"
1794+ }
1795+ }
1796+ },
1797+ "delete": {
1798+ "flatPath": "v2/organizations/{organizationsId}/logs/{logsId}",
1799+ "id": "logging.organizations.logs.delete",
1800+ "path": "v2/{+logName}",
1801+ "description": "Deletes all the log entries in a log. The log reappears if it receives new entries.",
1802+ "httpMethod": "DELETE",
1803+ "parameterOrder": [
1804+ "logName"
1805+ ],
1806+ "response": {
1807+ "$ref": "Empty"
1808+ },
1809+ "parameters": {
1810+ "logName": {
1811+ "location": "path",
1812+ "description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
1813+ "required": true,
1368− "type": "array",
1814+ "type": "string",
1369− "items": {
1815+ "pattern": "^organizations/[^/]+/logs/[^/]+$"
1370− "type": "string"
1816+ }
1817+ },
1818+ "scopes": [
1819+ "https://www.googleapis.com/auth/cloud-platform",
1820+ "https://www.googleapis.com/auth/logging.admin"
1821+ ]
1822+ }
1371 }
1823 }
1372 },
1824 },
1373− "resourceNames": {
1825+ "sinks": {
1374− "description": "Required. One or more cloud resources from which to retrieve log entries.\nExample: `\"projects/my-project-1A\"`, `\"projects/1234567890\"`. Projects\nlisted in `projectIds` are added to this list.",
1826+ "methods": {
1827+ "list": {
1828+ "response": {
1829+ "$ref": "ListSinksResponse"
1830+ },
1831+ "parameterOrder": [
1832+ "parent"
1833+ ],
1834+ "httpMethod": "GET",
1835+ "scopes": [
1836+ "https://www.googleapis.com/auth/cloud-platform",
1837+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1838+ "https://www.googleapis.com/auth/logging.admin",
1839+ "https://www.googleapis.com/auth/logging.read"
1840+ ],
1841+ "parameters": {
1842+ "parent": {
1843+ "required": true,
1844+ "type": "string",
1845+ "pattern": "^organizations/[^/]+$",
1846+ "location": "path",
1847+ "description": "Required. The parent resource whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"organizations/123456789\"."
1848+ },
1849+ "pageToken": {
1850+ "location": "query",
1851+ "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.",
1852+ "type": "string"
1853+ },
1854+ "pageSize": {
1855+ "type": "integer",
1856+ "location": "query",
1857+ "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.",
1858+ "format": "int32"
1859+ }
1860+ },
1861+ "flatPath": "v2/organizations/{organizationsId}/sinks",
1862+ "path": "v2/{+parent}/sinks",
1863+ "id": "logging.organizations.sinks.list",
1864+ "description": "Lists sinks."
1865+ },
1866+ "get": {
1867+ "response": {
1868+ "$ref": "LogSink"
1869+ },
1870+ "parameterOrder": [
1871+ "sinkName"
1872+ ],
1873+ "httpMethod": "GET",
1874+ "parameters": {
1875+ "sinkName": {
1876+ "location": "path",
1877+ "description": "Required. The parent resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".",
1878+ "required": true,
1879+ "type": "string",
1880+ "pattern": "^organizations/[^/]+/sinks/[^/]+$"
1881+ }
1882+ },
1883+ "scopes": [
1884+ "https://www.googleapis.com/auth/cloud-platform",
1885+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1886+ "https://www.googleapis.com/auth/logging.admin",
1887+ "https://www.googleapis.com/auth/logging.read"
1888+ ],
1889+ "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}",
1890+ "path": "v2/{+sinkName}",
1891+ "id": "logging.organizations.sinks.get",
1892+ "description": "Gets a sink."
1893+ },
1894+ "update": {
1895+ "request": {
1896+ "$ref": "LogSink"
1897+ },
1898+ "description": "Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.",
1899+ "response": {
1900+ "$ref": "LogSink"
1901+ },
1902+ "parameterOrder": [
1903+ "sinkName"
1904+ ],
1905+ "httpMethod": "PUT",
1906+ "parameters": {
1907+ "sinkName": {
1908+ "location": "path",
1909+ "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".",
1910+ "required": true,
1911+ "type": "string",
1912+ "pattern": "^organizations/[^/]+/sinks/[^/]+$"
1913+ },
1914+ "uniqueWriterIdentity": {
1915+ "type": "boolean",
1916+ "location": "query",
1917+ "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:\nIf 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.\nIf the old value was false and the new value is true, then writer_identity is changed to a unique service account.\nIt is an error if the old value was true and the new value is false."
1918+ }
1919+ },
1920+ "scopes": [
1921+ "https://www.googleapis.com/auth/cloud-platform",
1922+ "https://www.googleapis.com/auth/logging.admin"
1923+ ],
1924+ "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}",
1925+ "path": "v2/{+sinkName}",
1926+ "id": "logging.organizations.sinks.update"
1927+ },
1928+ "create": {
1929+ "request": {
1930+ "$ref": "LogSink"
1931+ },
1932+ "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times or 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.",
1933+ "response": {
1934+ "$ref": "LogSink"
1935+ },
1936+ "parameterOrder": [
1937+ "parent"
1938+ ],
1939+ "httpMethod": "POST",
1940+ "parameters": {
1941+ "parent": {
1942+ "location": "path",
1943+ "description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".",
1944+ "required": true,
1945+ "type": "string",
1946+ "pattern": "^organizations/[^/]+$"
1947+ },
1948+ "uniqueWriterIdentity": {
1949+ "type": "boolean",
1950+ "location": "query",
1951+ "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 cloud-logs@google.com, the same identity used 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."
1952+ }
1953+ },
1954+ "scopes": [
1955+ "https://www.googleapis.com/auth/cloud-platform",
1956+ "https://www.googleapis.com/auth/logging.admin"
1957+ ],
1958+ "flatPath": "v2/organizations/{organizationsId}/sinks",
1959+ "path": "v2/{+parent}/sinks",
1960+ "id": "logging.organizations.sinks.create"
1961+ },
1962+ "delete": {
1963+ "flatPath": "v2/organizations/{organizationsId}/sinks/{sinksId}",
1964+ "path": "v2/{+sinkName}",
1965+ "id": "logging.organizations.sinks.delete",
1966+ "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.",
1967+ "response": {
1968+ "$ref": "Empty"
1969+ },
1970+ "parameterOrder": [
1971+ "sinkName"
1972+ ],
1973+ "httpMethod": "DELETE",
1974+ "parameters": {
1975+ "sinkName": {
1976+ "location": "path",
1977+ "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nIt is an error if the sink does not exist. Example: \"projects/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist.",
1978+ "required": true,
1375− "type": "array",
1979+ "type": "string",
1376− "items": {
1980+ "pattern": "^organizations/[^/]+/sinks/[^/]+$"
1377− "type": "string"
1981+ }
1982+ },
1983+ "scopes": [
1984+ "https://www.googleapis.com/auth/cloud-platform",
1985+ "https://www.googleapis.com/auth/logging.admin"
1986+ ]
1987+ }
1378 }
1988 }
1379− },
1380− "pageSize": {
1381− "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.",
1382− "type": "integer",
1383− "format": "int32"
1384− },
1385− "orderBy": {
1386− "description": "Optional. How the results should be sorted. Presently, the only permitted\nvalues are `\"timestamp asc\"` (default) and `\"timestamp desc\"`. The first\noption returns entries in order of increasing values of\n`LogEntry.timestamp` (oldest first), and the second option returns entries\nin order of decreasing timestamps (newest first). Entries with equal\ntimestamps are returned in order of `LogEntry.insertId`.",
1387− "type": "string"
1388− },
1389− "pageToken": {
1390− "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
1391− "type": "string"
1392 }
1989 }
1393− },
1990+ }
1394− "id": "ListLogEntriesRequest"
1395 }
1991 }
1396 },
1992 },
1397− "revision": "20161017",
1398− "basePath": "",
1399− "icons": {
1400− "x32": "http://www.google.com/images/icons/product/search-32.gif",
1401− "x16": "http://www.google.com/images/icons/product/search-16.gif"
1402− },
1403− "version_module": "True",
1404− "canonicalName": "Logging",
1405− "discoveryVersion": "v1",
1406− "baseUrl": "https://logging.googleapis.com/",
1407− "name": "logging",
1408 "parameters": {
1993 "parameters": {
1409− "access_token": {
1994+ "upload_protocol": {
1410− "description": "OAuth access token.",
1995+ "location": "query",
1996+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
1411− "type": "string",
1997+ "type": "string"
1412− "location": "query"
1413 },
1998 },
1414 "prettyPrint": {
1999 "prettyPrint": {
2000+ "location": "query",
1415 "description": "Returns response with indentations and line breaks.",
2001 "description": "Returns response with indentations and line breaks.",
1416− "default": "true",
1417 "type": "boolean",
2002 "type": "boolean",
1418− "location": "query"
2003+ "default": "true"
1419 },
2004 },
1420− "key": {
2005+ "fields": {
1421− "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.",
1422 "type": "string",
2006 "type": "string",
1423− "location": "query"
2007+ "location": "query",
2008+ "description": "Selector specifying which fields to include in a partial response."
1424 },
2009 },
1425− "quotaUser": {
2010+ "uploadType": {
1426− "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.",
1427 "type": "string",
2011 "type": "string",
1428− "location": "query"
2012+ "location": "query",
2013+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
1429 },
2014 },
1430− "pp": {
2015+ "callback": {
2016+ "location": "query",
1431− "description": "Pretty-print response.",
2017+ "description": "JSONP",
1432− "default": "true",
2018+ "type": "string"
1433− "type": "boolean",
1434− "location": "query"
1435 },
2019 },
1436− "fields": {
2020+ "$.xgafv": {
1437− "description": "Selector specifying which fields to include in a partial response.",
2021+ "location": "query",
2022+ "enum": [
2023+ "1",
2024+ "2"
2025+ ],
2026+ "description": "V1 error format.",
1438 "type": "string",
2027 "type": "string",
1439− "location": "query"
2028+ "enumDescriptions": [
2029+ "v1 error format",
2030+ "v2 error format"
2031+ ]
1440 },
2032 },
1441 "alt": {
2033 "alt": {
1442− "description": "Data format for response.",
1443− "location": "query",
1444 "enum": [
2034 "enum": [
1445 "json",
2035 "json",
1446 "media",
2036 "media",
1447 "proto"
2037 "proto"
1448 ],
2038 ],
1449− "default": "json",
2039+ "type": "string",
1450 "enumDescriptions": [
2040 "enumDescriptions": [
1451 "Responses with Content-Type of application/json",
2041 "Responses with Content-Type of application/json",
1452 "Media download with context-dependent Content-Type",
2042 "Media download with context-dependent Content-Type",
1453 "Responses with Content-Type of application/x-protobuf"
2043 "Responses with Content-Type of application/x-protobuf"
1454 ],
2044 ],
1455− "type": "string"
2045+ "location": "query",
2046+ "description": "Data format for response.",
2047+ "default": "json"
1456 },
2048 },
1457− "$.xgafv": {
2049+ "key": {
1458− "description": "V1 error format.",
2050+ "location": "query",
1459− "enum": [
2051+ "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.",
1460− "1",
1461− "2"
1462− ],
1463− "enumDescriptions": [
1464− "v1 error format",
1465− "v2 error format"
1466− ],
1467− "type": "string",
2052+ "type": "string"
1468− "location": "query"
1469 },
2053 },
1470− "callback": {
2054+ "access_token": {
1471− "description": "JSONP",
1472 "type": "string",
2055 "type": "string",
1473− "location": "query"
2056+ "location": "query",
2057+ "description": "OAuth access token."
1474 },
2058 },
1475− "oauth_token": {
2059+ "quotaUser": {
1476− "description": "OAuth 2.0 token for the current user.",
1477 "type": "string",
2060 "type": "string",
1478− "location": "query"
2061+ "location": "query",
2062+ "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."
1479 },
2063 },
1480− "uploadType": {
2064+ "pp": {
1481− "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
2065+ "location": "query",
1482− "type": "string",
2066+ "description": "Pretty-print response.",
1483− "location": "query"
2067+ "type": "boolean",
2068+ "default": "true"
1484 },
2069 },
1485 "bearer_token": {
2070 "bearer_token": {
2071+ "location": "query",
1486 "description": "OAuth bearer token.",
2072 "description": "OAuth bearer token.",
1487− "type": "string",
2073+ "type": "string"
1488− "location": "query"
1489 },
2074 },
1490− "upload_protocol": {
2075+ "oauth_token": {
1491− "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
1492 "type": "string",
2076 "type": "string",
1493− "location": "query"
2077+ "location": "query",
2078+ "description": "OAuth 2.0 token for the current user."
1494 }
2079 }
1495 },
2080 },
1496− "documentationLink": "https://cloud.google.com/logging/docs/",
1497− "ownerDomain": "google.com",
1498− "batchPath": "batch",
1499− "servicePath": "",
1500− "ownerName": "Google",
1501 "version": "v2",
2081 "version": "v2",
1502− "rootUrl": "https://logging.googleapis.com/",
2082+ "baseUrl": "https://logging.googleapis.com/",
2083+ "description": "Writes log entries and manages your Stackdriver Logging configuration.",
1503− "kind": "discovery#restDescription"
2084+ "kind": "discovery#restDescription",
2085+ "servicePath": "",
2086+ "basePath": "",
2087+ "documentationLink": "https://cloud.google.com/logging/docs/",
2088+ "revision": "20170114",
2089+ "id": "logging:v2"
1504}
2090}
gen/model/logging/v2beta1/logging-api.json+1067−894
@@ -1,756 +1,963 @@
1{
1{
2− "id": "logging:v2beta1",
2+ "canonicalName": "Logging",
3 "auth": {
3 "auth": {
4 "oauth2": {
4 "oauth2": {
5 "scopes": {
5 "scopes": {
6− "https://www.googleapis.com/auth/cloud-platform": {
7− "description": "View and manage your data across Google Cloud Platform services"
8− },
9 "https://www.googleapis.com/auth/cloud-platform.read-only": {
6 "https://www.googleapis.com/auth/cloud-platform.read-only": {
10 "description": "View your data across Google Cloud Platform services"
7 "description": "View your data across Google Cloud Platform services"
11 },
8 },
9+ "https://www.googleapis.com/auth/logging.admin": {
10+ "description": "Administrate log data for your projects"
11+ },
12 "https://www.googleapis.com/auth/logging.read": {
12 "https://www.googleapis.com/auth/logging.read": {
13 "description": "View log data for your projects"
13 "description": "View log data for your projects"
14 },
14 },
15 "https://www.googleapis.com/auth/logging.write": {
15 "https://www.googleapis.com/auth/logging.write": {
16 "description": "Submit log data for your projects"
16 "description": "Submit log data for your projects"
17 },
17 },
18− "https://www.googleapis.com/auth/logging.admin": {
18+ "https://www.googleapis.com/auth/cloud-platform": {
19− "description": "Administrate log data for your projects"
19+ "description": "View and manage your data across Google Cloud Platform services"
20 }
20 }
21 }
21 }
22 }
22 }
23 },
23 },
24− "description": "Writes log entries and manages your Stackdriver Logging configuration.",
24+ "rootUrl": "https://logging.googleapis.com/",
25− "protocol": "rest",
25+ "ownerDomain": "google.com",
26+ "name": "logging",
27+ "batchPath": "batch",
26 "title": "Stackdriver Logging API",
28 "title": "Stackdriver Logging API",
29+ "ownerName": "Google",
27 "resources": {
30 "resources": {
28 "projects": {
31 "projects": {
29 "resources": {
32 "resources": {
30− "metrics": {
33+ "logs": {
31 "methods": {
34 "methods": {
32− "update": {
35+ "delete": {
36+ "path": "v2beta1/{+logName}",
33− "id": "logging.projects.metrics.update",
37+ "id": "logging.projects.logs.delete",
34− "response": {
38+ "description": "Deletes all the log entries in a log. The log reappears if it receives new entries.",
35− "$ref": "LogMetric"
36− },
37 "parameterOrder": [
39 "parameterOrder": [
38− "metricName"
40+ "logName"
39 ],
41 ],
40− "description": "Creates or updates a logs-based metric.",
42+ "httpMethod": "DELETE",
41− "request": {
43+ "response": {
42− "$ref": "LogMetric"
44+ "$ref": "Empty"
43 },
45 },
44− "flatPath": "v2beta1/projects/{projectsId}/metrics/{metricsId}",
45− "httpMethod": "PUT",
46 "parameters": {
46 "parameters": {
47− "metricName": {
47+ "logName": {
48− "description": "The resource name of the metric to update.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.\n\nThe updated metric must be provided in the request and have the\nsame identifier that is specified in `metricName`.\nIf the metric does not exist, it is created.",
49− "required": true,
50− "pattern": "^projects/[^/]+/metrics/[^/]+$",
48+ "pattern": "^projects/[^/]+/logs/[^/]+$",
51 "location": "path",
49 "location": "path",
50+ "description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
51+ "required": true,
52 "type": "string"
52 "type": "string"
53 }
53 }
54 },
54 },
55− "path": "v2beta1/{+metricName}",
56 "scopes": [
55 "scopes": [
57 "https://www.googleapis.com/auth/cloud-platform",
56 "https://www.googleapis.com/auth/cloud-platform",
58− "https://www.googleapis.com/auth/logging.admin",
57+ "https://www.googleapis.com/auth/logging.admin"
59− "https://www.googleapis.com/auth/logging.write"
58+ ],
60− ]
59+ "flatPath": "v2beta1/projects/{projectsId}/logs/{logsId}"
61 },
60 },
62− "get": {
61+ "list": {
63− "id": "logging.projects.metrics.get",
62+ "description": "Lists the logs in projects or organizations. Only logs that have entries are listed.",
63+ "httpMethod": "GET",
64 "response": {
64 "response": {
65− "$ref": "LogMetric"
65+ "$ref": "ListLogsResponse"
66 },
66 },
67 "parameterOrder": [
67 "parameterOrder": [
68− "metricName"
68+ "parent"
69 ],
69 ],
70− "description": "Gets a logs-based metric.",
71− "flatPath": "v2beta1/projects/{projectsId}/metrics/{metricsId}",
72− "httpMethod": "GET",
73− "parameters": {
74− "metricName": {
75− "description": "The resource name of the desired metric.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.",
76− "required": true,
77− "pattern": "^projects/[^/]+/metrics/[^/]+$",
78− "location": "path",
79− "type": "string"
80− }
81− },
82− "path": "v2beta1/{+metricName}",
83 "scopes": [
70 "scopes": [
84 "https://www.googleapis.com/auth/cloud-platform",
71 "https://www.googleapis.com/auth/cloud-platform",
85 "https://www.googleapis.com/auth/cloud-platform.read-only",
72 "https://www.googleapis.com/auth/cloud-platform.read-only",
86 "https://www.googleapis.com/auth/logging.admin",
73 "https://www.googleapis.com/auth/logging.admin",
87 "https://www.googleapis.com/auth/logging.read"
74 "https://www.googleapis.com/auth/logging.read"
88− ]
89− },
90− "create": {
91− "id": "logging.projects.metrics.create",
92− "response": {
93− "$ref": "LogMetric"
94− },
95− "parameterOrder": [
96− "parent"
97 ],
75 ],
98− "description": "Creates a logs-based metric.",
99− "request": {
100− "$ref": "LogMetric"
101− },
102− "flatPath": "v2beta1/projects/{projectsId}/metrics",
103− "httpMethod": "POST",
104 "parameters": {
76 "parameters": {
105 "parent": {
77 "parent": {
106− "description": "The resource name of the project in which to create the metric.\nExample: `\"projects/my-project-id\"`.\n\nThe new metric must be provided in the request.",
107− "required": true,
108 "pattern": "^projects/[^/]+$",
78 "pattern": "^projects/[^/]+$",
109 "location": "path",
79 "location": "path",
110− "type": "string"
111− }
112− },
113− "path": "v2beta1/{+parent}/metrics",
114− "scopes": [
115− "https://www.googleapis.com/auth/cloud-platform",
116− "https://www.googleapis.com/auth/logging.admin",
117− "https://www.googleapis.com/auth/logging.write"
118− ]
119− },
120− "list": {
121− "id": "logging.projects.metrics.list",
122− "response": {
123− "$ref": "ListLogMetricsResponse"
124− },
125− "parameterOrder": [
126− "parent"
127− ],
128− "description": "Lists logs-based metrics.",
129− "flatPath": "v2beta1/projects/{projectsId}/metrics",
130− "httpMethod": "GET",
131− "parameters": {
132− "pageSize": {
133− "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.",
134− "location": "query",
135− "type": "integer",
136− "format": "int32"
137− },
138− "parent": {
139− "description": "Required. The resource name containing the metrics.\nExample: `\"projects/my-project-id\"`.",
80+ "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n",
140 "required": true,
81 "required": true,
141− "pattern": "^projects/[^/]+$",
142− "location": "path",
143 "type": "string"
82 "type": "string"
144 },
83 },
145 "pageToken": {
84 "pageToken": {
146− "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
147 "location": "query",
85 "location": "query",
86+ "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.",
148 "type": "string"
87 "type": "string"
88+ },
89+ "pageSize": {
90+ "location": "query",
91+ "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.",
92+ "format": "int32",
93+ "type": "integer"
149 }
94 }
150 },
95 },
96+ "flatPath": "v2beta1/projects/{projectsId}/logs",
97+ "id": "logging.projects.logs.list",
151− "path": "v2beta1/{+parent}/metrics",
98+ "path": "v2beta1/{+parent}/logs"
152− "scopes": [
153− "https://www.googleapis.com/auth/cloud-platform",
154− "https://www.googleapis.com/auth/cloud-platform.read-only",
155− "https://www.googleapis.com/auth/logging.admin",
156− "https://www.googleapis.com/auth/logging.read"
157− ]
158− },
99+ }
100+ }
101+ },
102+ "sinks": {
103+ "methods": {
159 "delete": {
104 "delete": {
105+ "path": "v2beta1/{+sinkName}",
160− "id": "logging.projects.metrics.delete",
106+ "id": "logging.projects.sinks.delete",
107+ "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.",
161 "response": {
108 "response": {
162 "$ref": "Empty"
109 "$ref": "Empty"
163 },
110 },
111+ "httpMethod": "DELETE",
164 "parameterOrder": [
112 "parameterOrder": [
165− "metricName"
113+ "sinkName"
114+ ],
115+ "scopes": [
116+ "https://www.googleapis.com/auth/cloud-platform",
117+ "https://www.googleapis.com/auth/logging.admin"
166 ],
118 ],
167− "description": "Deletes a logs-based metric.",
168− "flatPath": "v2beta1/projects/{projectsId}/metrics/{metricsId}",
169− "httpMethod": "DELETE",
170 "parameters": {
119 "parameters": {
171− "metricName": {
120+ "sinkName": {
172− "description": "The resource name of the metric to delete.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.",
173− "required": true,
174− "pattern": "^projects/[^/]+/metrics/[^/]+$",
121+ "pattern": "^projects/[^/]+/sinks/[^/]+$",
175 "location": "path",
122 "location": "path",
123+ "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nIt is an error if the sink does not exist. Example: \"projects/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist.",
124+ "required": true,
176 "type": "string"
125 "type": "string"
177 }
126 }
178 },
127 },
179− "path": "v2beta1/{+metricName}",
128+ "flatPath": "v2beta1/projects/{projectsId}/sinks/{sinksId}"
129+ },
130+ "list": {
131+ "httpMethod": "GET",
132+ "parameterOrder": [
133+ "parent"
134+ ],
135+ "response": {
136+ "$ref": "ListSinksResponse"
137+ },
180 "scopes": [
138 "scopes": [
181 "https://www.googleapis.com/auth/cloud-platform",
139 "https://www.googleapis.com/auth/cloud-platform",
140+ "https://www.googleapis.com/auth/cloud-platform.read-only",
182 "https://www.googleapis.com/auth/logging.admin",
141 "https://www.googleapis.com/auth/logging.admin",
183− "https://www.googleapis.com/auth/logging.write"
142+ "https://www.googleapis.com/auth/logging.read"
184− ]
185− }
186− }
187− },
188− "logs": {
189− "methods": {
190− "delete": {
191− "id": "logging.projects.logs.delete",
192− "response": {
193− "$ref": "Empty"
194− },
195− "parameterOrder": [
196− "logName"
197 ],
143 ],
198− "description": "Deletes a log and all its log entries.\nThe log will reappear if it receives new entries.",
199− "flatPath": "v2beta1/projects/{projectsId}/logs/{logsId}",
200− "httpMethod": "DELETE",
201 "parameters": {
144 "parameters": {
202− "logName": {
145+ "pageToken": {
203− "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.",
146+ "location": "query",
204− "required": true,
147+ "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.",
205− "pattern": "^projects/[^/]+/logs/[^/]+$",
206− "location": "path",
207 "type": "string"
148 "type": "string"
149+ },
150+ "pageSize": {
151+ "location": "query",
152+ "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.",
153+ "format": "int32",
154+ "type": "integer"
155+ },
156+ "parent": {
157+ "description": "Required. The parent resource whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"organizations/123456789\".",
158+ "required": true,
159+ "type": "string",
160+ "pattern": "^projects/[^/]+$",
161+ "location": "path"
208 }
162 }
209 },
163 },
164+ "flatPath": "v2beta1/projects/{projectsId}/sinks",
165+ "id": "logging.projects.sinks.list",
210− "path": "v2beta1/{+logName}",
166+ "path": "v2beta1/{+parent}/sinks",
211− "scopes": [
167+ "description": "Lists sinks."
212− "https://www.googleapis.com/auth/cloud-platform",
213− "https://www.googleapis.com/auth/logging.admin"
214− ]
215− }
168+ },
216− }
169+ "get": {
217− },
170+ "description": "Gets a sink.",
218− "sinks": {
219− "methods": {
220− "update": {
221− "id": "logging.projects.sinks.update",
222 "response": {
171 "response": {
223 "$ref": "LogSink"
172 "$ref": "LogSink"
224 },
173 },
225 "parameterOrder": [
174 "parameterOrder": [
226 "sinkName"
175 "sinkName"
227 ],
176 ],
228− "description": "Updates or creates a sink.",
229− "request": {
230− "$ref": "LogSink"
231− },
232− "flatPath": "v2beta1/projects/{projectsId}/sinks/{sinksId}",
233− "httpMethod": "PUT",
177+ "httpMethod": "GET",
178+ "scopes": [
179+ "https://www.googleapis.com/auth/cloud-platform",
180+ "https://www.googleapis.com/auth/cloud-platform.read-only",
181+ "https://www.googleapis.com/auth/logging.admin",
182+ "https://www.googleapis.com/auth/logging.read"
183+ ],
234 "parameters": {
184 "parameters": {
235 "sinkName": {
185 "sinkName": {
236− "description": "Required. The resource name of the sink to update, including the parent\nresource and the sink identifier. If the sink does not exist, this method\ncreates the sink. Example: `\"projects/my-project-id/sinks/my-sink-id\"`.",
237− "required": true,
238 "pattern": "^projects/[^/]+/sinks/[^/]+$",
186 "pattern": "^projects/[^/]+/sinks/[^/]+$",
239 "location": "path",
187 "location": "path",
188+ "description": "Required. The parent resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".",
189+ "required": true,
240 "type": "string"
190 "type": "string"
241 }
191 }
242 },
192 },
193+ "flatPath": "v2beta1/projects/{projectsId}/sinks/{sinksId}",
243 "path": "v2beta1/{+sinkName}",
194 "path": "v2beta1/{+sinkName}",
244− "scopes": [
195+ "id": "logging.projects.sinks.get"
245− "https://www.googleapis.com/auth/cloud-platform",
246− "https://www.googleapis.com/auth/logging.admin"
247− ]
248 },
196 },
249− "get": {
197+ "update": {
250− "id": "logging.projects.sinks.get",
198+ "httpMethod": "PUT",
251− "response": {
252− "$ref": "LogSink"
253− },
254 "parameterOrder": [
199 "parameterOrder": [
255 "sinkName"
200 "sinkName"
256 ],
201 ],
257− "description": "Gets a sink.",
202+ "response": {
258− "flatPath": "v2beta1/projects/{projectsId}/sinks/{sinksId}",
203+ "$ref": "LogSink"
259− "httpMethod": "GET",
204+ },
260 "parameters": {
205 "parameters": {
261 "sinkName": {
206 "sinkName": {
262− "description": "Required. The resource name of the sink to return.\nExample: `\"projects/my-project-id/sinks/my-sink-id\"`.",
207+ "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".",
263 "required": true,
208 "required": true,
209+ "type": "string",
264 "pattern": "^projects/[^/]+/sinks/[^/]+$",
210 "pattern": "^projects/[^/]+/sinks/[^/]+$",
265− "location": "path",
211+ "location": "path"
266− "type": "string"
212+ },
213+ "uniqueWriterIdentity": {
214+ "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:\nIf 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.\nIf the old value was false and the new value is true, then writer_identity is changed to a unique service account.\nIt is an error if the old value was true and the new value is false.",
215+ "type": "boolean",
216+ "location": "query"
267 }
217 }
268 },
218 },
269− "path": "v2beta1/{+sinkName}",
270 "scopes": [
219 "scopes": [
271 "https://www.googleapis.com/auth/cloud-platform",
220 "https://www.googleapis.com/auth/cloud-platform",
272− "https://www.googleapis.com/auth/cloud-platform.read-only",
221+ "https://www.googleapis.com/auth/logging.admin"
273− "https://www.googleapis.com/auth/logging.admin",
274− "https://www.googleapis.com/auth/logging.read"
275− ]
222+ ],
223+ "flatPath": "v2beta1/projects/{projectsId}/sinks/{sinksId}",
224+ "id": "logging.projects.sinks.update",
225+ "path": "v2beta1/{+sinkName}",
226+ "request": {
227+ "$ref": "LogSink"
228+ },
229+ "description": "Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field."
276 },
230 },
277 "create": {
231 "create": {
278− "id": "logging.projects.sinks.create",
279 "response": {
232 "response": {
280 "$ref": "LogSink"
233 "$ref": "LogSink"
281 },
234 },
282 "parameterOrder": [
235 "parameterOrder": [
283 "parent"
236 "parent"
284 ],
237 ],
285− "description": "Creates a sink.",
286− "request": {
287− "$ref": "LogSink"
288− },
289− "flatPath": "v2beta1/projects/{projectsId}/sinks",
290 "httpMethod": "POST",
238 "httpMethod": "POST",
239+ "scopes": [
240+ "https://www.googleapis.com/auth/cloud-platform",
241+ "https://www.googleapis.com/auth/logging.admin"
242+ ],
291 "parameters": {
243 "parameters": {
292 "parent": {
244 "parent": {
293− "description": "Required. The resource in which to create the sink.\nExample: `\"projects/my-project-id\"`.\nThe new sink must be provided in the request.",
294− "required": true,
295 "pattern": "^projects/[^/]+$",
245 "pattern": "^projects/[^/]+$",
296 "location": "path",
246 "location": "path",
247+ "description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".",
248+ "required": true,
297 "type": "string"
249 "type": "string"
250+ },
251+ "uniqueWriterIdentity": {
252+ "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 cloud-logs@google.com, the same identity used 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.",
253+ "type": "boolean",
254+ "location": "query"
298 }
255 }
299 },
256 },
257+ "flatPath": "v2beta1/projects/{projectsId}/sinks",
300 "path": "v2beta1/{+parent}/sinks",
258 "path": "v2beta1/{+parent}/sinks",
259+ "id": "logging.projects.sinks.create",
260+ "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times or 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.",
261+ "request": {
262+ "$ref": "LogSink"
263+ }
264+ }
265+ }
266+ },
267+ "metrics": {
268+ "methods": {
269+ "create": {
270+ "response": {
271+ "$ref": "LogMetric"
272+ },
273+ "parameterOrder": [
274+ "parent"
275+ ],
276+ "httpMethod": "POST",
277+ "parameters": {
278+ "parent": {
279+ "description": "The resource name of the project in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric must be provided in the request.",
280+ "required": true,
281+ "type": "string",
282+ "pattern": "^projects/[^/]+$",
283+ "location": "path"
284+ }
285+ },
301 "scopes": [
286 "scopes": [
302 "https://www.googleapis.com/auth/cloud-platform",
287 "https://www.googleapis.com/auth/cloud-platform",
303− "https://www.googleapis.com/auth/logging.admin"
288+ "https://www.googleapis.com/auth/logging.admin",
304− ]
289+ "https://www.googleapis.com/auth/logging.write"
290+ ],
291+ "flatPath": "v2beta1/projects/{projectsId}/metrics",
292+ "path": "v2beta1/{+parent}/metrics",
293+ "id": "logging.projects.metrics.create",
294+ "request": {
295+ "$ref": "LogMetric"
296+ },
297+ "description": "Creates a logs-based metric."
298+ },
299+ "delete": {
300+ "path": "v2beta1/{+metricName}",
301+ "id": "logging.projects.metrics.delete",
302+ "description": "Deletes a logs-based metric.",
303+ "parameterOrder": [
304+ "metricName"
305+ ],
306+ "response": {
307+ "$ref": "Empty"
308+ },
309+ "httpMethod": "DELETE",
310+ "scopes": [
311+ "https://www.googleapis.com/auth/cloud-platform",
312+ "https://www.googleapis.com/auth/logging.admin",
313+ "https://www.googleapis.com/auth/logging.write"
314+ ],
315+ "parameters": {
316+ "metricName": {
317+ "pattern": "^projects/[^/]+/metrics/[^/]+$",
318+ "location": "path",
319+ "description": "The resource name of the metric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
320+ "required": true,
321+ "type": "string"
322+ }
323+ },
324+ "flatPath": "v2beta1/projects/{projectsId}/metrics/{metricsId}"
305 },
325 },
306 "list": {
326 "list": {
307− "id": "logging.projects.sinks.list",
327+ "id": "logging.projects.metrics.list",
328+ "path": "v2beta1/{+parent}/metrics",
329+ "description": "Lists logs-based metrics.",
330+ "httpMethod": "GET",
308 "response": {
331 "response": {
309− "$ref": "ListSinksResponse"
332+ "$ref": "ListLogMetricsResponse"
310 },
333 },
311 "parameterOrder": [
334 "parameterOrder": [
312 "parent"
335 "parent"
313 ],
336 ],
314− "description": "Lists sinks.",
315− "flatPath": "v2beta1/projects/{projectsId}/sinks",
316− "httpMethod": "GET",
317 "parameters": {
337 "parameters": {
318− "pageSize": {
319− "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.",
320− "location": "query",
321− "type": "integer",
322− "format": "int32"
323− },
324 "parent": {
338 "parent": {
325− "description": "Required. The cloud resource containing the sinks.\nExample: `\"projects/my-logging-project\"`.",
326− "required": true,
327 "pattern": "^projects/[^/]+$",
339 "pattern": "^projects/[^/]+$",
328 "location": "path",
340 "location": "path",
341+ "description": "Required. The name of the project containing the metrics:\n\"projects/[PROJECT_ID]\"\n",
342+ "required": true,
329 "type": "string"
343 "type": "string"
330 },
344 },
331 "pageToken": {
345 "pageToken": {
332− "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
346+ "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.",
333− "location": "query",
334− "type": "string"
347+ "type": "string",
348+ "location": "query"
349+ },
350+ "pageSize": {
351+ "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.",
352+ "format": "int32",
353+ "type": "integer",
354+ "location": "query"
335 }
355 }
336 },
356 },
337− "path": "v2beta1/{+parent}/sinks",
338 "scopes": [
357 "scopes": [
339 "https://www.googleapis.com/auth/cloud-platform",
358 "https://www.googleapis.com/auth/cloud-platform",
340 "https://www.googleapis.com/auth/cloud-platform.read-only",
359 "https://www.googleapis.com/auth/cloud-platform.read-only",
341 "https://www.googleapis.com/auth/logging.admin",
360 "https://www.googleapis.com/auth/logging.admin",
342 "https://www.googleapis.com/auth/logging.read"
361 "https://www.googleapis.com/auth/logging.read"
343− ]
362+ ],
363+ "flatPath": "v2beta1/projects/{projectsId}/metrics"
344 },
364 },
345− "delete": {
365+ "get": {
346− "id": "logging.projects.sinks.delete",
347 "response": {
366 "response": {
348− "$ref": "Empty"
367+ "$ref": "LogMetric"
349 },
368 },
350 "parameterOrder": [
369 "parameterOrder": [
351− "sinkName"
370+ "metricName"
352 ],
371 ],
353− "description": "Deletes a sink.",
354− "flatPath": "v2beta1/projects/{projectsId}/sinks/{sinksId}",
355− "httpMethod": "DELETE",
372+ "httpMethod": "GET",
356 "parameters": {
373 "parameters": {
357− "sinkName": {
374+ "metricName": {
358− "description": "Required. The resource name of the sink to delete, including the parent\nresource and the sink identifier. Example:\n`\"projects/my-project-id/sinks/my-sink-id\"`. It is an error if the sink\ndoes not exist.",
375+ "description": "The resource name of the desired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
359 "required": true,
376 "required": true,
377+ "type": "string",
378+ "pattern": "^projects/[^/]+/metrics/[^/]+$",
379+ "location": "path"
380+ }
381+ },
382+ "scopes": [
383+ "https://www.googleapis.com/auth/cloud-platform",
384+ "https://www.googleapis.com/auth/cloud-platform.read-only",
385+ "https://www.googleapis.com/auth/logging.admin",
386+ "https://www.googleapis.com/auth/logging.read"
387+ ],
388+ "flatPath": "v2beta1/projects/{projectsId}/metrics/{metricsId}",
389+ "path": "v2beta1/{+metricName}",
390+ "id": "logging.projects.metrics.get",
391+ "description": "Gets a logs-based metric."
392+ },
393+ "update": {
394+ "parameters": {
395+ "metricName": {
360− "pattern": "^projects/[^/]+/sinks/[^/]+$",
396+ "pattern": "^projects/[^/]+/metrics/[^/]+$",
361 "location": "path",
397 "location": "path",
398+ "description": "The resource name of the metric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe 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.",
399+ "required": true,
362 "type": "string"
400 "type": "string"
363 }
401 }
364 },
402 },
365− "path": "v2beta1/{+sinkName}",
366 "scopes": [
403 "scopes": [
367 "https://www.googleapis.com/auth/cloud-platform",
404 "https://www.googleapis.com/auth/cloud-platform",
368− "https://www.googleapis.com/auth/logging.admin"
405+ "https://www.googleapis.com/auth/logging.admin",
406+ "https://www.googleapis.com/auth/logging.write"
407+ ],
408+ "flatPath": "v2beta1/projects/{projectsId}/metrics/{metricsId}",
409+ "id": "logging.projects.metrics.update",
410+ "path": "v2beta1/{+metricName}",
411+ "request": {
412+ "$ref": "LogMetric"
413+ },
414+ "description": "Creates or updates a logs-based metric.",
415+ "httpMethod": "PUT",
416+ "parameterOrder": [
417+ "metricName"
369− ]
418+ ],
419+ "response": {
420+ "$ref": "LogMetric"
421+ }
370 }
422 }
371 }
423 }
372 }
424 }
373 }
425 }
374 },
426 },
375− "organizations": {
427+ "billingAccounts": {
376 "resources": {
428 "resources": {
377 "logs": {
429 "logs": {
378 "methods": {
430 "methods": {
379 "delete": {
431 "delete": {
380− "id": "logging.organizations.logs.delete",
432+ "description": "Deletes all the log entries in a log. The log reappears if it receives new entries.",
433+ "httpMethod": "DELETE",
381 "response": {
434 "response": {
382 "$ref": "Empty"
435 "$ref": "Empty"
383 },
436 },
384 "parameterOrder": [
437 "parameterOrder": [
385 "logName"
438 "logName"
386 ],
439 ],
387− "description": "Deletes a log and all its log entries.\nThe log will reappear if it receives new entries.",
388− "flatPath": "v2beta1/organizations/{organizationsId}/logs/{logsId}",
389− "httpMethod": "DELETE",
390 "parameters": {
440 "parameters": {
391 "logName": {
441 "logName": {
392− "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.",
442+ "description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
393 "required": true,
443 "required": true,
444+ "type": "string",
394− "pattern": "^organizations/[^/]+/logs/[^/]+$",
445+ "pattern": "^billingAccounts/[^/]+/logs/[^/]+$",
446+ "location": "path"
447+ }
448+ },
449+ "scopes": [
450+ "https://www.googleapis.com/auth/cloud-platform",
451+ "https://www.googleapis.com/auth/logging.admin"
452+ ],
453+ "flatPath": "v2beta1/billingAccounts/{billingAccountsId}/logs/{logsId}",
454+ "id": "logging.billingAccounts.logs.delete",
455+ "path": "v2beta1/{+logName}"
456+ },
457+ "list": {
458+ "parameters": {
459+ "pageToken": {
460+ "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.",
461+ "type": "string",
462+ "location": "query"
463+ },
464+ "pageSize": {
465+ "location": "query",
466+ "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.",
467+ "format": "int32",
468+ "type": "integer"
469+ },
470+ "parent": {
471+ "pattern": "^billingAccounts/[^/]+$",
395 "location": "path",
472 "location": "path",
473+ "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n",
474+ "required": true,
396 "type": "string"
475 "type": "string"
397 }
476 }
398 },
477 },
399− "path": "v2beta1/{+logName}",
400 "scopes": [
478 "scopes": [
401 "https://www.googleapis.com/auth/cloud-platform",
479 "https://www.googleapis.com/auth/cloud-platform",
402− "https://www.googleapis.com/auth/logging.admin"
480+ "https://www.googleapis.com/auth/cloud-platform.read-only",
481+ "https://www.googleapis.com/auth/logging.admin",
482+ "https://www.googleapis.com/auth/logging.read"
483+ ],
484+ "flatPath": "v2beta1/billingAccounts/{billingAccountsId}/logs",
485+ "id": "logging.billingAccounts.logs.list",
486+ "path": "v2beta1/{+parent}/logs",
487+ "description": "Lists the logs in projects or organizations. Only logs that have entries are listed.",
488+ "httpMethod": "GET",
489+ "response": {
490+ "$ref": "ListLogsResponse"
491+ },
492+ "parameterOrder": [
493+ "parent"
403 ]
494 ]
404 }
495 }
405 }
496 }
406 }
497 }
407 }
498 }
408 },
499 },
409− "entries": {
410− "methods": {
411− "write": {
412− "id": "logging.entries.write",
413− "response": {
414− "$ref": "WriteLogEntriesResponse"
415− },
416− "parameterOrder": [],
417− "description": "Writes log entries to Stackdriver Logging. All log entries are\nwritten by this method.",
418− "request": {
419− "$ref": "WriteLogEntriesRequest"
420− },
421− "flatPath": "v2beta1/entries:write",
422− "httpMethod": "POST",
423− "parameters": {},
424− "path": "v2beta1/entries:write",
425− "scopes": [
426− "https://www.googleapis.com/auth/cloud-platform",
427− "https://www.googleapis.com/auth/logging.admin",
428− "https://www.googleapis.com/auth/logging.write"
429− ]
430− },
431− "list": {
432− "id": "logging.entries.list",
433− "response": {
434− "$ref": "ListLogEntriesResponse"
435− },
436− "parameterOrder": [],
437− "description": "Lists log entries. Use this method to retrieve log entries from Cloud\nLogging. For ways to export log entries, see\n[Exporting Logs](/logging/docs/export).",
438− "request": {
439− "$ref": "ListLogEntriesRequest"
440− },
441− "flatPath": "v2beta1/entries:list",
442− "httpMethod": "POST",
443− "parameters": {},
444− "path": "v2beta1/entries:list",
445− "scopes": [
446− "https://www.googleapis.com/auth/cloud-platform",
447− "https://www.googleapis.com/auth/cloud-platform.read-only",
448− "https://www.googleapis.com/auth/logging.admin",
449− "https://www.googleapis.com/auth/logging.read"
450− ]
451− }
452− }
453− },
454 "monitoredResourceDescriptors": {
500 "monitoredResourceDescriptors": {
455 "methods": {
501 "methods": {
456 "list": {
502 "list": {
457− "id": "logging.monitoredResourceDescriptors.list",
503+ "parameterOrder": [],
458 "response": {
504 "response": {
459 "$ref": "ListMonitoredResourceDescriptorsResponse"
505 "$ref": "ListMonitoredResourceDescriptorsResponse"
460 },
506 },
461− "parameterOrder": [],
462− "description": "Lists the monitored resource descriptors used by Stackdriver Logging.",
463− "flatPath": "v2beta1/monitoredResourceDescriptors",
464 "httpMethod": "GET",
507 "httpMethod": "GET",
465 "parameters": {
508 "parameters": {
466− "pageSize": {
467− "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.",
468− "location": "query",
469− "type": "integer",
470− "format": "int32"
471− },
472 "pageToken": {
509 "pageToken": {
473− "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
474 "location": "query",
510 "location": "query",
511+ "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.",
475 "type": "string"
512 "type": "string"
513+ },
514+ "pageSize": {
515+ "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.",
516+ "format": "int32",
517+ "type": "integer",
518+ "location": "query"
476 }
519 }
477 },
520 },
478− "path": "v2beta1/monitoredResourceDescriptors",
479 "scopes": [
521 "scopes": [
480 "https://www.googleapis.com/auth/cloud-platform",
522 "https://www.googleapis.com/auth/cloud-platform",
481 "https://www.googleapis.com/auth/cloud-platform.read-only",
523 "https://www.googleapis.com/auth/cloud-platform.read-only",
482 "https://www.googleapis.com/auth/logging.admin",
524 "https://www.googleapis.com/auth/logging.admin",
483 "https://www.googleapis.com/auth/logging.read"
525 "https://www.googleapis.com/auth/logging.read"
484− ]
526+ ],
527+ "flatPath": "v2beta1/monitoredResourceDescriptors",
528+ "path": "v2beta1/monitoredResourceDescriptors",
529+ "id": "logging.monitoredResourceDescriptors.list",
530+ "description": "Lists the descriptors for monitored resource types used by Stackdriver Logging."
485 }
531 }
486 }
532 }
487 },
533 },
488− "billingAccounts": {
534+ "organizations": {
489 "resources": {
535 "resources": {
490 "logs": {
536 "logs": {
491 "methods": {
537 "methods": {
492 "delete": {
538 "delete": {
493− "id": "logging.billingAccounts.logs.delete",
539+ "description": "Deletes all the log entries in a log. The log reappears if it receives new entries.",
494− "response": {
495− "$ref": "Empty"
496− },
497 "parameterOrder": [
540 "parameterOrder": [
498 "logName"
541 "logName"
499 ],
542 ],
500− "description": "Deletes a log and all its log entries.\nThe log will reappear if it receives new entries.",
543+ "response": {
501− "flatPath": "v2beta1/billingAccounts/{billingAccountsId}/logs/{logsId}",
544+ "$ref": "Empty"
545+ },
502 "httpMethod": "DELETE",
546 "httpMethod": "DELETE",
503 "parameters": {
547 "parameters": {
504 "logName": {
548 "logName": {
505− "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.",
506− "required": true,
507− "pattern": "^billingAccounts/[^/]+/logs/[^/]+$",
549+ "pattern": "^organizations/[^/]+/logs/[^/]+$",
508 "location": "path",
550 "location": "path",
551+ "description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
552+ "required": true,
509 "type": "string"
553 "type": "string"
510 }
554 }
511 },
555 },
512− "path": "v2beta1/{+logName}",
513 "scopes": [
556 "scopes": [
514 "https://www.googleapis.com/auth/cloud-platform",
557 "https://www.googleapis.com/auth/cloud-platform",
515 "https://www.googleapis.com/auth/logging.admin"
558 "https://www.googleapis.com/auth/logging.admin"
516− ]
559+ ],
560+ "flatPath": "v2beta1/organizations/{organizationsId}/logs/{logsId}",
561+ "path": "v2beta1/{+logName}",
562+ "id": "logging.organizations.logs.delete"
563+ },
564+ "list": {
565+ "description": "Lists the logs in projects or organizations. Only logs that have entries are listed.",
566+ "httpMethod": "GET",
567+ "response": {
568+ "$ref": "ListLogsResponse"
569+ },
570+ "parameterOrder": [
571+ "parent"
572+ ],
573+ "parameters": {
574+ "parent": {
575+ "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n",
576+ "required": true,
577+ "type": "string",
578+ "pattern": "^organizations/[^/]+$",
579+ "location": "path"
580+ },
581+ "pageToken": {
582+ "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.",
583+ "type": "string",
584+ "location": "query"
585+ },
586+ "pageSize": {
587+ "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.",
588+ "format": "int32",
589+ "type": "integer",
590+ "location": "query"
591+ }
592+ },
593+ "scopes": [
594+ "https://www.googleapis.com/auth/cloud-platform",
595+ "https://www.googleapis.com/auth/cloud-platform.read-only",
596+ "https://www.googleapis.com/auth/logging.admin",
597+ "https://www.googleapis.com/auth/logging.read"
598+ ],
599+ "flatPath": "v2beta1/organizations/{organizationsId}/logs",
600+ "id": "logging.organizations.logs.list",
601+ "path": "v2beta1/{+parent}/logs"
517− }
602+ }
518− }
603+ }
519− }
604+ }
520− }
605+ }
521− }
606+ },
607+ "entries": {
608+ "methods": {
609+ "list": {
610+ "request": {
611+ "$ref": "ListLogEntriesRequest"
612+ },
613+ "description": "Lists log entries. Use this method to retrieve log entries from Stackdriver Logging. For ways to export log entries, see Exporting Logs.",
614+ "response": {
615+ "$ref": "ListLogEntriesResponse"
616+ },
617+ "parameterOrder": [],
618+ "httpMethod": "POST",
619+ "parameters": {},
620+ "scopes": [
621+ "https://www.googleapis.com/auth/cloud-platform",
622+ "https://www.googleapis.com/auth/cloud-platform.read-only",
623+ "https://www.googleapis.com/auth/logging.admin",
624+ "https://www.googleapis.com/auth/logging.read"
625+ ],
626+ "flatPath": "v2beta1/entries:list",
627+ "path": "v2beta1/entries:list",
628+ "id": "logging.entries.list"
629+ },
630+ "write": {
631+ "id": "logging.entries.write",
632+ "path": "v2beta1/entries:write",
633+ "request": {
634+ "$ref": "WriteLogEntriesRequest"
635+ },
636+ "description": "Writes log entries to Stackdriver Logging. All log entries are written by this method.",
637+ "httpMethod": "POST",
638+ "parameterOrder": [],
639+ "response": {
640+ "$ref": "WriteLogEntriesResponse"
641+ },
642+ "parameters": {},
643+ "scopes": [
644+ "https://www.googleapis.com/auth/cloud-platform",
645+ "https://www.googleapis.com/auth/logging.admin",
646+ "https://www.googleapis.com/auth/logging.write"
647+ ],
648+ "flatPath": "v2beta1/entries:write"
649+ }
650+ }
651+ }
652+ },
653+ "parameters": {
654+ "key": {
655+ "location": "query",
656+ "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.",
657+ "type": "string"
658+ },
659+ "access_token": {
660+ "description": "OAuth access token.",
661+ "type": "string",
662+ "location": "query"
663+ },
664+ "quotaUser": {
665+ "location": "query",
666+ "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.",
667+ "type": "string"
668+ },
669+ "pp": {
670+ "description": "Pretty-print response.",
671+ "type": "boolean",
672+ "default": "true",
673+ "location": "query"
674+ },
675+ "bearer_token": {
676+ "description": "OAuth bearer token.",
677+ "type": "string",
678+ "location": "query"
679+ },
680+ "oauth_token": {
681+ "location": "query",
682+ "description": "OAuth 2.0 token for the current user.",
683+ "type": "string"
684+ },
685+ "upload_protocol": {
686+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
687+ "type": "string",
688+ "location": "query"
689+ },
690+ "prettyPrint": {
691+ "description": "Returns response with indentations and line breaks.",
692+ "type": "boolean",
693+ "default": "true",
694+ "location": "query"
695+ },
696+ "fields": {
697+ "location": "query",
698+ "description": "Selector specifying which fields to include in a partial response.",
699+ "type": "string"
700+ },
701+ "uploadType": {
702+ "location": "query",
703+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
704+ "type": "string"
705+ },
706+ "$.xgafv": {
707+ "description": "V1 error format.",
708+ "type": "string",
709+ "enumDescriptions": [
710+ "v1 error format",
711+ "v2 error format"
712+ ],
713+ "location": "query",
714+ "enum": [
715+ "1",
716+ "2"
717+ ]
718+ },
719+ "callback": {
720+ "description": "JSONP",
721+ "type": "string",
722+ "location": "query"
723+ },
724+ "alt": {
725+ "enum": [
726+ "json",
727+ "media",
728+ "proto"
729+ ],
730+ "type": "string",
731+ "enumDescriptions": [
732+ "Responses with Content-Type of application/json",
733+ "Media download with context-dependent Content-Type",
734+ "Responses with Content-Type of application/x-protobuf"
735+ ],
736+ "location": "query",
737+ "description": "Data format for response.",
738+ "default": "json"
739+ }
522 },
740 },
741+ "version": "v2beta1",
742+ "baseUrl": "https://logging.googleapis.com/",
743+ "servicePath": "",
744+ "description": "Writes log entries and manages your Stackdriver Logging configuration.",
745+ "kind": "discovery#restDescription",
746+ "basePath": "",
747+ "revision": "20170114",
748+ "documentationLink": "https://cloud.google.com/logging/docs/",
749+ "id": "logging:v2beta1",
750+ "discoveryVersion": "v1",
751+ "version_module": "True",
523 "schemas": {
752 "schemas": {
524− "ListLogEntriesResponse": {
753+ "MonitoredResourceDescriptor": {
525− "description": "Result returned from `ListLogEntries`.",
754+ "id": "MonitoredResourceDescriptor",
755+ "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.",
526 "type": "object",
756 "type": "object",
527 "properties": {
757 "properties": {
528− "entries": {
758+ "labels": {
529− "description": "A list of log entries.",
759+ "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\".",
530 "type": "array",
760 "type": "array",
531 "items": {
761 "items": {
532− "$ref": "LogEntry"
762+ "$ref": "LabelDescriptor"
533 }
763 }
534 },
764 },
535− "nextPageToken": {
765+ "name": {
536− "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`.",
766+ "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}\".",
537 "type": "string"
767 "type": "string"
538− }
768+ },
539− },
769+ "displayName": {
540− "id": "ListLogEntriesResponse"
770+ "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\".",
541− },
542− "ListSinksResponse": {
543− "description": "Result returned from `ListSinks`.",
544− "type": "object",
545− "properties": {
546− "nextPageToken": {
547− "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call the same\nmethod again using the value of `nextPageToken` as `pageToken`.",
548 "type": "string"
771 "type": "string"
549 },
772 },
550− "sinks": {
773+ "description": {
551− "description": "A list of sinks.",
774+ "description": "Optional. A detailed description of the monitored resource type that might be used in documentation.",
552− "type": "array",
775+ "type": "string"
553− "items": {
554− "$ref": "LogSink"
555− }
776+ },
777+ "type": {
778+ "description": "Required. The monitored resource type. For example, the type \"cloudsql_database\" represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.",
779+ "type": "string"
556 }
780 }
557− },
781+ }
558− "id": "ListSinksResponse"
559 },
782 },
560− "SourceLocation": {
783+ "LogEntrySourceLocation": {
561− "description": "Specifies a location in a source code file.",
784+ "description": "Additional information about the source code location that produced the log entry.",
562 "type": "object",
785 "type": "object",
563 "properties": {
786 "properties": {
564− "file": {
787+ "line": {
565− "description": "Source file name. Depending on the runtime environment, this might be a\nsimple name or a fully-qualified name.",
788+ "description": "Optional. Line within the source file. 1-based; 0 indicates no line number available.",
789+ "format": "int64",
566 "type": "string"
790 "type": "string"
567 },
791 },
568− "functionName": {
792+ "file": {
569− "description": "Human-readable name of the function or method being invoked, with optional\ncontext such as the class or package name. This information is used in\ncontexts such as the logs viewer, where a file and line number are less\nmeaningful. The format can vary by language. For example:\n`qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`\n(Python).",
793+ "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
570 "type": "string"
794 "type": "string"
571 },
795 },
572− "line": {
796+ "function": {
573− "description": "Line within the source file.",
797+ "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).",
574− "type": "string",
798+ "type": "string"
575− "format": "int64"
576 }
799 }
577 },
800 },
578− "id": "SourceLocation"
801+ "id": "LogEntrySourceLocation"
579 },
802 },
580− "LogSink": {
803+ "ListLogEntriesResponse": {
581− "description": "Describes a sink used to export log entries outside of Stackdriver Logging.",
804+ "id": "ListLogEntriesResponse",
805+ "description": "Result returned from ListLogEntries.",
582 "type": "object",
806 "type": "object",
583 "properties": {
807 "properties": {
584− "destination": {
808+ "entries": {
585− "description": "Required. The export destination. See\n[Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).\nExamples:\n\n \"storage.googleapis.com/my-gcs-bucket\"\n \"bigquery.googleapis.com/projects/my-project-id/datasets/my-dataset\"\n \"pubsub.googleapis.com/projects/my-project/topics/my-topic\"",
809+ "description": "A list of log entries.",
586− "type": "string"
587− },
588− "filter": {
589− "description": "Optional. An [advanced logs filter](/logging/docs/view/advanced_filters).\nOnly log entries matching the filter are exported. The filter\nmust be consistent with the log entry format specified by the\n`outputVersionFormat` parameter, regardless of the format of the\nlog entry that was originally written to Stackdriver Logging.\nExample filter (V2 format):\n\n logName=projects/my-projectid/logs/syslog AND severity\u003e=ERROR",
590− "type": "string"
810+ "type": "array",
591− },
811+ "items": {
592− "endTime": {
812+ "$ref": "LogEntry"
593− "description": "Optional. Time at which this sink expires.",
813+ }
594− "type": "string",
595− "format": "google-datetime"
596 },
814 },
597− "name": {
815+ "nextPageToken": {
598− "description": "Required. The client-assigned sink identifier, unique within the\nproject. Example: `\"my-syslog-errors-to-pubsub\"`. Sink identifiers are\nlimited to 1000 characters and can include only the following characters:\n`A-Z`, `a-z`, `0-9`, and the special characters `_-.`. The maximum length\nof the name is 100 characters.",
816+ "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.",
599 "type": "string"
817 "type": "string"
600− },
818+ }
601− "startTime": {
819+ }
602− "description": "Optional. Time range for which this sink is active.\nLogs are exported only if start_time \u003c= entry.timestamp \u003c end_time\nBoth start_time and end_time may be omitted to specify\n(half) infinite ranges. The start_time must be less than the end_time.",
820+ },
821+ "LogLine": {
822+ "description": "Application log line emitted while processing a request.",
823+ "type": "object",
824+ "properties": {
825+ "severity": {
826+ "description": "Severity of this log entry.",
603 "type": "string",
827 "type": "string",
604− "format": "google-datetime"
605− },
606− "outputVersionFormat": {
607− "description": "Optional. The log entry version to use for this sink's exported log\nentries. This version does not have to correspond to the version of the\nlog entry that was written to Stackdriver Logging. If omitted, the\nv2 format is used.",
608− "enum": [
609− "VERSION_FORMAT_UNSPECIFIED",
610− "V2",
611− "V1"
612− ],
613 "enumDescriptions": [
828 "enumDescriptions": [
614− "An unspecified version format will default to V2.",
829+ "(0) The log entry has no assigned severity level.",
615− "`LogEntry` version 2 format.",
830+ "(100) Debug or trace information.",
616− "`LogEntry` version 1 format."
831+ "(200) Routine information, such as ongoing status or performance.",
832+ "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
833+ "(400) Warning events might cause problems.",
834+ "(500) Error events are likely to cause problems.",
835+ "(600) Critical events cause more severe problems or outages.",
836+ "(700) A person must take an action immediately.",
837+ "(800) One or more systems are unusable."
617 ],
838 ],
839+ "enum": [
840+ "DEFAULT",
841+ "DEBUG",
842+ "INFO",
843+ "NOTICE",
844+ "WARNING",
845+ "ERROR",
846+ "CRITICAL",
847+ "ALERT",
848+ "EMERGENCY"
849+ ]
850+ },
851+ "logMessage": {
852+ "description": "App-provided log message.",
618 "type": "string"
853 "type": "string"
619 },
854 },
620− "writerIdentity": {
855+ "sourceLocation": {
621− "description": "Output only. The IAM identity to which the destination needs to grant write\naccess. This may be a service account or a group.\nExamples (Do not assume these specific values):\n \"serviceAccount:cloud-logs@system.gserviceaccount.com\"\n \"group:cloud-logs@google.com\"\n\n For GCS destinations, the role \"roles/owner\" is required on the bucket\n For Cloud Pubsub destinations, the role \"roles/pubsub.publisher\" is\n required on the topic\n For BigQuery, the role \"roles/editor\" is required on the dataset",
856+ "description": "Where in the source code this log message was written.",
857+ "$ref": "SourceLocation"
858+ },
859+ "time": {
860+ "description": "Approximate time when this log entry was made.",
861+ "format": "google-datetime",
622 "type": "string"
862 "type": "string"
623 }
863 }
624 },
864 },
625− "id": "LogSink"
865+ "id": "LogLine"
626 },
866 },
627− "LogMetric": {
867+ "ListLogMetricsResponse": {
628− "description": "Describes a logs-based metric. The value of the metric is the\nnumber of log entries that match a logs filter.",
868+ "description": "Result returned from ListLogMetrics.",
629 "type": "object",
869 "type": "object",
630 "properties": {
870 "properties": {
631− "description": {
871+ "metrics": {
632− "description": "Optional. A description of this metric, which is used in documentation.",
872+ "description": "A list of logs-based metrics.",
633− "type": "string"
634− },
635− "filter": {
636− "description": "Required. An [advanced logs filter](/logging/docs/view/advanced_filters).\nExample: `\"resource.type=gae_app AND severity\u003e=ERROR\"`.",
637− "type": "string"
873+ "type": "array",
638− },
874+ "items": {
639− "name": {
875+ "$ref": "LogMetric"
640− "description": "Required. The client-assigned metric identifier. Example:\n`\"severe_errors\"`. Metric identifiers are limited to 100\ncharacters and can include only the following characters: `A-Z`,\n`a-z`, `0-9`, and the special characters `_-.,+!*',()%/`. The\nforward-slash character (`/`) denotes a hierarchy of name pieces,\nand it cannot be the first character of the name. The '%' character\nis used to URL encode unsafe and reserved characters and must be\nfollowed by two hexadecimal digits according to RFC 1738.",
876+ }
641− "type": "string"
642 },
877 },
643− "version": {
878+ "nextPageToken": {
644− "description": "Output only. The API version that created or updated this metric.\nThe version also dictates the syntax of the filter expression. When a value\nfor this field is missing, the default value of V2 should be assumed.",
879+ "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.",
645− "enum": [
646− "V2",
647− "V1"
648− ],
649− "enumDescriptions": [
650− "Stackdriver Logging API v2.",
651− "Stackdriver Logging API v1."
652− ],
653 "type": "string"
880 "type": "string"
654 }
881 }
655 },
882 },
656− "id": "LogMetric"
883+ "id": "ListLogMetricsResponse"
884+ },
885+ "Empty": {
886+ "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:\nservice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe JSON representation for Empty is empty JSON object {}.",
887+ "type": "object",
888+ "properties": {},
889+ "id": "Empty"
657 },
890 },
658 "LogEntry": {
891 "LogEntry": {
892+ "id": "LogEntry",
659 "description": "An individual entry in a log.",
893 "description": "An individual entry in a log.",
660 "type": "object",
894 "type": "object",
661 "properties": {
895 "properties": {
662− "textPayload": {
896+ "logName": {
663− "description": "The log entry payload, represented as a Unicode string (UTF-8).",
897+ "description": "Required. The resource name of the log to which this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[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.",
664 "type": "string"
898 "type": "string"
665 },
899 },
666 "httpRequest": {
900 "httpRequest": {
901+ "$ref": "HttpRequest",
667− "description": "Optional. Information about the HTTP request associated with this\nlog entry, if applicable.",
902+ "description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
668− "$ref": "HttpRequest"
903+ },
904+ "resource": {
905+ "$ref": "MonitoredResource",
906+ "description": "Required. The monitored resource associated with 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."
669 },
907 },
670 "jsonPayload": {
908 "jsonPayload": {
671− "description": "The log entry payload, represented as a structure that\nis expressed as a JSON object.",
909+ "description": "The log entry payload, represented as a structure that is expressed as a JSON object.",
910+ "type": "object",
672 "additionalProperties": {
911 "additionalProperties": {
673 "description": "Properties of the object.",
912 "description": "Properties of the object.",
674 "type": "any"
913 "type": "any"
914+ }
915+ },
916+ "insertId": {
917+ "description": "Optional. A unique ID for the log entry. If you provide this field, the logging service considers other log entries in the same project with the same ID as duplicates which can be removed. If omitted, Stackdriver Logging will generate a unique ID for this log entry.",
918+ "type": "string"
919+ },
920+ "operation": {
921+ "description": "Optional. Information about an operation associated with the log entry, if applicable.",
922+ "$ref": "LogEntryOperation"
923+ },
924+ "textPayload": {
925+ "description": "The log entry payload, represented as a Unicode string (UTF-8).",
926+ "type": "string"
927+ },
928+ "protoPayload": {
929+ "additionalProperties": {
930+ "description": "Properties of the object. Contains field @type with type URL.",
931+ "type": "any"
675 },
932 },
933+ "description": "The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.",
676 "type": "object"
934 "type": "object"
677 },
935 },
936+ "trace": {
937+ "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",
938+ "type": "string"
939+ },
678 "labels": {
940 "labels": {
679− "description": "Optional. A set of user-defined (key, value) data that provides additional\ninformation about the log entry.",
680 "additionalProperties": {
941 "additionalProperties": {
681 "type": "string"
942 "type": "string"
682 },
943 },
944+ "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.",
683 "type": "object"
945 "type": "object"
684 },
946 },
685− "logName": {
686− "description": "Required. The resource name of the log to which this log entry\nbelongs. The format of the name is\n`\"projects/\u003cproject-id\u003e/logs/\u003clog-id\u003e\"`. Examples:\n`\"projects/my-projectid/logs/syslog\"`,\n`\"projects/my-projectid/logs/library.googleapis.com%2Fbook_log\"`.\n\nThe log ID part of resource name must be less than 512 characters\nlong and can only include the following characters: upper and\nlower case alphanumeric characters: [A-Za-z0-9]; and punctuation\ncharacters: forward-slash, underscore, hyphen, and period.\nForward-slash (`/`) characters in the log ID must be URL-encoded.",
687− "type": "string"
688− },
689 "severity": {
947 "severity": {
690− "description": "Optional. The severity of the log entry. The default value is\n`LogSeverity.DEFAULT`.",
948+ "description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT.",
691− "enum": [
949+ "type": "string",
692− "DEFAULT",
693− "DEBUG",
694− "INFO",
695− "NOTICE",
696− "WARNING",
697− "ERROR",
698− "CRITICAL",
699− "ALERT",
700− "EMERGENCY"
701− ],
702 "enumDescriptions": [
950 "enumDescriptions": [
703 "(0) The log entry has no assigned severity level.",
951 "(0) The log entry has no assigned severity level.",
704 "(100) Debug or trace information.",
952 "(100) Debug or trace information.",
705 "(200) Routine information, such as ongoing status or performance.",
953 "(200) Routine information, such as ongoing status or performance.",
706− "(300) Normal but significant events, such as start up, shut down, or\na configuration change.",
954+ "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
707 "(400) Warning events might cause problems.",
955 "(400) Warning events might cause problems.",
708 "(500) Error events are likely to cause problems.",
956 "(500) Error events are likely to cause problems.",
709 "(600) Critical events cause more severe problems or outages.",
957 "(600) Critical events cause more severe problems or outages.",
710 "(700) A person must take an action immediately.",
958 "(700) A person must take an action immediately.",
711 "(800) One or more systems are unusable."
959 "(800) One or more systems are unusable."
712 ],
960 ],
713− "type": "string"
714− },
715− "resource": {
716− "description": "Required. The monitored resource associated with this log entry.\nExample: a log entry that reports a database error would be\nassociated with the monitored resource designating the particular\ndatabase that reported the error.",
717− "$ref": "MonitoredResource"
718− },
719− "protoPayload": {
720− "description": "The log entry payload, represented as a protocol buffer. Some\nGoogle Cloud Platform services use this field for their log\nentry payloads.",
721− "additionalProperties": {
722− "description": "Properties of the object. Contains field @type with type URL.",
723− "type": "any"
724− },
725− "type": "object"
726− },
727− "timestamp": {
728− "description": "Optional. The time the event described by the log entry occurred. If\nomitted, Stackdriver Logging will use the time the log entry is received.",
729− "type": "string",
730− "format": "google-datetime"
731− },
732− "insertId": {
733− "description": "Optional. A unique ID for the log entry. If you provide this\nfield, the logging service considers other log entries in the\nsame project with the same ID as duplicates which can be removed. If\nomitted, Stackdriver Logging will generate a unique ID for this\nlog entry.",
734− "type": "string"
735− },
736− "operation": {
737− "description": "Optional. Information about an operation associated with the log entry, if\napplicable.",
738− "$ref": "LogEntryOperation"
739− }
740− },
741− "id": "LogEntry"
742− },
743− "LogLine": {
744− "description": "Application log line emitted while processing a request.",
745− "type": "object",
746− "properties": {
747− "time": {
748− "description": "Approximate time when this log entry was made.",
749− "type": "string",
750− "format": "google-datetime"
751− },
752− "severity": {
753− "description": "Severity of this log entry.",
754 "enum": [
961 "enum": [
755 "DEFAULT",
962 "DEFAULT",
756 "DEBUG",
963 "DEBUG",
@@ -761,180 +968,234 @@
761 "CRITICAL",
968 "CRITICAL",
762 "ALERT",
969 "ALERT",
763 "EMERGENCY"
970 "EMERGENCY"
764− ],
971+ ]
765− "enumDescriptions": [
766− "(0) The log entry has no assigned severity level.",
767− "(100) Debug or trace information.",
768− "(200) Routine information, such as ongoing status or performance.",
769− "(300) Normal but significant events, such as start up, shut down, or\na configuration change.",
770− "(400) Warning events might cause problems.",
771− "(500) Error events are likely to cause problems.",
772− "(600) Critical events cause more severe problems or outages.",
773− "(700) A person must take an action immediately.",
774− "(800) One or more systems are unusable."
775− ],
776− "type": "string"
777 },
972 },
778 "sourceLocation": {
973 "sourceLocation": {
779− "description": "Where in the source code this log message was written.",
974+ "description": "Optional. Source code location information associated with the log entry, if any.",
780− "$ref": "SourceLocation"
975+ "$ref": "LogEntrySourceLocation"
781 },
976 },
782− "logMessage": {
977+ "timestamp": {
783− "description": "App-provided log message.",
978+ "description": "Optional. The time the event described by the log entry occurred. If omitted, Stackdriver Logging will use the time the log entry is received.",
979+ "format": "google-datetime",
784 "type": "string"
980 "type": "string"
785 }
981 }
786− },
982+ }
787− "id": "LogLine"
788 },
983 },
789− "SourceReference": {
984+ "SourceLocation": {
790− "description": "A reference to a particular snapshot of the source tree used to build and\ndeploy an application.",
985+ "description": "Specifies a location in a source code file.",
791 "type": "object",
986 "type": "object",
792 "properties": {
987 "properties": {
793− "repository": {
988+ "file": {
794− "description": "Optional. A URI string identifying the repository.\nExample: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
989+ "description": "Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
795 "type": "string"
990 "type": "string"
796 },
991 },
797− "revisionId": {
992+ "functionName": {
798− "description": "The canonical and persistent identifier of the deployed revision.\nExample (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"",
993+ "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).",
994+ "type": "string"
995+ },
996+ "line": {
997+ "description": "Line within the source file.",
998+ "format": "int64",
799 "type": "string"
999 "type": "string"
800 }
1000 }
801 },
1001 },
802− "id": "SourceReference"
1002+ "id": "SourceLocation"
803 },
1003 },
804− "MonitoredResource": {
1004+ "ListLogEntriesRequest": {
805− "description": "An object representing a resource that can be used for monitoring, logging,\nbilling, or other purposes. Examples include virtual machine instances,\ndatabases, and storage devices such as disks. The `type` field identifies a\nMonitoredResourceDescriptor object that describes the resource's\nschema. Information in the `labels` field identifies the actual resource and\nits attributes according to the schema. For example, a particular Compute\nEngine VM instance could be represented by the following object, because the\nMonitoredResourceDescriptor for `\"gce_instance\"` has labels\n`\"instance_id\"` and `\"zone\"`:\n\n { \"type\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}",
1005+ "description": "The parameters to ListLogEntries.",
806 "type": "object",
1006 "type": "object",
807 "properties": {
1007 "properties": {
808− "labels": {
1008+ "orderBy": {
809− "description": "Required. Values for all of the labels listed in the associated monitored\nresource descriptor. For example, Cloud SQL databases use the labels\n`\"database_id\"` and `\"zone\"`.",
1009+ "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 LogEntry.insertId.",
810− "additionalProperties": {
1010+ "type": "string"
1011+ },
1012+ "resourceNames": {
1013+ "description": "Required. Names of one or more resources from which to retrieve log entries:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\nProjects listed in the project_ids field are added to this list.",
1014+ "type": "array",
1015+ "items": {
811 "type": "string"
1016 "type": "string"
812− },
1017+ }
813− "type": "object"
814 },
1018 },
1019+ "projectIds": {
1020+ "description": "Deprecated. Use resource_names instead. One or more project identifiers or project numbers from which to retrieve log entries. Example: \"my-project-1A\". If present, these project identifiers are converted to resource name format and added to the list of resources in resource_names.",
1021+ "type": "array",
1022+ "items": {
815− "type": {
1023+ "type": "string"
816− "description": "Required. The monitored resource type. This field must match\nthe `type` field of a MonitoredResourceDescriptor object. For\nexample, the type of a Cloud SQL database is `\"cloudsql_database\"`.",
1024+ }
1025+ },
1026+ "filter": {
1027+ "description": "Optional. A filter that chooses which log entries to return. See Advanced Logs 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 listed in resource_names will cause the filter to return no results. The maximum length of the filter is 20000 characters.",
1028+ "type": "string"
1029+ },
1030+ "pageToken": {
1031+ "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.",
817 "type": "string"
1032 "type": "string"
1033+ },
1034+ "pageSize": {
1035+ "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.",
1036+ "format": "int32",
1037+ "type": "integer"
818 }
1038 }
819 },
1039 },
820− "id": "MonitoredResource"
1040+ "id": "ListLogEntriesRequest"
821 },
1041 },
822− "WriteLogEntriesRequest": {
1042+ "RequestLog": {
823− "description": "The parameters to WriteLogEntries.",
1043+ "id": "RequestLog",
1044+ "description": "Complete log information about a single HTTP request to an App Engine application.",
824 "type": "object",
1045 "type": "object",
825 "properties": {
1046 "properties": {
826− "labels": {
1047+ "ip": {
827− "description": "Optional. Default labels that are added to the `labels` field of all log\nentries in `entries`. If a log entry already has a label with the same key\nas a label in this parameter, then the log entry's label is not changed.\nSee LogEntry.",
1048+ "description": "Origin IP address.",
828− "additionalProperties": {
1049+ "type": "string"
829− "type": "string"
1050+ },
1051+ "appId": {
1052+ "description": "Application that handled this request.",
1053+ "type": "string"
1054+ },
1055+ "appEngineRelease": {
1056+ "description": "App Engine release version.",
1057+ "type": "string"
1058+ },
1059+ "method": {
1060+ "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
1061+ "type": "string"
1062+ },
1063+ "cost": {
1064+ "description": "An indication of the relative cost of serving this request.",
1065+ "format": "double",
1066+ "type": "number"
1067+ },
1068+ "instanceId": {
1069+ "description": "An identifier for the instance that handled the request.",
1070+ "type": "string"
1071+ },
1072+ "megaCycles": {
1073+ "description": "Number of CPU megacycles used to process request.",
1074+ "format": "int64",
1075+ "type": "string"
1076+ },
1077+ "first": {
1078+ "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.",
1079+ "type": "boolean"
1080+ },
1081+ "versionId": {
1082+ "description": "Version of the application that handled this request.",
1083+ "type": "string"
1084+ },
1085+ "moduleId": {
1086+ "description": "Module of the application that handled this request.",
1087+ "type": "string"
1088+ },
1089+ "endTime": {
1090+ "description": "Time when the request finished.",
1091+ "format": "google-datetime",
1092+ "type": "string"
1093+ },
1094+ "userAgent": {
1095+ "description": "User agent that made the request.",
1096+ "type": "string"
1097+ },
1098+ "wasLoadingRequest": {
1099+ "description": "Whether this was a loading request for the instance.",
1100+ "type": "boolean"
1101+ },
1102+ "sourceReference": {
1103+ "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.",
1104+ "type": "array",
1105+ "items": {
1106+ "$ref": "SourceReference"
830− },
1107+ }
831− "type": "object"
832 },
1108 },
833− "entries": {
1109+ "responseSize": {
834− "description": "Required. The log entries to write. Values supplied for the fields\n`log_name`, `resource`, and `labels` in this `entries.write` request are\nadded to those log entries that do not provide their own values for the\nfields.\n\nTo improve throughput and to avoid exceeding the\n[quota limit](/logging/quota-policy) for calls to `entries.write`,\nyou should write multiple log entries at once rather than\ncalling this method for each individual log entry.",
1110+ "description": "Size in bytes sent back to client by request.",
1111+ "format": "int64",
1112+ "type": "string"
1113+ },
1114+ "traceId": {
1115+ "description": "Stackdriver Trace identifier for this request.",
1116+ "type": "string"
1117+ },
1118+ "line": {
1119+ "description": "A list of log lines emitted by the application while serving this request.",
835 "type": "array",
1120 "type": "array",
836 "items": {
1121 "items": {
837− "$ref": "LogEntry"
1122+ "$ref": "LogLine"
838 }
1123 }
839 },
1124 },
840− "logName": {
1125+ "taskQueueName": {
841− "description": "Optional. A default log resource name that is assigned to all log entries\nin `entries` that do not specify a value for `log_name`. Example:\n`\"projects/my-project/logs/syslog\"`. See\nLogEntry.",
1126+ "description": "Queue name of the request, in the case of an offline request.",
842 "type": "string"
1127 "type": "string"
843 },
1128 },
844− "partialSuccess": {
1129+ "referrer": {
845− "description": "Optional. Whether valid entries should be written even if some other\nentries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any\nentry is not written, the response status will be the error associated\nwith one of the failed entries and include error details in the form of\nWriteLogEntriesPartialErrors.",
1130+ "description": "Referrer URL of request.",
846− "type": "boolean"
1131+ "type": "string"
847 },
1132 },
848− "resource": {
1133+ "requestId": {
849− "description": "Optional. A default monitored resource object that is assigned to all log\nentries in `entries` that do not specify a value for `resource`. Example:\n\n { \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\n\nSee LogEntry.",
1134+ "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.",
850− "$ref": "MonitoredResource"
851− }
852− },
853− "id": "WriteLogEntriesRequest"
854− },
855− "LabelDescriptor": {
856− "description": "A description of a label.",
857− "type": "object",
858− "properties": {
859− "description": {
860− "description": "A human-readable description for the label.",
861 "type": "string"
1135 "type": "string"
862 },
1136 },
863− "valueType": {
1137+ "nickname": {
864− "description": "The type of data that can be assigned to the label.",
1138+ "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.",
865− "enum": [
866− "STRING",
867− "BOOL",
868− "INT64"
869− ],
870− "enumDescriptions": [
871− "A variable-length string. This is the default.",
872− "Boolean; true or false.",
873− "A 64-bit signed integer."
874− ],
875 "type": "string"
1139 "type": "string"
876 },
1140 },
877− "key": {
1141+ "status": {
878− "description": "The label key.",
1142+ "description": "HTTP response status code. Example: 200, 404.",
1143+ "format": "int32",
1144+ "type": "integer"
1145+ },
1146+ "pendingTime": {
1147+ "description": "Time this request spent in the pending request queue.",
1148+ "format": "google-duration",
879 "type": "string"
1149 "type": "string"
880− }
881− },
882− "id": "LabelDescriptor"
883− },
884− "ListLogMetricsResponse": {
885− "description": "Result returned from ListLogMetrics.",
886− "type": "object",
887− "properties": {
888− "metrics": {
889− "description": "A list of logs-based metrics.",
890− "type": "array",
891− "items": {
892− "$ref": "LogMetric"
893− }
894 },
1150 },
895− "nextPageToken": {
1151+ "resource": {
896− "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`.",
1152+ "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.",
897 "type": "string"
1153 "type": "string"
898− }
1154+ },
899− },
1155+ "taskName": {
900− "id": "ListLogMetricsResponse"
1156+ "description": "Task name of the request, in the case of an offline request.",
901− },
902− "MonitoredResourceDescriptor": {
903− "description": "An object that describes the schema of a MonitoredResource object using a\ntype name and a set of labels. For example, the monitored resource\ndescriptor for Google Compute Engine VM instances has a type of\n`\"gce_instance\"` and specifies the use of the labels `\"instance_id\"` and\n`\"zone\"` to identify particular VM instances.\n\nDifferent APIs can support different monitored resource types. APIs generally\nprovide a `list` method that returns the monitored resource descriptors used\nby the API.",
904− "type": "object",
905− "properties": {
906− "displayName": {
907− "description": "Optional. A concise name for the monitored resource type that might be\ndisplayed in user interfaces. It should be a Title Cased Noun Phrase,\nwithout any article or other determiners. For example,\n`\"Google Cloud SQL Database\"`.",
908 "type": "string"
1157 "type": "string"
909 },
1158 },
910− "description": {
1159+ "urlMapEntry": {
911− "description": "Optional. A detailed description of the monitored resource type that might\nbe used in documentation.",
1160+ "description": "File or class that handled the request.",
912 "type": "string"
1161 "type": "string"
913 },
1162 },
914− "labels": {
1163+ "instanceIndex": {
915− "description": "Required. A set of labels used to describe instances of this monitored\nresource type. For example, an individual Google Cloud SQL database is\nidentified by values for the labels `\"database_id\"` and `\"zone\"`.",
1164+ "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.",
916− "type": "array",
1165+ "format": "int32",
917− "items": {
1166+ "type": "integer"
918− "$ref": "LabelDescriptor"
919− }
920 },
1167 },
921− "type": {
1168+ "finished": {
922− "description": "Required. The monitored resource type. For example, the type\n`\"cloudsql_database\"` represents databases in Google Cloud SQL.\nThe maximum length of this value is 256 characters.",
1169+ "description": "Whether this request is finished or active.",
1170+ "type": "boolean"
1171+ },
1172+ "host": {
1173+ "description": "Internet host and port number of the resource being requested.",
923 "type": "string"
1174 "type": "string"
924 },
1175 },
925− "name": {
1176+ "httpVersion": {
926− "description": "Optional. The resource name of the monitored resource descriptor:\n`\"projects/{project_id}/monitoredResourceDescriptors/{type}\"` where\n{type} is the value of the `type` field in this object and\n{project_id} is a project ID that provides API-specific context for\naccessing the type. APIs that do not use project information can use the\nresource name format `\"monitoredResourceDescriptors/{type}\"`.",
1177+ "description": "HTTP version of request. Example: \"HTTP/1.1\".",
1178+ "type": "string"
1179+ },
1180+ "startTime": {
1181+ "description": "Time when the request started.",
1182+ "format": "google-datetime",
1183+ "type": "string"
1184+ },
1185+ "latency": {
1186+ "description": "Latency of the request.",
1187+ "format": "google-duration",
927 "type": "string"
1188 "type": "string"
928 }
1189 }
929− },
1190+ }
930− "id": "MonitoredResourceDescriptor"
931 },
1191 },
932 "ListMonitoredResourceDescriptorsResponse": {
1192 "ListMonitoredResourceDescriptorsResponse": {
1193+ "id": "ListMonitoredResourceDescriptorsResponse",
933 "description": "Result returned from ListMonitoredResourceDescriptors.",
1194 "description": "Result returned from ListMonitoredResourceDescriptors.",
934 "type": "object",
1195 "type": "object",
935 "properties": {
1196 "properties": {
936 "nextPageToken": {
1197 "nextPageToken": {
937− "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`.",
1198+ "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.",
938 "type": "string"
1199 "type": "string"
939 },
1200 },
940 "resourceDescriptors": {
1201 "resourceDescriptors": {
@@ -944,406 +1205,318 @@
944 "$ref": "MonitoredResourceDescriptor"
1205 "$ref": "MonitoredResourceDescriptor"
945 }
1206 }
946 }
1207 }
947− },
1208+ }
948− "id": "ListMonitoredResourceDescriptorsResponse"
949 },
1209 },
950− "LogEntryOperation": {
1210+ "SourceReference": {
951− "description": "Additional information about a potentially long-running operation with which\na log entry is associated.",
1211+ "id": "SourceReference",
1212+ "description": "A reference to a particular snapshot of the source tree used to build and deploy an application.",
952 "type": "object",
1213 "type": "object",
953 "properties": {
1214 "properties": {
954− "producer": {
1215+ "repository": {
955− "description": "Optional. An arbitrary producer identifier. The combination of\n`id` and `producer` must be globally unique. Examples for `producer`:\n`\"MyDivision.MyBigCompany.com\"`, `\"github.com/MyProject/MyApplication\"`.",
1216+ "description": "Optional. A URI string identifying the repository. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
956 "type": "string"
1217 "type": "string"
957 },
1218 },
958− "last": {
1219+ "revisionId": {
959− "description": "Optional. Set this to True if this is the last log entry in the operation.",
1220+ "description": "The canonical and persistent identifier of the deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"",
960− "type": "boolean"
961− },
962− "first": {
963− "description": "Optional. Set this to True if this is the first log entry in the operation.",
964− "type": "boolean"
965− },
966− "id": {
967− "description": "Optional. An arbitrary operation identifier. Log entries with the\nsame identifier are assumed to be part of the same operation.",
968 "type": "string"
1221 "type": "string"
969 }
1222 }
970− },
1223+ }
971− "id": "LogEntryOperation"
972− },
973− "Empty": {
974− "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
975− "type": "object",
976− "properties": {},
977− "id": "Empty"
978 },
1224 },
979− "HttpRequest": {
1225+ "LogMetric": {
980− "description": "A common proto for logging HTTP requests. Only contains semantics\ndefined by the HTTP specification. Product-specific logging\ninformation MUST be defined in a separate message.",
1226+ "id": "LogMetric",
1227+ "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.",
981 "type": "object",
1228 "type": "object",
982 "properties": {
1229 "properties": {
983− "cacheLookup": {
1230+ "name": {
984− "description": "Whether or not a cache lookup was attempted.",
1231+ "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\".",
985− "type": "boolean"
986− },
987− "responseSize": {
988− "description": "The size of the HTTP response message sent back to the client, in bytes,\nincluding the response headers and the response body.",
989− "type": "string",
990− "format": "int64"
991− },
992− "status": {
993− "description": "The response code indicating the status of response.\nExamples: 200, 404.",
994− "type": "integer",
995− "format": "int32"
996− },
997− "cacheValidatedWithOriginServer": {
998− "description": "Whether or not the response was validated with the origin server before\nbeing served from cache. This field is only meaningful if `cache_hit` is\nTrue.",
999− "type": "boolean"
1000− },
1001− "referer": {
1002− "description": "The referer URL of the request, as defined in\n[HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).",
1003 "type": "string"
1232 "type": "string"
1004 },
1233 },
1005− "cacheHit": {
1234+ "description": {
1006− "description": "Whether or not an entity was served from cache\n(with or without validation).",
1235+ "description": "Optional. A description of this metric, which is used in documentation.",
1007− "type": "boolean"
1008− },
1009− "requestUrl": {
1010− "description": "The scheme (http, https), the host name, the path and the query\nportion of the URL that was requested.\nExample: `\"http://example.com/some/info?color=red\"`.",
1011 "type": "string"
1236 "type": "string"
1012 },
1237 },
1013− "latency": {
1238+ "version": {
1014− "description": "The request processing latency on the server, from the time the request was\nreceived until the response was sent.",
1239+ "description": "Output only. The API version that created or updated this metric. The version also dictates the syntax of the filter expression. When a value for this field is missing, the default value of V2 should be assumed.",
1015− "type": "string",
1016− "format": "google-duration"
1017− },
1018− "cacheFillBytes": {
1019− "description": "The number of HTTP response bytes inserted into cache. Set only when a\ncache fill was attempted.",
1020 "type": "string",
1240 "type": "string",
1021− "format": "int64"
1241+ "enumDescriptions": [
1242+ "Stackdriver Logging API v2.",
1243+ "Stackdriver Logging API v1."
1244+ ],
1245+ "enum": [
1246+ "V2",
1247+ "V1"
1248+ ]
1022 },
1249 },
1023− "requestMethod": {
1250+ "filter": {
1024− "description": "The request method. Examples: `\"GET\"`, `\"HEAD\"`, `\"PUT\"`, `\"POST\"`.",
1251+ "description": "Required. An advanced logs filter which is used to match log entries. Example:\n\"resource.type=gae_app AND severity\u003e=ERROR\"\nThe maximum length of the filter is 20000 characters.",
1025 "type": "string"
1252 "type": "string"
1026− },
1253+ }
1027− "remoteIp": {
1254+ }
1028− "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP\nrequest. Examples: `\"192.168.1.1\"`, `\"FE80::0202:B3FF:FE1E:8329\"`.",
1255+ },
1256+ "LogEntryOperation": {
1257+ "description": "Additional information about a potentially long-running operation with which a log entry is associated.",
1258+ "type": "object",
1259+ "properties": {
1260+ "id": {
1261+ "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.",
1029 "type": "string"
1262 "type": "string"
1030 },
1263 },
1031− "serverIp": {
1264+ "producer": {
1032− "description": "The IP address (IPv4 or IPv6) of the origin server that the request was\nsent to.",
1265+ "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\".",
1033 "type": "string"
1266 "type": "string"
1034 },
1267 },
1035− "userAgent": {
1268+ "first": {
1036− "description": "The user agent sent by the client. Example:\n`\"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"`.",
1269+ "description": "Optional. Set this to True if this is the first log entry in the operation.",
1037− "type": "string"
1270+ "type": "boolean"
1038 },
1271 },
1039− "requestSize": {
1272+ "last": {
1040− "description": "The size of the HTTP request message in bytes, including the request\nheaders and the request body.",
1273+ "description": "Optional. Set this to True if this is the last log entry in the operation.",
1041− "type": "string",
1274+ "type": "boolean"
1042− "format": "int64"
1043 }
1275 }
1044 },
1276 },
1045− "id": "HttpRequest"
1277+ "id": "LogEntryOperation"
1046 },
1278 },
1047− "RequestLog": {
1279+ "WriteLogEntriesResponse": {
1048− "description": "Complete log information about a single HTTP request to an App Engine\napplication.",
1280+ "id": "WriteLogEntriesResponse",
1281+ "description": "Result returned from WriteLogEntries. empty",
1282+ "type": "object",
1283+ "properties": {}
1284+ },
1285+ "MonitoredResource": {
1286+ "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\":\n{ \"type\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}\n",
1049 "type": "object",
1287 "type": "object",
1050 "properties": {
1288 "properties": {
1051− "responseSize": {
1289+ "type": {
1052− "description": "Size in bytes sent back to client by request.",
1290+ "description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL database is \"cloudsql_database\".",
1053− "type": "string",
1054− "format": "int64"
1055− },
1056− "requestId": {
1057− "description": "Globally unique identifier for a request, which is based on the request\nstart time. Request IDs for requests which started later will compare\ngreater as strings than those for requests which started earlier.",
1058 "type": "string"
1291 "type": "string"
1059 },
1292 },
1060− "first": {
1293+ "labels": {
1061− "description": "Whether this is the first RequestLog entry for this request. If an active\nrequest has several RequestLog entries written to Cloud Logging, this field\nwill be set for one of them.",
1294+ "description": "Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Cloud SQL databases use the labels \"database_id\" and \"zone\".",
1062− "type": "boolean"
1295+ "type": "object",
1063− },
1296+ "additionalProperties": {
1064− "method": {
1297+ "type": "string"
1065− "description": "Request method. Example: `\"GET\"`, `\"HEAD\"`, `\"PUT\"`, `\"POST\"`, `\"DELETE\"`.",
1298+ }
1299+ }
1300+ },
1301+ "id": "MonitoredResource"
1302+ },
1303+ "LogSink": {
1304+ "id": "LogSink",
1305+ "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, or a Cloud Pub/Sub topic. A logs filter controls which log entries are exported. The sink must be created within a project or organization.",
1306+ "type": "object",
1307+ "properties": {
1308+ "name": {
1309+ "description": "Required. The client-assigned sink identifier, unique within the project. 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.",
1066 "type": "string"
1310 "type": "string"
1067 },
1311 },
1068− "versionId": {
1312+ "destination": {
1069− "description": "Version of the application that handled this request.",
1313+ "description": "Required. The export destination:\n\"storage.googleapis.com/[GCS_BUCKET]\"\n\"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]\"\n\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]\"\nThe 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.",
1070 "type": "string"
1314 "type": "string"
1071 },
1315 },
1072− "status": {
1316+ "filter": {
1073− "description": "HTTP response status code. Example: 200, 404.",
1317+ "description": "Optional. An advanced logs filter. The only exported log entries are those that are in the resource owning the sink and that match the filter. The filter must use the log entry format specified by the output_version_format parameter. For example, in the v2 format:\nlogName=\"projects/[PROJECT_ID]/logs/[LOG_ID]\" AND severity\u003e=ERROR\n",
1074− "type": "integer",
1318+ "type": "string"
1075− "format": "int32"
1076− },
1077− "wasLoadingRequest": {
1078− "description": "Whether this was a loading request for the instance.",
1079− "type": "boolean"
1080 },
1319 },
1081− "ip": {
1320+ "endTime": {
1082− "description": "Origin IP address.",
1321+ "description": "Optional. The time at which this sink will stop exporting log entries. Log entries are exported only if their timestamp is earlier than the end time. If this field is not supplied, there is no end time. If both a start time and an end time are provided, then the end time must be later than the start time.",
1322+ "format": "google-datetime",
1083 "type": "string"
1323 "type": "string"
1084 },
1324 },
1085− "nickname": {
1325+ "startTime": {
1086− "description": "The logged-in user who made the request.\n\nMost likely, this is the part of the user's email before the `@` sign. The\nfield value is the same for different requests from the same user, but\ndifferent users can have similar names. This information is also\navailable to the application via the App Engine Users API.\n\nThis field will be populated starting with App Engine 1.9.21.",
1326+ "description": "Optional. The time at which this sink will begin exporting log entries. Log entries are exported only if their timestamp is not earlier than the start time. The default value of this field is the time the sink is created or updated.",
1327+ "format": "google-datetime",
1087 "type": "string"
1328 "type": "string"
1088 },
1329 },
1089− "taskQueueName": {
1330+ "writerIdentity": {
1090− "description": "Queue name of the request, in the case of an offline request.",
1331+ "description": "Output only. An IAM identity—a service account or group—under which Stackdriver Logging writes the exported log entries to the sink's destination. This field is set by sinks.create and sinks.update, based on the setting 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. Consult the destination service's documentation to determine the appropriate IAM roles to assign to the identity.",
1091 "type": "string"
1332 "type": "string"
1092 },
1333 },
1093− "pendingTime": {
1334+ "outputVersionFormat": {
1094− "description": "Time this request spent in the pending request queue.",
1335+ "description": "Optional. The log entry format to use for this sink's exported log entries. The v2 format is used by default. The v1 format is deprecated and should be used only as part of a migration effort to v2. See Migration to the v2 API.",
1095 "type": "string",
1336 "type": "string",
1096− "format": "google-duration"
1337+ "enumDescriptions": [
1338+ "An unspecified format version that will default to V2.",
1339+ "LogEntry version 2 format.",
1340+ "LogEntry version 1 format."
1341+ ],
1342+ "enum": [
1343+ "VERSION_FORMAT_UNSPECIFIED",
1344+ "V2",
1345+ "V1"
1346+ ]
1347+ }
1348+ }
1349+ },
1350+ "WriteLogEntriesRequest": {
1351+ "id": "WriteLogEntriesRequest",
1352+ "description": "The parameters to WriteLogEntries.",
1353+ "type": "object",
1354+ "properties": {
1355+ "labels": {
1356+ "additionalProperties": {
1357+ "type": "string"
1358+ },
1359+ "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.",
1360+ "type": "object"
1097 },
1361 },
1098− "instanceIndex": {
1362+ "resource": {
1099− "description": "If the instance processing this request belongs to a manually scaled\nmodule, then this is the 0-based index of the instance. Otherwise, this\nvalue is -1.",
1363+ "$ref": "MonitoredResource",
1100− "type": "integer",
1364+ "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:\n{ \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\nSee LogEntry."
1101− "format": "int32"
1102 },
1365 },
1103− "sourceReference": {
1366+ "logName": {
1104− "description": "Source code for the application that handled this request. There can be\nmore than one source reference per deployed application if source code is\ndistributed among multiple repositories.",
1367+ "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:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
1368+ "type": "string"
1369+ },
1370+ "entries": {
1371+ "description": "Required. The log entries to write. Values supplied for the fields log_name, resource, and labels in this entries.write request are added to those log entries that do not provide their own values for the fields.To improve throughput and to avoid exceeding the quota limit for calls to entries.write, you should write multiple log entries at once rather than calling this method for each individual log entry.",
1105 "type": "array",
1372 "type": "array",
1106 "items": {
1373 "items": {
1107− "$ref": "SourceReference"
1374+ "$ref": "LogEntry"
1108 }
1375 }
1109 },
1376 },
1110− "moduleId": {
1377+ "partialSuccess": {
1111− "description": "Module of the application that handled this request.",
1378+ "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, the response status will be the error associated with one of the failed entries and include error details in the form of WriteLogEntriesPartialErrors.",
1112− "type": "string"
1379+ "type": "boolean"
1113− },
1114− "host": {
1115− "description": "Internet host and port number of the resource being requested.",
1116− "type": "string"
1117− },
1118− "latency": {
1119− "description": "Latency of the request.",
1120− "type": "string",
1121− "format": "google-duration"
1122− },
1380+ }
1123− "urlMapEntry": {
1381+ }
1124− "description": "File or class that handled the request.",
1125− "type": "string"
1126− },
1382+ },
1127− "endTime": {
1383+ "ListLogsResponse": {
1128− "description": "Time when the request finished.",
1384+ "description": "Result returned from ListLogs.",
1129− "type": "string",
1385+ "type": "object",
1130− "format": "google-datetime"
1386+ "properties": {
1131− },
1387+ "logNames": {
1132− "line": {
1388+ "description": "A list of log names. For example, \"projects/my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com%2Factivity\".",
1133− "description": "A list of log lines emitted by the application while serving this request.",
1134 "type": "array",
1389 "type": "array",
1135 "items": {
1390 "items": {
1136− "$ref": "LogLine"
1391+ "type": "string"
1137 }
1392 }
1138 },
1393 },
1139− "megaCycles": {
1394+ "nextPageToken": {
1140− "description": "Number of CPU megacycles used to process request.",
1395+ "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.",
1141− "type": "string",
1142− "format": "int64"
1143− },
1144− "appId": {
1145− "description": "Application that handled this request.",
1146 "type": "string"
1396 "type": "string"
1147− },
1397+ }
1148− "traceId": {
1398+ },
1149− "description": "Cloud Trace identifier for this request.",
1399+ "id": "ListLogsResponse"
1400+ },
1401+ "HttpRequest": {
1402+ "id": "HttpRequest",
1403+ "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.",
1404+ "type": "object",
1405+ "properties": {
1406+ "latency": {
1407+ "description": "The request processing latency on the server, from the time the request was received until the response was sent.",
1408+ "format": "google-duration",
1150 "type": "string"
1409 "type": "string"
1151 },
1410 },
1152− "taskName": {
1411+ "userAgent": {
1153− "description": "Task name of the request, in the case of an offline request.",
1412+ "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\".",
1154 "type": "string"
1413 "type": "string"
1155 },
1414 },
1156− "cost": {
1415+ "cacheFillBytes": {
1157− "description": "An indication of the relative cost of serving this request.",
1416+ "description": "The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.",
1158− "type": "number",
1159− "format": "double"
1417+ "format": "int64",
1160− },
1161− "instanceId": {
1162− "description": "An identifier for the instance that handled the request.",
1163 "type": "string"
1418 "type": "string"
1164 },
1419 },
1165− "startTime": {
1420+ "requestMethod": {
1166− "description": "Time when the request started.",
1421+ "description": "The request method. Examples: \"GET\", \"HEAD\", \"PUT\", \"POST\".",
1167− "type": "string",
1422+ "type": "string"
1168− "format": "google-datetime"
1169 },
1423 },
1170− "appEngineRelease": {
1424+ "responseSize": {
1171− "description": "App Engine release version.",
1425+ "description": "The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.",
1426+ "format": "int64",
1172 "type": "string"
1427 "type": "string"
1173 },
1428 },
1174− "resource": {
1429+ "requestSize": {
1175− "description": "Contains the path and query portion of the URL that was requested. For\nexample, if the URL was \"http://example.com/app?name=val\", the resource\nwould be \"/app?name=val\". The fragment identifier, which is identified by\nthe `#` character, is not included.",
1430+ "description": "The size of the HTTP request message in bytes, including the request headers and the request body.",
1431+ "format": "int64",
1176 "type": "string"
1432 "type": "string"
1177 },
1433 },
1178− "httpVersion": {
1434+ "requestUrl": {
1179− "description": "HTTP version of request. Example: `\"HTTP/1.1\"`.",
1435+ "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\".",
1180 "type": "string"
1436 "type": "string"
1181 },
1437 },
1182− "referrer": {
1438+ "remoteIp": {
1183− "description": "Referrer URL of request.",
1439+ "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: \"192.168.1.1\", \"FE80::0202:B3FF:FE1E:8329\".",
1184 "type": "string"
1440 "type": "string"
1185 },
1441 },
1186− "userAgent": {
1442+ "serverIp": {
1187− "description": "User agent that made the request.",
1443+ "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.",
1188 "type": "string"
1444 "type": "string"
1189 },
1445 },
1190− "finished": {
1446+ "cacheLookup": {
1191− "description": "Whether this request is finished or active.",
1447+ "description": "Whether or not a cache lookup was attempted.",
1192 "type": "boolean"
1448 "type": "boolean"
1449+ },
1450+ "cacheHit": {
1451+ "description": "Whether or not an entity was served from cache (with or without validation).",
1452+ "type": "boolean"
1453+ },
1454+ "cacheValidatedWithOriginServer": {
1455+ "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.",
1456+ "type": "boolean"
1457+ },
1458+ "status": {
1459+ "description": "The response code indicating the status of response. Examples: 200, 404.",
1460+ "format": "int32",
1461+ "type": "integer"
1462+ },
1463+ "referer": {
1464+ "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).",
1465+ "type": "string"
1193 }
1466 }
1194− },
1467+ }
1195− "id": "RequestLog"
1196− },
1197− "WriteLogEntriesResponse": {
1198− "description": "Result returned from WriteLogEntries.\nempty",
1199− "type": "object",
1200− "properties": {},
1201− "id": "WriteLogEntriesResponse"
1202 },
1468 },
1203− "ListLogEntriesRequest": {
1469+ "ListSinksResponse": {
1204− "description": "The parameters to `ListLogEntries`.",
1470+ "description": "Result returned from ListSinks.",
1205 "type": "object",
1471 "type": "object",
1206 "properties": {
1472 "properties": {
1207− "filter": {
1473+ "nextPageToken": {
1208− "description": "Optional. A filter that chooses which log entries to return. See [Advanced\nLogs Filters](/logging/docs/view/advanced_filters). Only log entries that\nmatch the filter are returned. An empty filter matches all log entries.",
1474+ "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.",
1209 "type": "string"
1475 "type": "string"
1210 },
1476 },
1211− "projectIds": {
1477+ "sinks": {
1212− "description": "Deprecated. One or more project identifiers or project numbers from which\nto retrieve log entries. Examples: `\"my-project-1A\"`, `\"1234567890\"`. If\npresent, these project identifiers are converted to resource format and\nadded to the list of resources in `resourceNames`. Callers should use\n`resourceNames` rather than this parameter.",
1478+ "description": "A list of sinks.",
1213− "type": "array",
1214− "items": {
1215− "type": "string"
1216− }
1217− },
1218− "resourceNames": {
1219− "description": "Required. One or more cloud resources from which to retrieve log entries.\nExample: `\"projects/my-project-1A\"`, `\"projects/1234567890\"`. Projects\nlisted in `projectIds` are added to this list.",
1220 "type": "array",
1479 "type": "array",
1221 "items": {
1480 "items": {
1222− "type": "string"
1481+ "$ref": "LogSink"
1223 }
1482 }
1224− },
1483+ }
1225− "pageSize": {
1484+ },
1226− "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.",
1485+ "id": "ListSinksResponse"
1227− "type": "integer",
1486+ },
1228− "format": "int32"
1487+ "LabelDescriptor": {
1229− },
1488+ "id": "LabelDescriptor",
1230− "orderBy": {
1489+ "description": "A description of a label.",
1231− "description": "Optional. How the results should be sorted. Presently, the only permitted\nvalues are `\"timestamp asc\"` (default) and `\"timestamp desc\"`. The first\noption returns entries in order of increasing values of\n`LogEntry.timestamp` (oldest first), and the second option returns entries\nin order of decreasing timestamps (newest first). Entries with equal\ntimestamps are returned in order of `LogEntry.insertId`.",
1490+ "type": "object",
1491+ "properties": {
1492+ "key": {
1493+ "description": "The label key.",
1232 "type": "string"
1494 "type": "string"
1233 },
1495 },
1234− "pageToken": {
1496+ "description": {
1235− "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
1497+ "description": "A human-readable description for the label.",
1236 "type": "string"
1498 "type": "string"
1499+ },
1500+ "valueType": {
1501+ "description": "The type of data that can be assigned to the label.",
1502+ "type": "string",
1503+ "enumDescriptions": [
1504+ "A variable-length string. This is the default.",
1505+ "Boolean; true or false.",
1506+ "A 64-bit signed integer."
1507+ ],
1508+ "enum": [
1509+ "STRING",
1510+ "BOOL",
1511+ "INT64"
1512+ ]
1237 }
1513 }
1238− },
1514+ }
1239− "id": "ListLogEntriesRequest"
1240 }
1515 }
1241 },
1516 },
1242− "revision": "20161017",
1517+ "protocol": "rest",
1243− "basePath": "",
1244 "icons": {
1518 "icons": {
1245− "x32": "http://www.google.com/images/icons/product/search-32.gif",
1246− "x16": "http://www.google.com/images/icons/product/search-16.gif"
1519+ "x16": "http://www.google.com/images/icons/product/search-16.gif",
1247− },
1520+ "x32": "http://www.google.com/images/icons/product/search-32.gif"
1248− "version_module": "True",
1249− "canonicalName": "Logging",
1250− "discoveryVersion": "v1",
1251− "baseUrl": "https://logging.googleapis.com/",
1252− "name": "logging",
1253− "parameters": {
1254− "access_token": {
1255− "description": "OAuth access token.",
1256− "type": "string",
1257− "location": "query"
1258− },
1259− "prettyPrint": {
1260− "description": "Returns response with indentations and line breaks.",
1261− "default": "true",
1262− "type": "boolean",
1263− "location": "query"
1264− },
1265− "key": {
1266− "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.",
1267− "type": "string",
1268− "location": "query"
1269− },
1270− "quotaUser": {
1271− "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.",
1272− "type": "string",
1273− "location": "query"
1274− },
1275− "pp": {
1276− "description": "Pretty-print response.",
1277− "default": "true",
1278− "type": "boolean",
1279− "location": "query"
1280− },
1281− "fields": {
1282− "description": "Selector specifying which fields to include in a partial response.",
1283− "type": "string",
1284− "location": "query"
1285− },
1286− "alt": {
1287− "description": "Data format for response.",
1288− "location": "query",
1289− "enum": [
1290− "json",
1291− "media",
1292− "proto"
1293− ],
1294− "default": "json",
1295− "enumDescriptions": [
1296− "Responses with Content-Type of application/json",
1297− "Media download with context-dependent Content-Type",
1298− "Responses with Content-Type of application/x-protobuf"
1299− ],
1300− "type": "string"
1301− },
1302− "$.xgafv": {
1303− "description": "V1 error format.",
1304− "enum": [
1305− "1",
1306− "2"
1307− ],
1308− "enumDescriptions": [
1309− "v1 error format",
1310− "v2 error format"
1311− ],
1312− "type": "string",
1313− "location": "query"
1314− },
1315− "callback": {
1316− "description": "JSONP",
1317− "type": "string",
1318− "location": "query"
1319− },
1320− "oauth_token": {
1321− "description": "OAuth 2.0 token for the current user.",
1322− "type": "string",
1323− "location": "query"
1324− },
1325− "uploadType": {
1326− "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
1327− "type": "string",
1328− "location": "query"
1329− },
1330− "bearer_token": {
1331− "description": "OAuth bearer token.",
1332− "type": "string",
1333− "location": "query"
1334− },
1335− "upload_protocol": {
1336− "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
1337− "type": "string",
1338− "location": "query"
1339− }
1340− },
1521+ }
1341− "documentationLink": "https://cloud.google.com/logging/docs/",
1342− "ownerDomain": "google.com",
1343− "batchPath": "batch",
1344− "servicePath": "",
1345− "ownerName": "Google",
1346− "version": "v2beta1",
1347− "rootUrl": "https://logging.googleapis.com/",
1348− "kind": "discovery#restDescription"
1349}
1522}