Skip to content

Commit

Permalink
feat(logging): update the API
Browse files Browse the repository at this point in the history
#### logging:v2

The following keys were added:
- schemas.IndexConfig.description
- schemas.IndexConfig.id
- schemas.IndexConfig.properties.createTime.description
- schemas.IndexConfig.properties.createTime.format
- schemas.IndexConfig.properties.createTime.readOnly
- schemas.IndexConfig.properties.createTime.type
- schemas.IndexConfig.properties.fieldPath.description
- schemas.IndexConfig.properties.fieldPath.type
- schemas.IndexConfig.properties.type.description
- schemas.IndexConfig.properties.type.enum
- schemas.IndexConfig.properties.type.enumDescriptions
- schemas.IndexConfig.properties.type.type
- schemas.IndexConfig.type
- schemas.LogBucket.properties.indexConfigs.description
- schemas.LogBucket.properties.indexConfigs.items.$ref
- schemas.LogBucket.properties.indexConfigs.type
  • Loading branch information
yoshi-automation authored and bcoe committed Apr 11, 2022
1 parent 29e5a39 commit 9c3da4b
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 1 deletion.
40 changes: 39 additions & 1 deletion discovery/logging-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5817,7 +5817,7 @@
}
}
},
"revision": "20220318",
"revision": "20220401",
"rootUrl": "https://logging.googleapis.com/",
"schemas": {
"BigQueryOptions": {
Expand Down Expand Up @@ -6088,6 +6088,37 @@
},
"type": "object"
},
"IndexConfig": {
"description": "Configuration for an indexed field.",
"id": "IndexConfig",
"properties": {
"createTime": {
"description": "Output only. The timestamp when the index was last modified.This is used to return the timestamp, and will be ignored if supplied during update.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"fieldPath": {
"description": "Required. The LogEntry field path to index.Note that some paths are automatically indexed, and other paths are not eligible for indexing. See indexing documentation( https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields) for details.For example: jsonPayload.request.status",
"type": "string"
},
"type": {
"description": "Required. The type of data in this index.",
"enum": [
"INDEX_TYPE_UNSPECIFIED",
"INDEX_TYPE_STRING",
"INDEX_TYPE_INTEGER"
],
"enumDescriptions": [
"The index's type is unspecified.",
"The index is a string-type index.",
"The index is a integer-type index."
],
"type": "string"
}
},
"type": "object"
},
"LabelDescriptor": {
"description": "A description of a label.",
"id": "LabelDescriptor",
Expand Down Expand Up @@ -6409,6 +6440,13 @@
"description": "Describes this bucket.",
"type": "string"
},
"indexConfigs": {
"description": "A list of indexed fields and related configuration data.",
"items": {
"$ref": "IndexConfig"
},
"type": "array"
},
"lifecycleState": {
"description": "Output only. The bucket lifecycle state.",
"enum": [
Expand Down
46 changes: 46 additions & 0 deletions src/apis/logging/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,23 @@ export namespace logging_v2 {
*/
userAgent?: string | null;
}
/**
* Configuration for an indexed field.
*/
export interface Schema$IndexConfig {
/**
* Output only. The timestamp when the index was last modified.This is used to return the timestamp, and will be ignored if supplied during update.
*/
createTime?: string | null;
/**
* Required. The LogEntry field path to index.Note that some paths are automatically indexed, and other paths are not eligible for indexing. See indexing documentation( https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields) for details.For example: jsonPayload.request.status
*/
fieldPath?: string | null;
/**
* Required. The type of data in this index.
*/
type?: string | null;
}
/**
* A description of a label.
*/
Expand Down Expand Up @@ -589,6 +606,10 @@ export namespace logging_v2 {
* Describes this bucket.
*/
description?: string | null;
/**
* A list of indexed fields and related configuration data.
*/
indexConfigs?: Schema$IndexConfig[];
/**
* Output only. The bucket lifecycle state.
*/
Expand Down Expand Up @@ -1718,6 +1739,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -3120,6 +3142,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand All @@ -3136,6 +3159,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -3547,6 +3571,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand All @@ -3563,6 +3588,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -9240,6 +9266,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand All @@ -9256,6 +9283,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -9525,6 +9553,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -9806,6 +9835,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand All @@ -9822,6 +9852,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -13018,6 +13049,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand All @@ -13034,6 +13066,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -13303,6 +13336,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -13584,6 +13618,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand All @@ -13600,6 +13635,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -17379,6 +17415,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand All @@ -17395,6 +17432,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -17664,6 +17702,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -17945,6 +17984,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand All @@ -17961,6 +18001,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -22249,6 +22290,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand All @@ -22265,6 +22307,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -22534,6 +22577,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down Expand Up @@ -22815,6 +22859,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand All @@ -22831,6 +22876,7 @@ export namespace logging_v2 {
* // "cmekSettings": {},
* // "createTime": "my_createTime",
* // "description": "my_description",
* // "indexConfigs": [],
* // "lifecycleState": "my_lifecycleState",
* // "locked": false,
* // "name": "my_name",
Expand Down

0 comments on commit 9c3da4b

Please sign in to comment.