google-apis-bigqueryreservation_v1 0.44.0 → 0.45.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: 154c880d5f9e8ddbd5cd5e1571d4e1f4b921f8d4d2466d80adc8791829e064a6
4
- data.tar.gz: 25137aceae030a3767903e040b18d902bfa74c505e2bca316b83a889afd0f580
3
+ metadata.gz: 4f7031bc7ac5402ea0a55cbdd10393371dc4acbf9e834075b6234a98d86f16e7
4
+ data.tar.gz: a42c05fad400b119d86345af597ef58d5ecf6facbdc24d92c7c10b86738aca29
5
5
  SHA512:
6
- metadata.gz: be6276a2baa2201dbf5a8be6e7412491419a5a81d0e2cca826f4e549db086d7fb83ad2f0d2bd02908504239d5650c298184b84c61cfba31c42ca3005da85b931
7
- data.tar.gz: 20bf29e5469235697f129304b43d2529caafab2552da38113d286bd1704f73e99283a04c083ecc18219b58edcb083733b1366add23001e32fd3f35bdcbb03e0a
6
+ metadata.gz: 742e35d44393c29b351b6bef577da9745420a25a6c8cb2d44026df4f20425940a1dc447052a49e5966386d529d03da883a345e14be318216b8f0f2e518851882
7
+ data.tar.gz: 6092e26f45fabba8a7c40aea1f95a1d2a0acc906ee207f2bbb76165731c34afe0850fbcce3bd6f530a1f8661fb4f8d8b943537706eb1b139cf79638216d93077
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1
2
2
 
3
+ ### v0.45.0 (2025-05-25)
4
+
5
+ * Regenerated from discovery document revision 20250518
6
+ * Regenerated using generator version 0.18.0
7
+
3
8
  ### v0.44.0 (2025-05-18)
4
9
 
5
10
  * Regenerated from discovery document revision 20250503
@@ -501,12 +501,18 @@ module Google
501
501
  class FailoverReservationRequest
502
502
  include Google::Apis::Core::Hashable
503
503
 
504
+ # Optional. failover mode for the failover operation.
505
+ # Corresponds to the JSON property `failoverMode`
506
+ # @return [String]
507
+ attr_accessor :failover_mode
508
+
504
509
  def initialize(**args)
505
510
  update!(**args)
506
511
  end
507
512
 
508
513
  # Update properties of this object
509
514
  def update!(**args)
515
+ @failover_mode = args[:failover_mode] if args.key?(:failover_mode)
510
516
  end
511
517
  end
512
518
 
@@ -772,6 +778,14 @@ module Google
772
778
  # @return [String]
773
779
  attr_accessor :last_replication_time
774
780
 
781
+ # Output only. The time at which a soft failover for the reservation and its
782
+ # associated datasets was initiated. After this field is set, all subsequent
783
+ # changes to the reservation will be rejected unless a hard failover overrides
784
+ # this operation. This field will be cleared once the failover is complete.
785
+ # Corresponds to the JSON property `softFailoverStartTime`
786
+ # @return [String]
787
+ attr_accessor :soft_failover_start_time
788
+
775
789
  def initialize(**args)
776
790
  update!(**args)
777
791
  end
@@ -781,6 +795,7 @@ module Google
781
795
  @error = args[:error] if args.key?(:error)
782
796
  @last_error_time = args[:last_error_time] if args.key?(:last_error_time)
783
797
  @last_replication_time = args[:last_replication_time] if args.key?(:last_replication_time)
798
+ @soft_failover_start_time = args[:soft_failover_start_time] if args.key?(:soft_failover_start_time)
784
799
  end
785
800
  end
786
801
 
@@ -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.44.0"
19
+ GEM_VERSION = "0.45.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250503"
25
+ REVISION = "20250518"
26
26
  end
27
27
  end
28
28
  end
@@ -278,6 +278,7 @@ module Google
278
278
  class FailoverReservationRequest
