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

Firestore: add client_info support to V1 client. #7877

Merged
merged 1 commit into from
May 8, 2019
Merged

Firestore: add client_info support to V1 client. #7877

merged 1 commit into from
May 8, 2019

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented May 7, 2019

Forward when constructing GAPIC API client object.

Toward #7825.

Forward when constructing GAPIC API client object.

Toward #7825.
@tseaver tseaver added the api: firestore Issues related to the Firestore API. label May 7, 2019
@tseaver tseaver requested a review from tswast May 7, 2019 19:38
@tseaver tseaver requested a review from crwilcox as a code owner May 7, 2019 19:38
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 7, 2019
@@ -67,6 +70,11 @@ class Client(ClientWithProject):
database (Optional[str]): The database name that the client targets.
For now, :attr:`DEFAULT_DATABASE` (the default value) is the
only valid database.
client_info (Optional[google.api_core.client_info.ClientInfo]):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be documented as a google.api_core.gapic_v1.client_info.ClientInfo, instead?

Same comment as #7876 (comment)


def test_constructor_explicit(self):
credentials = _make_credentials()
database = "now-db"
client_info = mock.Mock()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Autospec?

@tseaver tseaver merged commit 953ba1d into googleapis:master May 8, 2019
@tseaver tseaver deleted the 7825-firestore-client_info-support branch May 8, 2019 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the Firestore API. 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