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

Side by Side Diff: discovery/googleapis/logging__v2.json

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/language__v1.json ('k') | discovery/googleapis/manufacturers__v1.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform.read-only": { 5 "https://www.googleapis.com/auth/cloud-platform.read-only": {
6 "description": "View your data across Google Cloud Platform services" 6 "description": "View your data across Google Cloud Platform services"
7 }, 7 },
8 "https://www.googleapis.com/auth/logging.admin": { 8 "https://www.googleapis.com/auth/logging.admin": {
9 "description": "Administrate log data for your projects" 9 "description": "Administrate log data for your projects"
10 }, 10 },
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 "proto" 46 "proto"
47 ], 47 ],
48 "enumDescriptions": [ 48 "enumDescriptions": [
49 "Responses with Content-Type of application/json", 49 "Responses with Content-Type of application/json",
50 "Media download with context-dependent Content-Type", 50 "Media download with context-dependent Content-Type",
51 "Responses with Content-Type of application/x-protobuf" 51 "Responses with Content-Type of application/x-protobuf"
52 ], 52 ],
53 "location": "query", 53 "location": "query",
54 "type": "string" 54 "type": "string"
55 }, 55 },
56 "access_token": {
57 "description": "OAuth access token.",
58 "location": "query",
59 "type": "string"
60 },
56 "key": { 61 "key": {
57 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.", 62 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
58 "location": "query", 63 "location": "query",
59 "type": "string" 64 "type": "string"
60 }, 65 },
61 "access_token": {
62 "description": "OAuth access token.",
63 "location": "query",
64 "type": "string"
65 },
66 "quotaUser": { 66 "quotaUser": {
67 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.", 67 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
68 "location": "query", 68 "location": "query",
69 "type": "string" 69 "type": "string"
70 }, 70 },
71 "pp": { 71 "pp": {
72 "default": "true", 72 "default": "true",
73 "description": "Pretty-print response.", 73 "description": "Pretty-print response.",
74 "location": "query", 74 "location": "query",
75 "type": "boolean" 75 "type": "boolean"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 "type": "string" 124 "type": "string"
125 } 125 }
126 }, 126 },
127 "protocol": "rest", 127 "protocol": "rest",
128 "resources": { 128 "resources": {
129 "folders": { 129 "folders": {
130 "resources": { 130 "resources": {
131 "logs": { 131 "logs": {
132 "methods": { 132 "methods": {
133 "delete": { 133 "delete": {
134 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries.", 134 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries. Log entries written shortly befo re the delete operation might not be deleted.",
135 "httpMethod": "DELETE", 135 "httpMethod": "DELETE",
136 "id": "logging.folders.logs.delete", 136 "id": "logging.folders.logs.delete",
137 "parameterOrder": [ 137 "parameterOrder": [
138 "logName" 138 "logName"
139 ], 139 ],
140 "parameters": { 140 "parameters": {
141 "logName": { 141 "logName": {
142 "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/cloudresou rcemanager.googleapis.com%2Factivity\". For more information about log names, se e LogEntry.", 142 "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\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[ LOG_ID]\"\n\"folders/[FOLDER_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 abou t log names, see LogEntry.",
143 "location": "path", 143 "location": "path",
144 "pattern": "^folders/[^/]+/logs/[^/]+$", 144 "pattern": "^folders/[^/]+/logs/[^/]+$",
145 "required": true, 145 "required": true,
146 "type": "string" 146 "type": "string"
147 } 147 }
148 }, 148 },
149 "path": "v2/{+logName}", 149 "path": "v2/{+logName}",
150 "response": { 150 "response": {
151 "$ref": "Empty" 151 "$ref": "Empty"
152 }, 152 },
153 "scopes": [ 153 "scopes": [
154 "https://www.googleapis.com/auth/cloud-platform" , 154 "https://www.googleapis.com/auth/cloud-platform" ,
155 "https://www.googleapis.com/auth/logging.admin" 155 "https://www.googleapis.com/auth/logging.admin"
156 ] 156 ]
157 }, 157 },
158 "list": { 158 "list": {
159 "description": "Lists the logs in projects or organi zations. Only logs that have entries are listed.", 159 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
160 "httpMethod": "GET", 160 "httpMethod": "GET",
161 "id": "logging.folders.logs.list", 161 "id": "logging.folders.logs.list",
162 "parameterOrder": [ 162 "parameterOrder": [
163 "parent" 163 "parent"
164 ], 164 ],
165 "parameters": { 165 "parameters": {
166 "parent": {
167 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n",
168 "location": "path",
169 "pattern": "^folders/[^/]+$",
170 "required": true,
171 "type": "string"
172 },
173 "pageToken": { 166 "pageToken": {
174 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.", 167 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
175 "location": "query", 168 "location": "query",
176 "type": "string" 169 "type": "string"
177 }, 170 },
178 "pageSize": { 171 "pageSize": {
179 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 172 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
180 "format": "int32", 173 "format": "int32",
181 "location": "query", 174 "location": "query",
182 "type": "integer" 175 "type": "integer"
176 },
177 "parent": {
178 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
179 "location": "path",
180 "pattern": "^folders/[^/]+$",
181 "required": true,
182 "type": "string"
183 } 183 }
184 }, 184 },
185 "path": "v2/{+parent}/logs", 185 "path": "v2/{+parent}/logs",
186 "response": { 186 "response": {
187 "$ref": "ListLogsResponse" 187 "$ref": "ListLogsResponse"
188 }, 188 },
189 "scopes": [ 189 "scopes": [
190 "https://www.googleapis.com/auth/cloud-platform" , 190 "https://www.googleapis.com/auth/cloud-platform" ,
191 "https://www.googleapis.com/auth/cloud-platform. read-only", 191 "https://www.googleapis.com/auth/cloud-platform. read-only",
192 "https://www.googleapis.com/auth/logging.admin", 192 "https://www.googleapis.com/auth/logging.admin",
193 "https://www.googleapis.com/auth/logging.read" 193 "https://www.googleapis.com/auth/logging.read"
194 ] 194 ]
195 } 195 }
196 } 196 }
197 }, 197 },
198 "sinks": { 198 "sinks": {
199 "methods": { 199 "methods": {
200 "delete": { 200 "delete": {
201 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.", 201 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
202 "httpMethod": "DELETE", 202 "httpMethod": "DELETE",
203 "id": "logging.folders.sinks.delete", 203 "id": "logging.folders.sinks.delete",
204 "parameterOrder": [ 204 "parameterOrder": [
205 "sinkName" 205 "sinkName"
206 ], 206 ],
207 "parameters": { 207 "parameters": {
208 "sinkName": { 208 "sinkName": {
209 "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifie r:\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: \"projec ts/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist." , 209 "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
210 "location": "path", 210 "location": "path",
211 "pattern": "^folders/[^/]+/sinks/[^/]+$", 211 "pattern": "^folders/[^/]+/sinks/[^/]+$",
212 "required": true, 212 "required": true,
213 "type": "string" 213 "type": "string"
214 } 214 }
215 }, 215 },
216 "path": "v2/{+sinkName}", 216 "path": "v2/{+sinkName}",
217 "response": { 217 "response": {
218 "$ref": "Empty" 218 "$ref": "Empty"
219 }, 219 },
220 "scopes": [ 220 "scopes": [
221 "https://www.googleapis.com/auth/cloud-platform" , 221 "https://www.googleapis.com/auth/cloud-platform" ,
222 "https://www.googleapis.com/auth/logging.admin" 222 "https://www.googleapis.com/auth/logging.admin"
223 ] 223 ]
224 }, 224 },
225 "list": { 225 "list": {
226 "description": "Lists sinks.", 226 "description": "Lists sinks.",
227 "httpMethod": "GET", 227 "httpMethod": "GET",
228 "id": "logging.folders.sinks.list", 228 "id": "logging.folders.sinks.list",
229 "parameterOrder": [ 229 "parameterOrder": [
230 "parent" 230 "parent"
231 ], 231 ],
232 "parameters": { 232 "parameters": {
233 "parent": {
234 "description": "Required. The parent resourc e whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORG ANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID] \"\n",
235 "location": "path",
236 "pattern": "^folders/[^/]+$",
237 "required": true,
238 "type": "string"
239 },
233 "pageToken": { 240 "pageToken": {
234 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.", 241 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
235 "location": "query", 242 "location": "query",
236 "type": "string" 243 "type": "string"
237 }, 244 },
238 "pageSize": { 245 "pageSize": {
239 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 246 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
240 "format": "int32", 247 "format": "int32",
241 "location": "query", 248 "location": "query",
242 "type": "integer" 249 "type": "integer"
243 },
244 "parent": {
245 "description": "Required. The parent resourc e whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"org anizations/123456789\".",
246 "location": "path",
247 "pattern": "^folders/[^/]+$",
248 "required": true,
249 "type": "string"
250 } 250 }
251 }, 251 },
252 "path": "v2/{+parent}/sinks", 252 "path": "v2/{+parent}/sinks",
253 "response": { 253 "response": {
254 "$ref": "ListSinksResponse" 254 "$ref": "ListSinksResponse"
255 }, 255 },
256 "scopes": [ 256 "scopes": [
257 "https://www.googleapis.com/auth/cloud-platform" , 257 "https://www.googleapis.com/auth/cloud-platform" ,
258 "https://www.googleapis.com/auth/cloud-platform. read-only", 258 "https://www.googleapis.com/auth/cloud-platform. read-only",
259 "https://www.googleapis.com/auth/logging.admin", 259 "https://www.googleapis.com/auth/logging.admin",
260 "https://www.googleapis.com/auth/logging.read" 260 "https://www.googleapis.com/auth/logging.read"
261 ] 261 ]
262 }, 262 },
263 "get": { 263 "get": {
264 "description": "Gets a sink.", 264 "description": "Gets a sink.",
265 "httpMethod": "GET", 265 "httpMethod": "GET",
266 "id": "logging.folders.sinks.get", 266 "id": "logging.folders.sinks.get",
267 "parameterOrder": [ 267 "parameterOrder": [
268 "sinkName" 268 "sinkName"
269 ], 269 ],
270 "parameters": { 270 "parameters": {
271 "sinkName": { 271 "sinkName": {
272 "description": "Required. The parent resourc e 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\".", 272 "description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANI ZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK _ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project- id/sinks/my-sink-id\".",
273 "location": "path", 273 "location": "path",
274 "pattern": "^folders/[^/]+/sinks/[^/]+$", 274 "pattern": "^folders/[^/]+/sinks/[^/]+$",
275 "required": true, 275 "required": true,
276 "type": "string" 276 "type": "string"
277 } 277 }
278 }, 278 },
279 "path": "v2/{+sinkName}", 279 "path": "v2/{+sinkName}",
280 "response": { 280 "response": {
281 "$ref": "LogSink" 281 "$ref": "LogSink"
282 }, 282 },
283 "scopes": [ 283 "scopes": [
284 "https://www.googleapis.com/auth/cloud-platform" , 284 "https://www.googleapis.com/auth/cloud-platform" ,
285 "https://www.googleapis.com/auth/cloud-platform. read-only", 285 "https://www.googleapis.com/auth/cloud-platform. read-only",
286 "https://www.googleapis.com/auth/logging.admin", 286 "https://www.googleapis.com/auth/logging.admin",
287 "https://www.googleapis.com/auth/logging.read" 287 "https://www.googleapis.com/auth/logging.read"
288 ] 288 ]
289 }, 289 },
290 "update": { 290 "update": {
291 "description": "Updates a sink. If the named sink do esn't exist, then this method is identical to sinks.create. If the named sink do es exist, then this method replaces the following fields in the existing sink wi th values from the new sink: destination, filter, output_version_format, start_t ime, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.", 291 "description": "Updates a sink. If the named sink do esn't exist, then this method is identical to sinks.create. If the named sink do es exist, then this method replaces the following fields in the existing sink wi th values from the new sink: destination, filter, output_version_format, start_t ime, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.",
292 "httpMethod": "PUT", 292 "httpMethod": "PUT",
293 "id": "logging.folders.sinks.update", 293 "id": "logging.folders.sinks.update",
294 "parameterOrder": [ 294 "parameterOrder": [
295 "sinkName" 295 "sinkName"
296 ], 296 ],
297 "parameters": { 297 "parameters": {
298 "sinkName": { 298 "sinkName": {
299 "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", 299 "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
300 "location": "path", 300 "location": "path",
301 "pattern": "^folders/[^/]+/sinks/[^/]+$", 301 "pattern": "^folders/[^/]+/sinks/[^/]+$",
302 "required": true, 302 "required": true,
303 "type": "string" 303 "type": "string"
304 }, 304 },
305 "uniqueWriterIdentity": { 305 "uniqueWriterIdentity": {
306 "description": "Optional. See sinks.create f or a description of this field. When updating a sink, the effect of this field o n the value of writer_identity in the updated sink depends on both the old and n ew 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 ol d 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.", 306 "description": "Optional. See sinks.create f or a description of this field. When updating a sink, the effect of this field o n the value of writer_identity in the updated sink depends on both the old and n ew 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 ol d 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.",
307 "location": "query", 307 "location": "query",
308 "type": "boolean" 308 "type": "boolean"
309 } 309 }
(...skipping 12 matching lines...) Expand all
322 }, 322 },
323 "create": { 323 "create": {
324 "description": "Creates a sink that exports specifie d 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 o r the sink's writer_identity is not permitted to write to the destination. A sin k can export log entries only from the resource owning the sink.", 324 "description": "Creates a sink that exports specifie d 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 o r the sink's writer_identity is not permitted to write to the destination. A sin k can export log entries only from the resource owning the sink.",
325 "httpMethod": "POST", 325 "httpMethod": "POST",
326 "id": "logging.folders.sinks.create", 326 "id": "logging.folders.sinks.create",
327 "parameterOrder": [ 327 "parameterOrder": [
328 "parent" 328 "parent"
329 ], 329 ],
330 "parameters": { 330 "parameters": {
331 "parent": { 331 "parent": {
332 "description": "Required. The resource in wh ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO N_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\". ", 332 "description": "Required. The resource in wh ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO N_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExam ples: \"projects/my-logging-project\", \"organizations/123456789\".",
333 "location": "path", 333 "location": "path",
334 "pattern": "^folders/[^/]+$", 334 "pattern": "^folders/[^/]+$",
335 "required": true, 335 "required": true,
336 "type": "string" 336 "type": "string"
337 }, 337 },
338 "uniqueWriterIdentity": { 338 "uniqueWriterIdentity": {
339 "description": "Optional. Determines the kin d 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 r eturned as writer_identity is cloud-logs@google.com, the same identity used befo re 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 t he new sink. For more information, see writer_identity in LogSink.", 339 "description": "Optional. Determines the kin d 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 r eturned as writer_identity is cloud-logs@system.gserviceaccount.com, the same id entity used before the addition of writer identities to this API. The sink's des tination 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 fo r exports from the new sink. For more information, see writer_identity in LogSin k.",
340 "location": "query", 340 "location": "query",
341 "type": "boolean" 341 "type": "boolean"
342 } 342 }
343 }, 343 },
344 "path": "v2/{+parent}/sinks", 344 "path": "v2/{+parent}/sinks",
345 "request": { 345 "request": {
346 "$ref": "LogSink" 346 "$ref": "LogSink"
347 }, 347 },
348 "response": { 348 "response": {
349 "$ref": "LogSink" 349 "$ref": "LogSink"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 "https://www.googleapis.com/auth/logging.admin", 387 "https://www.googleapis.com/auth/logging.admin",
388 "https://www.googleapis.com/auth/logging.read" 388 "https://www.googleapis.com/auth/logging.read"
389 ] 389 ]
390 } 390 }
391 } 391 }
392 }, 392 },
393 "organizations": { 393 "organizations": {
394 "resources": { 394 "resources": {
395 "logs": { 395 "logs": {
396 "methods": { 396 "methods": {
397 "delete": {
398 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries.",
399 "httpMethod": "DELETE",
400 "id": "logging.organizations.logs.delete",
401 "parameterOrder": [
402 "logName"
403 ],
404 "parameters": {
405 "logName": {
406 "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/cloudresou rcemanager.googleapis.com%2Factivity\". For more information about log names, se e LogEntry.",
407 "location": "path",
408 "pattern": "^organizations/[^/]+/logs/[^/]+$ ",
409 "required": true,
410 "type": "string"
411 }
412 },
413 "path": "v2/{+logName}",
414 "response": {
415 "$ref": "Empty"
416 },
417 "scopes": [
418 "https://www.googleapis.com/auth/cloud-platform" ,
419 "https://www.googleapis.com/auth/logging.admin"
420 ]
421 },
422 "list": { 397 "list": {
423 "description": "Lists the logs in projects or organi zations. Only logs that have entries are listed.", 398 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
424 "httpMethod": "GET", 399 "httpMethod": "GET",
425 "id": "logging.organizations.logs.list", 400 "id": "logging.organizations.logs.list",
426 "parameterOrder": [ 401 "parameterOrder": [
427 "parent" 402 "parent"
428 ], 403 ],
429 "parameters": { 404 "parameters": {
430 "pageSize": { 405 "pageSize": {
431 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 406 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
432 "format": "int32", 407 "format": "int32",
433 "location": "query", 408 "location": "query",
434 "type": "integer" 409 "type": "integer"
435 }, 410 },
436 "parent": { 411 "parent": {
437 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n", 412 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
438 "location": "path", 413 "location": "path",
439 "pattern": "^organizations/[^/]+$", 414 "pattern": "^organizations/[^/]+$",
440 "required": true, 415 "required": true,
441 "type": "string" 416 "type": "string"
442 }, 417 },
443 "pageToken": { 418 "pageToken": {
444 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.", 419 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
445 "location": "query", 420 "location": "query",
446 "type": "string" 421 "type": "string"
447 } 422 }
448 }, 423 },
449 "path": "v2/{+parent}/logs", 424 "path": "v2/{+parent}/logs",
450 "response": { 425 "response": {
451 "$ref": "ListLogsResponse" 426 "$ref": "ListLogsResponse"
452 }, 427 },
453 "scopes": [ 428 "scopes": [
454 "https://www.googleapis.com/auth/cloud-platform" , 429 "https://www.googleapis.com/auth/cloud-platform" ,
455 "https://www.googleapis.com/auth/cloud-platform. read-only", 430 "https://www.googleapis.com/auth/cloud-platform. read-only",
456 "https://www.googleapis.com/auth/logging.admin", 431 "https://www.googleapis.com/auth/logging.admin",
457 "https://www.googleapis.com/auth/logging.read" 432 "https://www.googleapis.com/auth/logging.read"
458 ] 433 ]
434 },
435 "delete": {
436 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries. Log entries written shortly befo re the delete operation might not be deleted.",
437 "httpMethod": "DELETE",
438 "id": "logging.organizations.logs.delete",
439 "parameterOrder": [
440 "logName"
441 ],
442 "parameters": {
443 "logName": {
444 "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\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[ LOG_ID]\"\n\"folders/[FOLDER_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 abou t log names, see LogEntry.",
445 "location": "path",
446 "pattern": "^organizations/[^/]+/logs/[^/]+$ ",
447 "required": true,
448 "type": "string"
449 }
450 },
451 "path": "v2/{+logName}",
452 "response": {
453 "$ref": "Empty"
454 },
455 "scopes": [
456 "https://www.googleapis.com/auth/cloud-platform" ,
457 "https://www.googleapis.com/auth/logging.admin"
458 ]
459 } 459 }
460 } 460 }
461 }, 461 },
462 "sinks": { 462 "sinks": {
463 "methods": { 463 "methods": {
464 "update": {
465 "description": "Updates a sink. If the named sink do esn't exist, then this method is identical to sinks.create. If the named sink do es exist, then this method replaces the following fields in the existing sink wi th values from the new sink: destination, filter, output_version_format, start_t ime, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.",
466 "httpMethod": "PUT",
467 "id": "logging.organizations.sinks.update",
468 "parameterOrder": [
469 "sinkName"
470 ],
471 "parameters": {
472 "sinkName": {
473 "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".",
474 "location": "path",
475 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
476 "required": true,
477 "type": "string"
478 },
479 "uniqueWriterIdentity": {
480 "description": "Optional. See sinks.create f or a description of this field. When updating a sink, the effect of this field o n the value of writer_identity in the updated sink depends on both the old and n ew 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 ol d 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.",
481 "location": "query",
482 "type": "boolean"
483 }
484 },
485 "path": "v2/{+sinkName}",
486 "request": {
487 "$ref": "LogSink"
488 },
489 "response": {
490 "$ref": "LogSink"
491 },
492 "scopes": [
493 "https://www.googleapis.com/auth/cloud-platform" ,
494 "https://www.googleapis.com/auth/logging.admin"
495 ]
496 },
497 "create": {
498 "description": "Creates a sink that exports specifie d 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 o r the sink's writer_identity is not permitted to write to the destination. A sin k can export log entries only from the resource owning the sink.",
499 "httpMethod": "POST",
500 "id": "logging.organizations.sinks.create",
501 "parameterOrder": [
502 "parent"
503 ],
504 "parameters": {
505 "parent": {
506 "description": "Required. The resource in wh ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO N_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\". ",
507 "location": "path",
508 "pattern": "^organizations/[^/]+$",
509 "required": true,
510 "type": "string"
511 },
512 "uniqueWriterIdentity": {
513 "description": "Optional. Determines the kin d 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 r eturned as writer_identity is cloud-logs@google.com, the same identity used befo re 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 t he new sink. For more information, see writer_identity in LogSink.",
514 "location": "query",
515 "type": "boolean"
516 }
517 },
518 "path": "v2/{+parent}/sinks",
519 "request": {
520 "$ref": "LogSink"
521 },
522 "response": {
523 "$ref": "LogSink"
524 },
525 "scopes": [
526 "https://www.googleapis.com/auth/cloud-platform" ,
527 "https://www.googleapis.com/auth/logging.admin"
528 ]
529 },
530 "delete": { 464 "delete": {
531 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.", 465 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
532 "httpMethod": "DELETE", 466 "httpMethod": "DELETE",
533 "id": "logging.organizations.sinks.delete", 467 "id": "logging.organizations.sinks.delete",
534 "parameterOrder": [ 468 "parameterOrder": [
535 "sinkName" 469 "sinkName"
536 ], 470 ],
537 "parameters": { 471 "parameters": {
538 "sinkName": { 472 "sinkName": {
539 "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifie r:\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: \"projec ts/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist." , 473 "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
540 "location": "path", 474 "location": "path",
541 "pattern": "^organizations/[^/]+/sinks/[^/]+ $", 475 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
542 "required": true, 476 "required": true,
543 "type": "string" 477 "type": "string"
544 } 478 }
545 }, 479 },
546 "path": "v2/{+sinkName}", 480 "path": "v2/{+sinkName}",
547 "response": { 481 "response": {
548 "$ref": "Empty" 482 "$ref": "Empty"
549 }, 483 },
550 "scopes": [ 484 "scopes": [
551 "https://www.googleapis.com/auth/cloud-platform" , 485 "https://www.googleapis.com/auth/cloud-platform" ,
552 "https://www.googleapis.com/auth/logging.admin" 486 "https://www.googleapis.com/auth/logging.admin"
553 ] 487 ]
554 }, 488 },
555 "list": { 489 "list": {
556 "description": "Lists sinks.", 490 "description": "Lists sinks.",
557 "httpMethod": "GET", 491 "httpMethod": "GET",
558 "id": "logging.organizations.sinks.list", 492 "id": "logging.organizations.sinks.list",
559 "parameterOrder": [ 493 "parameterOrder": [
560 "parent" 494 "parent"
561 ], 495 ],
562 "parameters": { 496 "parameters": {
563 "pageToken": {
564 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
565 "location": "query",
566 "type": "string"
567 },
568 "pageSize": { 497 "pageSize": {
569 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 498 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
570 "format": "int32", 499 "format": "int32",
571 "location": "query", 500 "location": "query",
572 "type": "integer" 501 "type": "integer"
573 }, 502 },
574 "parent": { 503 "parent": {
575 "description": "Required. The parent resourc e whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"org anizations/123456789\".", 504 "description": "Required. The parent resourc e whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORG ANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID] \"\n",
576 "location": "path", 505 "location": "path",
577 "pattern": "^organizations/[^/]+$", 506 "pattern": "^organizations/[^/]+$",
578 "required": true, 507 "required": true,
579 "type": "string" 508 "type": "string"
509 },
510 "pageToken": {
511 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
512 "location": "query",
513 "type": "string"
580 } 514 }
581 }, 515 },
582 "path": "v2/{+parent}/sinks", 516 "path": "v2/{+parent}/sinks",
583 "response": { 517 "response": {
584 "$ref": "ListSinksResponse" 518 "$ref": "ListSinksResponse"
585 }, 519 },
586 "scopes": [ 520 "scopes": [
587 "https://www.googleapis.com/auth/cloud-platform" , 521 "https://www.googleapis.com/auth/cloud-platform" ,
588 "https://www.googleapis.com/auth/cloud-platform. read-only", 522 "https://www.googleapis.com/auth/cloud-platform. read-only",
589 "https://www.googleapis.com/auth/logging.admin", 523 "https://www.googleapis.com/auth/logging.admin",
590 "https://www.googleapis.com/auth/logging.read" 524 "https://www.googleapis.com/auth/logging.read"
591 ] 525 ]
592 }, 526 },
593 "get": { 527 "get": {
594 "description": "Gets a sink.", 528 "description": "Gets a sink.",
595 "httpMethod": "GET", 529 "httpMethod": "GET",
596 "id": "logging.organizations.sinks.get", 530 "id": "logging.organizations.sinks.get",
597 "parameterOrder": [ 531 "parameterOrder": [
598 "sinkName" 532 "sinkName"
599 ], 533 ],
600 "parameters": { 534 "parameters": {
601 "sinkName": { 535 "sinkName": {
602 "description": "Required. The parent resourc e 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\".", 536 "description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANI ZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK _ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project- id/sinks/my-sink-id\".",
603 "location": "path", 537 "location": "path",
604 "pattern": "^organizations/[^/]+/sinks/[^/]+ $", 538 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
605 "required": true, 539 "required": true,
606 "type": "string" 540 "type": "string"
607 } 541 }
608 }, 542 },
609 "path": "v2/{+sinkName}", 543 "path": "v2/{+sinkName}",
610 "response": { 544 "response": {
611 "$ref": "LogSink" 545 "$ref": "LogSink"
612 }, 546 },
613 "scopes": [ 547 "scopes": [
614 "https://www.googleapis.com/auth/cloud-platform" , 548 "https://www.googleapis.com/auth/cloud-platform" ,
615 "https://www.googleapis.com/auth/cloud-platform. read-only", 549 "https://www.googleapis.com/auth/cloud-platform. read-only",
616 "https://www.googleapis.com/auth/logging.admin", 550 "https://www.googleapis.com/auth/logging.admin",
617 "https://www.googleapis.com/auth/logging.read" 551 "https://www.googleapis.com/auth/logging.read"
618 ] 552 ]
553 },
554 "update": {
555 "description": "Updates a sink. If the named sink do esn't exist, then this method is identical to sinks.create. If the named sink do es exist, then this method replaces the following fields in the existing sink wi th values from the new sink: destination, filter, output_version_format, start_t ime, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.",
556 "httpMethod": "PUT",
557 "id": "logging.organizations.sinks.update",
558 "parameterOrder": [
559 "sinkName"
560 ],
561 "parameters": {
562 "sinkName": {
563 "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
564 "location": "path",
565 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
566 "required": true,
567 "type": "string"
568 },
569 "uniqueWriterIdentity": {
570 "description": "Optional. See sinks.create f or a description of this field. When updating a sink, the effect of this field o n the value of writer_identity in the updated sink depends on both the old and n ew 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 ol d 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.",
571 "location": "query",
572 "type": "boolean"
573 }
574 },
575 "path": "v2/{+sinkName}",
576 "request": {
577 "$ref": "LogSink"
578 },
579 "response": {
580 "$ref": "LogSink"
581 },
582 "scopes": [
583 "https://www.googleapis.com/auth/cloud-platform" ,
584 "https://www.googleapis.com/auth/logging.admin"
585 ]
586 },
587 "create": {
588 "description": "Creates a sink that exports specifie d 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 o r the sink's writer_identity is not permitted to write to the destination. A sin k can export log entries only from the resource owning the sink.",
589 "httpMethod": "POST",
590 "id": "logging.organizations.sinks.create",
591 "parameterOrder": [
592 "parent"
593 ],
594 "parameters": {
595 "parent": {
596 "description": "Required. The resource in wh ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO N_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExam ples: \"projects/my-logging-project\", \"organizations/123456789\".",
597 "location": "path",
598 "pattern": "^organizations/[^/]+$",
599 "required": true,
600 "type": "string"
601 },
602 "uniqueWriterIdentity": {
603 "description": "Optional. Determines the kin d 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 r eturned as writer_identity is cloud-logs@system.gserviceaccount.com, the same id entity used before the addition of writer identities to this API. The sink's des tination 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 fo r exports from the new sink. For more information, see writer_identity in LogSin k.",
604 "location": "query",
605 "type": "boolean"
606 }
607 },
608 "path": "v2/{+parent}/sinks",
609 "request": {
610 "$ref": "LogSink"
611 },
612 "response": {
613 "$ref": "LogSink"
614 },
615 "scopes": [
616 "https://www.googleapis.com/auth/cloud-platform" ,
617 "https://www.googleapis.com/auth/logging.admin"
618 ]
619 } 619 }
620 } 620 }
621 } 621 }
622 } 622 }
623 }, 623 },
624 "entries": { 624 "entries": {
625 "methods": { 625 "methods": {
626 "write": {
627 "description": "Writes log entries to Stackdriver Logging. A ll log entries are written by this method.",
628 "httpMethod": "POST",
629 "id": "logging.entries.write",
630 "parameterOrder": [],
631 "parameters": {},
632 "path": "v2/entries:write",
633 "request": {
634 "$ref": "WriteLogEntriesRequest"
635 },
636 "response": {
637 "$ref": "WriteLogEntriesResponse"
638 },
639 "scopes": [
640 "https://www.googleapis.com/auth/cloud-platform",
641 "https://www.googleapis.com/auth/logging.admin",
642 "https://www.googleapis.com/auth/logging.write"
643 ]
644 },
626 "list": { 645 "list": {
627 "description": "Lists log entries. Use this method to retrie ve log entries from Stackdriver Logging. For ways to export log entries, see Exp orting Logs.", 646 "description": "Lists log entries. Use this method to retrie ve log entries from Stackdriver Logging. For ways to export log entries, see Exp orting Logs.",
628 "httpMethod": "POST", 647 "httpMethod": "POST",
629 "id": "logging.entries.list", 648 "id": "logging.entries.list",
630 "parameterOrder": [], 649 "parameterOrder": [],
631 "parameters": {}, 650 "parameters": {},
632 "path": "v2/entries:list", 651 "path": "v2/entries:list",
633 "request": { 652 "request": {
634 "$ref": "ListLogEntriesRequest" 653 "$ref": "ListLogEntriesRequest"
635 }, 654 },
636 "response": { 655 "response": {
637 "$ref": "ListLogEntriesResponse" 656 "$ref": "ListLogEntriesResponse"
638 }, 657 },
639 "scopes": [ 658 "scopes": [
640 "https://www.googleapis.com/auth/cloud-platform", 659 "https://www.googleapis.com/auth/cloud-platform",
641 "https://www.googleapis.com/auth/cloud-platform.read-onl y", 660 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
642 "https://www.googleapis.com/auth/logging.admin", 661 "https://www.googleapis.com/auth/logging.admin",
643 "https://www.googleapis.com/auth/logging.read" 662 "https://www.googleapis.com/auth/logging.read"
644 ] 663 ]
645 },
646 "write": {
647 "description": "Writes log entries to Stackdriver Logging. A ll log entries are written by this method.",
648 "httpMethod": "POST",
649 "id": "logging.entries.write",
650 "parameterOrder": [],
651 "parameters": {},
652 "path": "v2/entries:write",
653 "request": {
654 "$ref": "WriteLogEntriesRequest"
655 },
656 "response": {
657 "$ref": "WriteLogEntriesResponse"
658 },
659 "scopes": [
660 "https://www.googleapis.com/auth/cloud-platform",
661 "https://www.googleapis.com/auth/logging.admin",
662 "https://www.googleapis.com/auth/logging.write"
663 ]
664 } 664 }
665 } 665 }
666 }, 666 },
667 "projects": { 667 "projects": {
668 "resources": { 668 "resources": {
669 "logs": { 669 "logs": {
670 "methods": { 670 "methods": {
671 "delete": { 671 "delete": {
672 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries.", 672 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries. Log entries written shortly befo re the delete operation might not be deleted.",
673 "httpMethod": "DELETE", 673 "httpMethod": "DELETE",
674 "id": "logging.projects.logs.delete", 674 "id": "logging.projects.logs.delete",
675 "parameterOrder": [ 675 "parameterOrder": [
676 "logName" 676 "logName"
677 ], 677 ],
678 "parameters": { 678 "parameters": {
679 "logName": { 679 "logName": {
680 "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/cloudresou rcemanager.googleapis.com%2Factivity\". For more information about log names, se e LogEntry.", 680 "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\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[ LOG_ID]\"\n\"folders/[FOLDER_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 abou t log names, see LogEntry.",
681 "location": "path", 681 "location": "path",
682 "pattern": "^projects/[^/]+/logs/[^/]+$", 682 "pattern": "^projects/[^/]+/logs/[^/]+$",
683 "required": true, 683 "required": true,
684 "type": "string" 684 "type": "string"
685 } 685 }
686 }, 686 },
687 "path": "v2/{+logName}", 687 "path": "v2/{+logName}",
688 "response": { 688 "response": {
689 "$ref": "Empty" 689 "$ref": "Empty"
690 }, 690 },
691 "scopes": [ 691 "scopes": [
692 "https://www.googleapis.com/auth/cloud-platform" , 692 "https://www.googleapis.com/auth/cloud-platform" ,
693 "https://www.googleapis.com/auth/logging.admin" 693 "https://www.googleapis.com/auth/logging.admin"
694 ] 694 ]
695 }, 695 },
696 "list": { 696 "list": {
697 "description": "Lists the logs in projects or organi zations. Only logs that have entries are listed.", 697 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
698 "httpMethod": "GET", 698 "httpMethod": "GET",
699 "id": "logging.projects.logs.list", 699 "id": "logging.projects.logs.list",
700 "parameterOrder": [ 700 "parameterOrder": [
701 "parent" 701 "parent"
702 ], 702 ],
703 "parameters": { 703 "parameters": {
704 "pageToken": {
705 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
706 "location": "query",
707 "type": "string"
708 },
704 "pageSize": { 709 "pageSize": {
705 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 710 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
706 "format": "int32", 711 "format": "int32",
707 "location": "query", 712 "location": "query",
708 "type": "integer" 713 "type": "integer"
709 }, 714 },
710 "parent": { 715 "parent": {
711 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n", 716 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
712 "location": "path", 717 "location": "path",
713 "pattern": "^projects/[^/]+$", 718 "pattern": "^projects/[^/]+$",
714 "required": true, 719 "required": true,
715 "type": "string" 720 "type": "string"
716 },
717 "pageToken": {
718 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
719 "location": "query",
720 "type": "string"
721 } 721 }
722 }, 722 },
723 "path": "v2/{+parent}/logs", 723 "path": "v2/{+parent}/logs",
724 "response": { 724 "response": {
725 "$ref": "ListLogsResponse" 725 "$ref": "ListLogsResponse"
726 }, 726 },
727 "scopes": [ 727 "scopes": [
728 "https://www.googleapis.com/auth/cloud-platform" , 728 "https://www.googleapis.com/auth/cloud-platform" ,
729 "https://www.googleapis.com/auth/cloud-platform. read-only", 729 "https://www.googleapis.com/auth/cloud-platform. read-only",
730 "https://www.googleapis.com/auth/logging.admin", 730 "https://www.googleapis.com/auth/logging.admin",
731 "https://www.googleapis.com/auth/logging.read" 731 "https://www.googleapis.com/auth/logging.read"
732 ] 732 ]
733 } 733 }
734 } 734 }
735 }, 735 },
736 "sinks": { 736 "sinks": {
737 "methods": { 737 "methods": {
738 "create": {
739 "description": "Creates a sink that exports specifie d 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 o r the sink's writer_identity is not permitted to write to the destination. A sin k can export log entries only from the resource owning the sink.",
740 "httpMethod": "POST",
741 "id": "logging.projects.sinks.create",
742 "parameterOrder": [
743 "parent"
744 ],
745 "parameters": {
746 "parent": {
747 "description": "Required. The resource in wh ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO N_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\". ",
748 "location": "path",
749 "pattern": "^projects/[^/]+$",
750 "required": true,
751 "type": "string"
752 },
753 "uniqueWriterIdentity": {
754 "description": "Optional. Determines the kin d 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 r eturned as writer_identity is cloud-logs@google.com, the same identity used befo re 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 t he new sink. For more information, see writer_identity in LogSink.",
755 "location": "query",
756 "type": "boolean"
757 }
758 },
759 "path": "v2/{+parent}/sinks",
760 "request": {
761 "$ref": "LogSink"
762 },
763 "response": {
764 "$ref": "LogSink"
765 },
766 "scopes": [
767 "https://www.googleapis.com/auth/cloud-platform" ,
768 "https://www.googleapis.com/auth/logging.admin"
769 ]
770 },
771 "delete": { 738 "delete": {
772 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.", 739 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
773 "httpMethod": "DELETE", 740 "httpMethod": "DELETE",
774 "id": "logging.projects.sinks.delete", 741 "id": "logging.projects.sinks.delete",
775 "parameterOrder": [ 742 "parameterOrder": [
776 "sinkName" 743 "sinkName"
777 ], 744 ],
778 "parameters": { 745 "parameters": {
779 "sinkName": { 746 "sinkName": {
780 "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifie r:\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: \"projec ts/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist." , 747 "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
781 "location": "path", 748 "location": "path",
782 "pattern": "^projects/[^/]+/sinks/[^/]+$", 749 "pattern": "^projects/[^/]+/sinks/[^/]+$",
783 "required": true, 750 "required": true,
784 "type": "string" 751 "type": "string"
785 } 752 }
786 }, 753 },
787 "path": "v2/{+sinkName}", 754 "path": "v2/{+sinkName}",
788 "response": { 755 "response": {
789 "$ref": "Empty" 756 "$ref": "Empty"
790 }, 757 },
791 "scopes": [ 758 "scopes": [
792 "https://www.googleapis.com/auth/cloud-platform" , 759 "https://www.googleapis.com/auth/cloud-platform" ,
793 "https://www.googleapis.com/auth/logging.admin" 760 "https://www.googleapis.com/auth/logging.admin"
794 ] 761 ]
795 }, 762 },
796 "list": { 763 "list": {
797 "description": "Lists sinks.", 764 "description": "Lists sinks.",
798 "httpMethod": "GET", 765 "httpMethod": "GET",
799 "id": "logging.projects.sinks.list", 766 "id": "logging.projects.sinks.list",
800 "parameterOrder": [ 767 "parameterOrder": [
801 "parent" 768 "parent"
802 ], 769 ],
803 "parameters": { 770 "parameters": {
804 "parent": { 771 "parent": {
805 "description": "Required. The parent resourc e whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"org anizations/123456789\".", 772 "description": "Required. The parent resourc e whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORG ANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID] \"\n",
806 "location": "path", 773 "location": "path",
807 "pattern": "^projects/[^/]+$", 774 "pattern": "^projects/[^/]+$",
808 "required": true, 775 "required": true,
809 "type": "string" 776 "type": "string"
810 }, 777 },
811 "pageToken": { 778 "pageToken": {
812 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.", 779 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
813 "location": "query", 780 "location": "query",
814 "type": "string" 781 "type": "string"
815 }, 782 },
(...skipping 17 matching lines...) Expand all
833 }, 800 },
834 "get": { 801 "get": {
835 "description": "Gets a sink.", 802 "description": "Gets a sink.",
836 "httpMethod": "GET", 803 "httpMethod": "GET",
837 "id": "logging.projects.sinks.get", 804 "id": "logging.projects.sinks.get",
838 "parameterOrder": [ 805 "parameterOrder": [
839 "sinkName" 806 "sinkName"
840 ], 807 ],
841 "parameters": { 808 "parameters": {
842 "sinkName": { 809 "sinkName": {
843 "description": "Required. The parent resourc e 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\".", 810 "description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANI ZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK _ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project- id/sinks/my-sink-id\".",
844 "location": "path", 811 "location": "path",
845 "pattern": "^projects/[^/]+/sinks/[^/]+$", 812 "pattern": "^projects/[^/]+/sinks/[^/]+$",
846 "required": true, 813 "required": true,
847 "type": "string" 814 "type": "string"
848 } 815 }
849 }, 816 },
850 "path": "v2/{+sinkName}", 817 "path": "v2/{+sinkName}",
851 "response": { 818 "response": {
852 "$ref": "LogSink" 819 "$ref": "LogSink"
853 }, 820 },
854 "scopes": [ 821 "scopes": [
855 "https://www.googleapis.com/auth/cloud-platform" , 822 "https://www.googleapis.com/auth/cloud-platform" ,
856 "https://www.googleapis.com/auth/cloud-platform. read-only", 823 "https://www.googleapis.com/auth/cloud-platform. read-only",
857 "https://www.googleapis.com/auth/logging.admin", 824 "https://www.googleapis.com/auth/logging.admin",
858 "https://www.googleapis.com/auth/logging.read" 825 "https://www.googleapis.com/auth/logging.read"
859 ] 826 ]
860 }, 827 },
861 "update": { 828 "update": {
862 "description": "Updates a sink. If the named sink do esn't exist, then this method is identical to sinks.create. If the named sink do es exist, then this method replaces the following fields in the existing sink wi th values from the new sink: destination, filter, output_version_format, start_t ime, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.", 829 "description": "Updates a sink. If the named sink do esn't exist, then this method is identical to sinks.create. If the named sink do es exist, then this method replaces the following fields in the existing sink wi th values from the new sink: destination, filter, output_version_format, start_t ime, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.",
863 "httpMethod": "PUT", 830 "httpMethod": "PUT",
864 "id": "logging.projects.sinks.update", 831 "id": "logging.projects.sinks.update",
865 "parameterOrder": [ 832 "parameterOrder": [
866 "sinkName" 833 "sinkName"
867 ], 834 ],
868 "parameters": { 835 "parameters": {
869 "sinkName": { 836 "sinkName": {
870 "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", 837 "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
871 "location": "path", 838 "location": "path",
872 "pattern": "^projects/[^/]+/sinks/[^/]+$", 839 "pattern": "^projects/[^/]+/sinks/[^/]+$",
873 "required": true, 840 "required": true,
874 "type": "string" 841 "type": "string"
875 }, 842 },
876 "uniqueWriterIdentity": { 843 "uniqueWriterIdentity": {
877 "description": "Optional. See sinks.create f or a description of this field. When updating a sink, the effect of this field o n the value of writer_identity in the updated sink depends on both the old and n ew 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 ol d 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.", 844 "description": "Optional. See sinks.create f or a description of this field. When updating a sink, the effect of this field o n the value of writer_identity in the updated sink depends on both the old and n ew 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 ol d 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.",
878 "location": "query", 845 "location": "query",
879 "type": "boolean" 846 "type": "boolean"
880 } 847 }
881 }, 848 },
882 "path": "v2/{+sinkName}", 849 "path": "v2/{+sinkName}",
883 "request": { 850 "request": {
884 "$ref": "LogSink" 851 "$ref": "LogSink"
885 }, 852 },
886 "response": { 853 "response": {
887 "$ref": "LogSink" 854 "$ref": "LogSink"
888 }, 855 },
889 "scopes": [ 856 "scopes": [
890 "https://www.googleapis.com/auth/cloud-platform" , 857 "https://www.googleapis.com/auth/cloud-platform" ,
891 "https://www.googleapis.com/auth/logging.admin" 858 "https://www.googleapis.com/auth/logging.admin"
892 ] 859 ]
860 },
861 "create": {
862 "description": "Creates a sink that exports specifie d 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 o r the sink's writer_identity is not permitted to write to the destination. A sin k can export log entries only from the resource owning the sink.",
863 "httpMethod": "POST",
864 "id": "logging.projects.sinks.create",
865 "parameterOrder": [
866 "parent"
867 ],
868 "parameters": {
869 "uniqueWriterIdentity": {
870 "description": "Optional. Determines the kin d 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 r eturned as writer_identity is cloud-logs@system.gserviceaccount.com, the same id entity used before the addition of writer identities to this API. The sink's des tination 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 fo r exports from the new sink. For more information, see writer_identity in LogSin k.",
871 "location": "query",
872 "type": "boolean"
873 },
874 "parent": {
875 "description": "Required. The resource in wh ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO N_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExam ples: \"projects/my-logging-project\", \"organizations/123456789\".",
876 "location": "path",
877 "pattern": "^projects/[^/]+$",
878 "required": true,
879 "type": "string"
880 }
881 },
882 "path": "v2/{+parent}/sinks",
883 "request": {
884 "$ref": "LogSink"
885 },
886 "response": {
887 "$ref": "LogSink"
888 },
889 "scopes": [
890 "https://www.googleapis.com/auth/cloud-platform" ,
891 "https://www.googleapis.com/auth/logging.admin"
892 ]
893 } 893 }
894 } 894 }
895 }, 895 },
896 "metrics": { 896 "metrics": {
897 "methods": { 897 "methods": {
898 "list": {
899 "description": "Lists logs-based metrics.",
900 "httpMethod": "GET",
901 "id": "logging.projects.metrics.list",
902 "parameterOrder": [
903 "parent"
904 ],
905 "parameters": {
906 "parent": {
907 "description": "Required. The name of the pr oject containing the metrics:\n\"projects/[PROJECT_ID]\"\n",
908 "location": "path",
909 "pattern": "^projects/[^/]+$",
910 "required": true,
911 "type": "string"
912 },
913 "pageToken": {
914 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
915 "location": "query",
916 "type": "string"
917 },
918 "pageSize": {
919 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
920 "format": "int32",
921 "location": "query",
922 "type": "integer"
923 }
924 },
925 "path": "v2/{+parent}/metrics",
926 "response": {
927 "$ref": "ListLogMetricsResponse"
928 },
929 "scopes": [
930 "https://www.googleapis.com/auth/cloud-platform" ,
931 "https://www.googleapis.com/auth/cloud-platform. read-only",
932 "https://www.googleapis.com/auth/logging.admin",
933 "https://www.googleapis.com/auth/logging.read"
934 ]
935 },
936 "get": {
937 "description": "Gets a logs-based metric.",
938 "httpMethod": "GET",
939 "id": "logging.projects.metrics.get",
940 "parameterOrder": [
941 "metricName"
942 ],
943 "parameters": {
944 "metricName": {
945 "description": "The resource name of the des ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
946 "location": "path",
947 "pattern": "^projects/[^/]+/metrics/[^/]+$",
948 "required": true,
949 "type": "string"
950 }
951 },
952 "path": "v2/{+metricName}",
953 "response": {
954 "$ref": "LogMetric"
955 },
956 "scopes": [
957 "https://www.googleapis.com/auth/cloud-platform" ,
958 "https://www.googleapis.com/auth/cloud-platform. read-only",
959 "https://www.googleapis.com/auth/logging.admin",
960 "https://www.googleapis.com/auth/logging.read"
961 ]
962 },
963 "update": { 898 "update": {
964 "description": "Creates or updates a logs-based metr ic.", 899 "description": "Creates or updates a logs-based metr ic.",
965 "httpMethod": "PUT", 900 "httpMethod": "PUT",
966 "id": "logging.projects.metrics.update", 901 "id": "logging.projects.metrics.update",
967 "parameterOrder": [ 902 "parameterOrder": [
968 "metricName" 903 "metricName"
969 ], 904 ],
970 "parameters": { 905 "parameters": {
971 "metricName": { 906 "metricName": {
972 "description": "The resource name of the met ric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe updated metri c must be provided in the request and it's name field must be the same as [METRI C_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created .", 907 "description": "The resource name of the met ric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe updated metri c must be provided in the request and it's name field must be the same as [METRI C_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created .",
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 }, 971 },
1037 "path": "v2/{+metricName}", 972 "path": "v2/{+metricName}",
1038 "response": { 973 "response": {
1039 "$ref": "Empty" 974 "$ref": "Empty"
1040 }, 975 },
1041 "scopes": [ 976 "scopes": [
1042 "https://www.googleapis.com/auth/cloud-platform" , 977 "https://www.googleapis.com/auth/cloud-platform" ,
1043 "https://www.googleapis.com/auth/logging.admin", 978 "https://www.googleapis.com/auth/logging.admin",
1044 "https://www.googleapis.com/auth/logging.write" 979 "https://www.googleapis.com/auth/logging.write"
1045 ] 980 ]
981 },
982 "list": {
983 "description": "Lists logs-based metrics.",
984 "httpMethod": "GET",
985 "id": "logging.projects.metrics.list",
986 "parameterOrder": [
987 "parent"
988 ],
989 "parameters": {
990 "pageToken": {
991 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
992 "location": "query",
993 "type": "string"
994 },
995 "pageSize": {
996 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
997 "format": "int32",
998 "location": "query",
999 "type": "integer"
1000 },
1001 "parent": {
1002 "description": "Required. The name of the pr oject containing the metrics:\n\"projects/[PROJECT_ID]\"\n",
1003 "location": "path",
1004 "pattern": "^projects/[^/]+$",
1005 "required": true,
1006 "type": "string"
1007 }
1008 },
1009 "path": "v2/{+parent}/metrics",
1010 "response": {
1011 "$ref": "ListLogMetricsResponse"
1012 },
1013 "scopes": [
1014 "https://www.googleapis.com/auth/cloud-platform" ,
1015 "https://www.googleapis.com/auth/cloud-platform. read-only",
1016 "https://www.googleapis.com/auth/logging.admin",
1017 "https://www.googleapis.com/auth/logging.read"
1018 ]
1019 },
1020 "get": {
1021 "description": "Gets a logs-based metric.",
1022 "httpMethod": "GET",
1023 "id": "logging.projects.metrics.get",
1024 "parameterOrder": [
1025 "metricName"
1026 ],
1027 "parameters": {
1028 "metricName": {
1029 "description": "The resource name of the des ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
1030 "location": "path",
1031 "pattern": "^projects/[^/]+/metrics/[^/]+$",
1032 "required": true,
1033 "type": "string"
1034 }
1035 },
1036 "path": "v2/{+metricName}",
1037 "response": {
1038 "$ref": "LogMetric"
1039 },
1040 "scopes": [
1041 "https://www.googleapis.com/auth/cloud-platform" ,
1042 "https://www.googleapis.com/auth/cloud-platform. read-only",
1043 "https://www.googleapis.com/auth/logging.admin",
1044 "https://www.googleapis.com/auth/logging.read"
1045 ]
1046 } 1046 }
1047 } 1047 }
1048 } 1048 }
1049 } 1049 }
1050 }, 1050 },
1051 "billingAccounts": { 1051 "billingAccounts": {
1052 "resources": { 1052 "resources": {
1053 "logs": { 1053 "logs": {
1054 "methods": { 1054 "methods": {
1055 "delete": { 1055 "delete": {
1056 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries.", 1056 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries. Log entries written shortly befo re the delete operation might not be deleted.",
1057 "httpMethod": "DELETE", 1057 "httpMethod": "DELETE",
1058 "id": "logging.billingAccounts.logs.delete", 1058 "id": "logging.billingAccounts.logs.delete",
1059 "parameterOrder": [ 1059 "parameterOrder": [
1060 "logName" 1060 "logName"
1061 ], 1061 ],
1062 "parameters": { 1062 "parameters": {
1063 "logName": { 1063 "logName": {
1064 "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/cloudresou rcemanager.googleapis.com%2Factivity\". For more information about log names, se e LogEntry.", 1064 "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\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[ LOG_ID]\"\n\"folders/[FOLDER_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 abou t log names, see LogEntry.",
1065 "location": "path", 1065 "location": "path",
1066 "pattern": "^billingAccounts/[^/]+/logs/[^/] +$", 1066 "pattern": "^billingAccounts/[^/]+/logs/[^/] +$",
1067 "required": true, 1067 "required": true,
1068 "type": "string" 1068 "type": "string"
1069 } 1069 }
1070 }, 1070 },
1071 "path": "v2/{+logName}", 1071 "path": "v2/{+logName}",
1072 "response": { 1072 "response": {
1073 "$ref": "Empty" 1073 "$ref": "Empty"
1074 }, 1074 },
1075 "scopes": [ 1075 "scopes": [
1076 "https://www.googleapis.com/auth/cloud-platform" , 1076 "https://www.googleapis.com/auth/cloud-platform" ,
1077 "https://www.googleapis.com/auth/logging.admin" 1077 "https://www.googleapis.com/auth/logging.admin"
1078 ] 1078 ]
1079 }, 1079 },
1080 "list": { 1080 "list": {
1081 "description": "Lists the logs in projects or organi zations. Only logs that have entries are listed.", 1081 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
1082 "httpMethod": "GET", 1082 "httpMethod": "GET",
1083 "id": "logging.billingAccounts.logs.list", 1083 "id": "logging.billingAccounts.logs.list",
1084 "parameterOrder": [ 1084 "parameterOrder": [
1085 "parent" 1085 "parent"
1086 ], 1086 ],
1087 "parameters": { 1087 "parameters": {
1088 "pageToken": {
1089 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
1090 "location": "query",
1091 "type": "string"
1092 },
1093 "pageSize": { 1088 "pageSize": {
1094 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 1089 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
1095 "format": "int32", 1090 "format": "int32",
1096 "location": "query", 1091 "location": "query",
1097 "type": "integer" 1092 "type": "integer"
1098 }, 1093 },
1099 "parent": { 1094 "parent": {
1100 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n", 1095 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
1101 "location": "path", 1096 "location": "path",
1102 "pattern": "^billingAccounts/[^/]+$", 1097 "pattern": "^billingAccounts/[^/]+$",
1103 "required": true, 1098 "required": true,
1104 "type": "string" 1099 "type": "string"
1100 },
1101 "pageToken": {
1102 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
1103 "location": "query",
1104 "type": "string"
1105 } 1105 }
1106 }, 1106 },
1107 "path": "v2/{+parent}/logs", 1107 "path": "v2/{+parent}/logs",
1108 "response": { 1108 "response": {
1109 "$ref": "ListLogsResponse" 1109 "$ref": "ListLogsResponse"
1110 }, 1110 },
1111 "scopes": [ 1111 "scopes": [
1112 "https://www.googleapis.com/auth/cloud-platform" , 1112 "https://www.googleapis.com/auth/cloud-platform" ,
1113 "https://www.googleapis.com/auth/cloud-platform. read-only", 1113 "https://www.googleapis.com/auth/cloud-platform. read-only",
1114 "https://www.googleapis.com/auth/logging.admin", 1114 "https://www.googleapis.com/auth/logging.admin",
1115 "https://www.googleapis.com/auth/logging.read" 1115 "https://www.googleapis.com/auth/logging.read"
1116 ] 1116 ]
1117 } 1117 }
1118 } 1118 }
1119 }, 1119 },
1120 "sinks": { 1120 "sinks": {
1121 "methods": { 1121 "methods": {
1122 "delete": {
1123 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
1124 "httpMethod": "DELETE",
1125 "id": "logging.billingAccounts.sinks.delete",
1126 "parameterOrder": [
1127 "sinkName"
1128 ],
1129 "parameters": {
1130 "sinkName": {
1131 "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
1132 "location": "path",
1133 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
1134 "required": true,
1135 "type": "string"
1136 }
1137 },
1138 "path": "v2/{+sinkName}",
1139 "response": {
1140 "$ref": "Empty"
1141 },
1142 "scopes": [
1143 "https://www.googleapis.com/auth/cloud-platform" ,
1144 "https://www.googleapis.com/auth/logging.admin"
1145 ]
1146 },
1122 "list": { 1147 "list": {
1123 "description": "Lists sinks.", 1148 "description": "Lists sinks.",
1124 "httpMethod": "GET", 1149 "httpMethod": "GET",
1125 "id": "logging.billingAccounts.sinks.list", 1150 "id": "logging.billingAccounts.sinks.list",
1126 "parameterOrder": [ 1151 "parameterOrder": [
1127 "parent" 1152 "parent"
1128 ], 1153 ],
1129 "parameters": { 1154 "parameters": {
1155 "pageToken": {
1156 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
1157 "location": "query",
1158 "type": "string"
1159 },
1130 "pageSize": { 1160 "pageSize": {
1131 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 1161 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
1132 "format": "int32", 1162 "format": "int32",
1133 "location": "query", 1163 "location": "query",
1134 "type": "integer" 1164 "type": "integer"
1135 }, 1165 },
1136 "parent": { 1166 "parent": {
1137 "description": "Required. The parent resourc e whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"org anizations/123456789\".", 1167 "description": "Required. The parent resourc e whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORG ANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID] \"\n",
1138 "location": "path", 1168 "location": "path",
1139 "pattern": "^billingAccounts/[^/]+$", 1169 "pattern": "^billingAccounts/[^/]+$",
1140 "required": true, 1170 "required": true,
1141 "type": "string" 1171 "type": "string"
1142 },
1143 "pageToken": {
1144 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken 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.",
1145 "location": "query",
1146 "type": "string"
1147 } 1172 }
1148 }, 1173 },
1149 "path": "v2/{+parent}/sinks", 1174 "path": "v2/{+parent}/sinks",
1150 "response": { 1175 "response": {
1151 "$ref": "ListSinksResponse" 1176 "$ref": "ListSinksResponse"
1152 }, 1177 },
1153 "scopes": [ 1178 "scopes": [
1154 "https://www.googleapis.com/auth/cloud-platform" , 1179 "https://www.googleapis.com/auth/cloud-platform" ,
1155 "https://www.googleapis.com/auth/cloud-platform. read-only", 1180 "https://www.googleapis.com/auth/cloud-platform. read-only",
1156 "https://www.googleapis.com/auth/logging.admin", 1181 "https://www.googleapis.com/auth/logging.admin",
1157 "https://www.googleapis.com/auth/logging.read" 1182 "https://www.googleapis.com/auth/logging.read"
1158 ] 1183 ]
1159 }, 1184 },
1160 "get": { 1185 "get": {
1161 "description": "Gets a sink.", 1186 "description": "Gets a sink.",
1162 "httpMethod": "GET", 1187 "httpMethod": "GET",
1163 "id": "logging.billingAccounts.sinks.get", 1188 "id": "logging.billingAccounts.sinks.get",
1164 "parameterOrder": [ 1189 "parameterOrder": [
1165 "sinkName" 1190 "sinkName"
1166 ], 1191 ],
1167 "parameters": { 1192 "parameters": {
1168 "sinkName": { 1193 "sinkName": {
1169 "description": "Required. The parent resourc e 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\".", 1194 "description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANI ZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK _ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project- id/sinks/my-sink-id\".",
1170 "location": "path", 1195 "location": "path",
1171 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$", 1196 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
1172 "required": true, 1197 "required": true,
1173 "type": "string" 1198 "type": "string"
1174 } 1199 }
1175 }, 1200 },
1176 "path": "v2/{+sinkName}", 1201 "path": "v2/{+sinkName}",
1177 "response": { 1202 "response": {
1178 "$ref": "LogSink" 1203 "$ref": "LogSink"
1179 }, 1204 },
1180 "scopes": [ 1205 "scopes": [
1181 "https://www.googleapis.com/auth/cloud-platform" , 1206 "https://www.googleapis.com/auth/cloud-platform" ,
1182 "https://www.googleapis.com/auth/cloud-platform. read-only", 1207 "https://www.googleapis.com/auth/cloud-platform. read-only",
1183 "https://www.googleapis.com/auth/logging.admin", 1208 "https://www.googleapis.com/auth/logging.admin",
1184 "https://www.googleapis.com/auth/logging.read" 1209 "https://www.googleapis.com/auth/logging.read"
1185 ] 1210 ]
1186 }, 1211 },
1187 "update": { 1212 "update": {
1188 "description": "Updates a sink. If the named sink do esn't exist, then this method is identical to sinks.create. If the named sink do es exist, then this method replaces the following fields in the existing sink wi th values from the new sink: destination, filter, output_version_format, start_t ime, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.", 1213 "description": "Updates a sink. If the named sink do esn't exist, then this method is identical to sinks.create. If the named sink do es exist, then this method replaces the following fields in the existing sink wi th values from the new sink: destination, filter, output_version_format, start_t ime, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.",
1189 "httpMethod": "PUT", 1214 "httpMethod": "PUT",
1190 "id": "logging.billingAccounts.sinks.update", 1215 "id": "logging.billingAccounts.sinks.update",
1191 "parameterOrder": [ 1216 "parameterOrder": [
1192 "sinkName" 1217 "sinkName"
1193 ], 1218 ],
1194 "parameters": { 1219 "parameters": {
1195 "sinkName": { 1220 "sinkName": {
1196 "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", 1221 "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
1197 "location": "path", 1222 "location": "path",
1198 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$", 1223 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
1199 "required": true, 1224 "required": true,
1200 "type": "string" 1225 "type": "string"
1201 }, 1226 },
1202 "uniqueWriterIdentity": { 1227 "uniqueWriterIdentity": {
1203 "description": "Optional. See sinks.create f or a description of this field. When updating a sink, the effect of this field o n the value of writer_identity in the updated sink depends on both the old and n ew 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 ol d 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.", 1228 "description": "Optional. See sinks.create f or a description of this field. When updating a sink, the effect of this field o n the value of writer_identity in the updated sink depends on both the old and n ew 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 ol d 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.",
1204 "location": "query", 1229 "location": "query",
1205 "type": "boolean" 1230 "type": "boolean"
1206 } 1231 }
(...skipping 11 matching lines...) Expand all
1218 ] 1243 ]
1219 }, 1244 },
1220 "create": { 1245 "create": {
1221 "description": "Creates a sink that exports specifie d 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 o r the sink's writer_identity is not permitted to write to the destination. A sin k can export log entries only from the resource owning the sink.", 1246 "description": "Creates a sink that exports specifie d 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 o r the sink's writer_identity is not permitted to write to the destination. A sin k can export log entries only from the resource owning the sink.",
1222 "httpMethod": "POST", 1247 "httpMethod": "POST",
1223 "id": "logging.billingAccounts.sinks.create", 1248 "id": "logging.billingAccounts.sinks.create",
1224 "parameterOrder": [ 1249 "parameterOrder": [
1225 "parent" 1250 "parent"
1226 ], 1251 ],
1227 "parameters": { 1252 "parameters": {
1228 "uniqueWriterIdentity": {
1229 "description": "Optional. Determines the kin d 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 r eturned as writer_identity is cloud-logs@google.com, the same identity used befo re 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 t he new sink. For more information, see writer_identity in LogSink.",
1230 "location": "query",
1231 "type": "boolean"
1232 },
1233 "parent": { 1253 "parent": {
1234 "description": "Required. The resource in wh ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO N_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\". ", 1254 "description": "Required. The resource in wh ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO N_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExam ples: \"projects/my-logging-project\", \"organizations/123456789\".",
1235 "location": "path", 1255 "location": "path",
1236 "pattern": "^billingAccounts/[^/]+$", 1256 "pattern": "^billingAccounts/[^/]+$",
1237 "required": true, 1257 "required": true,
1238 "type": "string" 1258 "type": "string"
1259 },
1260 "uniqueWriterIdentity": {
1261 "description": "Optional. Determines the kin d 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 r eturned as writer_identity is cloud-logs@system.gserviceaccount.com, the same id entity used before the addition of writer identities to this API. The sink's des tination 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 fo r exports from the new sink. For more information, see writer_identity in LogSin k.",
1262 "location": "query",
1263 "type": "boolean"
1239 } 1264 }
1240 }, 1265 },
1241 "path": "v2/{+parent}/sinks", 1266 "path": "v2/{+parent}/sinks",
1242 "request": { 1267 "request": {
1243 "$ref": "LogSink" 1268 "$ref": "LogSink"
1244 }, 1269 },
1245 "response": { 1270 "response": {
1246 "$ref": "LogSink" 1271 "$ref": "LogSink"
1247 }, 1272 },
1248 "scopes": [ 1273 "scopes": [
1249 "https://www.googleapis.com/auth/cloud-platform" , 1274 "https://www.googleapis.com/auth/cloud-platform" ,
1250 "https://www.googleapis.com/auth/logging.admin" 1275 "https://www.googleapis.com/auth/logging.admin"
1251 ] 1276 ]
1252 },
1253 "delete": {
1254 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
1255 "httpMethod": "DELETE",
1256 "id": "logging.billingAccounts.sinks.delete",
1257 "parameterOrder": [
1258 "sinkName"
1259 ],
1260 "parameters": {
1261 "sinkName": {
1262 "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifie r:\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: \"projec ts/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist." ,
1263 "location": "path",
1264 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
1265 "required": true,
1266 "type": "string"
1267 }
1268 },
1269 "path": "v2/{+sinkName}",
1270 "response": {
1271 "$ref": "Empty"
1272 },
1273 "scopes": [
1274 "https://www.googleapis.com/auth/cloud-platform" ,
1275 "https://www.googleapis.com/auth/logging.admin"
1276 ]
1277 } 1277 }
1278 } 1278 }
1279 } 1279 }
1280 } 1280 }
1281 } 1281 }
1282 }, 1282 },
1283 "revision": "20170114", 1283 "revision": "20170210",
1284 "rootUrl": "https://logging.googleapis.com/", 1284 "rootUrl": "https://logging.googleapis.com/",
1285 "schemas": { 1285 "schemas": {
1286 "ListLogsResponse": {
1287 "description": "Result returned from ListLogs.",
1288 "id": "ListLogsResponse",
1289 "properties": {
1290 "nextPageToken": {
1291 "description": "If there might be more results than those ap pearing 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." ,
1292 "type": "string"
1293 },
1294 "logNames": {
1295 "description": "A list of log names. For example, \"projects /my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com% 2Factivity\".",
1296 "items": {
1297 "type": "string"
1298 },
1299 "type": "array"
1300 }
1301 },
1302 "type": "object"
1303 },
1304 "HttpRequest": {
1305 "description": "A common proto for logging HTTP requests. Only conta ins semantics defined by the HTTP specification. Product-specific logging inform ation MUST be defined in a separate message.",
1306 "id": "HttpRequest",
1307 "properties": {
1308 "requestMethod": {
1309 "description": "The request method. Examples: \"GET\", \"HEA D\", \"PUT\", \"POST\".",
1310 "type": "string"
1311 },
1312 "requestSize": {
1313 "description": "The size of the HTTP request message in byte s, including the request headers and the request body.",
1314 "format": "int64",
1315 "type": "string"
1316 },
1317 "responseSize": {
1318 "description": "The size of the HTTP response message sent b ack to the client, in bytes, including the response headers and the response bod y.",
1319 "format": "int64",
1320 "type": "string"
1321 },
1322 "requestUrl": {
1323 "description": "The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: \"http://exa mple.com/some/info?color=red\".",
1324 "type": "string"
1325 },
1326 "remoteIp": {
1327 "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\".",
1328 "type": "string"
1329 },
1330 "serverIp": {
1331 "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.",
1332 "type": "string"
1333 },
1334 "cacheLookup": {
1335 "description": "Whether or not a cache lookup was attempted. ",
1336 "type": "boolean"
1337 },
1338 "cacheHit": {
1339 "description": "Whether or not an entity was served from cac he (with or without validation).",
1340 "type": "boolean"
1341 },
1342 "cacheValidatedWithOriginServer": {
1343 "description": "Whether or not the response was validated wi th the origin server before being served from cache. This field is only meaningf ul if cache_hit is True.",
1344 "type": "boolean"
1345 },
1346 "status": {
1347 "description": "The response code indicating the status of r esponse. Examples: 200, 404.",
1348 "format": "int32",
1349 "type": "integer"
1350 },
1351 "referer": {
1352 "description": "The referer URL of the request, as defined i n HTTP/1.1 Header Field Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616 -sec14.html).",
1353 "type": "string"
1354 },
1355 "latency": {
1356 "description": "The request processing latency on the server , from the time the request was received until the response was sent.",
1357 "format": "google-duration",
1358 "type": "string"
1359 },
1360 "userAgent": {
1361 "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"." ,
1362 "type": "string"
1363 },
1364 "cacheFillBytes": {
1365 "description": "The number of HTTP response bytes inserted i nto cache. Set only when a cache fill was attempted.",
1366 "format": "int64",
1367 "type": "string"
1368 }
1369 },
1370 "type": "object"
1371 },
1372 "ListSinksResponse": {
1373 "description": "Result returned from ListSinks.",
1374 "id": "ListSinksResponse",
1375 "properties": {
1376 "nextPageToken": {
1377 "description": "If there might be more results than appear i n 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.",
1378 "type": "string"
1379 },
1380 "sinks": {
1381 "description": "A list of sinks.",
1382 "items": {
1383 "$ref": "LogSink"
1384 },
1385 "type": "array"
1386 }
1387 },
1388 "type": "object"
1389 },
1390 "LabelDescriptor": {
1391 "description": "A description of a label.",
1392 "id": "LabelDescriptor",
1393 "properties": {
1394 "key": {
1395 "description": "The label key.",
1396 "type": "string"
1397 },
1398 "description": {
1399 "description": "A human-readable description for the label." ,
1400 "type": "string"
1401 },
1402 "valueType": {
1403 "description": "The type of data that can be assigned to the label.",
1404 "enum": [
1405 "STRING",
1406 "BOOL",
1407 "INT64"
1408 ],
1409 "enumDescriptions": [
1410 "A variable-length string. This is the default.",
1411 "Boolean; true or false.",
1412 "A 64-bit signed integer."
1413 ],
1414 "type": "string"
1415 }
1416 },
1417 "type": "object"
1418 },
1419 "MonitoredResourceDescriptor": {
1420 "description": "An object that describes the schema of a MonitoredRe source 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_i nstance\" and specifies the use of the labels \"instance_id\" and \"zone\" to id entify particular VM instances.Different APIs can support different monitored re source types. APIs generally provide a list method that returns the monitored re source descriptors used by the API.",
1421 "id": "MonitoredResourceDescriptor",
1422 "properties": {
1423 "name": {
1424 "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 \"monitored ResourceDescriptors/{type}\".",
1425 "type": "string"
1426 },
1427 "displayName": {
1428 "description": "Optional. A concise name for the monitored r esource type that might be displayed in user interfaces. It should be a Title Ca sed Noun Phrase, without any article or other determiners. For example, \"Google Cloud SQL Database\".",
1429 "type": "string"
1430 },
1431 "description": {
1432 "description": "Optional. A detailed description of the moni tored resource type that might be used in documentation.",
1433 "type": "string"
1434 },
1435 "type": {
1436 "description": "Required. The monitored resource type. For e xample, the type \"cloudsql_database\" represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.",
1437 "type": "string"
1438 },
1439 "labels": {
1440 "description": "Required. A set of labels used to describe i nstances of this monitored resource type. For example, an individual Google Clou d SQL database is identified by values for the labels \"database_id\" and \"zone \".",
1441 "items": {
1442 "$ref": "LabelDescriptor"
1443 },
1444 "type": "array"
1445 }
1446 },
1447 "type": "object"
1448 },
1449 "LogEntrySourceLocation": {
1450 "description": "Additional information about the source code locatio n that produced the log entry.",
1451 "id": "LogEntrySourceLocation",
1452 "properties": {
1453 "function": {
1454 "description": "Optional. Human-readable name of the functio n or method being invoked, with optional context such as the class or package na me. This information may be used in contexts such as the logs viewer, where a fi le and line number are less meaningful. The format can vary by language. For exa mple: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python). ",
1455 "type": "string"
1456 },
1457 "line": {
1458 "description": "Optional. Line within the source file. 1-bas ed; 0 indicates no line number available.",
1459 "format": "int64",
1460 "type": "string"
1461 },
1462 "file": {
1463 "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
1464 "type": "string"
1465 }
1466 },
1467 "type": "object"
1468 },
1469 "ListLogEntriesResponse": {
1470 "description": "Result returned from ListLogEntries.",
1471 "id": "ListLogEntriesResponse",
1472 "properties": {
1473 "entries": {
1474 "description": "A list of log entries.",
1475 "items": {
1476 "$ref": "LogEntry"
1477 },
1478 "type": "array"
1479 },
1480 "nextPageToken": {
1481 "description": "If there might be more results than those ap pearing 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.I f a value for next_page_token appears and the entries field is empty, it means t hat the search found no log entries so far but it did not have time to search al l the possible log entries. Retry the method with this value for page_token to c ontinue the search. Alternatively, consider speeding up the search by changing y our filter to specify a single log name or resource type, or to narrow the time range of the search.",
1482 "type": "string"
1483 }
1484 },
1485 "type": "object"
1486 },
1286 "LogLine": { 1487 "LogLine": {
1287 "description": "Application log line emitted while processing a requ est.", 1488 "description": "Application log line emitted while processing a requ est.",
1288 "id": "LogLine", 1489 "id": "LogLine",
1289 "properties": { 1490 "properties": {
1290 "severity": { 1491 "severity": {
1291 "description": "Severity of this log entry.", 1492 "description": "Severity of this log entry.",
1292 "enum": [ 1493 "enum": [
1293 "DEFAULT", 1494 "DEFAULT",
1294 "DEBUG", 1495 "DEBUG",
1295 "INFO", 1496 "INFO",
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 "Empty": { 1551 "Empty": {
1351 "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 Fo o {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe J SON representation for Empty is empty JSON object {}.", 1552 "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 Fo o {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe J SON representation for Empty is empty JSON object {}.",
1352 "id": "Empty", 1553 "id": "Empty",
1353 "properties": {}, 1554 "properties": {},
1354 "type": "object" 1555 "type": "object"
1355 }, 1556 },
1356 "LogEntry": { 1557 "LogEntry": {
1357 "description": "An individual entry in a log.", 1558 "description": "An individual entry in a log.",
1358 "id": "LogEntry", 1559 "id": "LogEntry",
1359 "properties": { 1560 "properties": {
1561 "httpRequest": {
1562 "$ref": "HttpRequest",
1563 "description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
1564 },
1565 "resource": {
1566 "$ref": "MonitoredResource",
1567 "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."
1568 },
1569 "jsonPayload": {
1570 "additionalProperties": {
1571 "description": "Properties of the object.",
1572 "type": "any"
1573 },
1574 "description": "The log entry payload, represented as a stru cture that is expressed as a JSON object.",
1575 "type": "object"
1576 },
1577 "insertId": {
1578 "description": "Optional. A unique ID for the log entry. If you provide this field, the logging service considers other log entries in the s ame project with the same ID as duplicates which can be removed. If omitted, Sta ckdriver Logging will generate a unique ID for this log entry.",
1579 "type": "string"
1580 },
1581 "operation": {
1582 "$ref": "LogEntryOperation",
1583 "description": "Optional. Information about an operation ass ociated with the log entry, if applicable."
1584 },
1585 "textPayload": {
1586 "description": "The log entry payload, represented as a Unic ode string (UTF-8).",
1587 "type": "string"
1588 },
1589 "protoPayload": {
1590 "additionalProperties": {
1591 "description": "Properties of the object. Contains field @type with type URL.",
1592 "type": "any"
1593 },
1594 "description": "The log entry payload, represented as a prot ocol buffer. Some Google Cloud Platform services use this field for their log en try payloads.",
1595 "type": "object"
1596 },
1360 "trace": { 1597 "trace": {
1361 "description": "Optional. Resource name of the trace associa ted with the log entry, if any. If it contains a relative resource name, the nam e is assumed to be relative to //tracing.googleapis.com. Example: projects/my-pr ojectid/traces/06796866738c859f2f19b7cfb3214824", 1598 "description": "Optional. Resource name of the trace associa ted with the log entry, if any. If it contains a relative resource name, the nam e is assumed to be relative to //tracing.googleapis.com. Example: projects/my-pr ojectid/traces/06796866738c859f2f19b7cfb3214824",
1362 "type": "string" 1599 "type": "string"
1363 }, 1600 },
1364 "labels": { 1601 "labels": {
1365 "additionalProperties": { 1602 "additionalProperties": {
1366 "type": "string" 1603 "type": "string"
1367 }, 1604 },
1368 "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.", 1605 "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.",
1369 "type": "object" 1606 "type": "object"
(...skipping 27 matching lines...) Expand all
1397 "sourceLocation": { 1634 "sourceLocation": {
1398 "$ref": "LogEntrySourceLocation", 1635 "$ref": "LogEntrySourceLocation",
1399 "description": "Optional. Source code location information a ssociated with the log entry, if any." 1636 "description": "Optional. Source code location information a ssociated with the log entry, if any."
1400 }, 1637 },
1401 "timestamp": { 1638 "timestamp": {
1402 "description": "Optional. The time the event described by th e log entry occurred. If omitted, Stackdriver Logging will use the time the log entry is received.", 1639 "description": "Optional. The time the event described by th e log entry occurred. If omitted, Stackdriver Logging will use the time the log entry is received.",
1403 "format": "google-datetime", 1640 "format": "google-datetime",
1404 "type": "string" 1641 "type": "string"
1405 }, 1642 },
1406 "logName": { 1643 "logName": {
1407 "description": "Required. The resource name of the log to wh ich this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organiza tions/[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 in clude the following characters: upper and lower case alphanumeric characters, fo rward-slash, underscore, hyphen, and period.For backward compatibility, if log_n ame begins with a forward-slash, such as /projects/..., then the log entry is in gested 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 n ever return any results.", 1644 "description": "Required. The resource name of the log to wh ich this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organiza tions/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/ logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-enc oded within log_name. Example: \"organizations/1234567890/logs/cloudresourcemana ger.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 compatib ility, 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 leadi ng slash will never return any results.",
1408 "type": "string" 1645 "type": "string"
1409 },
1410 "httpRequest": {
1411 "$ref": "HttpRequest",
1412 "description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
1413 },
1414 "resource": {
1415 "$ref": "MonitoredResource",
1416 "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."
1417 },
1418 "jsonPayload": {
1419 "additionalProperties": {
1420 "description": "Properties of the object.",
1421 "type": "any"
1422 },
1423 "description": "The log entry payload, represented as a stru cture that is expressed as a JSON object.",
1424 "type": "object"
1425 },
1426 "insertId": {
1427 "description": "Optional. A unique ID for the log entry. If you provide this field, the logging service considers other log entries in the s ame project with the same ID as duplicates which can be removed. If omitted, Sta ckdriver Logging will generate a unique ID for this log entry.",
1428 "type": "string"
1429 },
1430 "operation": {
1431 "$ref": "LogEntryOperation",
1432 "description": "Optional. Information about an operation ass ociated with the log entry, if applicable."
1433 },
1434 "textPayload": {
1435 "description": "The log entry payload, represented as a Unic ode string (UTF-8).",
1436 "type": "string"
1437 },
1438 "protoPayload": {
1439 "additionalProperties": {
1440 "description": "Properties of the object. Contains field @type with type URL.",
1441 "type": "any"
1442 },
1443 "description": "The log entry payload, represented as a prot ocol buffer. Some Google Cloud Platform services use this field for their log en try payloads.",
1444 "type": "object"
1445 } 1646 }
1446 }, 1647 },
1447 "type": "object" 1648 "type": "object"
1448 }, 1649 },
1449 "SourceLocation": { 1650 "SourceLocation": {
1450 "description": "Specifies a location in a source code file.", 1651 "description": "Specifies a location in a source code file.",
1451 "id": "SourceLocation", 1652 "id": "SourceLocation",
1452 "properties": { 1653 "properties": {
1453 "file": { 1654 "file": {
1454 "description": "Source file name. Depending on the runtime e nvironment, this might be a simple name or a fully-qualified name.", 1655 "description": "Source file name. Depending on the runtime e nvironment, this might be a simple name or a fully-qualified name.",
1455 "type": "string" 1656 "type": "string"
1456 }, 1657 },
1457 "functionName": { 1658 "functionName": {
1458 "description": "Human-readable name of the function or metho d being invoked, with optional context such as the class or package name. This i nformation is used in contexts such as the logs viewer, where a file and line nu mber are less meaningful. The format can vary by language. For example: qual.if. ied.Class.method (Java), dir/package.func (Go), function (Python).", 1659 "description": "Human-readable name of the function or metho d being invoked, with optional context such as the class or package name. This i nformation is used in contexts such as the logs viewer, where a file and line nu mber are less meaningful. The format can vary by language. For example: qual.if. ied.Class.method (Java), dir/package.func (Go), function (Python).",
1459 "type": "string" 1660 "type": "string"
1460 }, 1661 },
1461 "line": { 1662 "line": {
1462 "description": "Line within the source file.", 1663 "description": "Line within the source file.",
1463 "format": "int64", 1664 "format": "int64",
1464 "type": "string" 1665 "type": "string"
1465 } 1666 }
1466 }, 1667 },
1467 "type": "object" 1668 "type": "object"
1468 }, 1669 },
1469 "ListLogEntriesRequest": { 1670 "ListLogEntriesRequest": {
1470 "description": "The parameters to ListLogEntries.", 1671 "description": "The parameters to ListLogEntries.",
1471 "id": "ListLogEntriesRequest", 1672 "id": "ListLogEntriesRequest",
1472 "properties": { 1673 "properties": {
1674 "orderBy": {
1675 "description": "Optional. How the results should be sorted. Presently, the only permitted values are \"timestamp asc\" (default) and \"times tamp desc\". The first option returns entries in order of increasing values of L ogEntry.timestamp (oldest first), and the second option returns entries in order of decreasing timestamps (newest first). Entries with equal timestamps are retu rned in order of LogEntry.insertId.",
1676 "type": "string"
1677 },
1473 "resourceNames": { 1678 "resourceNames": {
1474 "description": "Required. Names of one or more resources fro m which to retrieve log entries:\n\"projects/[PROJECT_ID]\"\n\"organizations/[OR GANIZATION_ID]\"\nProjects listed in the project_ids field are added to this lis t.", 1679 "description": "Required. Names of one or more parent resour ces from which to retrieve log entries:\n\"projects/[PROJECT_ID]\"\n\"organizati ons/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FO LDER_ID]\"\nProjects listed in the project_ids field are added to this list.",
1475 "items": { 1680 "items": {
1476 "type": "string" 1681 "type": "string"
1477 }, 1682 },
1478 "type": "array" 1683 "type": "array"
1479 }, 1684 },
1480 "projectIds": { 1685 "projectIds": {
1481 "description": "Deprecated. Use resource_names instead. One or more project identifiers or project numbers from which to retrieve log entrie s. Example: \"my-project-1A\". If present, these project identifiers are convert ed to resource name format and added to the list of resources in resource_names. ", 1686 "description": "Deprecated. Use resource_names instead. One or more project identifiers or project numbers from which to retrieve log entrie s. Example: \"my-project-1A\". If present, these project identifiers are convert ed to resource name format and added to the list of resources in resource_names. ",
1482 "items": { 1687 "items": {
1483 "type": "string" 1688 "type": "string"
1484 }, 1689 },
1485 "type": "array" 1690 "type": "array"
1486 }, 1691 },
1487 "filter": { 1692 "filter": {
1488 "description": "Optional. A filter that chooses which log en tries to return. See Advanced Logs Filters. Only log entries that match the filt er 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 fil ter is 20000 characters.", 1693 "description": "Optional. A filter that chooses which log en tries to return. See Advanced Logs Filters. Only log entries that match the filt er 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 fil ter is 20000 characters.",
1489 "type": "string" 1694 "type": "string"
1490 }, 1695 },
1491 "pageToken": { 1696 "pageToken": {
1492 "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 pa rameters should be identical to those in the previous call.", 1697 "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 pa rameters should be identical to those in the previous call.",
1493 "type": "string" 1698 "type": "string"
1494 }, 1699 },
1495 "pageSize": { 1700 "pageSize": {
1496 "description": "Optional. The maximum number of results to r eturn from this request. Non-positive values are ignored. The presence of nextPa geToken in the response indicates that more results might be available.", 1701 "description": "Optional. The maximum number of results to r eturn from this request. Non-positive values are ignored. The presence of nextPa geToken in the response indicates that more results might be available.",
1497 "format": "int32", 1702 "format": "int32",
1498 "type": "integer" 1703 "type": "integer"
1499 },
1500 "orderBy": {
1501 "description": "Optional. How the results should be sorted. Presently, the only permitted values are \"timestamp asc\" (default) and \"times tamp desc\". The first option returns entries in order of increasing values of L ogEntry.timestamp (oldest first), and the second option returns entries in order of decreasing timestamps (newest first). Entries with equal timestamps are retu rned in order of LogEntry.insertId.",
1502 "type": "string"
1503 } 1704 }
1504 }, 1705 },
1505 "type": "object" 1706 "type": "object"
1506 }, 1707 },
1507 "RequestLog": { 1708 "RequestLog": {
1508 "description": "Complete log information about a single HTTP request to an App Engine application.", 1709 "description": "Complete log information about a single HTTP request to an App Engine application.",
1509 "id": "RequestLog", 1710 "id": "RequestLog",
1510 "properties": { 1711 "properties": {
1511 "instanceIndex": {
1512 "description": "If the instance processing this request belo ngs to a manually scaled module, then this is the 0-based index of the instance. Otherwise, this value is -1.",
1513 "format": "int32",
1514 "type": "integer"
1515 },
1516 "finished": {
1517 "description": "Whether this request is finished or active." ,
1518 "type": "boolean"
1519 },
1520 "host": {
1521 "description": "Internet host and port number of the resourc e being requested.",
1522 "type": "string"
1523 },
1524 "httpVersion": {
1525 "description": "HTTP version of request. Example: \"HTTP/1.1 \".",
1526 "type": "string"
1527 },
1528 "startTime": {
1529 "description": "Time when the request started.",
1530 "format": "google-datetime",
1531 "type": "string"
1532 },
1533 "latency": {
1534 "description": "Latency of the request.",
1535 "format": "google-duration",
1536 "type": "string"
1537 },
1538 "ip": {
1539 "description": "Origin IP address.",
1540 "type": "string"
1541 },
1542 "appId": {
1543 "description": "Application that handled this request.",
1544 "type": "string"
1545 },
1546 "appEngineRelease": {
1547 "description": "App Engine release version.",
1548 "type": "string"
1549 },
1550 "method": {
1551 "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
1552 "type": "string"
1553 },
1554 "cost": {
1555 "description": "An indication of the relative cost of servin g this request.",
1556 "format": "double",
1557 "type": "number"
1558 },
1559 "instanceId": {
1560 "description": "An identifier for the instance that handled the request.",
1561 "type": "string"
1562 },
1563 "megaCycles": {
1564 "description": "Number of CPU megacycles used to process req uest.",
1565 "format": "int64",
1566 "type": "string"
1567 },
1568 "first": {
1569 "description": "Whether this is the first RequestLog entry f or this request. If an active request has several RequestLog entries written to Stackdriver Logging, then this field will be set for one of them.",
1570 "type": "boolean"
1571 },
1572 "versionId": { 1712 "versionId": {
1573 "description": "Version of the application that handled this request.", 1713 "description": "Version of the application that handled this request.",
1574 "type": "string" 1714 "type": "string"
1575 }, 1715 },
1576 "moduleId": { 1716 "moduleId": {
1577 "description": "Module of the application that handled this request.", 1717 "description": "Module of the application that handled this request.",
1578 "type": "string" 1718 "type": "string"
1579 }, 1719 },
1580 "endTime": { 1720 "endTime": {
1581 "description": "Time when the request finished.", 1721 "description": "Time when the request finished.",
(...skipping 24 matching lines...) Expand all
1606 "description": "Stackdriver Trace identifier for this reques t.", 1746 "description": "Stackdriver Trace identifier for this reques t.",
1607 "type": "string" 1747 "type": "string"
1608 }, 1748 },
1609 "line": { 1749 "line": {
1610 "description": "A list of log lines emitted by the applicati on while serving this request.", 1750 "description": "A list of log lines emitted by the applicati on while serving this request.",
1611 "items": { 1751 "items": {
1612 "$ref": "LogLine" 1752 "$ref": "LogLine"
1613 }, 1753 },
1614 "type": "array" 1754 "type": "array"
1615 }, 1755 },
1756 "referrer": {
1757 "description": "Referrer URL of request.",
1758 "type": "string"
1759 },
1616 "taskQueueName": { 1760 "taskQueueName": {
1617 "description": "Queue name of the request, in the case of an offline request.", 1761 "description": "Queue name of the request, in the case of an offline request.",
1618 "type": "string" 1762 "type": "string"
1619 }, 1763 },
1620 "referrer": {
1621 "description": "Referrer URL of request.",
1622 "type": "string"
1623 },
1624 "requestId": { 1764 "requestId": {
1625 "description": "Globally unique identifier for a request, wh ich is based on the request start time. Request IDs for requests which started l ater will compare greater as strings than those for requests which started earli er.", 1765 "description": "Globally unique identifier for a request, wh ich is based on the request start time. Request IDs for requests which started l ater will compare greater as strings than those for requests which started earli er.",
1626 "type": "string" 1766 "type": "string"
1627 }, 1767 },
1628 "nickname": { 1768 "nickname": {
1629 "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 th e App Engine Users API.This field will be populated starting with App Engine 1.9 .21.", 1769 "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 th e App Engine Users API.This field will be populated starting with App Engine 1.9 .21.",
1630 "type": "string" 1770 "type": "string"
1631 }, 1771 },
1772 "status": {
1773 "description": "HTTP response status code. Example: 200, 404 .",
1774 "format": "int32",
1775 "type": "integer"
1776 },
1777 "resource": {
1778 "description": "Contains the path and query portion of the U RL 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.",
1779 "type": "string"
1780 },
1632 "pendingTime": { 1781 "pendingTime": {
1633 "description": "Time this request spent in the pending reque st queue.", 1782 "description": "Time this request spent in the pending reque st queue.",
1634 "format": "google-duration", 1783 "format": "google-duration",
1635 "type": "string" 1784 "type": "string"
1636 }, 1785 },
1637 "resource": {
1638 "description": "Contains the path and query portion of the U RL 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.",
1639 "type": "string"
1640 },
1641 "status": {
1642 "description": "HTTP response status code. Example: 200, 404 .",
1643 "format": "int32",
1644 "type": "integer"
1645 },
1646 "taskName": { 1786 "taskName": {
1647 "description": "Task name of the request, in the case of an offline request.", 1787 "description": "Task name of the request, in the case of an offline request.",
1648 "type": "string" 1788 "type": "string"
1649 }, 1789 },
1650 "urlMapEntry": { 1790 "urlMapEntry": {
1651 "description": "File or class that handled the request.", 1791 "description": "File or class that handled the request.",
1652 "type": "string" 1792 "type": "string"
1793 },
1794 "instanceIndex": {
1795 "description": "If the instance processing this request belo ngs to a manually scaled module, then this is the 0-based index of the instance. Otherwise, this value is -1.",
1796 "format": "int32",
1797 "type": "integer"
1798 },
1799 "finished": {
1800 "description": "Whether this request is finished or active." ,
1801 "type": "boolean"
1802 },
1803 "host": {
1804 "description": "Internet host and port number of the resourc e being requested.",
1805 "type": "string"
1806 },
1807 "httpVersion": {
1808 "description": "HTTP version of request. Example: \"HTTP/1.1 \".",
1809 "type": "string"
1810 },
1811 "startTime": {
1812 "description": "Time when the request started.",
1813 "format": "google-datetime",
1814 "type": "string"
1815 },
1816 "latency": {
1817 "description": "Latency of the request.",
1818 "format": "google-duration",
1819 "type": "string"
1820 },
1821 "ip": {
1822 "description": "Origin IP address.",
1823 "type": "string"
1824 },
1825 "appId": {
1826 "description": "Application that handled this request.",
1827 "type": "string"
1828 },
1829 "appEngineRelease": {
1830 "description": "App Engine release version.",
1831 "type": "string"
1832 },
1833 "method": {
1834 "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
1835 "type": "string"
1836 },
1837 "cost": {
1838 "description": "An indication of the relative cost of servin g this request.",
1839 "format": "double",
1840 "type": "number"
1841 },
1842 "instanceId": {
1843 "description": "An identifier for the instance that handled the request.",
1844 "type": "string"
1845 },
1846 "megaCycles": {
1847 "description": "Number of CPU megacycles used to process req uest.",
1848 "format": "int64",
1849 "type": "string"
1850 },
1851 "first": {
1852 "description": "Whether this is the first RequestLog entry f or this request. If an active request has several RequestLog entries written to Stackdriver Logging, then this field will be set for one of them.",
1853 "type": "boolean"
1653 } 1854 }
1654 }, 1855 },
1655 "type": "object" 1856 "type": "object"
1656 }, 1857 },
1657 "ListMonitoredResourceDescriptorsResponse": { 1858 "ListMonitoredResourceDescriptorsResponse": {
1658 "description": "Result returned from ListMonitoredResourceDescriptor s.", 1859 "description": "Result returned from ListMonitoredResourceDescriptor s.",
1659 "id": "ListMonitoredResourceDescriptorsResponse", 1860 "id": "ListMonitoredResourceDescriptorsResponse",
1660 "properties": { 1861 "properties": {
1661 "nextPageToken": { 1862 "nextPageToken": {
1662 "description": "If there might be more results than those ap pearing 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." , 1863 "description": "If there might be more results than those ap pearing 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." ,
(...skipping 21 matching lines...) Expand all
1684 "description": "The canonical and persistent identifier of t he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\ "", 1885 "description": "The canonical and persistent identifier of t he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\ "",
1685 "type": "string" 1886 "type": "string"
1686 } 1887 }
1687 }, 1888 },
1688 "type": "object" 1889 "type": "object"
1689 }, 1890 },
1690 "LogMetric": { 1891 "LogMetric": {
1691 "description": "Describes a logs-based metric. The value of the metr ic is the number of log entries that match a logs filter in a given time interva l.", 1892 "description": "Describes a logs-based metric. The value of the metr ic is the number of log entries that match a logs filter in a given time interva l.",
1692 "id": "LogMetric", 1893 "id": "LogMetric",
1693 "properties": { 1894 "properties": {
1694 "filter": {
1695 "description": "Required. An advanced logs filter which is u sed to match log entries. Example:\n\"resource.type=gae_app AND severity>=ERROR\ "\nThe maximum length of the filter is 20000 characters.",
1696 "type": "string"
1697 },
1698 "name": { 1895 "name": {
1699 "description": "Required. The client-assigned metric identif ier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limite d to 100 characters and can include only the following characters: A-Z, a-z, 0-9 , and the special characters _-.,+!*',()%/. The forward-slash character (/) deno tes 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.wikiped ia.org/wiki/Percent-encoding). However, when the metric identifier appears as th e [METRIC_ID] part of a metric_name API parameter, then the metric identifier mu st be URL-encoded. Example: \"projects/my-project/metrics/nginx%2Frequests\".", 1896 "description": "Required. The client-assigned metric identif ier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limite d to 100 characters and can include only the following characters: A-Z, a-z, 0-9 , and the special characters _-.,+!*',()%/. The forward-slash character (/) deno tes 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.wikiped ia.org/wiki/Percent-encoding). However, when the metric identifier appears as th e [METRIC_ID] part of a metric_name API parameter, then the metric identifier mu st be URL-encoded. Example: \"projects/my-project/metrics/nginx%2Frequests\".",
1700 "type": "string" 1897 "type": "string"
1701 }, 1898 },
1702 "description": { 1899 "description": {
1703 "description": "Optional. A description of this metric, whic h is used in documentation.", 1900 "description": "Optional. A description of this metric, whic h is used in documentation.",
1704 "type": "string" 1901 "type": "string"
1705 }, 1902 },
1706 "version": { 1903 "version": {
1707 "description": "Output only. The API version that created or updated this metric. The version also dictates the syntax of the filter express ion. When a value for this field is missing, the default value of V2 should be a ssumed.", 1904 "description": "Output only. The API version that created or updated this metric. The version also dictates the syntax of the filter express ion. When a value for this field is missing, the default value of V2 should be a ssumed.",
1708 "enum": [ 1905 "enum": [
1709 "V2", 1906 "V2",
1710 "V1" 1907 "V1"
1711 ], 1908 ],
1712 "enumDescriptions": [ 1909 "enumDescriptions": [
1713 "Stackdriver Logging API v2.", 1910 "Stackdriver Logging API v2.",
1714 "Stackdriver Logging API v1." 1911 "Stackdriver Logging API v1."
1715 ], 1912 ],
1716 "type": "string" 1913 "type": "string"
1914 },
1915 "filter": {
1916 "description": "Required. An advanced logs filter which is u sed to match log entries. Example:\n\"resource.type=gae_app AND severity>=ERROR\ "\nThe maximum length of the filter is 20000 characters.",
1917 "type": "string"
1717 } 1918 }
1718 }, 1919 },
1719 "type": "object" 1920 "type": "object"
1720 }, 1921 },
1922 "WriteLogEntriesResponse": {
1923 "description": "Result returned from WriteLogEntries. empty",
1924 "id": "WriteLogEntriesResponse",
1925 "properties": {},
1926 "type": "object"
1927 },
1721 "LogEntryOperation": { 1928 "LogEntryOperation": {
1722 "description": "Additional information about a potentially long-runn ing operation with which a log entry is associated.", 1929 "description": "Additional information about a potentially long-runn ing operation with which a log entry is associated.",
1723 "id": "LogEntryOperation", 1930 "id": "LogEntryOperation",
1724 "properties": { 1931 "properties": {
1725 "last": {
1726 "description": "Optional. Set this to True if this is the la st log entry in the operation.",
1727 "type": "boolean"
1728 },
1729 "id": { 1932 "id": {
1730 "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operati on.", 1933 "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operati on.",
1731 "type": "string" 1934 "type": "string"
1732 }, 1935 },
1733 "producer": { 1936 "producer": {
1734 "description": "Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for produce r: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".", 1937 "description": "Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for produce r: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".",
1735 "type": "string" 1938 "type": "string"
1736 }, 1939 },
1737 "first": { 1940 "first": {
1738 "description": "Optional. Set this to True if this is the fi rst log entry in the operation.", 1941 "description": "Optional. Set this to True if this is the fi rst log entry in the operation.",
1739 "type": "boolean" 1942 "type": "boolean"
1943 },
1944 "last": {
1945 "description": "Optional. Set this to True if this is the la st log entry in the operation.",
1946 "type": "boolean"
1740 } 1947 }
1741 }, 1948 },
1742 "type": "object" 1949 "type": "object"
1743 }, 1950 },
1744 "WriteLogEntriesResponse": {
1745 "description": "Result returned from WriteLogEntries. empty",
1746 "id": "WriteLogEntriesResponse",
1747 "properties": {},
1748 "type": "object"
1749 },
1750 "MonitoredResource": { 1951 "MonitoredResource": {
1751 "description": "An object representing a resource that can be used f or monitoring, logging, billing, or other purposes. Examples include virtual mac hine instances, databases, and storage devices such as disks. The type field ide ntifies a MonitoredResourceDescriptor object that describes the resource's schem a. Information in the labels field identifies the actual resource and its attrib utes according to the schema. For example, a particular Compute Engine VM instan ce could be represented by the following object, because the MonitoredResourceDe scriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type \": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}\n", 1952 "description": "An object representing a resource that can be used f or monitoring, logging, billing, or other purposes. Examples include virtual mac hine instances, databases, and storage devices such as disks. The type field ide ntifies a MonitoredResourceDescriptor object that describes the resource's schem a. Information in the labels field identifies the actual resource and its attrib utes according to the schema. For example, a particular Compute Engine VM instan ce could be represented by the following object, because the MonitoredResourceDe scriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type \": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}\n",
1752 "id": "MonitoredResource", 1953 "id": "MonitoredResource",
1753 "properties": { 1954 "properties": {
1754 "type": { 1955 "type": {
1755 "description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For exa mple, the type of a Cloud SQL database is \"cloudsql_database\".", 1956 "description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For exa mple, the type of a Cloud SQL database is \"cloudsql_database\".",
1756 "type": "string" 1957 "type": "string"
1757 }, 1958 },
1758 "labels": { 1959 "labels": {
1759 "additionalProperties": { 1960 "additionalProperties": {
1760 "type": "string" 1961 "type": "string"
1761 }, 1962 },
1762 "description": "Required. Values for all of the labels liste d in the associated monitored resource descriptor. For example, Cloud SQL databa ses use the labels \"database_id\" and \"zone\".", 1963 "description": "Required. Values for all of the labels liste d in the associated monitored resource descriptor. For example, Cloud SQL databa ses use the labels \"database_id\" and \"zone\".",
1763 "type": "object" 1964 "type": "object"
1764 } 1965 }
1765 }, 1966 },
1766 "type": "object" 1967 "type": "object"
1767 }, 1968 },
1768 "LogSink": { 1969 "LogSink": {
1769 "description": "Describes a sink used to export log entries to one o f 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.", 1970 "description": "Describes a sink used to export log entries to one o f 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, organization, billing accou nt, or folder.",
1770 "id": "LogSink", 1971 "id": "LogSink",
1771 "properties": { 1972 "properties": {
1973 "outputVersionFormat": {
1974 "description": "Optional. The log entry format to use for th is 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 M igration to the v2 API.",
1975 "enum": [
1976 "VERSION_FORMAT_UNSPECIFIED",
1977 "V2",
1978 "V1"
1979 ],
1980 "enumDescriptions": [
1981 "An unspecified format version that will default to V2." ,
1982 "LogEntry version 2 format.",
1983 "LogEntry version 1 format."
1984 ],
1985 "type": "string"
1986 },
1772 "name": { 1987 "name": {
1773 "description": "Required. The client-assigned sink identifie r, unique within the project. Example: \"my-syslog-errors-to-pubsub\". Sink iden tifiers are limited to 100 characters and can include only the following charact ers: upper and lower-case alphanumeric characters, underscores, hyphens, and per iods.", 1988 "description": "Required. The client-assigned sink identifie r, unique within the project. Example: \"my-syslog-errors-to-pubsub\". Sink iden tifiers are limited to 100 characters and can include only the following charact ers: upper and lower-case alphanumeric characters, underscores, hyphens, and per iods.",
1774 "type": "string" 1989 "type": "string"
1775 }, 1990 },
1991 "destination": {
1992 "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/[TOPI C_ID]\"\nThe sink's writer_identity, set when the sink is created, must have per mission to write to the destination or else the log entries are not exported. Fo r more information, see Exporting Logs With Sinks.",
1993 "type": "string"
1994 },
1776 "filter": { 1995 "filter": {
1777 "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 out put_version_format parameter. For example, in the v2 format:\nlogName=\"projects /[PROJECT_ID]/logs/[LOG_ID]\" AND severity>=ERROR\n", 1996 "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 out put_version_format parameter. For example, in the v2 format:\nlogName=\"projects /[PROJECT_ID]/logs/[LOG_ID]\" AND severity>=ERROR\n",
1778 "type": "string" 1997 "type": "string"
1779 }, 1998 },
1780 "destination": {
1781 "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/[TOPI C_ID]\"\nThe sink's writer_identity, set when the sink is created, must have per mission to write to the destination or else the log entries are not exported. Fo r more information, see Exporting Logs With Sinks.",
1782 "type": "string"
1783 },
1784 "endTime": { 1999 "endTime": {
1785 "description": "Optional. The time at which this sink will s top exporting log entries. Log entries are exported only if their timestamp is e arlier than the end time. If this field is not supplied, there is no end time. I f both a start time and an end time are provided, then the end time must be late r than the start time.", 2000 "description": "Optional. The time at which this sink will s top exporting log entries. Log entries are exported only if their timestamp is e arlier than the end time. If this field is not supplied, there is no end time. I f both a start time and an end time are provided, then the end time must be late r than the start time.",
1786 "format": "google-datetime", 2001 "format": "google-datetime",
1787 "type": "string" 2002 "type": "string"
1788 }, 2003 },
1789 "writerIdentity": { 2004 "writerIdentity": {
1790 "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.u pdate, 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 thi s sink will fail. For more information, see Granting access for a resource. Cons ult the destination service's documentation to determine the appropriate IAM rol es to assign to the identity.", 2005 "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.u pdate, 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 thi s sink will fail. For more information, see Granting access for a resource. Cons ult the destination service's documentation to determine the appropriate IAM rol es to assign to the identity.",
1791 "type": "string" 2006 "type": "string"
1792 }, 2007 },
1793 "startTime": { 2008 "startTime": {
1794 "description": "Optional. The time at which this sink will b egin 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.", 2009 "description": "Optional. The time at which this sink will b egin 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.",
1795 "format": "google-datetime", 2010 "format": "google-datetime",
1796 "type": "string" 2011 "type": "string"
1797 },
1798 "outputVersionFormat": {
1799 "description": "Optional. The log entry format to use for th is 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 M igration to the v2 API.",
1800 "enum": [
1801 "VERSION_FORMAT_UNSPECIFIED",
1802 "V2",
1803 "V1"
1804 ],
1805 "enumDescriptions": [
1806 "An unspecified format version that will default to V2." ,
1807 "LogEntry version 2 format.",
1808 "LogEntry version 1 format."
1809 ],
1810 "type": "string"
1811 } 2012 }
1812 }, 2013 },
1813 "type": "object" 2014 "type": "object"
1814 }, 2015 },
1815 "WriteLogEntriesRequest": { 2016 "WriteLogEntriesRequest": {
1816 "description": "The parameters to WriteLogEntries.", 2017 "description": "The parameters to WriteLogEntries.",
1817 "id": "WriteLogEntriesRequest", 2018 "id": "WriteLogEntriesRequest",
1818 "properties": { 2019 "properties": {
1819 "labels": {
1820 "additionalProperties": {
1821 "type": "string"
1822 },
1823 "description": "Optional. Default labels that are added to t he labels field of all log entries in entries. If a log entry already has a labe l with the same key as a label in this parameter, then the log entry's label is not changed. See LogEntry.",
1824 "type": "object"
1825 },
1826 "resource": {
1827 "$ref": "MonitoredResource",
1828 "description": "Optional. A default monitored resource objec t 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 ."
1829 },
1830 "logName": { 2020 "logName": {
1831 "description": "Optional. A default log resource name that i s assigned to all log entries in entries that do not specify a value for log_nam e:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/l ogs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project -id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourcemanager.google apis.com%2Factivity\". For more information about log names, see LogEntry.", 2021 "description": "Optional. A default log resource name that i s assigned to all log entries in entries that do not specify a value for log_nam e:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/l ogs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folder s/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"proj ects/my-project-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourc emanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
1832 "type": "string" 2022 "type": "string"
1833 }, 2023 },
1834 "entries": { 2024 "entries": {
1835 "description": "Required. The log entries to write. Values s upplied for the fields log_name, resource, and labels in this entries.write requ est 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 callin g this method for each individual log entry.", 2025 "description": "Required. The log entries to write. Values s upplied for the fields log_name, resource, and labels in this entries.write requ est 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 callin g this method for each individual log entry.",
1836 "items": { 2026 "items": {
1837 "$ref": "LogEntry" 2027 "$ref": "LogEntry"
1838 }, 2028 },
1839 "type": "array" 2029 "type": "array"
1840 }, 2030 },
1841 "partialSuccess": { 2031 "partialSuccess": {
1842 "description": "Optional. Whether valid entries should be wr itten even if some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENI ED errors. If any entry is not written, the response status will be the error as sociated with one of the failed entries and include error details in the form of WriteLogEntriesPartialErrors.", 2032 "description": "Optional. Whether valid entries should be wr itten even if some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENI ED errors. If any entry is not written, the response status will be the error as sociated with one of the failed entries and include error details in the form of WriteLogEntriesPartialErrors.",
1843 "type": "boolean" 2033 "type": "boolean"
2034 },
2035 "labels": {
2036 "additionalProperties": {
2037 "type": "string"
2038 },
2039 "description": "Optional. Default labels that are added to t he labels field of all log entries in entries. If a log entry already has a labe l with the same key as a label in this parameter, then the log entry's label is not changed. See LogEntry.",
2040 "type": "object"
2041 },
2042 "resource": {
2043 "$ref": "MonitoredResource",
2044 "description": "Optional. A default monitored resource objec t 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 ."
1844 } 2045 }
1845 }, 2046 },
1846 "type": "object" 2047 "type": "object"
1847 },
1848 "ListLogsResponse": {
1849 "description": "Result returned from ListLogs.",
1850 "id": "ListLogsResponse",
1851 "properties": {
1852 "logNames": {
1853 "description": "A list of log names. For example, \"projects /my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com% 2Factivity\".",
1854 "items": {
1855 "type": "string"
1856 },
1857 "type": "array"
1858 },
1859 "nextPageToken": {
1860 "description": "If there might be more results than those ap pearing 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." ,
1861 "type": "string"
1862 }
1863 },
1864 "type": "object"
1865 },
1866 "HttpRequest": {
1867 "description": "A common proto for logging HTTP requests. Only conta ins semantics defined by the HTTP specification. Product-specific logging inform ation MUST be defined in a separate message.",
1868 "id": "HttpRequest",
1869 "properties": {
1870 "userAgent": {
1871 "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"." ,
1872 "type": "string"
1873 },
1874 "latency": {
1875 "description": "The request processing latency on the server , from the time the request was received until the response was sent.",
1876 "format": "google-duration",
1877 "type": "string"
1878 },
1879 "cacheFillBytes": {
1880 "description": "The number of HTTP response bytes inserted i nto cache. Set only when a cache fill was attempted.",
1881 "format": "int64",
1882 "type": "string"
1883 },
1884 "requestMethod": {
1885 "description": "The request method. Examples: \"GET\", \"HEA D\", \"PUT\", \"POST\".",
1886 "type": "string"
1887 },
1888 "responseSize": {
1889 "description": "The size of the HTTP response message sent b ack to the client, in bytes, including the response headers and the response bod y.",
1890 "format": "int64",
1891 "type": "string"
1892 },
1893 "requestSize": {
1894 "description": "The size of the HTTP request message in byte s, including the request headers and the request body.",
1895 "format": "int64",
1896 "type": "string"
1897 },
1898 "requestUrl": {
1899 "description": "The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: \"http://exa mple.com/some/info?color=red\".",
1900 "type": "string"
1901 },
1902 "serverIp": {
1903 "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.",
1904 "type": "string"
1905 },
1906 "remoteIp": {
1907 "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\".",
1908 "type": "string"
1909 },
1910 "cacheLookup": {
1911 "description": "Whether or not a cache lookup was attempted. ",
1912 "type": "boolean"
1913 },
1914 "cacheHit": {
1915 "description": "Whether or not an entity was served from cac he (with or without validation).",
1916 "type": "boolean"
1917 },
1918 "cacheValidatedWithOriginServer": {
1919 "description": "Whether or not the response was validated wi th the origin server before being served from cache. This field is only meaningf ul if cache_hit is True.",
1920 "type": "boolean"
1921 },
1922 "status": {
1923 "description": "The response code indicating the status of r esponse. Examples: 200, 404.",
1924 "format": "int32",
1925 "type": "integer"
1926 },
1927 "referer": {
1928 "description": "The referer URL of the request, as defined i n HTTP/1.1 Header Field Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616 -sec14.html).",
1929 "type": "string"
1930 }
1931 },
1932 "type": "object"
1933 },
1934 "ListSinksResponse": {
1935 "description": "Result returned from ListSinks.",
1936 "id": "ListSinksResponse",
1937 "properties": {
1938 "nextPageToken": {
1939 "description": "If there might be more results than appear i n 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.",
1940 "type": "string"
1941 },
1942 "sinks": {
1943 "description": "A list of sinks.",
1944 "items": {
1945 "$ref": "LogSink"
1946 },
1947 "type": "array"
1948 }
1949 },
1950 "type": "object"
1951 },
1952 "LabelDescriptor": {
1953 "description": "A description of a label.",
1954 "id": "LabelDescriptor",
1955 "properties": {
1956 "key": {
1957 "description": "The label key.",
1958 "type": "string"
1959 },
1960 "description": {
1961 "description": "A human-readable description for the label." ,
1962 "type": "string"
1963 },
1964 "valueType": {
1965 "description": "The type of data that can be assigned to the label.",
1966 "enum": [
1967 "STRING",
1968 "BOOL",
1969 "INT64"
1970 ],
1971 "enumDescriptions": [
1972 "A variable-length string. This is the default.",
1973 "Boolean; true or false.",
1974 "A 64-bit signed integer."
1975 ],
1976 "type": "string"
1977 }
1978 },
1979 "type": "object"
1980 },
1981 "MonitoredResourceDescriptor": {
1982 "description": "An object that describes the schema of a MonitoredRe source 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_i nstance\" and specifies the use of the labels \"instance_id\" and \"zone\" to id entify particular VM instances.Different APIs can support different monitored re source types. APIs generally provide a list method that returns the monitored re source descriptors used by the API.",
1983 "id": "MonitoredResourceDescriptor",
1984 "properties": {
1985 "labels": {
1986 "description": "Required. A set of labels used to describe i nstances of this monitored resource type. For example, an individual Google Clou d SQL database is identified by values for the labels \"database_id\" and \"zone \".",
1987 "items": {
1988 "$ref": "LabelDescriptor"
1989 },
1990 "type": "array"
1991 },
1992 "name": {
1993 "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 \"monitored ResourceDescriptors/{type}\".",
1994 "type": "string"
1995 },
1996 "displayName": {
1997 "description": "Optional. A concise name for the monitored r esource type that might be displayed in user interfaces. It should be a Title Ca sed Noun Phrase, without any article or other determiners. For example, \"Google Cloud SQL Database\".",
1998 "type": "string"
1999 },
2000 "description": {
2001 "description": "Optional. A detailed description of the moni tored resource type that might be used in documentation.",
2002 "type": "string"
2003 },
2004 "type": {
2005 "description": "Required. The monitored resource type. For e xample, the type \"cloudsql_database\" represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.",
2006 "type": "string"
2007 }
2008 },
2009 "type": "object"
2010 },
2011 "LogEntrySourceLocation": {
2012 "description": "Additional information about the source code locatio n that produced the log entry.",
2013 "id": "LogEntrySourceLocation",
2014 "properties": {
2015 "file": {
2016 "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
2017 "type": "string"
2018 },
2019 "function": {
2020 "description": "Optional. Human-readable name of the functio n or method being invoked, with optional context such as the class or package na me. This information may be used in contexts such as the logs viewer, where a fi le and line number are less meaningful. The format can vary by language. For exa mple: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python). ",
2021 "type": "string"
2022 },
2023 "line": {
2024 "description": "Optional. Line within the source file. 1-bas ed; 0 indicates no line number available.",
2025 "format": "int64",
2026 "type": "string"
2027 }
2028 },
2029 "type": "object"
2030 },
2031 "ListLogEntriesResponse": {
2032 "description": "Result returned from ListLogEntries.",
2033 "id": "ListLogEntriesResponse",
2034 "properties": {
2035 "nextPageToken": {
2036 "description": "If there might be more results than those ap pearing 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.I f a value for next_page_token appears and the entries field is empty, it means t hat the search found no log entries so far but it did not have time to search al l the possible log entries. Retry the method with this value for page_token to c ontinue the search. Alternatively, consider speeding up the search by changing y our filter to specify a single log name or resource type, or to narrow the time range of the search.",
2037 "type": "string"
2038 },
2039 "entries": {
2040 "description": "A list of log entries.",
2041 "items": {
2042 "$ref": "LogEntry"
2043 },
2044 "type": "array"
2045 }
2046 },
2047 "type": "object"
2048 } 2048 }
2049 }, 2049 },
2050 "servicePath": "", 2050 "servicePath": "",
2051 "title": "Stackdriver Logging API", 2051 "title": "Stackdriver Logging API",
2052 "version": "v2" 2052 "version": "v2"
2053 } 2053 }
OLDNEW
« no previous file with comments | « discovery/googleapis/language__v1.json ('k') | discovery/googleapis/manufacturers__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698