Skip to content

Commit f86c964

Browse files
fix: Deprecate credentials_file argument (#572)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE fix: Deprecate credentials_file argument END_COMMIT_OVERRIDE fix: Deprecate credentials_file argument chore: Update gapic-generator-python to 1.28.0 PiperOrigin-RevId: 816753840 Source-Link: googleapis/googleapis@d06cf27 Source-Link: googleapis/googleapis-gen@a524e73 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTUyNGU3MzEwODgyYmJiOTliZmUxMzk5YjE4YmVkMzI4OTc5MjExYyJ9 BEGIN_NESTED_COMMIT feat: Add new `BACKGROUND_CHANGE_DATA_CAPTURE`, `BACKGROUND_COLUMN_METADATA_INDEX`, and `BACKGROUND_SEARCH_INDEX_REFRESH` reservation assignment types feat: Add support for creation and modification of new reservation groups feat: Add new reservation IAM policy get/set/test methods PiperOrigin-RevId: 814816863 Source-Link: googleapis/googleapis@2193a2b Source-Link: googleapis/googleapis-gen@b0cf5f4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBjZjVmNGM0MDUxYzlkZGQ3OTkwYmU5M2FlOGQwMDg3ODlkNzI4NiJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT chore: Update gapic-generator-python to 1.26.2 PiperOrigin-RevId: 802200836 Source-Link: googleapis/googleapis@d300b15 Source-Link: googleapis/googleapis-gen@a1ff0ae Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTFmZjBhZTcyZGRjYjY4YTI1OTIxNWQ4Yzc3NjYxZTJjZGJiOWIwMiJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT chore: update Python generator version to 1.25.1 PiperOrigin-RevId: 800535761 Source-Link: googleapis/googleapis@4cf1f99 Source-Link: googleapis/googleapis-gen@133d25b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTMzZDI1YjY4ZTcxMjExNmUxYzVkYzcxZmMzZWIzYzVlNzE3MDIyYSJ9 END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent e8b4762 commit f86c964

File tree

22 files changed

+117
-78
lines changed

22 files changed

+117
-78
lines changed

google/cloud/errorreporting_v1beta1/services/error_group_service/transports/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ def __init__(
6868
credentials identify the application to the service; if none
6969
are specified, the client will attempt to ascertain the
7070
credentials from the environment.
71-
credentials_file (Optional[str]): A file with credentials that can
71+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
7272
be loaded with :func:`google.auth.load_credentials_from_file`.
73-
This argument is mutually exclusive with credentials.
73+
This argument is mutually exclusive with credentials. This argument will be
74+
removed in the next major version of this library.
7475
scopes (Optional[Sequence[str]]): A list of scopes.
7576
quota_project_id (Optional[str]): An optional project to use for billing
7677
and quota.

google/cloud/errorreporting_v1beta1/services/error_group_service/transports/grpc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ def __init__(
152152
are specified, the client will attempt to ascertain the
153153
credentials from the environment.
154154
This argument is ignored if a ``channel`` instance is provided.
155-
credentials_file (Optional[str]): A file with credentials that can
155+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
156156
be loaded with :func:`google.auth.load_credentials_from_file`.
157157
This argument is ignored if a ``channel`` instance is provided.
158+
This argument will be removed in the next major version of this library.
158159
scopes (Optional(Sequence[str])): A list of scopes. This argument is
159160
ignored if a ``channel`` instance is provided.
160161
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
@@ -287,9 +288,10 @@ def create_channel(
287288
credentials identify this application to the service. If
288289
none are specified, the client will attempt to ascertain
289290
the credentials from the environment.
290-
credentials_file (Optional[str]): A file with credentials that can
291+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
291292
be loaded with :func:`google.auth.load_credentials_from_file`.
292-
This argument is mutually exclusive with credentials.
293+
This argument is mutually exclusive with credentials. This argument will be
294+
removed in the next major version of this library.
293295
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
294296
service. These are only used when credentials are not specified and
295297
are passed to :func:`google.auth.default`.

google/cloud/errorreporting_v1beta1/services/error_group_service/transports/grpc_asyncio.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ def create_channel(
149149
credentials identify this application to the service. If
150150
none are specified, the client will attempt to ascertain
151151
the credentials from the environment.
152-
credentials_file (Optional[str]): A file with credentials that can
153-
be loaded with :func:`google.auth.load_credentials_from_file`.
152+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
153+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
154+
removed in the next major version of this library.
154155
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
155156
service. These are only used when credentials are not specified and
156157
are passed to :func:`google.auth.default`.
@@ -201,9 +202,10 @@ def __init__(
201202
are specified, the client will attempt to ascertain the
202203
credentials from the environment.
203204
This argument is ignored if a ``channel`` instance is provided.
204-
credentials_file (Optional[str]): A file with credentials that can
205+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
205206
be loaded with :func:`google.auth.load_credentials_from_file`.
206207
This argument is ignored if a ``channel`` instance is provided.
208+
This argument will be removed in the next major version of this library.
207209
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
208210
service. These are only used when credentials are not specified and
209211
are passed to :func:`google.auth.default`.

google/cloud/errorreporting_v1beta1/services/error_group_service/transports/rest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,10 @@ def __init__(
239239
are specified, the client will attempt to ascertain the
240240
credentials from the environment.
241241
242-
credentials_file (Optional[str]): A file with credentials that can
242+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
243243
be loaded with :func:`google.auth.load_credentials_from_file`.
244-
This argument is ignored if ``channel`` is provided.
244+
This argument is ignored if ``channel`` is provided. This argument will be
245+
removed in the next major version of this library.
245246
scopes (Optional(Sequence[str])): A list of scopes. This argument is
246247
ignored if ``channel`` is provided.
247248
client_cert_source_for_mtls (Callable[[], Tuple[bytes, bytes]]): Client

google/cloud/errorreporting_v1beta1/services/error_stats_service/transports/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ def __init__(
6767
credentials identify the application to the service; if none
6868
are specified, the client will attempt to ascertain the
6969
credentials from the environment.
70-
credentials_file (Optional[str]): A file with credentials that can
70+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
7171
be loaded with :func:`google.auth.load_credentials_from_file`.
72-
This argument is mutually exclusive with credentials.
72+
This argument is mutually exclusive with credentials. This argument will be
73+
removed in the next major version of this library.
7374
scopes (Optional[Sequence[str]]): A list of scopes.
7475
quota_project_id (Optional[str]): An optional project to use for billing
7576
and quota.

google/cloud/errorreporting_v1beta1/services/error_stats_service/transports/grpc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ def __init__(
152152
are specified, the client will attempt to ascertain the
153153
credentials from the environment.
154154
This argument is ignored if a ``channel`` instance is provided.
155-
credentials_file (Optional[str]): A file with credentials that can
155+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
156156
be loaded with :func:`google.auth.load_credentials_from_file`.
157157
This argument is ignored if a ``channel`` instance is provided.
158+
This argument will be removed in the next major version of this library.
158159
scopes (Optional(Sequence[str])): A list of scopes. This argument is
159160
ignored if a ``channel`` instance is provided.
160161
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
@@ -287,9 +288,10 @@ def create_channel(
287288
credentials identify this application to the service. If
288289
none are specified, the client will attempt to ascertain
289290
the credentials from the environment.
290-
credentials_file (Optional[str]): A file with credentials that can
291+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
291292
be loaded with :func:`google.auth.load_credentials_from_file`.
292-
This argument is mutually exclusive with credentials.
293+
This argument is mutually exclusive with credentials. This argument will be
294+
removed in the next major version of this library.
293295
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
294296
service. These are only used when credentials are not specified and
295297
are passed to :func:`google.auth.default`.

google/cloud/errorreporting_v1beta1/services/error_stats_service/transports/grpc_asyncio.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ def create_channel(
149149
credentials identify this application to the service. If
150150
none are specified, the client will attempt to ascertain
151151
the credentials from the environment.
152-
credentials_file (Optional[str]): A file with credentials that can
153-
be loaded with :func:`google.auth.load_credentials_from_file`.
152+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
153+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
154+
removed in the next major version of this library.
154155
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
155156
service. These are only used when credentials are not specified and
156157
are passed to :func:`google.auth.default`.
@@ -201,9 +202,10 @@ def __init__(
201202
are specified, the client will attempt to ascertain the
202203
credentials from the environment.
203204
This argument is ignored if a ``channel`` instance is provided.
204-
credentials_file (Optional[str]): A file with credentials that can
205+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
205206
be loaded with :func:`google.auth.load_credentials_from_file`.
206207
This argument is ignored if a ``channel`` instance is provided.
208+
This argument will be removed in the next major version of this library.
207209
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
208210
service. These are only used when credentials are not specified and
209211
are passed to :func:`google.auth.default`.

google/cloud/errorreporting_v1beta1/services/error_stats_service/transports/rest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,10 @@ def __init__(
308308
are specified, the client will attempt to ascertain the
309309
credentials from the environment.
310310
311-
credentials_file (Optional[str]): A file with credentials that can
311+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
312312
be loaded with :func:`google.auth.load_credentials_from_file`.
313-
This argument is ignored if ``channel`` is provided.
313+
This argument is ignored if ``channel`` is provided. This argument will be
314+
removed in the next major version of this library.
314315
scopes (Optional(Sequence[str])): A list of scopes. This argument is
315316
ignored if ``channel`` is provided.
316317
client_cert_source_for_mtls (Callable[[], Tuple[bytes, bytes]]): Client

google/cloud/errorreporting_v1beta1/services/report_errors_service/async_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,14 @@ async def report_error_event(
314314
Cloud Logging and can analyze log entries when all of the
315315
following are true:
316316
317-
- Customer-managed encryption keys (CMEK) are disabled on the
318-
log bucket.
319-
- The log bucket satisfies one of the following:
320-
321-
- The log bucket is stored in the same project where the
322-
logs originated.
323-
- The logs were routed to a project, and then that project
324-
stored those logs in a log bucket that it owns.
317+
- Customer-managed encryption keys (CMEK) are disabled on the
318+
log bucket.
319+
- The log bucket satisfies one of the following:
320+
321+
- The log bucket is stored in the same project where the logs
322+
originated.
323+
- The logs were routed to a project, and then that project
324+
stored those logs in a log bucket that it owns.
325325
326326
.. code-block:: python
327327

google/cloud/errorreporting_v1beta1/services/report_errors_service/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -717,14 +717,14 @@ def report_error_event(
717717
Cloud Logging and can analyze log entries when all of the
718718
following are true:
719719
720-
- Customer-managed encryption keys (CMEK) are disabled on the
721-
log bucket.
722-
- The log bucket satisfies one of the following:
723-
724-
- The log bucket is stored in the same project where the
725-
logs originated.
726-
- The logs were routed to a project, and then that project
727-
stored those logs in a log bucket that it owns.
720+
- Customer-managed encryption keys (CMEK) are disabled on the
721+
log bucket.
722+
- The log bucket satisfies one of the following:
723+
724+
- The log bucket is stored in the same project where the logs
725+
originated.
726+
- The logs were routed to a project, and then that project
727+
stored those logs in a log bucket that it owns.
728728
729729
.. code-block:: python
730730

0 commit comments

Comments
 (0)