Uh oh!
There was an error while loading. Please reload this page.
NL GAPIC Shim - #3590
Conversation
dhermes
commented
Jul 6, 2017
@lukesneeringer What in particular would you like reviewed? |
lukesneeringer
commented
Jul 10, 2017
@dhermes Sanity check mostly. |
| gapic/api | ||
| gapic/types | ||
| gapic/v1/api | ||
| gapic/v1/types |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| for name, message in get_messages(language_service_pb2).items(): | ||
| message.__module__ = 'google.cloud.language_v1.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.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| SETUP_BASE = { | ||
| 'author': 'Google Cloud Platform', | ||
| 'author_email': 'jjg+google-cloud-python@google.com', | ||
| 'author_email': 'googleapis-publisher@google.com', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| @@ -0,0 +1,30 @@ | |||
| # Copyright 2017, Google Inc. All rights reserved. | |||
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| # limitations under the License. | ||
| """Unit tests.""" | ||
| import mock |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| from google.cloud.proto.language.v1 import language_service_pb2 | ||
| class CustomException(Exception): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| REQUIREMENTS = [ | ||
| 'google-cloud-core >= 0.25.0, < 0.26dev', | ||
| 'google-gax >= 0.15.7, < 0.16dev', | ||
| 'google-gax >= 0.15.13, < 0.16dev', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| document=document, encoding_type=encoding_type) | ||
| self.assertEqual(expected_request, actual_request) | ||
| @mock.patch('google.gax.config.API_ERRORS', (CustomException, )) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
lukesneeringer
commented
Jul 26, 2017
Merging this despite the PubSub Circle failure (which is unrelated). |
This implements the manual code and documentation to augment moving Natural Language to GAPIC only.
Using
nl-gapicas a base branch so reviewers do not have to look at the auto-gen.