google-apis-bigqueryreservation_v1 0.21.0 → 0.23.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45dd6f694c658f795808edb64b2b03cb3a8df5ba1e0cfc13c74b82567ac9f0dd
4
- data.tar.gz: 2df223d271c654fb8e8f1eeea12482f04b1392846da57969654608f52fa7db1f
3
+ metadata.gz: 2553bf42194a9acdecec97517f61baa2943a0e695881f1a21baa5170d8a202fd
4
+ data.tar.gz: dd6172df7bb1a7cff57d7a912e46091e3c6e559b8d94244fadcc8fd45b8993d2
5
5
  SHA512:
6
- metadata.gz: 222c69ffda50ad1202fd470c04af6e4a6d93b9ebc08e42cebce20c11c7b6101aeabf83736d1bc3a5734f03a2c6a715ae2591fdc228fe3591e2e3f6fcbeb7d306
7
- data.tar.gz: 6e4e5b75216cb057d46850052f8387a4539cdb5d959e036c62448a72ff9a5c370d3c2fbf4676706b4811ab6d1b695d597df347bed66f947ace70602c8d7be296
6
+ metadata.gz: ecbd6826fddaa9097e272b1af1ecc6ad65d5bb83a9a6a4670e2ac992194e88f1cb8bc644e282b945a597f299a320a04f1729d34f2fc7c955dc690d0e31f3219c
7
+ data.tar.gz: f5d0c9883fc303c780015540175943ca19fbf0b1245f79a4cdd7f5c5f48b7ac0933d35a5ff57f4514beeabd5e609a9ff074bcc752bef3f98ff15af46ffa9ce6f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1
2
2
 
3
+ ### v0.23.0 (2023-01-29)
4
+
5
+ * Regenerated from discovery document revision 20230121
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.22.0 (2022-10-27)
9
+
10
+ * Regenerated from discovery document revision 20221016
11
+ * Regenerated using generator version 0.11.0
12
+
3
13
  ### v0.21.0 (2022-09-21)
4
14
 
5
15
  * Regenerated from discovery document revision 20220819
@@ -64,6 +64,42 @@ module Google
64
64
  end
65
65
  end
66
66
 
67
+ # Auto scaling settings. max_slots and budget are mutually exclusive. If
68
+ # max_slots is set: * The system will create a dedicated `FLEX` capacity
69
+ # commitment to hold the slots for auto-scale. Users won't be able to manage it,
70
+ # to avoid conflicts. * Scale-up will happen if there are always pending tasks
71
+ # for the past 10 minutes. * Scale-down will happen, if the system detects that
72
+ # scale-up won't be triggered again. If budget is set: * The system will try to
73
+ # use more slots immediately. * At a particular moment, the number of slots
74
+ # scaled is determined by the sytsem, based on the remaining budget and system
75
+ # limit. But overall the usage will conform to the budget if there is enough
76
+ # traffic. * The system will round the slot usage every minute. **Note** this is
77
+ # an alpha feature.
78
+ class Autoscale
79
+ include Google::Apis::Core::Hashable
80
+
81
+ # Output only. The slot capacity added to this reservation when autoscale
82
+ # happens. Will be between [0, max_slots].
83
+ # Corresponds to the JSON property `currentSlots`
84
+ # @return [Fixnum]
85
+ attr_accessor :current_slots
86
+
87
+ # Number of slots to be scaled when needed.
88
+ # Corresponds to the JSON property `maxSlots`
89
+ # @return [Fixnum]
90
+ attr_accessor :max_slots
91
+
92
+ def initialize(**args)
93
+ update!(**args)
94
+ end
95
+
96
+ # Update properties of this object
97
+ def update!(**args)
98
+ @current_slots = args[:current_slots] if args.key?(:current_slots)
99
+ @max_slots = args[:max_slots] if args.key?(:max_slots)
100
+ end
101
+ end
102
+
67
103
  # Represents a BI Reservation.
68
104
  class BiReservation
69
105
  include Google::Apis::Core::Hashable
@@ -123,6 +159,11 @@ module Google
123
159
  # @return [String]
124
160
  attr_accessor :commitment_start_time
125
161
 
162
+ # Edition of the capacity commitment.
163
+ # Corresponds to the JSON property `edition`
164
+ # @return [String]
165
+ attr_accessor :edition
166
+
126
167
  # The `Status` type defines a logical error model that is suitable for different
127
168
  # programming environments, including REST APIs and RPC APIs. It is used by [
128
169
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -181,6 +222,7 @@ module Google
181
222
  def update!(**args)
182
223
  @commitment_end_time = args[:commitment_end_time] if args.key?(:commitment_end_time)
183
224
  @commitment_start_time = args[:commitment_start_time] if args.key?(:commitment_start_time)
225
+ @edition = args[:edition] if args.key?(:edition)
184
226
  @failure_status = args[:failure_status] if args.key?(:failure_status)
185
227
  @multi_region_auxiliary = args[:multi_region_auxiliary] if args.key?(:multi_region_auxiliary)
186
228
  @name = args[:name] if args.key?(:name)
@@ -334,10 +376,27 @@ module Google
334
376
  class Reservation
335
377
  include Google::Apis::Core::Hashable
336
378
 
