google-apis-bigquery_v2 0.20.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50d2d62edad7bb96cdef176c5edaed244ff60db9f67f0b885f2a2800cbeb1558
4
- data.tar.gz: 9753b1540aef425efd596833ceb10ff07a18726f13b4cac70848a3057967bd1a
3
+ metadata.gz: a58fc625e6c38d6d6585968438e0d6d98ce4f7f97d6e9b31ef23d99ee0d1df83
4
+ data.tar.gz: aaf2d6c6f8e75d187da1cc53428fcec482bd2dd48fbef145c871cad9c5d81918
5
5
  SHA512:
6
- metadata.gz: bb110009b319749e04324fe622192ac66b3500767da2240872a798457fce614dd74c29e2af3a3a8e38f7edc6d3467b0393ec663a007f5f9632e869b804a74f47
7
- data.tar.gz: 6e5dcdca7dd2f9af3b219663ca2f165ec602ec3815ca622bb09ea1dde3990921b5535bbbdaeba188329bfdfd39ed16c585aa0f87dd23a1bb7cdeab9d68d3a00b
6
+ metadata.gz: c84720ed5913afbb95aec62a880751a41c2a30ff769bae43f58cf0a673456191dcc03180fddd1b256dbc382361826eaed72bac39d31ac44ae6d8969a9aff310c
7
+ data.tar.gz: 0a400329d247f92049089f5d198dbe7ae1ea789e403048a7a7dac954b609d6f1519aca8ca31fb16c9ecc27331b0747154dd70743c90593a134cc17030b808601
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.24.0 (2022-01-27)
4
+
5
+ * Regenerated from discovery document revision 20220123
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.23.0 (2021-12-14)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.22.0 (2021-12-04)
13
+
14
+ * Regenerated from discovery document revision 20211129
15
+
16
+ ### v0.21.0 (2021-11-14)
17
+
18
+ * Regenerated from discovery document revision 20211106
19
+
3
20
  ### v0.20.0 (2021-10-22)
4
21
 
5
22
  * Regenerated from discovery document revision 20211017
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/bigquery_v2"
51
51
  client = Google::Apis::BigqueryV2::BigqueryService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -97,10 +97,12 @@ module Google
97
97
  # @return [String]
98
98
  attr_accessor :argument_kind
99
99
 
100
- # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind=
101
- # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: `
102
- # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"``
103
- # , `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` ]``
100
+ # The data type of a variable such as a function argument. Examples include: *
101
+ # INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
102
+ # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
103
+ # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind: "STRING"` `, ` "
104
+ # name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typekind": "
105
+ # DATE"` ` ` ] ` `
104
106
  # Corresponds to the JSON property `dataType`
105
107
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
106
108
  attr_accessor :data_type
@@ -1615,6 +1617,11 @@ module Google
1615
1617
  # @return [String]
1616
1618
  attr_accessor :self_link
1617
1619
 
1620
+ # [Optional]The tags associated with this dataset. Tag keys are globally unique.
1621
+ # Corresponds to the JSON property `tags`
1622
+ # @return [Array<Google::Apis::BigqueryV2::Dataset::Tag>]
1623
+ attr_accessor :tags
1624
+
1618
1625
  def initialize(**args)
1619
1626
  update!(**args)
1620
1627
  end
@@ -1639,6 +1646,7 @@ module Google
1639
1646
  @location = args[:location] if args.key?(:location)
1640
1647
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
1641
1648
  @self_link = args[:self_link] if args.key?(:self_link)
1649
+ @tags = args[:tags] if args.key?(:tags)
1642
1650
  end
1643
1651
 
1644
1652
  #
@@ -1733,6 +1741,32 @@ module Google
1733
1741
  @view = args[:view] if args.key?(:view)
1734
1742
  end
1735
1743
  end
1744
+
1745
+ #
1746
+ class Tag
1747
+ include Google::Apis::Core::Hashable
1748
+
1749
+ # [Required] The namespaced friendly name of the tag key, e.g. "12345/
1750
+ # environment" where 12345 is org id.
1751
+ # Corresponds to the JSON property `tagKey`
1752
+ # @return [String]
1753
+ attr_accessor :tag_key
1754
+
1755
+ # [Required] Friendly short name of the tag value, e.g. "production".
1756
+ # Corresponds to the JSON property `tagValue`
1757
+ # @return [String]
1758
+ attr_accessor :tag_value
1759
+
1760
+ def initialize(**args)
1761
+ update!(**args)
1762
+ end
1763
+
1764
+ # Update properties of this object
1765
+ def update!(**args)
1766
+ @tag_key = args[:tag_key] if args.key?(:tag_key)
1767
+ @tag_value = args[:tag_value] if args.key?(:tag_value)
1768
+ end
1769
+ end
1736
1770
  end
1737
1771
 
1738
1772
  #
@@ -1746,7 +1780,7 @@ module Google
1746
1780
 
1747
1781
  #
1748
1782
  # Corresponds to the JSON property `target_types`
1749
- # @return [Array<Google::Apis::BigqueryV2::DatasetAccessEntry::TargetType>]
1783
+ # @return [Array<String>]
1750
1784
  attr_accessor :target_types
1751
1785
 
1752
1786
  def initialize(**args)
@@ -1758,27 +1792,6 @@ module Google
1758
1792
  @dataset = args[:dataset] if args.key?(:dataset)
1759
1793
  @target_types = args[:target_types] if args.key?(:target_types)
1760
1794
  end
1761
-
1762
- #
1763
- class TargetType
1764
- include Google::Apis::Core::Hashable
1765
-
1766
- # [Required] Which resources in the dataset this entry applies to. Currently,
1767
- # only views are supported, but additional target types may be added in the
1768
- # future. Possible values: VIEWS: This entry applies to all views in the dataset.
1769
- # Corresponds to the JSON property `targetType`
1770
- # @return [String]
1771
- attr_accessor :target_type
1772
-
1773
- def initialize(**args)
1774
- update!(**args)
1775
- end
1776
-
1777
- # Update properties of this object
1778
- def update!(**args)
1779
- @target_type = args[:target_type] if args.key?(:target_type)
1780
- end
1781
- end
1782
1795
  end
1783
1796
 
1784
1797
  #
@@ -1912,14 +1925,7 @@ module Google
1912
1925
  # @return [String]
1913
1926
  attr_accessor :description
1914
1927
 
1915
- # [Optional] The destination table expiration time. If this field is set: For a
1916
- # new table, it will set the table's expiration time (even if there is a dataset
1917
- # level default table expiration time). For an existing table, it will update
1918
- # the table's expiration time. If this field is not set: For a new table, if
1919
- # dataset level default table expiration time is present, that will be applied.
1920
- # For an existing table, no change is made to the table's expiration time.
1921
- # Additionally this field is only applied when data is written to an empty table
1922
- # (WRITE_EMPTY) or data is overwritten to a table (WRITE_TRUNCATE).
1928
+ # [Internal] This field is for Google internal use only.
1923
1929
  # Corresponds to the JSON property `expirationTime`
1924
1930
  # @return [DateTime]
1925
1931
  attr_accessor :expiration_time
@@ -2597,13 +2603,16 @@ module Google
2597
2603
  class GetPolicyOptions
2598
2604
  include Google::Apis::Core::Hashable
2599
2605
 
2600
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
2601
- # 3. Requests specifying an invalid value will be rejected. Requests for
2602
- # policies with any conditional bindings must specify version 3. Policies
2603
- # without any conditional bindings may specify any valid value or leave the
2604
- # field unset. To learn which resources support conditions in their IAM policies,
2605
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2606
- # resource-policies).
2606
+ # Optional. The maximum policy version that will be used to format the policy.
2607
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2608
+ # rejected. Requests for policies with any conditional role bindings must
2609
+ # specify version 3. Policies with no conditional role bindings may specify any
2610
+ # valid value or leave the field unset. The policy in the response might use the
2611
+ # policy version that you specified, or it might use a lower policy version. For
2612
+ # example, if you specify version 3, but the policy has no conditional role
2613
+ # bindings, the response uses version 1. To learn which resources support
2614
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2615
+ # google.com/iam/help/conditions/resource-policies).
2607
2616
  # Corresponds to the JSON property `requestedPolicyVersion`
2608
2617
  # @return [Fixnum]
2609
2618
  attr_accessor :requested_policy_version
@@ -5672,10 +5681,12 @@ module Google
5672
5681
  # @return [Google::Apis::BigqueryV2::StandardSqlTableType]
5673
5682
  attr_accessor :return_table_type
5674
5683
 
5675
- # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind=
5676
- # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: `
5677
- # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"``
5678
- # , `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` ]``
5684
+ # The data type of a variable such as a function argument. Examples include: *
5685
+ # INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
5686
+ # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
5687
+ # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind: "STRING"` `, ` "
5688
+ # name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typekind": "
5689
+ # DATE"` ` ` ] ` `
5679
5690
  # Corresponds to the JSON property `returnType`
5680
5691
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
5681
5692
  attr_accessor :return_type
@@ -6064,17 +6075,21 @@ module Google
6064
6075
  end
6065
6076
  end
6066
6077
 
6067
- # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind=
6068
- # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: `
6069
- # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"``
6070
- # , `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` ]``
6078
+ # The data type of a variable such as a function argument. Examples include: *
6079
+ # INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
6080
+ # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
6081
+ # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind: "STRING"` `, ` "
6082
+ # name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typekind": "
6083
+ # DATE"` ` ` ] ` `
6071
6084
  class StandardSqlDataType
6072
6085
  include Google::Apis::Core::Hashable
6073
6086
 
6074
- # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind=
6075
- # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: `
6076
- # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"``
6077
- # , `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` ]``
6087
+ # The data type of a variable such as a function argument. Examples include: *
6088
+ # INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
6089
+ # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
6090
+ # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind: "STRING"` `, ` "
6091
+ # name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typekind": "
6092
+ # DATE"` ` ` ] ` `
6078
6093
  # Corresponds to the JSON property `arrayElementType`
6079
6094
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
6080
6095
  attr_accessor :array_element_type
@@ -6111,10 +6126,12 @@ module Google
6111
6126
  # @return [String]
6112
6127
  attr_accessor :name
6113
6128
 
6114
- # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind=
6115
- # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: `
6116
- # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"``
6117
- # , `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` ]``
6129
+ # The data type of a variable such as a function argument. Examples include: *
6130
+ # INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
6131
+ # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
6132
+ # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind: "STRING"` `, ` "
6133
+ # name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typekind": "
6134
+ # DATE"` ` ` ] ` `
6118
6135
  # Corresponds to the JSON property `type`
6119
6136
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
6120
6137
  attr_accessor :type
@@ -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.20.0"
19
+ GEM_VERSION = "0.24.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211017"
25
+ REVISION = "20220123"
26
26
  end
27
27
  end
28
28
  end
@@ -234,18 +234,18 @@ module Google
234
234
 
235
235
  include Google::Apis::Core::JsonObjectSupport
236
236
  end
237
+
238
+ class Tag
239
+ class Representation < Google::Apis::Core::JsonRepresentation; end
240
+
241
+ include Google::Apis::Core::JsonObjectSupport
242
+ end
237
243
 
238
244
  include Google::Apis::Core::JsonObjectSupport
239
245
  end
240
246
 
241
247
  class DatasetAccessEntry
242
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
-
244
- class TargetType
245
- class Representation < Google::Apis::Core::JsonRepresentation; end
246
-
247
- include Google::Apis::Core::JsonObjectSupport
248
- end
249
249
 
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
@@ -1266,6 +1266,8 @@ module Google
1266
1266
  property :location, as: 'location'
1267
1267
  property :satisfies_pzs, as: 'satisfiesPZS'
1268
1268
  property :self_link, as: 'selfLink'
1269
+ collection :tags, as: 'tags', class: Google::Apis::BigqueryV2::Dataset::Tag, decorator: Google::Apis::BigqueryV2::Dataset::Tag::Representation
1270
+
1269
1271
  end
1270
1272
 
1271
1273
  class Access
@@ -1285,6 +1287,14 @@ module Google
1285
1287
 
1286
1288
  end
1287
1289
  end
1290
+
1291
+ class Tag
1292
+ # @private
1293
+ class Representation < Google::Apis::Core::JsonRepresentation
1294
+ property :tag_key, as: 'tagKey'
1295
+ property :tag_value, as: 'tagValue'
1296
+ end
1297
+ end
1288
1298
  end
1289
1299
 
1290
1300
  class DatasetAccessEntry
@@ -1292,15 +1302,7 @@ module Google
1292
1302
  class Representation < Google::Apis::Core::JsonRepresentation
1293
1303
  property :dataset, as: 'dataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
1294
1304
 
1295
- collection :target_types, as: 'target_types', class: Google::Apis::BigqueryV2::DatasetAccessEntry::TargetType, decorator: Google::Apis::BigqueryV2::DatasetAccessEntry::TargetType::Representation
1296
-
1297
- end
1298
-
1299
- class TargetType
1300
- # @private
1301
- class Representation < Google::Apis::Core::JsonRepresentation
1302
- property :target_type, as: 'targetType'
1303
- end
1305
+ collection :target_types, as: 'target_types'
1304
1306
  end
1305
1307
  end
1306
1308
 
@@ -1545,6 +1545,8 @@ module Google
1545
1545
  # @param [String] table_id
1546
1546
  # Table ID of the table to update
1547
1547
  # @param [Google::Apis::BigqueryV2::Table] table_object
1548
+ # @param [Boolean] autodetect_schema
1549
+ # When true will autodetect schema, else will keep original schema
1548
1550
  # @param [String] fields
1549
1551
  # Selector specifying which fields to include in a partial response.
1550
1552
  # @param [String] quota_user
@@ -1564,7 +1566,7 @@ module Google
1564
1566
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1565
1567
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1566
1568
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1567
- def patch_table(project_id, dataset_id, table_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1569
+ def patch_table(project_id, dataset_id, table_id, table_object = nil, autodetect_schema: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1568
1570
  command = make_simple_command(:patch, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options)
1569
1571
  command.request_representation = Google::Apis::BigqueryV2::Table::Representation
1570
1572
  command.request_object = table_object
@@ -1573,6 +1575,7 @@ module Google
1573
1575
  command.params['projectId'] = project_id unless project_id.nil?
1574
1576
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
1575
1577
  command.params['tableId'] = table_id unless table_id.nil?
1578
+ command.query['autodetect_schema'] = autodetect_schema unless autodetect_schema.nil?
1576
1579
  command.query['fields'] = fields unless fields.nil?
1577
1580
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1578
1581
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1669,6 +1672,8 @@ module Google
1669
1672
  # @param [String] table_id
1670
1673
  # Table ID of the table to update
1671
1674
  # @param [Google::Apis::BigqueryV2::Table] table_object
1675
+ # @param [Boolean] autodetect_schema
1676
+ # When true will autodetect schema, else will keep original schema
1672
1677
  # @param [String] fields
1673
1678
  # Selector specifying which fields to include in a partial response.
1674
1679
  # @param [String] quota_user
@@ -1688,7 +1693,7 @@ module Google
1688
1693
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1689
1694
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1690
1695
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1691
- def update_table(project_id, dataset_id, table_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1696
+ def update_table(project_id, dataset_id, table_id, table_object = nil, autodetect_schema: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1692
1697
  command = make_simple_command(:put, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options)
1693
1698
  command.request_representation = Google::Apis::BigqueryV2::Table::Representation
1694
1699
  command.request_object = table_object
@@ -1697,6 +1702,7 @@ module Google
1697
1702
  command.params['projectId'] = project_id unless project_id.nil?
1698
1703
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
1699
1704
  command.params['tableId'] = table_id unless table_id.nil?
1705
+ command.query['autodetect_schema'] = autodetect_schema unless autodetect_schema.nil?
1700
1706
  command.query['fields'] = fields unless fields.nil?
1701
1707
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1702
1708
  command.query['userIp'] = user_ip unless user_ip.nil?
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.20.0
4
+ version: 0.24.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: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-01-31 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.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.24.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: []
@@ -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.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for BigQuery API V2