Skip to content

Commit

Permalink
Remove tail() from logging since it's broken anyway (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnitsky authored Mar 5, 2024
1 parent 4e96168 commit d02bb36
Show file tree
Hide file tree
Showing 11 changed files with 439 additions and 801 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ or [prediction](https://cloud.google.com/prediction/docs/developer-guide).
* Update `config.yaml` with a new version number and generate again.

```console
$ dart bin/generate.dart run_config generate
$ dart generator/bin/generate.dart run_config generate
```

* Run the tests.
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# should be ignored.
packages:
- googleapis:
version: 13.0.0
version: 14.0.0-wip
repository: https://github.com/google/googleapis.dart/tree/master/generated/googleapis
readme: resources/README.md
license: resources/LICENSE
Expand Down
98 changes: 17 additions & 81 deletions discovery/googleapis/logging__v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"ownerDomain": "google.com",
"ownerName": "Google",
"protocol": "rest",
"revision": "20240207",
"revision": "20240223",
"rootUrl": "https://logging.googleapis.com/",
"servicePath": "",
"title": "Cloud Logging API",
Expand Down Expand Up @@ -1637,27 +1637,6 @@
"https://www.googleapis.com/auth/logging.read"
]
},
"tail": {
"description": "Streaming read of log entries as they are received. Until the stream is terminated, it will continue reading logs.",
"flatPath": "v2/entries:tail",
"httpMethod": "POST",
"id": "logging.entries.tail",
"parameterOrder": [],
"parameters": {},
"path": "v2/entries:tail",
"request": {
"$ref": "TailLogEntriesRequest"
},
"response": {
"$ref": "TailLogEntriesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/logging.admin",
"https://www.googleapis.com/auth/logging.read"
]
},
"write": {
"description": "Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resource names (projects, organizations, billing accounts or folders), where the resource name for a log entry is determined from its logName field.",
"flatPath": "v2/entries:write",
Expand Down Expand Up @@ -7826,7 +7805,8 @@
},
"request": {
"$ref": "CopyLogEntriesRequest",
"description": "CopyLogEntries RPC request."
"deprecated": true,
"description": "CopyLogEntries RPC request. This field is deprecated and not used."
},
"source": {
"description": "Source from which to copy log entries.For example, a log bucket:\"projects/my-project/locations/global/buckets/my-source-bucket\"",
Expand Down Expand Up @@ -9688,6 +9668,20 @@
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"visibility": {
"description": "Required. The visibility status of this query, which determines its ownership.",
"enum": [
"VISIBILITY_UNSPECIFIED",
"PRIVATE",
"SHARED"
],
"enumDescriptions": [
"The saved query visibility is unspecified. A CreateSavedQuery request with an unspecified visibility will be rejected.",
"The saved query is only visible to the user that created it.",
"The saved query is visible to anyone in the project."
],
"type": "string"
}
},
"type": "object"
Expand All @@ -9696,20 +9690,6 @@
"description": "Describes the settings associated with a project, folder, organization, or billing account.",
"id": "Settings",
"properties": {
"analyticsMode": {
"description": "Optional. The default analytics mode of an org or folder which is inherited by all newly created child project buckets.",
"enum": [
"ANALYTICS_MODE_UNSPECIFIED",
"ANALYTICS_ENABLED",
"ANALYTICS_DISABLED"
],
"enumDescriptions": [
"No default analytics mode defined at this resource level, it will inherit from the closest ancester which has a defined analytics mode. If there is no specified analytics mode across the resource hierarchy, analytics will be disabled by default.",
"By default, analytics will be enabled for all new project-level buckets unless explicitly specified otherwise at bucket creation time.",
"By default, analytics will be disabled for new project-level buckets unless explicitly specified otherwise at bucket creation time."
],
"type": "string"
},
"defaultSinkConfig": {
"$ref": "DefaultSinkConfig",
"description": "Optional. Overrides the built-in configuration for _Default sink."
Expand Down Expand Up @@ -9843,50 +9823,6 @@
},
"type": "object"
},
"TailLogEntriesRequest": {
"description": "The parameters to TailLogEntries.",
"id": "TailLogEntriesRequest",
"properties": {
"bufferWindow": {
"description": "Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.",
"format": "google-duration",
"type": "string"
},
"filter": {
"description": "Optional. Only log entries that match the filter are returned. An empty filter matches all log entries in the resources listed in resource_names. Referencing a parent resource that is not listed in resource_names will cause the filter to return no results. The maximum length of a filter is 20,000 characters.",
"type": "string"
},
"resourceNames": {
"description": "Required. Name of a parent resource from which to retrieve log entries: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"TailLogEntriesResponse": {
"description": "Result returned from TailLogEntries.",
"id": "TailLogEntriesResponse",
"properties": {
"entries": {
"description": "A list of log entries. Each response in the stream will order entries with increasing values of LogEntry.timestamp. Ordering is not guaranteed between separate responses.",
"items": {
"$ref": "LogEntry"
},
"type": "array"
},
"suppressionInfo": {
"description": "If entries that otherwise would have been included in the session were not sent back to the client, counts of relevant entries omitted from the session with the reason that they were not included. There will be at most one of each reason per response. The counts represent the number of suppressed entries since the last streamed response.",
"items": {
"$ref": "SuppressionInfo"
},
"type": "array"
}
},
"type": "object"
},
"UndeleteBucketRequest": {
"description": "The parameters to UndeleteBucket.",
"id": "UndeleteBucketRequest",
Expand Down
4 changes: 4 additions & 0 deletions generated/googleapis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 14.0.0

- `logging` - removed `tail()`

## 13.0.0

- `apphub` - new!
Expand Down
Loading

0 comments on commit d02bb36

Please sign in to comment.