Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Commit 8b6f154

Browse filesBrowse files
feat: Exposing AutoscalingConfig in InstancePartition (#1413)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: Exposing AutoscalingConfig in InstancePartition fix: Deprecate credentials_file argument END_COMMIT_OVERRIDE PiperOrigin-RevId: 825184314 Source-Link: googleapis/googleapis@72e7439 Source-Link: googleapis/googleapis-gen@007caa0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA3Y2FhMDZiYWM2NzY1NzdmOGQ4NDViODc5M2MxNmVmZjY2YWM5YSJ9 BEGIN_NESTED_COMMIT 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 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 bb5095d commit 8b6f154
Copy full SHA for 8b6f154

23 files changed

+86-33Lines changed: 86 additions & 33 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎google/cloud/spanner_admin_database_v1/services/database_admin/transports/base.py‎

Copy file name to clipboardExpand all lines: google/cloud/spanner_admin_database_v1/services/database_admin/transports/base.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ def __init__(
8181
credentials identify the application to the service; if none
8282
are specified, the client will attempt to ascertain the
8383
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
8585
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.
8788
scopes (Optional[Sequence[str]]): A list of scopes.
8889
quota_project_id (Optional[str]): An optional project to use for billing
8990
and quota.
Collapse file

‎google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc.py‎

Copy file name to clipboardExpand all lines: google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,10 @@ def __init__(
169169
are specified, the client will attempt to ascertain the
170170
credentials from the environment.
171171
This argument is ignored if a ``channel`` instance is provided.
172-
credentials_file (Optional[str]): A file with credentials that can
172+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
173173
be loaded with :func:`google.auth.load_credentials_from_file`.
174174
This argument is ignored if a ``channel`` instance is provided.
175+
This argument will be removed in the next major version of this library.
175176
scopes (Optional(Sequence[str])): A list of scopes. This argument is
176177
ignored if a ``channel`` instance is provided.
177178
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
@@ -306,9 +307,10 @@ def create_channel(
306307
credentials identify this application to the service. If
307308
none are specified, the client will attempt to ascertain
308309
the credentials from the environment.
309-
credentials_file (Optional[str]): A file with credentials that can
310+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
310311
be loaded with :func:`google.auth.load_credentials_from_file`.
311-
This argument is mutually exclusive with credentials.
312+
This argument is mutually exclusive with credentials. This argument will be
313+
removed in the next major version of this library.
312314
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
313315
service. These are only used when credentials are not specified and
314316
are passed to :func:`google.auth.default`.
Collapse file

‎google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc_asyncio.py‎

Copy file name to clipboardExpand all lines: google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc_asyncio.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ def create_channel(
166166
credentials identify this application to the service. If
167167
none are specified, the client will attempt to ascertain
168168
the credentials from the environment.
169-
credentials_file (Optional[str]): A file with credentials that can
170-
be loaded with :func:`google.auth.load_credentials_from_file`.
169+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
170+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
171+
removed in the next major version of this library.
171172
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
172173
service. These are only used when credentials are not specified and
173174
are passed to :func:`google.auth.default`.
@@ -218,9 +219,10 @@ def __init__(
218219
are specified, the client will attempt to ascertain the
219220
credentials from the environment.
220221
This argument is ignored if a ``channel`` instance is provided.
221-
credentials_file (Optional[str]): A file with credentials that can
222+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
222223
be loaded with :func:`google.auth.load_credentials_from_file`.
223224
This argument is ignored if a ``channel`` instance is provided.
225+
This argument will be removed in the next major version of this library.
224226
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
225227
service. These are only used when credentials are not specified and
226228
are passed to :func:`google.auth.default`.
Collapse file

‎google/cloud/spanner_admin_database_v1/services/database_admin/transports/rest.py‎

Copy file name to clipboardExpand all lines: google/cloud/spanner_admin_database_v1/services/database_admin/transports/rest.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,9 +1622,10 @@ def __init__(
16221622
are specified, the client will attempt to ascertain the
16231623
credentials from the environment.
16241624
1625-
credentials_file (Optional[str]): A file with credentials that can
1625+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
16261626
be loaded with :func:`google.auth.load_credentials_from_file`.
1627-
This argument is ignored if ``channel`` is provided.
1627+
This argument is ignored if ``channel`` is provided. This argument will be
1628+
removed in the next major version of this library.
16281629
scopes (Optional(Sequence[str])): A list of scopes. This argument is
16291630
ignored if ``channel`` is provided.
16301631
client_cert_source_for_mtls (Callable[[], Tuple[bytes, bytes]]): Client
Collapse file

‎google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/base.py‎

Copy file name to clipboardExpand all lines: google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/base.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ def __init__(
7575
credentials identify the application to the service; if none
7676
are specified, the client will attempt to ascertain the
7777
credentials from the environment.
78-
credentials_file (Optional[str]): A file with credentials that can
78+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
7979
be loaded with :func:`google.auth.load_credentials_from_file`.
80-
This argument is mutually exclusive with credentials.
80+
This argument is mutually exclusive with credentials. This argument will be
81+
removed in the next major version of this library.
8182
scopes (Optional[Sequence[str]]): A list of scopes.
8283
quota_project_id (Optional[str]): An optional project to use for billing
8384
and quota.
Collapse file

‎google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc.py‎

Copy file name to clipboardExpand all lines: google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ def __init__(
178178
are specified, the client will attempt to ascertain the
179179
credentials from the environment.
180180
This argument is ignored if a ``channel`` instance is provided.
181-
credentials_file (Optional[str]): A file with credentials that can
181+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
182182
be loaded with :func:`google.auth.load_credentials_from_file`.
183183
This argument is ignored if a ``channel`` instance is provided.
184+
This argument will be removed in the next major version of this library.
184185
scopes (Optional(Sequence[str])): A list of scopes. This argument is
185186
ignored if a ``channel`` instance is provided.
186187
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
@@ -315,9 +316,10 @@ def create_channel(
315316
credentials identify this application to the service. If
316317
none are specified, the client will attempt to ascertain
317318
the credentials from the environment.
318-
credentials_file (Optional[str]): A file with credentials that can
319+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
319320
be loaded with :func:`google.auth.load_credentials_from_file`.
320-
This argument is mutually exclusive with credentials.
321+
This argument is mutually exclusive with credentials. This argument will be
322+
removed in the next major version of this library.
321323
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
322324
service. These are only used when credentials are not specified and
323325
are passed to :func:`google.auth.default`.
Collapse file

‎google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc_asyncio.py‎

Copy file name to clipboardExpand all lines: google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc_asyncio.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ def create_channel(
175175
credentials identify this application to the service. If
176176
none are specified, the client will attempt to ascertain
177177
the credentials from the environment.
178-
credentials_file (Optional[str]): A file with credentials that can
179-
be loaded with :func:`google.auth.load_credentials_from_file`.
178+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
179+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
180+
removed in the next major version of this library.
180181
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
181182
service. These are only used when credentials are not specified and
182183
are passed to :func:`google.auth.default`.
@@ -227,9 +228,10 @@ def __init__(
227228
are specified, the client will attempt to ascertain the
228229
credentials from the environment.
229230
This argument is ignored if a ``channel`` instance is provided.
230-
credentials_file (Optional[str]): A file with credentials that can
231+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
231232
be loaded with :func:`google.auth.load_credentials_from_file`.
232233
This argument is ignored if a ``channel`` instance is provided.
234+
This argument will be removed in the next major version of this library.
233235
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
234236
service. These are only used when credentials are not specified and
235237
are passed to :func:`google.auth.default`.
Collapse file

‎google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/rest.py‎

Copy file name to clipboardExpand all lines: google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/rest.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,9 +1355,10 @@ def __init__(
13551355
are specified, the client will attempt to ascertain the
13561356
credentials from the environment.
13571357
1358-
credentials_file (Optional[str]): A file with credentials that can
1358+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
13591359
be loaded with :func:`google.auth.load_credentials_from_file`.
1360-
This argument is ignored if ``channel`` is provided.
1360+
This argument is ignored if ``channel`` is provided. This argument will be
1361+
removed in the next major version of this library.
13611362
scopes (Optional(Sequence[str])): A list of scopes. This argument is
13621363
ignored if ``channel`` is provided.
13631364
client_cert_source_for_mtls (Callable[[], Tuple[bytes, bytes]]): Client
Collapse file

‎google/cloud/spanner_admin_instance_v1/types/spanner_instance_admin.py‎

Copy file name to clipboardExpand all lines: google/cloud/spanner_admin_instance_v1/types/spanner_instance_admin.py
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,12 @@ class InstancePartition(proto.Message):
17651765
that are not yet in the ``READY`` state.
17661766
17671767
This field is a member of `oneof`_ ``compute_capacity``.
1768+
autoscaling_config (google.cloud.spanner_admin_instance_v1.types.AutoscalingConfig):
1769+
Optional. The autoscaling configuration. Autoscaling is
1770+
enabled if this field is set. When autoscaling is enabled,
1771+
fields in compute_capacity are treated as OUTPUT_ONLY fields
1772+
and reflect the current compute capacity allocated to the
1773+
instance partition.
17681774
state (google.cloud.spanner_admin_instance_v1.types.InstancePartition.State):
17691775
Output only. The current instance partition
17701776
state.
@@ -1848,6 +1854,11 @@ class State(proto.Enum):
18481854
number=6,
18491855
oneof="compute_capacity",
18501856
)
1857+
autoscaling_config: "AutoscalingConfig" = proto.Field(
1858+
proto.MESSAGE,
1859+
number=13,
1860+
message="AutoscalingConfig",
1861+
)
18511862
state: State = proto.Field(
18521863
proto.ENUM,
18531864
number=7,
Collapse file

‎google/cloud/spanner_v1/services/spanner/transports/base.py‎

Copy file name to clipboardExpand all lines: google/cloud/spanner_v1/services/spanner/transports/base.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ def __init__(
7676
credentials identify the application to the service; if none
7777
are specified, the client will attempt to ascertain the
7878
credentials from the environment.
79-
credentials_file (Optional[str]): A file with credentials that can
79+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
8080
be loaded with :func:`google.auth.load_credentials_from_file`.
81-
This argument is mutually exclusive with credentials.
81+
This argument is mutually exclusive with credentials. This argument will be
82+
removed in the next major version of this library.
8283
scopes (Optional[Sequence[str]]): A list of scopes.
8384
quota_project_id (Optional[str]): An optional project to use for billing
8485
and quota.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.