google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

FeatReq: New get_processor_name() to retrieve by display name

Open yan-hic opened this issue 3 years ago • 4 comments

Console shows the display name, which is supposedly the alias that user refers to when id'ing a processor. I understand the name is required in all API calls as it is fully qualified, however, there is no method to return the name based on its display name (which always exists).

Request to add a new helper method to do so. Params would be display_name, project_id, location.

Workaround: retrieve the list of all processors and loop through until matching display_name is found

yan-hic avatar Nov 07 '22 21:11 yan-hic

I am in the exact same position as you describe. Would be great to have that retrieve by name method, or add to the list method a way to filter by name.

guillem-cy avatar Nov 24 '22 11:11 guillem-cy

I'm going to transfer this issue to the google-cloud-python repository as we are preparing to move the code for google-cloud-documentai to that repository in the next 1-2 weeks.

parthea avatar Apr 15 '23 15:04 parthea

@yan-hic Thanks for filing this issue! Is this still a deficiency that you'd like addressed? It sounds like a back-end feature request, so we'll contact the right team. If you have a support contract, you can file a feature request there to ensure prompt attention.

vchudnov-g avatar Jun 24 '24 19:06 vchudnov-g

Honestly after 2 yrs, I have moved on and used a for loop to return the matching processor. Probably what an official helper would do too.

yan-hic avatar Jun 24 '24 20:06 yan-hic

I'm going to close issue due to inactivity. As this is a back-end feature request, we recommend filing a feature request here.

parthea avatar Aug 20 '24 18:08 parthea