google-apis-bigquery_v2 0.56.0 → 0.57.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: 96d288b73ae9414e0d7892c2b9aa8c31ca683a47d12a4375243b81ae2a75c4e7
4
- data.tar.gz: f127e06eff8aa5cc07d98ac73b37c1ddb1e1bd439eaeb4b20cf73cf6b5676dfa
3
+ metadata.gz: e1f77fe304de033da3a8270f6cf61b94ef168ed4d0bcce36b2350e4c9f9baf50
4
+ data.tar.gz: 5a54609029acc737e9af7a1175e3335c509fb6ba77c7560bc4a5df1f1968753d
5
5
  SHA512:
6
- metadata.gz: 06bcddbe313e8362eb55f3836fbf75325ee4ea5b021436cdd6872cfa617af36c18a626cd17454c8f368da73486211d14e5d5788016ccd3a823ebf5776fb8a160
7
- data.tar.gz: 223a8a49b2c7800e7379d3e3339cb5c23ea8503f0e9d82355633cfc6eabb7714d162b93437a7d87c708a52750d00a140fb9a4080ba7506720a3a23577800eb6b
6
+ metadata.gz: 79cc2a0d44f3c8a8e8ca31ed3814c9e29ab14d522a6ece9c066581e4281cbf54ebd4188a190852fe61c64aedd588cfa426a78e0228577798e20338400e31465a
7
+ data.tar.gz: b73d4fa990bec8f2981126e98f5b190d59ebb0c3f28dbb3190626ac405f94a0d643768edad9a4efd6b1ce17d8c3d5bcc134cacb8b8bf0c92ac908afbe5fe1eef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.57.0 (2023-07-23)
4
+
5
+ * Regenerated from discovery document revision 20230715
6
+
3
7
  ### v0.56.0 (2023-07-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20230708
@@ -5485,6 +5485,13 @@ module Google
5485
5485
  # @return [Array<Google::Apis::BigqueryV2::TrainingRun>]
5486
5486
  attr_accessor :training_runs
5487
5487
 
5488
+ # Output only. This field will be populated if a TRANSFORM clause was used to
5489
+ # train a model. TRANSFORM clause (if used) takes feature_columns as input and
5490
+ # outputs transform_columns. transform_columns then are used to train the model.
5491
+ # Corresponds to the JSON property `transformColumns`
5492
+ # @return [Array<Google::Apis::BigqueryV2::TransformColumn>]
5493
+ attr_accessor :transform_columns
5494
+
5488
5495
  def initialize(**args)
5489
5496
  update!(**args)
5490
5497
  end
@@ -5511,6 +5518,7 @@ module Google
5511
5518
  @optimal_trial_ids = args[:optimal_trial_ids] if args.key?(:optimal_trial_ids)
5512
5519
  @remote_model_info = args[:remote_model_info] if args.key?(:remote_model_info)
5513
5520
  @training_runs = args[:training_runs] if args.key?(:training_runs)
5521
+ @transform_columns = args[:transform_columns] if args.key?(:transform_columns)
5514
5522
  end
5515
5523
  end
5516
5524
 
@@ -9191,6 +9199,42 @@ module Google
9191
9199
  end
9192
9200
  end
9193
9201
 
9202
+ # Information about a single transform column.
9203
+ class TransformColumn
9204
+ include Google::Apis::Core::Hashable
9205
+
9206
+ # Output only. Name of the column.
9207
+ # Corresponds to the JSON property `name`
9208
+ # @return [String]
9209
+ attr_accessor :name
9210
+
9211
+ # Output only. The SQL expression used in the column transform.
9212
+ # Corresponds to the JSON property `transformSql`
9213
+ # @return [String]
9214
+ attr_accessor :transform_sql
9215
+
9216
+ # The data type of a variable such as a function argument. Examples include: *
9217
+ # INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
9218
+ # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
9219
+ # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind": "STRING"` `, `
9220
+ # "name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typeKind": "
9221
+ # DATE"` ` ` ] ` `
9222
+ # Corresponds to the JSON property `type`
9223
+ # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
9224
+ attr_accessor :type
9225
+
9226
+ def initialize(**args)
9227
+ update!(**args)
9228
+ end
9229
+
9230
+ # Update properties of this object
9231
+ def update!(**args)
9232
+ @name = args[:name] if args.key?(:name)
9233
+ @transform_sql = args[:transform_sql] if args.key?(:transform_sql)
9234
+ @type = args[:type] if args.key?(:type)
9235
+ end
9236
+ end
9237
+
9194
9238
  # This is used for defining User Defined Function (UDF) resources only when
