google-apis-bigqueryreservation_v1 0.46.0 → 0.47.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/bigqueryreservation_v1/classes.rb +59 -2
- data/lib/google/apis/bigqueryreservation_v1/gem_version.rb +2 -2
- data/lib/google/apis/bigqueryreservation_v1/representations.rb +29 -0
- data/lib/google/apis/bigqueryreservation_v1/service.rb +138 -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: fbb166828bc4a5fa216a35ab8f73c9b42c8b4990af160685fd61121adb19d494
|
4
|
+
data.tar.gz: d7b58c505a9f213a2956635ae56b67745de927c3ba0499f80c4ba17219e22bf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76b96c607f9c15a9fe5cc36a3891c22625d5a8a07d91154f41fc50118153d5ae4f91182cd420261817b614e4f5abc985c97db3193bfd2dabd33645924f2eef4e
|
7
|
+
data.tar.gz: 25731450cd66a41e534c6da3b6dcb6027e65dbc9f79e379452df4979d0070bc6c6df5c6ec874809a38dc46a7f98e7eeb80eba4598fb42d0b8ef35ecc77924b3d
|
data/CHANGELOG.md
CHANGED
@@ -568,6 +568,32 @@ module Google
|
|
568
568
|
end
|
569
569
|
end
|
570
570
|
|
571
|
+
# The response for ReservationService.ListReservationGroups.
|
572
|
+
class ListReservationGroupsResponse
|
573
|
+
include Google::Apis::Core::Hashable
|
574
|
+
|
575
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
576
|
+
# results in the list.
|
577
|
+
# Corresponds to the JSON property `nextPageToken`
|
578
|
+
# @return [String]
|
579
|
+
attr_accessor :next_page_token
|
580
|
+
|
581
|
+
# List of reservations visible to the user.
|
582
|
+
# Corresponds to the JSON property `reservationGroups`
|
583
|
+
# @return [Array<Google::Apis::BigqueryreservationV1::ReservationGroup>]
|
584
|
+
attr_accessor :reservation_groups
|
585
|
+
|
586
|
+
def initialize(**args)
|
587
|
+
update!(**args)
|
588
|
+
end
|
589
|
+
|
590
|
+
# Update properties of this object
|
591
|
+
def update!(**args)
|
592
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
593
|
+
@reservation_groups = args[:reservation_groups] if args.key?(:reservation_groups)
|
594
|
+
end
|
595
|
+
end
|
596
|
+
|
571
597
|
# The response for ReservationService.ListReservations.
|
572
598
|
class ListReservationsResponse
|
573
599
|
include Google::Apis::Core::Hashable
|
@@ -838,8 +864,8 @@ module Google
|
|
838
864
|
alias_method :ignore_idle_slots?, :ignore_idle_slots
|
839
865
|
|
840
866
|
# Optional. The labels associated with this reservation. You can use these to
|
841
|
-
# organize and group your reservations. You can set this property when
|
842
|
-
# or
|
867
|
+
# organize and group your reservations. You can set this property when you
|
868
|
+
# create or update a reservation.
|
843
869
|
# Corresponds to the JSON property `labels`
|
844
870
|
# @return [Hash<String,String>]
|
845
871
|
attr_accessor :labels
|
@@ -917,6 +943,14 @@ module Google
|
|
917
943
|
# @return [Google::Apis::BigqueryreservationV1::ReplicationStatus]
|
918
944
|
attr_accessor :replication_status
|
919
945
|
|
946
|
+
# Optional. The reservation group that this reservation belongs to. You can set
|
947
|
+
# this property when you create or update a reservation. Reservations do not
|
948
|
+
# need to belong to a reservation group. Format: projects/`project`/locations/`
|
949
|
+
# location`/reservationGroups/`reservation_group` or just `reservation_group`
|
950
|
+
# Corresponds to the JSON property `reservationGroup`
|
951
|
+
# @return [String]
|
952
|
+
attr_accessor :reservation_group
|
953
|
+
|
920
954
|
# Optional. The scaling mode for the reservation. If the field is present but
|
921
955
|
# max_slots is not present, requests will be rejected with error code `google.
|
922
956
|
# rpc.Code.INVALID_ARGUMENT`.
|
@@ -971,6 +1005,7 @@ module Google
|
|
971
1005
|
@original_primary_location = args[:original_primary_location] if args.key?(:original_primary_location)
|
972
1006
|
@primary_location = args[:primary_location] if args.key?(:primary_location)
|
973
1007
|
@replication_status = args[:replication_status] if args.key?(:replication_status)
|
1008
|
+
@reservation_group = args[:reservation_group] if args.key?(:reservation_group)
|
974
1009
|
@scaling_mode = args[:scaling_mode] if args.key?(:scaling_mode)
|
975
1010
|
@secondary_location = args[:secondary_location] if args.key?(:secondary_location)
|
976
1011
|
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
|
@@ -978,6 +1013,28 @@ module Google
|
|
978
1013
|
end
|
979
1014
|
end
|
980
1015
|
|
1016
|
+
# A reservation group is a container for reservations.
|
1017
|
+
class ReservationGroup
|
1018
|
+
include Google::Apis::Core::Hashable
|
1019
|
+
|
1020
|
+
# Identifier. The resource name of the reservation group, e.g., `projects/*/
|
1021
|
+
# locations/*/reservationGroups/team1-prod`. The reservation_group_id must only
|
1022
|
+
# contain lower case alphanumeric characters or dashes. It must start with a
|
1023
|
+
# letter and must not end with a dash. Its maximum length is 64 characters.
|
1024
|
+
# Corresponds to the JSON property `name`
|
1025
|
+
# @return [String]
|
1026
|
+
attr_accessor :name
|
1027
|
+
|
1028
|
+
def initialize(**args)
|
1029
|
+
update!(**args)
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
# Update properties of this object
|
1033
|
+
def update!(**args)
|
1034
|
+
@name = args[:name] if args.key?(:name)
|
1035
|
+
end
|
1036
|
+
end
|
1037
|
+
|
981
1038
|
# The response for ReservationService.SearchAllAssignments.
|
982
1039
|
class SearchAllAssignmentsResponse
|
983
1040
|
include Google::Apis::Core::Hashable
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.47.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 = "20250620"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -94,6 +94,12 @@ module Google
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
95
95
|
end
|
96
96
|
|
97
|
+
class ListReservationGroupsResponse
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
97
103
|
class ListReservationsResponse
|
98
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
105
|
|
@@ -130,6 +136,12 @@ module Google
|
|
130
136
|
include Google::Apis::Core::JsonObjectSupport
|
131
137
|
end
|
132
138
|
|
139
|
+
class ReservationGroup
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
133
145
|
class SearchAllAssignmentsResponse
|
134
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
147
|
|
@@ -300,6 +312,15 @@ module Google
|
|
300
312
|
end
|
301
313
|
end
|
302
314
|
|
315
|
+
class ListReservationGroupsResponse
|
316
|
+
# @private
|
317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
318
|
+
property :next_page_token, as: 'nextPageToken'
|
319
|
+
collection :reservation_groups, as: 'reservationGroups', class: Google::Apis::BigqueryreservationV1::ReservationGroup, decorator: Google::Apis::BigqueryreservationV1::ReservationGroup::Representation
|
320
|
+
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
303
324
|
class ListReservationsResponse
|
304
325
|
# @private
|
305
326
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -365,6 +386,7 @@ module Google
|
|
365
386
|
property :primary_location, as: 'primaryLocation'
|
366
387
|
property :replication_status, as: 'replicationStatus', class: Google::Apis::BigqueryreservationV1::ReplicationStatus, decorator: Google::Apis::BigqueryreservationV1::ReplicationStatus::Representation
|
367
388
|
|
389
|
+
property :reservation_group, as: 'reservationGroup'
|
368
390
|
property :scaling_mode, as: 'scalingMode'
|
369
391
|
property :secondary_location, as: 'secondaryLocation'
|
370
392
|
property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
|
@@ -372,6 +394,13 @@ module Google
|
|
372
394
|
end
|
373
395
|
end
|
374
396
|
|
397
|
+
class ReservationGroup
|
398
|
+
# @private
|
399
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
400
|
+
property :name, as: 'name'
|
401
|
+
end
|
402
|
+
end
|
403
|
+
|
375
404
|
class SearchAllAssignmentsResponse
|
376
405
|
# @private
|
377
406
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -495,6 +495,144 @@ module Google
|
|
495
495
|
execute_or_queue_command(command, &block)
|
496
496
|
end
|
497
497
|
|
498
|
+
# Creates a new reservation group.
|
499
|
+
# @param [String] parent
|
500
|
+
# Required. Project, location. E.g., `projects/myproject/locations/US`
|
501
|
+
# @param [Google::Apis::BigqueryreservationV1::ReservationGroup] reservation_group_object
|
502
|
+
# @param [String] reservation_group_id
|
503
|
+
# Required. The reservation group ID. It must only contain lower case
|
504
|
+
# alphanumeric characters or dashes. It must start with a letter and must not
|
505
|
+
# end with a dash. Its maximum length is 64 characters.
|
506
|
+
# @param [String] fields
|
507
|
+
# Selector specifying which fields to include in a partial response.
|
508
|
+
# @param [String] quota_user
|
509
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
510
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
511
|
+
# @param [Google::Apis::RequestOptions] options
|
512
|
+
# Request-specific options
|
513
|
+
#
|
514
|
+
# @yield [result, err] Result & error if block supplied
|
515
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1::ReservationGroup] parsed result object
|
516
|
+
# @yieldparam err [StandardError] error object if request failed
|
517
|
+
#
|
518
|
+
# @return [Google::Apis::BigqueryreservationV1::ReservationGroup]
|
519
|
+
#
|
520
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
521
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
522
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
523
|
+
def create_project_location_reservation_group(parent, reservation_group_object = nil, reservation_group_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
524
|
+
command = make_simple_command(:post, 'v1/{+parent}/reservationGroups', options)
|
525
|
+
command.request_representation = Google::Apis::BigqueryreservationV1::ReservationGroup::Representation
|
526
|
+
command.request_object = reservation_group_object
|
527
|
+
command.response_representation = Google::Apis::BigqueryreservationV1::ReservationGroup::Representation
|
528
|
+
command.response_class = Google::Apis::BigqueryreservationV1::ReservationGroup
|
529
|
+
command.params['parent'] = parent unless parent.nil?
|
530
|
+
command.query['reservationGroupId'] = reservation_group_id unless reservation_group_id.nil?
|
531
|
+
command.query['fields'] = fields unless fields.nil?
|
532
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
533
|
+
execute_or_queue_command(command, &block)
|
534
|
+
end
|
535
|
+
|
536
|
+
# Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when
|
537
|
+
# reservation has assignments.
|
538
|
+
# @param [String] name
|
539
|
+
# Required. Resource name of the reservation group to retrieve. E.g., `projects/
|
540
|
+
# myproject/locations/US/reservationGroups/team1-prod`
|
541
|
+
# @param [String] fields
|
542
|
+
# Selector specifying which fields to include in a partial response.
|
543
|
+
# @param [String] quota_user
|
544
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
545
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
546
|
+
# @param [Google::Apis::RequestOptions] options
|
547
|
+
# Request-specific options
|
548
|
+
#
|
549
|
+
# @yield [result, err] Result & error if block supplied
|
550
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1::Empty] parsed result object
|
551
|
+
# @yieldparam err [StandardError] error object if request failed
|
552
|
+
#
|
553
|
+
# @return [Google::Apis::BigqueryreservationV1::Empty]
|
554
|
+
#
|
555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
558
|
+
def delete_project_location_reservation_group(name, fields: nil, quota_user: nil, options: nil, &block)
|
559
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
560
|
+
command.response_representation = Google::Apis::BigqueryreservationV1::Empty::Representation
|
561
|
+
command.response_class = Google::Apis::BigqueryreservationV1::Empty
|
562
|
+
command.params['name'] = name unless name.nil?
|
563
|
+
command.query['fields'] = fields unless fields.nil?
|
564
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
565
|
+
execute_or_queue_command(command, &block)
|
566
|
+
end
|
567
|
+
|
568
|
+
# Returns information about the reservation group.
|
569
|
+
# @param [String] name
|
570
|
+
# Required. Resource name of the reservation group to retrieve. E.g., `projects/
|
571
|
+
# myproject/locations/US/reservationGroups/team1-prod`
|
572
|
+
# @param [String] fields
|
573
|
+
# Selector specifying which fields to include in a partial response.
|
574
|
+
# @param [String] quota_user
|
575
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
576
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
577
|
+
# @param [Google::Apis::RequestOptions] options
|
578
|
+
# Request-specific options
|
579
|
+
#
|
580
|
+
# @yield [result, err] Result & error if block supplied
|
581
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1::ReservationGroup] parsed result object
|
582
|
+
# @yieldparam err [StandardError] error object if request failed
|
583
|
+
#
|
584
|
+
# @return [Google::Apis::BigqueryreservationV1::ReservationGroup]
|
585
|
+
#
|
586
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
587
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
588
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
589
|
+
def get_project_location_reservation_group(name, fields: nil, quota_user: nil, options: nil, &block)
|
590
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
591
|
+
command.response_representation = Google::Apis::BigqueryreservationV1::ReservationGroup::Representation
|
592
|
+
command.response_class = Google::Apis::BigqueryreservationV1::ReservationGroup
|
593
|
+
command.params['name'] = name unless name.nil?
|
594
|
+
command.query['fields'] = fields unless fields.nil?
|
595
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
596
|
+
execute_or_queue_command(command, &block)
|
597
|
+
end
|
598
|
+
|
599
|
+
# Lists all the reservation groups for the project in the specified location.
|
600
|
+
# @param [String] parent
|
601
|
+
# Required. The parent resource name containing project and location, e.g.: `
|
602
|
+
# projects/myproject/locations/US`
|
603
|
+
# @param [Fixnum] page_size
|
604
|
+
# The maximum number of items to return per page.
|
605
|
+
# @param [String] page_token
|
606
|
+
# The next_page_token value returned from a previous List request, if any.
|
607
|
+
# @param [String] fields
|
608
|
+
# Selector specifying which fields to include in a partial response.
|
609
|
+
# @param [String] quota_user
|
610
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
611
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
612
|
+
# @param [Google::Apis::RequestOptions] options
|
613
|
+
# Request-specific options
|
614
|
+
#
|
615
|
+
# @yield [result, err] Result & error if block supplied
|
616
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1::ListReservationGroupsResponse] parsed result object
|
617
|
+
# @yieldparam err [StandardError] error object if request failed
|
618
|
+
#
|
619
|
+
# @return [Google::Apis::BigqueryreservationV1::ListReservationGroupsResponse]
|
620
|
+
#
|
621
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
622
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
623
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
624
|
+
def list_project_location_reservation_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
625
|
+
command = make_simple_command(:get, 'v1/{+parent}/reservationGroups', options)
|
626
|
+
command.response_representation = Google::Apis::BigqueryreservationV1::ListReservationGroupsResponse::Representation
|
627
|
+
command.response_class = Google::Apis::BigqueryreservationV1::ListReservationGroupsResponse
|
628
|
+
command.params['parent'] = parent unless parent.nil?
|
629
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
630
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
631
|
+
command.query['fields'] = fields unless fields.nil?
|
632
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
633
|
+
execute_or_queue_command(command, &block)
|
634
|
+
end
|
635
|
+
|
498
636
|
# Creates a new reservation resource.
|
499
637
|
# @param [String] parent
|
500
638
|
# Required. Project, location. E.g., `projects/myproject/locations/US`
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-bigqueryreservation_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.47.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-bigqueryreservation_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.47.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigqueryreservation_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|