-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
BigTable: Add data app profile id #5275
BigTable: Add data app profile id #5275
Conversation
…into feature/read_rows_retry
@jonparrott @sduskis This PR is created on a fork of the GAPIC branch (PR #5178). After that PR is merged with master, we can rebase it if you prefer. Either way, please review. Note that this is one of a series of PR's that we will create to add methods to the current Instance and Table classes to provide access to the user of the underlying, transparent GAPIC clients, specifically for management functions. All of these PR's are similarly forks of the GAPIC branch. If you have any preferences on how you want this managed, please comment. The purpose of doing multiple smaller PR's is to move these out more quickly. |
@zakons, how difficult would it be to rebase to master? It's very hard to review this PR as is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create_app_profile does not work as is. The only parameter is the id of the profile, but the actual profile is not passed in. @zakons, can we please review this?
@@ -239,3 +240,74 @@ def list_tables(self): | |||
result.append(self.table(table_id)) | |||
|
|||
return result | |||
|
|||
def create_app_profile(self, app_profile_id): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
self._client._instance_admin_client.list_app_profiles(self.name)) | ||
return list_app_profiles | ||
|
||
def update_app_profile(self, app_profile_id, ignore_warnings=None): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
""" | ||
|
||
def __init__(self, table_id, instance): | ||
def __init__(self, table_id, instance, app_profile_id=None): |
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.
return response_iterator | ||
|
||
def truncate(self, timeout=60): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Can you please rebase this PR? Also, please remove " on top of GAPIC integration" from the title. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
row.py needs to be updated as well. It has some data calls that require app_profile_id
Add ability to specify the app_profile_id to use for the following Table methods: