-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outdated usage of entries.list API request #971
Comments
Ugh. When was this field deprecated? It looks like |
@dazuma's Any input on this? Should we add a |
While working with Remi, we came across it trying to figure out a different issue. Yes, that's what we understood as of now. |
@hxiong388 Thoughts? |
According to the doc, resourceNames field includes the deprecated projectIds value. But since the GAPIC API currently requires project_ids parameter, maybe we can achieve backward compatibility by adding a new resource_names parameter to Service#list_entries, and consolidate project_ids and resource_names into one parameter: def list_entries projects: nil, resource_names: [], ...
resource_names = Array(projects || @project) + resource_names
...
paged_enum = logging.list_log_entries nil, resource_names: resource_names , ... Propagate the same resource_names parameter to Google::Cloud::Logging::Project#entries as well. Later whoever removes the deprecated project_ids field from GAPIC API can clean up these two Veneer APIs. |
When will |
I don't want to leave you hanging Mike, I have forwarded your questions and waiting on a response! |
Hi. We do not have a timeline yet for the field removal, but most likely that will happen in a couple of months. If you have an option to change your code to use resource_names, please do so. |
@filipjs If a user is using the current release of the google-cloud-logging library, and does not upgrade to a new version that uses the new field, will their client stop working? Are you removing the field from the published protobufs? Or are you removing the field from the server API? |
It will continue to work until it's removed from the protobuf, which means the service will stop accepting it. |
Effectively replaces the projects argument, which is deprecated and will eventually be removed. [closes googleapis#971]
Source-Link: googleapis/googleapis@7d0c6be Source-Link: googleapis/googleapis-gen@2ddc476 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWNvbXB1dGUtdjEvLk93bEJvdC55YW1sIiwiaCI6IjJkZGM0NzZkNGNjZTZmMDdiNTFjYzY5NmZmYzNlMGM0Yzc2MWJiMTgifQ==
Issue: In the logging/service.rb file, an deprecated fieldName (projectIds) of entries.list API is being used.
https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/2d6c92137152d5297e91e1b5c336ed94b5ac96e7/google-cloud-logging/lib/google/cloud/logging/service.rb#L95-L109
The text was updated successfully, but these errors were encountered: