Skip to content

Commit c4f2caf

Browse files
fix: Deprecate credentials_file argument (#559)
- [ ] Regenerate this pull request now. 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 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 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 747fd6a commit c4f2caf

File tree

26 files changed

+104
-53
lines changed

26 files changed

+104
-53
lines changed

google/cloud/pubsublite_v1/services/admin_service/transports/base.py

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

google/cloud/pubsublite_v1/services/admin_service/transports/grpc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,10 @@ def __init__(
157157
are specified, the client will attempt to ascertain the
158158
credentials from the environment.
159159
This argument is ignored if a ``channel`` instance is provided.
160-
credentials_file (Optional[str]): A file with credentials that can
160+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
161161
be loaded with :func:`google.auth.load_credentials_from_file`.
162162
This argument is ignored if a ``channel`` instance is provided.
163+
This argument will be removed in the next major version of this library.
163164
scopes (Optional(Sequence[str])): A list of scopes. This argument is
164165
ignored if a ``channel`` instance is provided.
165166
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
@@ -293,9 +294,10 @@ def create_channel(
293294
credentials identify this application to the service. If
294295
none are specified, the client will attempt to ascertain
295296
the credentials from the environment.
296-
credentials_file (Optional[str]): A file with credentials that can
297+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
297298
be loaded with :func:`google.auth.load_credentials_from_file`.
298-
This argument is mutually exclusive with credentials.
299+
This argument is mutually exclusive with credentials. This argument will be
300+
removed in the next major version of this library.
299301
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
300302
service. These are only used when credentials are not specified and
301303
are passed to :func:`google.auth.default`.

google/cloud/pubsublite_v1/services/admin_service/transports/grpc_asyncio.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ def create_channel(
154154
credentials identify this application to the service. If
155155
none are specified, the client will attempt to ascertain
156156
the credentials from the environment.
157-
credentials_file (Optional[str]): A file with credentials that can
158-
be loaded with :func:`google.auth.load_credentials_from_file`.
157+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
158+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
159+
removed in the next major version of this library.
159160
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
160161
service. These are only used when credentials are not specified and
161162
are passed to :func:`google.auth.default`.
@@ -206,9 +207,10 @@ def __init__(
206207
are specified, the client will attempt to ascertain the
207208
credentials from the environment.
208209
This argument is ignored if a ``channel`` instance is provided.
209-
credentials_file (Optional[str]): A file with credentials that can
210+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
210211
be loaded with :func:`google.auth.load_credentials_from_file`.
211212
This argument is ignored if a ``channel`` instance is provided.
213+
This argument will be removed in the next major version of this library.
212214
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
213215
service. These are only used when credentials are not specified and
214216
are passed to :func:`google.auth.default`.

google/cloud/pubsublite_v1/services/cursor_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/pubsublite_v1/services/cursor_service/transports/grpc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,10 @@ def __init__(
155155
are specified, the client will attempt to ascertain the
156156
credentials from the environment.
157157
This argument is ignored if a ``channel`` instance is provided.
158-
credentials_file (Optional[str]): A file with credentials that can
158+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
159159
be loaded with :func:`google.auth.load_credentials_from_file`.
160160
This argument is ignored if a ``channel`` instance is provided.
161+
This argument will be removed in the next major version of this library.
161162
scopes (Optional(Sequence[str])): A list of scopes. This argument is
162163
ignored if a ``channel`` instance is provided.
163164
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
@@ -290,9 +291,10 @@ def create_channel(
290291
credentials identify this application to the service. If
291292
none are specified, the client will attempt to ascertain
292293
the credentials from the environment.
293-
credentials_file (Optional[str]): A file with credentials that can
294+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
294295
be loaded with :func:`google.auth.load_credentials_from_file`.
295-
This argument is mutually exclusive with credentials.
296+
This argument is mutually exclusive with credentials. This argument will be
297+
removed in the next major version of this library.
296298
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
297299
service. These are only used when credentials are not specified and
298300
are passed to :func:`google.auth.default`.

google/cloud/pubsublite_v1/services/cursor_service/transports/grpc_asyncio.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ def create_channel(
152152
credentials identify this application to the service. If
153153
none are specified, the client will attempt to ascertain
154154
the credentials from the environment.
155-
credentials_file (Optional[str]): A file with credentials that can
156-
be loaded with :func:`google.auth.load_credentials_from_file`.
155+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
156+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
157+
removed in the next major version of this library.
157158
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
158159
service. These are only used when credentials are not specified and
159160
are passed to :func:`google.auth.default`.
@@ -204,9 +205,10 @@ def __init__(
204205
are specified, the client will attempt to ascertain the
205206
credentials from the environment.
206207
This argument is ignored if a ``channel`` instance is provided.
207-
credentials_file (Optional[str]): A file with credentials that can
208+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
208209
be loaded with :func:`google.auth.load_credentials_from_file`.
209210
This argument is ignored if a ``channel`` instance is provided.
211+
This argument will be removed in the next major version of this library.
210212
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
211213
service. These are only used when credentials are not specified and
212214
are passed to :func:`google.auth.default`.

google/cloud/pubsublite_v1/services/partition_assignment_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/pubsublite_v1/services/partition_assignment_service/transports/grpc.py

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

google/cloud/pubsublite_v1/services/partition_assignment_service/transports/grpc_asyncio.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ def create_channel(
152152
credentials identify this application to the service. If
153153
none are specified, the client will attempt to ascertain
154154
the credentials from the environment.
155-
credentials_file (Optional[str]): A file with credentials that can
156-
be loaded with :func:`google.auth.load_credentials_from_file`.
155+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
156+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
157+
removed in the next major version of this library.
157158
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
158159
service. These are only used when credentials are not specified and
159160
are passed to :func:`google.auth.default`.
@@ -204,9 +205,10 @@ def __init__(
204205
are specified, the client will attempt to ascertain the
205206
credentials from the environment.
206207
This argument is ignored if a ``channel`` instance is provided.
207-
credentials_file (Optional[str]): A file with credentials that can
208+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
208209
be loaded with :func:`google.auth.load_credentials_from_file`.
209210
This argument is ignored if a ``channel`` instance is provided.
211+
This argument will be removed in the next major version of this library.
210212
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
211213
service. These are only used when credentials are not specified and
212214
are passed to :func:`google.auth.default`.

google/cloud/pubsublite_v1/services/publisher_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.

0 commit comments

Comments
 (0)