279
279
  # @private
280
280
  class Representation < Google::Apis::Core::JsonRepresentation
281
+ property :failover_mode, as: 'failoverMode'
281
282
  end
282
283
  end
283
284
 
@@ -343,6 +344,7 @@ module Google
343
344
 
344
345
  property :last_error_time, as: 'lastErrorTime'
345
346
  property :last_replication_time, as: 'lastReplicationTime'
347
+ property :soft_failover_start_time, as: 'softFailoverStartTime'
346
348
  end
347
349
  end
348
350
 
@@ -637,9 +637,9 @@ module Google
637
637
  # Gets the access control policy for a resource. May return: * A`NOT_FOUND`
638
638
  # error if the resource doesn't exist or you don't have the permission to view
639
639
  # it. * An empty policy if the resource exists but doesn't have a set policy.
640
- # Supported resources are: - Reservations To call this method, you must have the
641
- # following Google IAM permissions: - `bigqueryreservation.reservations.
642
- # getIamPolicy` to get policies on reservations.
640
+ # Supported resources are: - Reservations - ReservationAssignments To call this
641
+ # method, you must have the following Google IAM permissions: - `
642
+ # bigqueryreservation.reservations.getIamPolicy` to get policies on reservations.
643
643
  # @param [String] resource
644
644
  # REQUIRED: The resource for which the policy is being requested. See [Resource
645
645
  # names](https://cloud.google.com/apis/design/resource_names) for the
@@ -930,6 +930,55 @@ module Google
930
930
  execute_or_queue_command(command, &block)
931
931
  end
932
932
 
933
+ # Gets the access control policy for a resource. May return: * A`NOT_FOUND`
934
+ # error if the resource doesn't exist or you don't have the permission to view
935
+ # it. * An empty policy if the resource exists but doesn't have a set policy.
936
+ # Supported resources are: - Reservations - ReservationAssignments To call this
937
+ # method, you must have the following Google IAM permissions: - `
938
+ # bigqueryreservation.reservations.getIamPolicy` to get policies on reservations.
939
+ # @param [String] resource
940
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
941
+ # names](https://cloud.google.com/apis/design/resource_names) for the
942
+ # appropriate value for this field.
943
+ # @param [Fixnum] options_requested_policy_version
944
+ # Optional. The maximum policy version that will be used to format the policy.
945
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
946
+ # rejected. Requests for policies with any conditional role bindings must
947
+ # specify version 3. Policies with no conditional role bindings may specify any
948
+ # valid value or leave the field unset. The policy in the response might use the
949
+ # policy version that you specified, or it might use a lower policy version. For
950
+ # example, if you specify version 3, but the policy has no conditional role
951
+ # bindings, the response uses version 1. To learn which resources support
952
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
953
+ # google.com/iam/help/conditions/resource-policies).
954
+ # @param [String] fields
955
+ # Selector specifying which fields to include in a partial response.
956
+ # @param [String] quota_user
957
+ # Available to use for quota purposes for server-side applications. Can be any
958
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
959
+ # @param [Google::Apis::RequestOptions] options
960
+ # Request-specific options
961
+ #
962
+ # @yield [result, err] Result & error if block supplied
963
+ # @yieldparam result [Google::Apis::BigqueryreservationV1::Policy] parsed result object
964
+ # @yieldparam err [StandardError] error object if request failed
965
+ #
966
+ # @return [Google::Apis::BigqueryreservationV1::Policy]
967
+ #
968
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
969
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
970
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
971
+ def get_project_location_reservation_assignment_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
972
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
973
+ command.response_representation = Google::Apis::BigqueryreservationV1::Policy::Representation
974
+ command.response_class = Google::Apis::BigqueryreservationV1::Policy
975
+ command.params['resource'] = resource unless resource.nil?
976
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
977
+ command.query['fields'] = fields unless fields.nil?
978
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
979
+ execute_or_queue_command(command, &block)
980
+ end
981
+
933
982
  # Lists assignments. Only explicitly created assignments will be returned.
