GeezerVison is showing github.com — feat: add PeerInfo proto in Bigtable API (#1190) · googleapis/python-bigtable@72dfdc4
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
File treeExpand file treeCollapse file tree Open diff view settings tests/unit/gapic/bigtable_v2
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/lint.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 12 | 12 | - name: Setup Python | 13 | 13 | uses: actions/setup-python@v5 | 14 | 14 | with: | 15 | | - python-version: "3.8" | | 15 | + python-version: "3.13" | 16 | 16 | - name: Install nox | 17 | 17 | run: | | 18 | 18 | python -m pip install --upgrade setuptools pip wheel | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/unittest.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 45 | 45 | - name: Setup Python | 46 | 46 | uses: actions/setup-python@v5 | 47 | 47 | with: | 48 | | - python-version: "3.8" | | 48 | + python-version: "3.13" | 49 | 49 | - name: Install coverage | 50 | 50 | run: | | 51 | 51 | python -m pip install --upgrade setuptools pip wheel | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/async_client.py +8-8Lines changed: 8 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2565,19 +2565,19 @@ async def sample_get_iam_policy(): | 2565 | 2565 | constraints based on attributes of the request, the | 2566 | 2566 | resource, or both. To learn which resources support | 2567 | 2567 | conditions in their IAM policies, see the [IAM | 2568 | | - documentation](\ https://cloud.google.com/iam/help/conditions/resource-policies). | | 2568 | + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). | 2569 | 2569 |
| 2570 | 2570 | **JSON example:** | 2571 | 2571 |
| 2572 | | - :literal:`\` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` | | 2572 | + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` | 2573 | 2573 |
| 2574 | 2574 | **YAML example:** | 2575 | 2575 |
| 2576 | | - :literal:`\` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` | | 2576 | + :literal:`` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` | 2577 | 2577 |
| 2578 | 2578 | For a description of IAM and its features, see the | 2579 | 2579 | [IAM | 2580 | | - documentation](\ https://cloud.google.com/iam/docs/). | | 2580 | + documentation](https://cloud.google.com/iam/docs/). | 2581 | 2581 |
| 2582 | 2582 | """ | 2583 | 2583 | # Create or coerce a protobuf request object. | @@ -2704,19 +2704,19 @@ async def sample_set_iam_policy(): | 2704 | 2704 | constraints based on attributes of the request, the | 2705 | 2705 | resource, or both. To learn which resources support | 2706 | 2706 | conditions in their IAM policies, see the [IAM | 2707 | | - documentation](\ https://cloud.google.com/iam/help/conditions/resource-policies). | | 2707 | + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). | 2708 | 2708 |
| 2709 | 2709 | **JSON example:** | 2710 | 2710 |
| 2711 | | - :literal:`\` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` | | 2711 | + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` | 2712 | 2712 |
| 2713 | 2713 | **YAML example:** | 2714 | 2714 |
| 2715 | | - :literal:`\` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` | | 2715 | + :literal:`` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` | 2716 | 2716 |
| 2717 | 2717 | For a description of IAM and its features, see the | 2718 | 2718 | [IAM | 2719 | | - documentation](\ https://cloud.google.com/iam/docs/). | | 2719 | + documentation](https://cloud.google.com/iam/docs/). | 2720 | 2720 |
| 2721 | 2721 | """ | 2722 | 2722 | # Create or coerce a protobuf request object. | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py +8-8Lines changed: 8 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3067,19 +3067,19 @@ def sample_get_iam_policy(): | 3067 | 3067 | constraints based on attributes of the request, the | 3068 | 3068 | resource, or both. To learn which resources support | 3069 | 3069 | conditions in their IAM policies, see the [IAM | 3070 | | - documentation](\ https://cloud.google.com/iam/help/conditions/resource-policies). | | 3070 | + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). | 3071 | 3071 |
| 3072 | 3072 | **JSON example:** | 3073 | 3073 |
| 3074 | | - :literal:`\` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` | | 3074 | + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` | 3075 | 3075 |
| 3076 | 3076 | **YAML example:** | 3077 | 3077 |
| 3078 | | - :literal:`\` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` | | 3078 | + :literal:`` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` | 3079 | 3079 |
| 3080 | 3080 | For a description of IAM and its features, see the | 3081 | 3081 | [IAM | 3082 | | - documentation](\ https://cloud.google.com/iam/docs/). | | 3082 | + documentation](https://cloud.google.com/iam/docs/). | 3083 | 3083 |
| 3084 | 3084 | """ | 3085 | 3085 | # Create or coerce a protobuf request object. | @@ -3207,19 +3207,19 @@ def sample_set_iam_policy(): | 3207 | 3207 | constraints based on attributes of the request, the | 3208 | 3208 | resource, or both. To learn which resources support | 3209 | 3209 | conditions in their IAM policies, see the [IAM | 3210 | | - documentation](\ https://cloud.google.com/iam/help/conditions/resource-policies). | | 3210 | + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). | 3211 | 3211 |
| 3212 | 3212 | **JSON example:** | 3213 | 3213 |
| 3214 | | - :literal:`\` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` | | 3214 | + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` | 3215 | 3215 |
| 3216 | 3216 | **YAML example:** | 3217 | 3217 |
| 3218 | | - :literal:`\` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` | | 3218 | + :literal:`` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` | 3219 | 3219 |
| 3220 | 3220 | For a description of IAM and its features, see the | 3221 | 3221 | [IAM | 3222 | | - documentation](\ https://cloud.google.com/iam/docs/). | | 3222 | + documentation](https://cloud.google.com/iam/docs/). | 3223 | 3223 |
| 3224 | 3224 | """ | 3225 | 3225 | # Create or coerce a protobuf request object. | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/base.py +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -81,9 +81,10 @@ def __init__( | 81 | 81 | credentials identify the application to the service; if none | 82 | 82 | are specified, the client will attempt to ascertain the | 83 | 83 | credentials from the environment. | 84 | | - credentials_file (Optional[str]): A file with credentials that can | | 84 | + credentials_file (Optional[str]): Deprecated. A file with credentials that can | 85 | 85 | be loaded with :func:`google.auth.load_credentials_from_file`. | 86 | | - This argument is mutually exclusive with credentials. | | 86 | + This argument is mutually exclusive with credentials. This argument will be | | 87 | + removed in the next major version of this library. | 87 | 88 | scopes (Optional[Sequence[str]]): A list of scopes. | 88 | 89 | quota_project_id (Optional[str]): An optional project to use for billing | 89 | 90 | and quota. | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc.py +5-3Lines changed: 5 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -160,9 +160,10 @@ def __init__( | 160 | 160 | are specified, the client will attempt to ascertain the | 161 | 161 | credentials from the environment. | 162 | 162 | This argument is ignored if a ``channel`` instance is provided. | 163 | | - credentials_file (Optional[str]): A file with credentials that can | | 163 | + credentials_file (Optional[str]): Deprecated. A file with credentials that can | 164 | 164 | be loaded with :func:`google.auth.load_credentials_from_file`. | 165 | 165 | This argument is ignored if a ``channel`` instance is provided. | | 166 | + This argument will be removed in the next major version of this library. | 166 | 167 | scopes (Optional(Sequence[str])): A list of scopes. This argument is | 167 | 168 | ignored if a ``channel`` instance is provided. | 168 | 169 | channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]): | @@ -296,9 +297,10 @@ def create_channel( | 296 | 297 | credentials identify this application to the service. If | 297 | 298 | none are specified, the client will attempt to ascertain | 298 | 299 | the credentials from the environment. | 299 | | - credentials_file (Optional[str]): A file with credentials that can | | 300 | + credentials_file (Optional[str]): Deprecated. A file with credentials that can | 300 | 301 | be loaded with :func:`google.auth.load_credentials_from_file`. | 301 | | - This argument is mutually exclusive with credentials. | | 302 | + This argument is mutually exclusive with credentials. This argument will be | | 303 | + removed in the next major version of this library. | 302 | 304 | scopes (Optional[Sequence[str]]): A optional list of scopes needed for this | 303 | 305 | service. These are only used when credentials are not specified and | 304 | 306 | are passed to :func:`google.auth.default`. | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc_asyncio.py +5-3Lines changed: 5 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -157,8 +157,9 @@ def create_channel( | 157 | 157 | credentials identify this application to the service. If | 158 | 158 | none are specified, the client will attempt to ascertain | 159 | 159 | the credentials from the environment. | 160 | | - credentials_file (Optional[str]): A file with credentials that can | 161 | | - be loaded with :func:`google.auth.load_credentials_from_file`. | | 160 | + credentials_file (Optional[str]): Deprecated. A file with credentials that can | | 161 | + be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be | | 162 | + removed in the next major version of this library. | 162 | 163 | scopes (Optional[Sequence[str]]): A optional list of scopes needed for this | 163 | 164 | service. These are only used when credentials are not specified and | 164 | 165 | are passed to :func:`google.auth.default`. | @@ -209,9 +210,10 @@ def __init__( | 209 | 210 | are specified, the client will attempt to ascertain the | 210 | 211 | credentials from the environment. | 211 | 212 | This argument is ignored if a ``channel`` instance is provided. | 212 | | - credentials_file (Optional[str]): A file with credentials that can | | 213 | + credentials_file (Optional[str]): Deprecated. A file with credentials that can | 213 | 214 | be loaded with :func:`google.auth.load_credentials_from_file`. | 214 | 215 | This argument is ignored if a ``channel`` instance is provided. | | 216 | + This argument will be removed in the next major version of this library. | 215 | 217 | scopes (Optional[Sequence[str]]): A optional list of scopes needed for this | 216 | 218 | service. These are only used when credentials are not specified and | 217 | 219 | are passed to :func:`google.auth.default`. | |
|