Skip to content
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

Rename document_from_url to document_from_gcs_url. #2986

Merged

Conversation

lukesneeringer
Copy link
Contributor

This change was requested by the NL team, since we only accept GCS URLs, and document_from_url implies anything.

Rather than a flat rename, I am having the original method warn a DeprecationWarning. We do not really have a process for deprecating or keeping up with them, so for the time being I am noting the date in the docstring.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 6, 2017
@functools.wraps(document_from_gcs_url)
def document_from_url(self, *args, **kwargs):
"""Deprecated equivalent to document_from_gcs_url.
(Deprecated on 2017-02-06.)

This comment was marked as spam.

This comment was marked as spam.

client = self._make_one(credentials=creds, http=object())

Client = self._get_target_class()
with mock.patch.object(Client, 'document_from_gcs_url') as dfgu:

This comment was marked as spam.

@lukesneeringer lukesneeringer merged commit 4d2a7d1 into googleapis:master Feb 7, 2017
@lukesneeringer lukesneeringer deleted the nl-document-from-gcs-url branch February 7, 2017 23:21
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
This does a rename requested by the NL team.
parthea pushed a commit that referenced this pull request Jul 6, 2023
This does a rename requested by the NL team.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants