-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Generate gapic for logging, remove all references to gax #4759
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
Conversation
| @@ -0,0 +1,310 @@ | |||
| # -*- coding: utf-8 -*- | |||
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 'LoggingServiceV2Client', | ||
| 'ConfigServiceV2Client', | ||
| 'MetricsServiceV2Client', | ||
| ) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
| } | ||
| } | ||
| } |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| for name, message in get_messages(module).items(): | ||
| message.__module__ = 'google.cloud.logging_v2.types' | ||
| setattr(sys.modules[__name__], name, message) | ||
| names.append(name) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| # limitations under the License. | ||
|
|
||
| import datetime | ||
| import logging |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
logging/tests/unit/test_client.py
Outdated
| self.assertEqual(client.project, self.PROJECT) | ||
|
|
||
| def test_logging_api_wo_gax(self): | ||
| def test_logging_api_wo_gapi(self): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 'google-api-core >= 0.1.1, < 0.2.0dev', | ||
| 'gapic-google-cloud-logging-v2 >= 0.91.0, < 0.92dev', | ||
| 'google-cloud-core >= 0.28.0, < 0.29dev', | ||
| 'google-api-core[grpc] >= 0.1.1, < 0.2.0dev', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
CI is failing due to bigquery non-determinism (addressing in #4760), will rebase and merge when CI is greeeen. |
3130c26 to
13f45fd
Compare
13f45fd to
d14b71f
Compare
Command log: ``` set DEST ~/workspace/google-cloud-python/logging set GOOGLEAPIS_REV fca7f0706769f8ece08121a87394b7c6e6d87687 cd /tmp git clone https://github.com/googleapis/googleapis.git cd googleapis git reset --hard $GOOGLEAPIS_REV artman --config google/logging/artman_logging.yaml generate python_gapic set SRC ./artman-genfiles/python/logging-v2/ set IMPORT_PKG logging_v2 cp -r $SRC/docs $DEST cp -r $SRC/google/cloud/$IMPORT_PKG $DEST/google/cloud/ mkdir -p $DEST/tests/unit/gapic cp -r $SRC/tests/unit/gapic $DEST/tests/unit mkdir -p $DEST/tests/system/gapic cp -r $SRC/tests/system/gapic $DEST/tests/system ```
342bf15 to
24fd8e5
Compare
* Import logging_v2 generated by artman Command log: ``` set DEST ~/workspace/google-cloud-python/logging set GOOGLEAPIS_REV fca7f0706769f8ece08121a87394b7c6e6d87687 cd /tmp git clone https://github.com/googleapis/googleapis.git cd googleapis git reset --hard $GOOGLEAPIS_REV artman --config google/logging/artman_logging.yaml generate python_gapic set SRC ./artman-genfiles/python/logging-v2/ set IMPORT_PKG logging_v2 cp -r $SRC/docs $DEST cp -r $SRC/google/cloud/$IMPORT_PKG $DEST/google/cloud/ mkdir -p $DEST/tests/unit/gapic cp -r $SRC/tests/unit/gapic $DEST/tests/unit mkdir -p $DEST/tests/system/gapic cp -r $SRC/tests/system/gapic $DEST/tests/system ``` * Removing all references to gax * Fix typo * Add missing encoding * Remove unused test helper
Towards #4692.
This was not fun. Once again, I recommend reviewing commit-by-commit (there's only 2)