934
983
  # Example: * Organization `organizationA` contains two projects, `project1` and `
935
984
  # project2`. * Reservation `res1` exists and was created previously. *
@@ -1050,6 +1099,81 @@ module Google
1050
1099
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1051
1100
  execute_or_queue_command(command, &block)
1052
1101
  end
1102
+
1103
+ # Sets an access control policy for a resource. Replaces any existing policy.
1104
+ # Supported resources are: - Reservations To call this method, you must have the
1105
+ # following Google IAM permissions: - `bigqueryreservation.reservations.
1106
+ # setIamPolicy` to set policies on reservations.
1107
+ # @param [String] resource
1108
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1109
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1110
+ # appropriate value for this field.
1111
+ # @param [Google::Apis::BigqueryreservationV1::SetIamPolicyRequest] set_iam_policy_request_object
1112
+ # @param [String] fields
1113
+ # Selector specifying which fields to include in a partial response.
1114
+ # @param [String] quota_user
1115
+ # Available to use for quota purposes for server-side applications. Can be any
1116
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1117
+ # @param [Google::Apis::RequestOptions] options
1118
+ # Request-specific options
1119
+ #
1120
+ # @yield [result, err] Result & error if block supplied
1121
+ # @yieldparam result [Google::Apis::BigqueryreservationV1::Policy] parsed result object
1122
+ # @yieldparam err [StandardError] error object if request failed
1123
+ #
1124
+ # @return [Google::Apis::BigqueryreservationV1::Policy]
1125
+ #
1126
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1127
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1128
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1129
+ def set_assignment_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1130
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1131
+ command.request_representation = Google::Apis::BigqueryreservationV1::SetIamPolicyRequest::Representation
1132
+ command.request_object = set_iam_policy_request_object
1133
+ command.response_representation = Google::Apis::BigqueryreservationV1::Policy::Representation
1134
+ command.response_class = Google::Apis::BigqueryreservationV1::Policy
1135
+ command.params['resource'] = resource unless resource.nil?
1136
+ command.query['fields'] = fields unless fields.nil?
1137
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1138
+ execute_or_queue_command(command, &block)
1139
+ end
1140
+
1141
+ # Gets your permissions on a resource. Returns an empty set of permissions if
1142
+ # the resource doesn't exist. Supported resources are: - Reservations No Google
1143
+ # IAM permissions are required to call this method.
1144
+ # @param [String] resource
1145
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1146
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1147
+ # appropriate value for this field.
1148
+ # @param [Google::Apis::BigqueryreservationV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1149
+ # @param [String] fields
1150
+ # Selector specifying which fields to include in a partial response.
1151
+ # @param [String] quota_user
1152
+ # Available to use for quota purposes for server-side applications. Can be any
1153
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1154
+ # @param [Google::Apis::RequestOptions] options
1155
+ # Request-specific options
1156
+ #
1157
+ # @yield [result, err] Result & error if block supplied
1158
+ # @yieldparam result [Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse] parsed result object
1159
+ # @yieldparam err [StandardError] error object if request failed
1160
+ #
1161
+ # @return [Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse]
1162
+ #
1163
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1164
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1165
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1166
+ def test_assignment_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1167
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1168
+ command.request_representation = Google::Apis::BigqueryreservationV1::TestIamPermissionsRequest::Representation
1169
+ command.request_object = test_iam_permissions_request_object
1170
+ command.response_representation = Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse::Representation
1171
+ command.response_class = Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse
1172
+ command.params['resource'] = resource unless resource.nil?
1173
+ command.query['fields'] = fields unless fields.nil?
1174
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1175
+ execute_or_queue_command(command, &block)
1176
+ end
1053
1177
 
1054
1178
  protected
1055
1179
 
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.44.0
4
+ version: 0.45.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.44.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.45.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:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for BigQuery Reservation API V1
79
79
  test_files: []