9195
9239
  # using legacy SQL. Users of Standard SQL should leverage either DDL (e.g.
9196
9240
  # CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BigqueryV2
18
18
  # Version of the google-apis-bigquery_v2 gem
19
- GEM_VERSION = "0.56.0"
19
+ GEM_VERSION = "0.57.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230708"
25
+ REVISION = "20230715"
26
26
  end
27
27
  end
28
28
  end
@@ -1054,6 +1054,12 @@ module Google
1054
1054
  include Google::Apis::Core::JsonObjectSupport
1055
1055
  end
1056
1056
 
1057
+ class TransformColumn
1058
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1059
+
1060
+ include Google::Apis::Core::JsonObjectSupport
1061
+ end
1062
+
1057
1063
  class UserDefinedFunctionResource
1058
1064
  class Representation < Google::Apis::Core::JsonRepresentation; end
1059
1065
 
@@ -2408,6 +2414,8 @@ module Google
2408
2414
 
2409
2415
  collection :training_runs, as: 'trainingRuns', class: Google::Apis::BigqueryV2::TrainingRun, decorator: Google::Apis::BigqueryV2::TrainingRun::Representation
2410
2416
 
2417
+ collection :transform_columns, as: 'transformColumns', class: Google::Apis::BigqueryV2::TransformColumn, decorator: Google::Apis::BigqueryV2::TransformColumn::Representation
2418
+
2411
2419
  end
2412
2420
  end
2413
2421
 
@@ -3305,6 +3313,16 @@ module Google
3305
3313
  end
3306
3314
  end
3307
3315
 
3316
+ class TransformColumn
3317
+ # @private
3318
+ class Representation < Google::Apis::Core::JsonRepresentation
3319
+ property :name, as: 'name'
3320
+ property :transform_sql, as: 'transformSql'
3321
+ property :type, as: 'type', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation
3322
+
3323
+ end
3324
+ end
3325
+
3308
3326
  class UserDefinedFunctionResource
3309
3327
  # @private
3310
3328
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1158,46 +1158,6 @@ module Google
1158
1158
  execute_or_queue_command(command, &block)
1159
1159
  end
1160
1160
 
1161
- # Sets the access control policy on the specified resource. Replaces any
1162
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1163
- # PERMISSION_DENIED` errors.
1164
- # @param [String] resource
1165
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1166
- # names](https://cloud.google.com/apis/design/resource_names) for the
1167
- # appropriate value for this field.
1168
- # @param [Google::Apis::BigqueryV2::SetIamPolicyRequest] set_iam_policy_request_object
1169
- # @param [String] fields
1170
- # Selector specifying which fields to include in a partial response.
1171
- # @param [String] quota_user
1172
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1173
- # characters.
1174
- # @param [String] user_ip
1175
- # Deprecated. Please use quotaUser instead.
1176
- # @param [Google::Apis::RequestOptions] options
1177
- # Request-specific options
1178
- #
1179
- # @yield [result, err] Result & error if block supplied
1180
- # @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
1181
- # @yieldparam err [StandardError] error object if request failed
1182
- #
1183
- # @return [Google::Apis::BigqueryV2::Policy]
1184
- #
1185
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1186
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1187
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1188
- def set_row_access_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1189
- command = make_simple_command(:post, '{+resource}:setIamPolicy', options)
1190
- command.request_representation = Google::Apis::BigqueryV2::SetIamPolicyRequest::Representation
1191
- command.request_object = set_iam_policy_request_object
1192
- command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
1193
- command.response_class = Google::Apis::BigqueryV2::Policy
1194
- command.params['resource'] = resource unless resource.nil?
1195
- command.query['fields'] = fields unless fields.nil?
1196
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1197
- command.query['userIp'] = user_ip unless user_ip.nil?
1198
- execute_or_queue_command(command, &block)
1199
- end
1200
-
1201
1161
  # Returns permissions that a caller has on the specified resource. If the
1202
1162
  # resource does not exist, this will return an empty set of permissions, not a `
1203
1163
  # NOT_FOUND` error. Note: This operation is designed to be used for building
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigquery_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.56.0
4
+ version: 0.57.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: 2023-07-16 00:00:00.000000000 Z
11
+ date: 2023-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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-bigquery_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.56.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.57.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquery_v2
63
63
  post_install_message:
64
64
  rdoc_options: []