337
- # Maximum number of queries that are allowed to run concurrently in this
338
- # reservation. This is a soft limit due to asynchronous nature of the system and
339
- # various optimizations for small queries. Default value is 0 which means that
340
- # concurrency will be automatically set based on the reservation size.
379
+ # Auto scaling settings. max_slots and budget are mutually exclusive. If
380
+ # max_slots is set: * The system will create a dedicated `FLEX` capacity
381
+ # commitment to hold the slots for auto-scale. Users won't be able to manage it,
382
+ # to avoid conflicts. * Scale-up will happen if there are always pending tasks
383
+ # for the past 10 minutes. * Scale-down will happen, if the system detects that
384
+ # scale-up won't be triggered again. If budget is set: * The system will try to
385
+ # use more slots immediately. * At a particular moment, the number of slots
386
+ # scaled is determined by the sytsem, based on the remaining budget and system
387
+ # limit. But overall the usage will conform to the budget if there is enough
388
+ # traffic. * The system will round the slot usage every minute. **Note** this is
389
+ # an alpha feature.
390
+ # Corresponds to the JSON property `autoscale`
391
+ # @return [Google::Apis::BigqueryreservationV1::Autoscale]
392
+ attr_accessor :autoscale
393
+
394
+ # Job concurrency target which sets a soft upper bound on the number of jobs
395
+ # that can run concurrently in this reservation. This is a soft target due to
396
+ # asynchronous nature of the system and various optimizations for small queries.
397
+ # Default value is 0 which means that concurrency target will be automatically
398
+ # computed by the system. NOTE: this field is exposed as `target_job_concurrency`
399
+ # in the Information Schema, DDL and BQ CLI.
341
400
  # Corresponds to the JSON property `concurrency`
342
401
  # @return [Fixnum]
343
402
  attr_accessor :concurrency
@@ -347,6 +406,11 @@ module Google
347
406
  # @return [String]
348
407
  attr_accessor :creation_time
349
408
 
409
+ # Edition of the reservation.
410
+ # Corresponds to the JSON property `edition`
411
+ # @return [String]
412
+ attr_accessor :edition
413
+
350
414
  # If false, any query or pipeline job using this reservation will use idle slots
351
415
  # from other reservations within the same admin project. If true, a query or
352
416
  # pipeline job using this reservation will execute with the slot capacity
@@ -397,8 +461,10 @@ module Google
397
461
 
398
462
  # Update properties of this object
399
463
  def update!(**args)
464
+ @autoscale = args[:autoscale] if args.key?(:autoscale)
400
465
  @concurrency = args[:concurrency] if args.key?(:concurrency)
401
466
  @creation_time = args[:creation_time] if args.key?(:creation_time)
467
+ @edition = args[:edition] if args.key?(:edition)
402
468
  @ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
403
469
  @multi_region_auxiliary = args[:multi_region_auxiliary] if args.key?(:multi_region_auxiliary)
404
470
  @name = args[:name] if args.key?(:name)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BigqueryreservationV1
18
18
  # Version of the google-apis-bigqueryreservation_v1 gem
19
- GEM_VERSION = "0.21.0"
19
+ GEM_VERSION = "0.23.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220819"
25
+ REVISION = "20230121"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class Autoscale
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class BiReservation
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -128,6 +134,14 @@ module Google
128
134
  end
129
135
  end
130
136
 
137
+ class Autoscale
138
+ # @private
139
+ class Representation < Google::Apis::Core::JsonRepresentation
140
+ property :current_slots, :numeric_string => true, as: 'currentSlots'
141
+ property :max_slots, :numeric_string => true, as: 'maxSlots'
142
+ end
143
+ end
144
+
131
145
  class BiReservation
132
146
  # @private
133
147
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -144,6 +158,7 @@ module Google
144
158
  class Representation < Google::Apis::Core::JsonRepresentation
145
159
  property :commitment_end_time, as: 'commitmentEndTime'
146
160
  property :commitment_start_time, as: 'commitmentStartTime'
161
+ property :edition, as: 'edition'
147
162
  property :failure_status, as: 'failureStatus', class: Google::Apis::BigqueryreservationV1::Status, decorator: Google::Apis::BigqueryreservationV1::Status::Representation
148
163
 
149
164
  property :multi_region_auxiliary, as: 'multiRegionAuxiliary'
@@ -205,8 +220,11 @@ module Google
205
220
  class Reservation
206
221
  # @private
207
222
  class Representation < Google::Apis::Core::JsonRepresentation
223
+ property :autoscale, as: 'autoscale', class: Google::Apis::BigqueryreservationV1::Autoscale, decorator: Google::Apis::BigqueryreservationV1::Autoscale::Representation
224
+
208
225
  property :concurrency, :numeric_string => true, as: 'concurrency'
209
226
  property :creation_time, as: 'creationTime'
227
+ property :edition, as: 'edition'
210
228
  property :ignore_idle_slots, as: 'ignoreIdleSlots'
211
229
  property :multi_region_auxiliary, as: 'multiRegionAuxiliary'
212
230
  property :name, as: 'name'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigqueryreservation_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-26 00:00:00.000000000 Z
11
+ date: 2023-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: 0.9.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.0
29
+ version: 0.9.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigqueryreservation_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.23.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigqueryreservation_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for BigQuery Reservation API V1