google-apis-spanner_v1 0.49.0 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/spanner_v1/classes.rb +102 -14
- data/lib/google/apis/spanner_v1/gem_version.rb +2 -2
- data/lib/google/apis/spanner_v1/representations.rb +20 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43a7399de2ff3496ea57f9f3a27e99233698015997ac27121d96cf24e31e14b3
|
|
4
|
+
data.tar.gz: f735718dedaf54a0cac22f9aee332d208bbed547e3e11add0e16ccbd0778552f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d72a1fd3c97e132d1f5ac627862d128c9447534e3e174b491c38d6b0332022fe6f10682bab0cd241df804588d6d5f4a6bde9c8675619d57e3ca4a66459a63e7
|
|
7
|
+
data.tar.gz: 1e7ed1725e95eb46e7640f4bd5294e3e67dfce2108c93a0d07061fa472e58abde0108f1286a20c58c7738b9d7dcfee3d883519d42a33352b3d41df0dfb31f777
|
data/CHANGELOG.md
CHANGED
|
@@ -277,6 +277,44 @@ module Google
|
|
|
277
277
|
# @return [Fixnum]
|
|
278
278
|
attr_accessor :autoscaling_target_high_priority_cpu_utilization_percent
|
|
279
279
|
|
|
280
|
+
# Optional. If specified, overrides the autoscaling target `
|
|
281
|
+
# total_cpu_utilization_percent` in the top-level autoscaling configuration for
|
|
282
|
+
# the selected replicas.
|
|
283
|
+
# Corresponds to the JSON property `autoscalingTargetTotalCpuUtilizationPercent`
|
|
284
|
+
# @return [Fixnum]
|
|
285
|
+
attr_accessor :autoscaling_target_total_cpu_utilization_percent
|
|
286
|
+
|
|
287
|
+
# Optional. If true, disables high priority CPU autoscaling for the selected
|
|
288
|
+
# replicas and ignores high_priority_cpu_utilization_percent in the top-level
|
|
289
|
+
# autoscaling configuration. When setting this field to true, setting
|
|
290
|
+
# autoscaling_target_high_priority_cpu_utilization_percent field to a non-zero
|
|
291
|
+
# value for the same replica is not supported. If false, the
|
|
292
|
+
# autoscaling_target_high_priority_cpu_utilization_percent field in the replica
|
|
293
|
+
# will be used if set to a non-zero value. Otherwise, the
|
|
294
|
+
# high_priority_cpu_utilization_percent field in the top-level autoscaling
|
|
295
|
+
# configuration will be used. Setting both disable_high_priority_cpu_autoscaling
|
|
296
|
+
# and disable_total_cpu_autoscaling to true for the same replica is not
|
|
297
|
+
# supported.
|
|
298
|
+
# Corresponds to the JSON property `disableHighPriorityCpuAutoscaling`
|
|
299
|
+
# @return [Boolean]
|
|
300
|
+
attr_accessor :disable_high_priority_cpu_autoscaling
|
|
301
|
+
alias_method :disable_high_priority_cpu_autoscaling?, :disable_high_priority_cpu_autoscaling
|
|
302
|
+
|
|
303
|
+
# Optional. If true, disables total CPU autoscaling for the selected replicas
|
|
304
|
+
# and ignores total_cpu_utilization_percent in the top-level autoscaling
|
|
305
|
+
# configuration. When setting this field to true, setting
|
|
306
|
+
# autoscaling_target_total_cpu_utilization_percent field to a non-zero value for
|
|
307
|
+
# the same replica is not supported. If false, the
|
|
308
|
+
# autoscaling_target_total_cpu_utilization_percent field in the replica will be
|
|
309
|
+
# used if set to a non-zero value. Otherwise, the total_cpu_utilization_percent
|
|
310
|
+
# field in the top-level autoscaling configuration will be used. Setting both
|
|
311
|
+
# disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to
|
|
312
|
+
# true for the same replica is not supported.
|
|
313
|
+
# Corresponds to the JSON property `disableTotalCpuAutoscaling`
|
|
314
|
+
# @return [Boolean]
|
|
315
|
+
attr_accessor :disable_total_cpu_autoscaling
|
|
316
|
+
alias_method :disable_total_cpu_autoscaling?, :disable_total_cpu_autoscaling
|
|
317
|
+
|
|
280
318
|
def initialize(**args)
|
|
281
319
|
update!(**args)
|
|
282
320
|
end
|
|
@@ -285,6 +323,9 @@ module Google
|
|
|
285
323
|
def update!(**args)
|
|
286
324
|
@autoscaling_limits = args[:autoscaling_limits] if args.key?(:autoscaling_limits)
|
|
287
325
|
@autoscaling_target_high_priority_cpu_utilization_percent = args[:autoscaling_target_high_priority_cpu_utilization_percent] if args.key?(:autoscaling_target_high_priority_cpu_utilization_percent)
|
|
326
|
+
@autoscaling_target_total_cpu_utilization_percent = args[:autoscaling_target_total_cpu_utilization_percent] if args.key?(:autoscaling_target_total_cpu_utilization_percent)
|
|
327
|
+
@disable_high_priority_cpu_autoscaling = args[:disable_high_priority_cpu_autoscaling] if args.key?(:disable_high_priority_cpu_autoscaling)
|
|
328
|
+
@disable_total_cpu_autoscaling = args[:disable_total_cpu_autoscaling] if args.key?(:disable_total_cpu_autoscaling)
|
|
288
329
|
end
|
|
289
330
|
end
|
|
290
331
|
|
|
@@ -338,10 +379,11 @@ module Google
|
|
|
338
379
|
class AutoscalingTargets
|
|
339
380
|
include Google::Apis::Core::Hashable
|
|
340
381
|
|
|
341
|
-
#
|
|
382
|
+
# Optional. The target high priority cpu utilization percentage that the
|
|
342
383
|
# autoscaler should be trying to achieve for the instance. This number is on a
|
|
343
384
|
# scale from 0 (no utilization) to 100 (full utilization). The valid range is [
|
|
344
|
-
# 10, 90] inclusive.
|
|
385
|
+
# 10, 90] inclusive. If not specified or set to 0, the autoscaler skips scaling
|
|
386
|
+
# based on high priority CPU utilization.
|
|
345
387
|
# Corresponds to the JSON property `highPriorityCpuUtilizationPercent`
|
|
346
388
|
# @return [Fixnum]
|
|
347
389
|
attr_accessor :high_priority_cpu_utilization_percent
|
|
@@ -353,6 +395,17 @@ module Google
|
|
|
353
395
|
# @return [Fixnum]
|
|
354
396
|
attr_accessor :storage_utilization_percent
|
|
355
397
|
|
|
398
|
+
# Optional. The target total CPU utilization percentage that the autoscaler
|
|
399
|
+
# should be trying to achieve for the instance. This number is on a scale from 0
|
|
400
|
+
# (no utilization) to 100 (full utilization). The valid range is [10, 90]
|
|
401
|
+
# inclusive. If not specified or set to 0, the autoscaler skips scaling based on
|
|
402
|
+
# total CPU utilization. If both `high_priority_cpu_utilization_percent` and `
|
|
403
|
+
# total_cpu_utilization_percent` are specified, the autoscaler provisions the
|
|
404
|
+
# larger of the two required compute capacities to satisfy both targets.
|
|
405
|
+
# Corresponds to the JSON property `totalCpuUtilizationPercent`
|
|
406
|
+
# @return [Fixnum]
|
|
407
|
+
attr_accessor :total_cpu_utilization_percent
|
|
408
|
+
|
|
356
409
|
def initialize(**args)
|
|
357
410
|
update!(**args)
|
|
358
411
|
end
|
|
@@ -361,6 +414,7 @@ module Google
|
|
|
361
414
|
def update!(**args)
|
|
362
415
|
@high_priority_cpu_utilization_percent = args[:high_priority_cpu_utilization_percent] if args.key?(:high_priority_cpu_utilization_percent)
|
|
363
416
|
@storage_utilization_percent = args[:storage_utilization_percent] if args.key?(:storage_utilization_percent)
|
|
417
|
+
@total_cpu_utilization_percent = args[:total_cpu_utilization_percent] if args.key?(:total_cpu_utilization_percent)
|
|
364
418
|
end
|
|
365
419
|
end
|
|
366
420
|
|
|
@@ -468,6 +522,12 @@ module Google
|
|
|
468
522
|
# @return [String]
|
|
469
523
|
attr_accessor :max_expire_time
|
|
470
524
|
|
|
525
|
+
# Output only. The minimum edition required to successfully restore the backup.
|
|
526
|
+
# Populated only if the edition is Enterprise or Enterprise Plus.
|
|
527
|
+
# Corresponds to the JSON property `minimumRestorableEdition`
|
|
528
|
+
# @return [String]
|
|
529
|
+
attr_accessor :minimum_restorable_edition
|
|
530
|
+
|
|
471
531
|
# Output only for the CreateBackup operation. Required for the UpdateBackup
|
|
472
532
|
# operation. A globally unique identifier for the backup which cannot be changed.
|
|
473
533
|
# Values are of the form `projects//instances//backups/a-z*[a-z0-9]` The final
|
|
@@ -546,6 +606,7 @@ module Google
|
|
|
546
606
|
@incremental_backup_chain_id = args[:incremental_backup_chain_id] if args.key?(:incremental_backup_chain_id)
|
|
547
607
|
@instance_partitions = args[:instance_partitions] if args.key?(:instance_partitions)
|
|
548
608
|
@max_expire_time = args[:max_expire_time] if args.key?(:max_expire_time)
|
|
609
|
+
@minimum_restorable_edition = args[:minimum_restorable_edition] if args.key?(:minimum_restorable_edition)
|
|
549
610
|
@name = args[:name] if args.key?(:name)
|
|
550
611
|
@oldest_version_time = args[:oldest_version_time] if args.key?(:oldest_version_time)
|
|
551
612
|
@referencing_backups = args[:referencing_backups] if args.key?(:referencing_backups)
|
|
@@ -1138,6 +1199,27 @@ module Google
|
|
|
1138
1199
|
end
|
|
1139
1200
|
end
|
|
1140
1201
|
|
|
1202
|
+
# Container for various pieces of client-owned context attached to a request.
|
|
1203
|
+
class ClientContext
|
|
1204
|
+
include Google::Apis::Core::Hashable
|
|
1205
|
+
|
|
1206
|
+
# Optional. Map of parameter name to value for this request. These values will
|
|
1207
|
+
# be returned by any SECURE_CONTEXT() calls invoked by this request (e.g., by
|
|
1208
|
+
# queries against Parameterized Secure Views).
|
|
1209
|
+
# Corresponds to the JSON property `secureContext`
|
|
1210
|
+
# @return [Hash<String,Object>]
|
|
1211
|
+
attr_accessor :secure_context
|
|
1212
|
+
|
|
1213
|
+
def initialize(**args)
|
|
1214
|
+
update!(**args)
|
|
1215
|
+
end
|
|
1216
|
+
|
|
1217
|
+
# Update properties of this object
|
|
1218
|
+
def update!(**args)
|
|
1219
|
+
@secure_context = args[:secure_context] if args.key?(:secure_context)
|
|
1220
|
+
end
|
|
1221
|
+
end
|
|
1222
|
+
|
|
1141
1223
|
# Metadata for a column.
|
|
1142
1224
|
class ColumnMetadata
|
|
1143
1225
|
include Google::Apis::Core::Hashable
|
|
@@ -5149,22 +5231,22 @@ module Google
|
|
|
5149
5231
|
class PartitionQueryRequest
|
|
5150
5232
|
include Google::Apis::Core::Hashable
|
|
5151
5233
|
|
|
5152
|
-
# It isn't always possible for Cloud Spanner to infer the right SQL
|
|
5153
|
-
# JSON value. For example, values of type `BYTES` and values of type
|
|
5154
|
-
# both appear in params as JSON strings. In these cases, `param_types`
|
|
5155
|
-
# used to specify the exact SQL type for some or all of the SQL query
|
|
5156
|
-
# See the definition of Type for more information about SQL types.
|
|
5234
|
+
# Optional. It isn't always possible for Cloud Spanner to infer the right SQL
|
|
5235
|
+
# type from a JSON value. For example, values of type `BYTES` and values of type
|
|
5236
|
+
# `STRING` both appear in params as JSON strings. In these cases, `param_types`
|
|
5237
|
+
# can be used to specify the exact SQL type for some or all of the SQL query
|
|
5238
|
+
# parameters. See the definition of Type for more information about SQL types.
|
|
5157
5239
|
# Corresponds to the JSON property `paramTypes`
|
|
5158
5240
|
# @return [Hash<String,Google::Apis::SpannerV1::Type>]
|
|
5159
5241
|
attr_accessor :param_types
|
|
5160
5242
|
|
|
5161
|
-
# Parameter names and values that bind to placeholders in the SQL
|
|
5162
|
-
# parameter placeholder consists of the `@` character followed by the
|
|
5163
|
-
# name (for example, `@firstName`). Parameter names can contain
|
|
5164
|
-
# and underscores. Parameters can appear anywhere that a
|
|
5165
|
-
# expected. The same parameter name can be used more than once,
|
|
5166
|
-
# WHERE id > @msg_id AND id < @msg_id + 100"` It's an error to
|
|
5167
|
-
# statement with unbound parameters.
|
|
5243
|
+
# Optional. Parameter names and values that bind to placeholders in the SQL
|
|
5244
|
+
# string. A parameter placeholder consists of the `@` character followed by the
|
|
5245
|
+
# parameter name (for example, `@firstName`). Parameter names can contain
|
|
5246
|
+
# letters, numbers, and underscores. Parameters can appear anywhere that a
|
|
5247
|
+
# literal value is expected. The same parameter name can be used more than once,
|
|
5248
|
+
# for example: `"WHERE id > @msg_id AND id < @msg_id + 100"` It's an error to
|
|
5249
|
+
# execute a SQL statement with unbound parameters.
|
|
5168
5250
|
# Corresponds to the JSON property `params`
|
|
5169
5251
|
# @return [Hash<String,Object>]
|
|
5170
5252
|
attr_accessor :params
|
|
@@ -6037,6 +6119,11 @@ module Google
|
|
|
6037
6119
|
class RequestOptions
|
|
6038
6120
|
include Google::Apis::Core::Hashable
|
|
6039
6121
|
|
|
6122
|
+
# Container for various pieces of client-owned context attached to a request.
|
|
6123
|
+
# Corresponds to the JSON property `clientContext`
|
|
6124
|
+
# @return [Google::Apis::SpannerV1::ClientContext]
|
|
6125
|
+
attr_accessor :client_context
|
|
6126
|
+
|
|
6040
6127
|
# Priority for the request.
|
|
6041
6128
|
# Corresponds to the JSON property `priority`
|
|
6042
6129
|
# @return [String]
|
|
@@ -6074,6 +6161,7 @@ module Google
|
|
|
6074
6161
|
|
|
6075
6162
|
# Update properties of this object
|
|
6076
6163
|
def update!(**args)
|
|
6164
|
+
@client_context = args[:client_context] if args.key?(:client_context)
|
|
6077
6165
|
@priority = args[:priority] if args.key?(:priority)
|
|
6078
6166
|
@request_tag = args[:request_tag] if args.key?(:request_tag)
|
|
6079
6167
|
@transaction_tag = args[:transaction_tag] if args.key?(:transaction_tag)
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module SpannerV1
|
|
18
18
|
# Version of the google-apis-spanner_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.50.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260122"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -178,6 +178,12 @@ module Google
|
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
|
179
179
|
end
|
|
180
180
|
|
|
181
|
+
class ClientContext
|
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
|
+
|
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
185
|
+
end
|
|
186
|
+
|
|
181
187
|
class ColumnMetadata
|
|
182
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
189
|
|
|
@@ -1173,6 +1179,9 @@ module Google
|
|
|
1173
1179
|
property :autoscaling_limits, as: 'autoscalingLimits', class: Google::Apis::SpannerV1::AutoscalingLimits, decorator: Google::Apis::SpannerV1::AutoscalingLimits::Representation
|
|
1174
1180
|
|
|
1175
1181
|
property :autoscaling_target_high_priority_cpu_utilization_percent, as: 'autoscalingTargetHighPriorityCpuUtilizationPercent'
|
|
1182
|
+
property :autoscaling_target_total_cpu_utilization_percent, as: 'autoscalingTargetTotalCpuUtilizationPercent'
|
|
1183
|
+
property :disable_high_priority_cpu_autoscaling, as: 'disableHighPriorityCpuAutoscaling'
|
|
1184
|
+
property :disable_total_cpu_autoscaling, as: 'disableTotalCpuAutoscaling'
|
|
1176
1185
|
end
|
|
1177
1186
|
end
|
|
1178
1187
|
|
|
@@ -1191,6 +1200,7 @@ module Google
|
|
|
1191
1200
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1192
1201
|
property :high_priority_cpu_utilization_percent, as: 'highPriorityCpuUtilizationPercent'
|
|
1193
1202
|
property :storage_utilization_percent, as: 'storageUtilizationPercent'
|
|
1203
|
+
property :total_cpu_utilization_percent, as: 'totalCpuUtilizationPercent'
|
|
1194
1204
|
end
|
|
1195
1205
|
end
|
|
1196
1206
|
|
|
@@ -1212,6 +1222,7 @@ module Google
|
|
|
1212
1222
|
collection :instance_partitions, as: 'instancePartitions', class: Google::Apis::SpannerV1::BackupInstancePartition, decorator: Google::Apis::SpannerV1::BackupInstancePartition::Representation
|
|
1213
1223
|
|
|
1214
1224
|
property :max_expire_time, as: 'maxExpireTime'
|
|
1225
|
+
property :minimum_restorable_edition, as: 'minimumRestorableEdition'
|
|
1215
1226
|
property :name, as: 'name'
|
|
1216
1227
|
property :oldest_version_time, as: 'oldestVersionTime'
|
|
1217
1228
|
collection :referencing_backups, as: 'referencingBackups'
|
|
@@ -1369,6 +1380,13 @@ module Google
|
|
|
1369
1380
|
end
|
|
1370
1381
|
end
|
|
1371
1382
|
|
|
1383
|
+
class ClientContext
|
|
1384
|
+
# @private
|
|
1385
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1386
|
+
hash :secure_context, as: 'secureContext'
|
|
1387
|
+
end
|
|
1388
|
+
end
|
|
1389
|
+
|
|
1372
1390
|
class ColumnMetadata
|
|
1373
1391
|
# @private
|
|
1374
1392
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2589,6 +2607,8 @@ module Google
|
|
|
2589
2607
|
class RequestOptions
|
|
2590
2608
|
# @private
|
|
2591
2609
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2610
|
+
property :client_context, as: 'clientContext', class: Google::Apis::SpannerV1::ClientContext, decorator: Google::Apis::SpannerV1::ClientContext::Representation
|
|
2611
|
+
|
|
2592
2612
|
property :priority, as: 'priority'
|
|
2593
2613
|
property :request_tag, as: 'requestTag'
|
|
2594
2614
|
property :transaction_tag, as: 'transactionTag'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-spanner_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.50.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-spanner_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.50.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-spanner_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|