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

[CHANGE ME] Re-generated to pick up changes from googleapis. #163

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -53,7 +53,7 @@
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution(
"google-cloud-bigtable"
).version
except pkg_resources.DistributionNotFound:
except pkg_resources.DistributionNotFound: # pragma: NO COVER
_GAPIC_LIBRARY_VERSION = None


Expand Down Expand Up @@ -1599,7 +1599,7 @@ def update_app_profile(
def delete_app_profile(
self,
name,
ignore_warnings=None,
ignore_warnings,
retry=google.api_core.gapic_v1.method.DEFAULT,
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None,
Expand All @@ -1614,13 +1614,16 @@ def delete_app_profile(
>>>
>>> name = client.app_profile_path('[PROJECT]', '[INSTANCE]', '[APP_PROFILE]')
>>>
>>> client.delete_app_profile(name)
>>> # TODO: Initialize `ignore_warnings`:
>>> ignore_warnings = False
>>>
>>> client.delete_app_profile(name, ignore_warnings)

Args:
name (str): Required. The unique name of the app profile to be deleted. Values
are of the form
``projects/{project}/instances/{instance}/appProfiles/{app_profile}``.
ignore_warnings (bool): If true, ignore safety checks when deleting the app profile.
ignore_warnings (bool): Required. If true, ignore safety checks when deleting the app profile.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
Expand Down
29 changes: 16 additions & 13 deletions google/cloud/bigtable_admin_v2/gapic/bigtable_table_admin_client.py
Expand Up @@ -54,13 +54,11 @@
from google.protobuf import field_mask_pb2


import pkg_resources

try:
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution(
"google-cloud-bigtable"
).version
except pkg_resources.DistributionNotFound:
except pkg_resources.DistributionNotFound: # pragma: NO COVER
_GAPIC_LIBRARY_VERSION = None


Expand Down Expand Up @@ -778,10 +776,10 @@ def modify_column_families(
name (str): Required. The unique name of the table whose families should be
modified. Values are of the form
``projects/{project}/instances/{instance}/tables/{table}``.
modifications (list[Union[dict, ~google.cloud.bigtable_admin_v2.types.Modification]]): Required. Modifications to be atomically applied to the specified table's
families. Entries are applied in order, meaning that earlier modifications
can be masked by later ones (in the case of repeated updates to the same
family, for example).
modifications (list[Union[dict, ~google.cloud.bigtable_admin_v2.types.Modification]]): Required. Modifications to be atomically applied to the specified table's families.
Entries are applied in order, meaning that earlier modifications can be
masked by later ones (in the case of repeated updates to the same family,
for example).

If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.bigtable_admin_v2.types.Modification`
Expand Down Expand Up @@ -1090,7 +1088,7 @@ def get_iam_policy(
metadata=None,
):
"""
Gets the access control policy for a resource.
Gets the access control policy for a Table or Backup resource.
Returns an empty policy if the resource exists but does not have a policy
set.

Expand Down Expand Up @@ -1258,7 +1256,7 @@ def test_iam_permissions(
metadata=None,
):
"""
Returns permissions that the caller has on the specified table resource.
Returns permissions that the caller has on the specified Table or Backup resource.

Example:
>>> from google.cloud import bigtable_admin_v2
Expand Down Expand Up @@ -1952,7 +1950,7 @@ def list_backups(
expression must specify the field name, a comparison operator, and the
value that you want to use for filtering. The value must be a string, a
number, or a boolean. The comparison operator must be <, >, <=, >=, !=,
=, or :. Colon ‘:’ represents a HAS operator which is roughly synonymous
=, or :. Colon ':' represents a HAS operator which is roughly synonymous
with equality. Filter rules are case insensitive.

The fields eligible for filtering are:
Expand Down Expand Up @@ -2232,8 +2230,8 @@ def delete_backup(

def restore_table(
self,
parent=None,
table_id=None,
parent,
table_id,
backup=None,
retry=google.api_core.gapic_v1.method.DEFAULT,
timeout=google.api_core.gapic_v1.method.DEFAULT,
Expand All @@ -2252,7 +2250,12 @@ def restore_table(
>>>
>>> client = bigtable_admin_v2.BigtableTableAdminClient()
>>>
>>> response = client.restore_table()
>>> parent = client.instance_path('[PROJECT]', '[INSTANCE]')
>>>
>>> # TODO: Initialize `table_id`:
>>> table_id = ''
>>>
>>> response = client.restore_table(parent, table_id)
>>>
>>> def callback(operation_future):
... # Handle result.
Expand Down
Expand Up @@ -267,7 +267,7 @@ def check_consistency(self):
def get_iam_policy(self):
"""Return the gRPC stub for :meth:`BigtableTableAdminClient.get_iam_policy`.

Gets the access control policy for a resource.
Gets the access control policy for a Table or Backup resource.
Returns an empty policy if the resource exists but does not have a policy
set.

Expand Down Expand Up @@ -296,7 +296,7 @@ def set_iam_policy(self):
def test_iam_permissions(self):
"""Return the gRPC stub for :meth:`BigtableTableAdminClient.test_iam_permissions`.

Returns permissions that the caller has on the specified table resource.
Returns permissions that the caller has on the specified Table or Backup resource.

Returns:
Callable: A callable which accepts the appropriate
Expand Down
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

Expand Down Expand Up @@ -565,9 +564,11 @@ message DeleteAppProfileRequest {
}
];

// If true, ignore safety checks when deleting the app profile.
bool ignore_warnings = 2;
// Required. If true, ignore safety checks when deleting the app profile.
bool ignore_warnings = 2 [(google.api.field_behavior) = REQUIRED];
}

// The metadata for the Operation returned by UpdateAppProfile.
message UpdateAppProfileMetadata {}
message UpdateAppProfileMetadata {

}

Large diffs are not rendered by default.