google-apis-datastream_v1 0.13.0 → 0.15.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: 959a37570594f158785057ab4fbfd81d74572ee93c5b7c6706286ebb54db99ad
4
- data.tar.gz: 45fcb353bb24201394bab8f10756674efa97906e9f6c6f2e7c9eeb5e1fec7152
3
+ metadata.gz: 118ca93ba6425244b9f3120319b60e4fa81eeecebcd69a43fdf12e2828cc2109
4
+ data.tar.gz: 05fada971cd1912ce7d7eb3b47e8849d79495a212441a239f2820ec6f2c9d04d
5
5
  SHA512:
6
- metadata.gz: f05bcb525a9f9657fae81462710bac9b10254adcb51c693228f2865b5589aacfa970323a44c2703154b44fccc915c623a1bc440891c92d62ecd42387b23210c2
7
- data.tar.gz: 8b5382644767d796a02cd2cdef3564adf6d1193b6fd87f3909846e1731934c6a5c402cb89cad67e8b9acdf0967b5355305d9ba4a34c4299608f915df48653fd2
6
+ metadata.gz: 28f9aba7051ab2d84137551b3100d2b70c777bd67a4563a2465929040f007d62696e1bec7471fc286f9ceffab04bc7b1470dd5a65f484674599fc65cb7a9e85b
7
+ data.tar.gz: ed5eda4d64d4dfbb3489fc0d731c5aff9191aa3aaa60e820429114be57fe334b9966782e803d1e15193ce409a3477669f93ca895dd360bc6a30b6dd06fd3104e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-datastream_v1
2
2
 
3
+ ### v0.15.0 (2022-09-18)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.14.0 (2022-08-24)
8
+
9
+ * Regenerated from discovery document revision 20220817
10
+
3
11
  ### v0.13.0 (2022-07-22)
4
12
 
5
13
  * Regenerated from discovery document revision 20220711
@@ -50,6 +50,11 @@ module Google
50
50
  # @return [Google::Apis::DatastreamV1::OracleRdbms]
51
51
  attr_accessor :oracle_excluded_objects
52
52
 
53
+ # PostgreSQL database structure.
54
+ # Corresponds to the JSON property `postgresqlExcludedObjects`
55
+ # @return [Google::Apis::DatastreamV1::PostgresqlRdbms]
56
+ attr_accessor :postgresql_excluded_objects
57
+
53
58
  def initialize(**args)
54
59
  update!(**args)
55
60
  end
@@ -58,6 +63,7 @@ module Google
58
63
  def update!(**args)
59
64
  @mysql_excluded_objects = args[:mysql_excluded_objects] if args.key?(:mysql_excluded_objects)
60
65
  @oracle_excluded_objects = args[:oracle_excluded_objects] if args.key?(:oracle_excluded_objects)
66
+ @postgresql_excluded_objects = args[:postgresql_excluded_objects] if args.key?(:postgresql_excluded_objects)
61
67
  end
62
68
  end
63
69
 
@@ -117,6 +123,54 @@ module Google
117
123
  end
118
124
  end
119
125
 
126
+ #
127
+ class BigQueryDestinationConfig
128
+ include Google::Apis::Core::Hashable
129
+
130
+ # The guaranteed data freshness (in seconds) when querying tables created by the
131
+ # stream. Editing this field will only affect new tables created in the future,
132
+ # but existing tables will not be impacted. Lower values mean that queries will
133
+ # return fresher data, but may result in higher cost.
134
+ # Corresponds to the JSON property `dataFreshness`
135
+ # @return [String]
136
+ attr_accessor :data_freshness
137
+
138
+ # A single target dataset to which all data will be streamed.
139
+ # Corresponds to the JSON property `singleTargetDataset`
140
+ # @return [Google::Apis::DatastreamV1::SingleTargetDataset]
141
+ attr_accessor :single_target_dataset
142
+
143
+ # Destination datasets are created so that hierarchy of the destination data
144
+ # objects matches the source hierarchy.
145
+ # Corresponds to the JSON property `sourceHierarchyDatasets`
146
+ # @return [Google::Apis::DatastreamV1::SourceHierarchyDatasets]
147
+ attr_accessor :source_hierarchy_datasets
148
+
149
+ def initialize(**args)
150
+ update!(**args)
151
+ end
152
+
153
+ # Update properties of this object
154
+ def update!(**args)
155
+ @data_freshness = args[:data_freshness] if args.key?(:data_freshness)
156
+ @single_target_dataset = args[:single_target_dataset] if args.key?(:single_target_dataset)
157
+ @source_hierarchy_datasets = args[:source_hierarchy_datasets] if args.key?(:source_hierarchy_datasets)
158
+ end
159
+ end
160
+
161
+ # BigQuery warehouse profile.
162
+ class BigQueryProfile
163
+ include Google::Apis::Core::Hashable
164
+
165
+ def initialize(**args)
166
+ update!(**args)
167
+ end
168
+
169
+ # Update properties of this object
170
+ def update!(**args)
171
+ end
172
+ end
173
+
120
174
  # The request message for Operations.CancelOperation.
121
175
  class CancelOperationRequest
122
176
  include Google::Apis::Core::Hashable
@@ -135,6 +189,11 @@ module Google
135
189
  class ConnectionProfile
136
190
  include Google::Apis::Core::Hashable
137
191
 
192
+ # BigQuery warehouse profile.
193
+ # Corresponds to the JSON property `bigqueryProfile`
194
+ # @return [Google::Apis::DatastreamV1::BigQueryProfile]
195
+ attr_accessor :bigquery_profile
196
+
138
197
  # Output only. The create time of the resource.
139
198
  # Corresponds to the JSON property `createTime`
140
199
  # @return [String]
@@ -175,6 +234,11 @@ module Google
175
234
  # @return [Google::Apis::DatastreamV1::OracleProfile]
176
235
  attr_accessor :oracle_profile
177
236
 
237
+ # PostgreSQL database profile.
238
+ # Corresponds to the JSON property `postgresqlProfile`
239
+ # @return [Google::Apis::DatastreamV1::PostgresqlProfile]
240
+ attr_accessor :postgresql_profile
241
+
178
242
  # Private Connectivity
179
243
  # Corresponds to the JSON property `privateConnectivity`
180
244
  # @return [Google::Apis::DatastreamV1::PrivateConnectivity]
@@ -196,6 +260,7 @@ module Google
196
260
 
197
261
  # Update properties of this object
198
262
  def update!(**args)
263
+ @bigquery_profile = args[:bigquery_profile] if args.key?(:bigquery_profile)
199
264
  @create_time = args[:create_time] if args.key?(:create_time)
200
265
  @display_name = args[:display_name] if args.key?(:display_name)
201
266
  @forward_ssh_connectivity = args[:forward_ssh_connectivity] if args.key?(:forward_ssh_connectivity)
@@ -204,16 +269,60 @@ module Google
204
269
  @mysql_profile = args[:mysql_profile] if args.key?(:mysql_profile)
205
270
  @name = args[:name] if args.key?(:name)
206
271
  @oracle_profile = args[:oracle_profile] if args.key?(:oracle_profile)
272
+ @postgresql_profile = args[:postgresql_profile] if args.key?(:postgresql_profile)
207
273
  @private_connectivity = args[:private_connectivity] if args.key?(:private_connectivity)
208
274
  @static_service_ip_connectivity = args[:static_service_ip_connectivity] if args.key?(:static_service_ip_connectivity)
209
275
  @update_time = args[:update_time] if args.key?(:update_time)
210
276
  end
211
277
  end
212
278
 
279
+ # Dataset template used for dynamic dataset creation.
280
+ class DatasetTemplate
281
+ include Google::Apis::Core::Hashable
282
+
283
+ # If supplied, every created dataset will have its name prefixed by the provided
284
+ # value. The prefix and name will be separated by an underscore. i.e. _.
285
+ # Corresponds to the JSON property `datasetIdPrefix`
286
+ # @return [String]
287
+ attr_accessor :dataset_id_prefix
288
+
289
+ # Describes the Cloud KMS encryption key that will be used to protect
290
+ # destination BigQuery table. The BigQuery Service Account associated with your
291
+ # project requires access to this encryption key. i.e. projects/`project`/
292
+ # locations/`location`/keyRings/`key_ring`/cryptoKeys/`cryptoKey`. See https://
293
+ # cloud.google.com/bigquery/docs/customer-managed-encryption for more
294
+ # information.
295
+ # Corresponds to the JSON property `kmsKeyName`
296
+ # @return [String]
297
+ attr_accessor :kms_key_name
298
+
299
+ # Required. The geographic location where the dataset should reside. See https://
300
+ # cloud.google.com/bigquery/docs/locations for supported locations.
301
+ # Corresponds to the JSON property `location`
302
+ # @return [String]
303
+ attr_accessor :location
304
+
305
+ def initialize(**args)
306
+ update!(**args)
307
+ end
308
+
309
+ # Update properties of this object
310
+ def update!(**args)
311
+ @dataset_id_prefix = args[:dataset_id_prefix] if args.key?(:dataset_id_prefix)
312
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
313
+ @location = args[:location] if args.key?(:location)
314
+ end
315
+ end
316
+
213
317
  # The configuration of the stream destination.
214
318
  class DestinationConfig
215
319
  include Google::Apis::Core::Hashable
216
320
 
321
+ # BigQuery destination configuration.
322
+ # Corresponds to the JSON property `bigqueryDestinationConfig`
323
+ # @return [Google::Apis::DatastreamV1::BigQueryDestinationConfig]
324
+ attr_accessor :bigquery_destination_config
325
+
217
326
  # Required. Destination connection profile resource. Format: `projects/`project`/
218
327
  # locations/`location`/connectionProfiles/`name``
219
328
  # Corresponds to the JSON property `destinationConnectionProfile`
@@ -231,6 +340,7 @@ module Google
231
340
 
232
341
  # Update properties of this object
233
342
  def update!(**args)
343
+ @bigquery_destination_config = args[:bigquery_destination_config] if args.key?(:bigquery_destination_config)
234
344
  @destination_connection_profile = args[:destination_connection_profile] if args.key?(:destination_connection_profile)
235
345
  @gcs_destination_config = args[:gcs_destination_config] if args.key?(:gcs_destination_config)
236
346
  end
@@ -273,6 +383,11 @@ module Google
273
383
  # @return [Google::Apis::DatastreamV1::OracleRdbms]
274
384
  attr_accessor :oracle_rdbms
275
385
 
386
+ # PostgreSQL database structure.
387
+ # Corresponds to the JSON property `postgresqlRdbms`
388
+ # @return [Google::Apis::DatastreamV1::PostgresqlRdbms]
389
+ attr_accessor :postgresql_rdbms
390
+
276
391
  def initialize(**args)
277
392
  update!(**args)
278
393
  end
@@ -285,6 +400,7 @@ module Google
285
400
  @hierarchy_depth = args[:hierarchy_depth] if args.key?(:hierarchy_depth)
286
401
  @mysql_rdbms = args[:mysql_rdbms] if args.key?(:mysql_rdbms)
287
402
  @oracle_rdbms = args[:oracle_rdbms] if args.key?(:oracle_rdbms)
403
+ @postgresql_rdbms = args[:postgresql_rdbms] if args.key?(:postgresql_rdbms)
288
404
  end
289
405
  end
290
406
 
@@ -302,6 +418,11 @@ module Google
302
418
  # @return [Google::Apis::DatastreamV1::OracleRdbms]
303
419
  attr_accessor :oracle_rdbms
304
420
 
421
+ # PostgreSQL database structure.
422
+ # Corresponds to the JSON property `postgresqlRdbms`
423
+ # @return [Google::Apis::DatastreamV1::PostgresqlRdbms]
424
+ attr_accessor :postgresql_rdbms
425
+
305
426
  def initialize(**args)
306
427
  update!(**args)
307
428
  end
@@ -310,6 +431,7 @@ module Google
310
431
  def update!(**args)
311
432
  @mysql_rdbms = args[:mysql_rdbms] if args.key?(:mysql_rdbms)
312
433
  @oracle_rdbms = args[:oracle_rdbms] if args.key?(:oracle_rdbms)
434
+ @postgresql_rdbms = args[:postgresql_rdbms] if args.key?(:postgresql_rdbms)
313
435
  end
314
436
  end
315
437
 
@@ -1488,6 +1610,246 @@ module Google
1488
1610
  end
1489
1611
  end
1490
1612
 
1613
+ # PostgreSQL Column.
1614
+ class PostgresqlColumn
1615
+ include Google::Apis::Core::Hashable
1616
+
1617
+ # Column name.
1618
+ # Corresponds to the JSON property `column`
1619
+ # @return [String]
1620
+ attr_accessor :column
1621
+
1622
+ # The PostgreSQL data type.
1623
+ # Corresponds to the JSON property `dataType`
1624
+ # @return [String]
1625
+ attr_accessor :data_type
1626
+
1627
+ # Column length.
1628
+ # Corresponds to the JSON property `length`
1629
+ # @return [Fixnum]
1630
+ attr_accessor :length
1631
+
1632
+ # Whether or not the column can accept a null value.
1633
+ # Corresponds to the JSON property `nullable`
1634
+ # @return [Boolean]
1635
+ attr_accessor :nullable
1636
+ alias_method :nullable?, :nullable
1637
+
1638
+ # The ordinal position of the column in the table.
1639
+ # Corresponds to the JSON property `ordinalPosition`
1640
+ # @return [Fixnum]
1641
+ attr_accessor :ordinal_position
1642
+
1643
+ # Column precision.
1644
+ # Corresponds to the JSON property `precision`
1645
+ # @return [Fixnum]
1646
+ attr_accessor :precision
1647
+
1648
+ # Whether or not the column represents a primary key.
1649
+ # Corresponds to the JSON property `primaryKey`
1650
+ # @return [Boolean]
1651
+ attr_accessor :primary_key
1652
+ alias_method :primary_key?, :primary_key
1653
+
1654
+ # Column scale.
1655
+ # Corresponds to the JSON property `scale`
1656
+ # @return [Fixnum]
1657
+ attr_accessor :scale
1658
+
1659
+ def initialize(**args)
1660
+ update!(**args)
1661
+ end
1662
+
1663
+ # Update properties of this object
1664
+ def update!(**args)
1665
+ @column = args[:column] if args.key?(:column)
1666
+ @data_type = args[:data_type] if args.key?(:data_type)
1667
+ @length = args[:length] if args.key?(:length)
1668
+ @nullable = args[:nullable] if args.key?(:nullable)
1669
+ @ordinal_position = args[:ordinal_position] if args.key?(:ordinal_position)
1670
+ @precision = args[:precision] if args.key?(:precision)
1671
+ @primary_key = args[:primary_key] if args.key?(:primary_key)
1672
+ @scale = args[:scale] if args.key?(:scale)
1673
+ end
1674
+ end
1675
+
1676
+ # PostgreSQL data source object identifier.
1677
+ class PostgresqlObjectIdentifier
1678
+ include Google::Apis::Core::Hashable
1679
+
1680
+ # Required. The schema name.
1681
+ # Corresponds to the JSON property `schema`
1682
+ # @return [String]
1683
+ attr_accessor :schema
1684
+
1685
+ # Required. The table name.
1686
+ # Corresponds to the JSON property `table`
1687
+ # @return [String]
1688
+ attr_accessor :table
1689
+
1690
+ def initialize(**args)
1691
+ update!(**args)
1692
+ end
1693
+
1694
+ # Update properties of this object
1695
+ def update!(**args)
1696
+ @schema = args[:schema] if args.key?(:schema)
1697
+ @table = args[:table] if args.key?(:table)
1698
+ end
1699
+ end
1700
+
1701
+ # PostgreSQL database profile.
1702
+ class PostgresqlProfile
1703
+ include Google::Apis::Core::Hashable
1704
+
1705
+ # Required. Database for the PostgreSQL connection.
1706
+ # Corresponds to the JSON property `database`
1707
+ # @return [String]
1708
+ attr_accessor :database
1709
+
1710
+ # Required. Hostname for the PostgreSQL connection.
1711
+ # Corresponds to the JSON property `hostname`
1712
+ # @return [String]
1713
+ attr_accessor :hostname
1714
+
1715
+ # Required. Password for the PostgreSQL connection.
1716
+ # Corresponds to the JSON property `password`
1717
+ # @return [String]
1718
+ attr_accessor :password
1719
+
1720
+ # Port for the PostgreSQL connection, default value is 5432.
1721
+ # Corresponds to the JSON property `port`
1722
+ # @return [Fixnum]
1723
+ attr_accessor :port
1724
+
1725
+ # Required. Username for the PostgreSQL connection.
1726
+ # Corresponds to the JSON property `username`
1727
+ # @return [String]
1728
+ attr_accessor :username
1729
+
1730
+ def initialize(**args)
1731
+ update!(**args)
1732
+ end
1733
+
1734
+ # Update properties of this object
1735
+ def update!(**args)
1736
+ @database = args[:database] if args.key?(:database)
1737
+ @hostname = args[:hostname] if args.key?(:hostname)
1738
+ @password = args[:password] if args.key?(:password)
1739
+ @port = args[:port] if args.key?(:port)
1740
+ @username = args[:username] if args.key?(:username)
1741
+ end
1742
+ end
1743
+
1744
+ # PostgreSQL database structure.
1745
+ class PostgresqlRdbms
1746
+ include Google::Apis::Core::Hashable
1747
+
1748
+ # PostgreSQL schemas in the database server.
1749
+ # Corresponds to the JSON property `postgresqlSchemas`
1750
+ # @return [Array<Google::Apis::DatastreamV1::PostgresqlSchema>]
1751
+ attr_accessor :postgresql_schemas
1752
+
1753
+ def initialize(**args)
1754
+ update!(**args)
1755
+ end
1756
+
1757
+ # Update properties of this object
1758
+ def update!(**args)
1759
+ @postgresql_schemas = args[:postgresql_schemas] if args.key?(:postgresql_schemas)
1760
+ end
1761
+ end
1762
+
1763
+ # PostgreSQL schema.
1764
+ class PostgresqlSchema
1765
+ include Google::Apis::Core::Hashable
1766
+
1767
+ # Tables in the schema.
1768
+ # Corresponds to the JSON property `postgresqlTables`
1769
+ # @return [Array<Google::Apis::DatastreamV1::PostgresqlTable>]
1770
+ attr_accessor :postgresql_tables
1771
+
1772
+ # Schema name.
1773
+ # Corresponds to the JSON property `schema`
1774
+ # @return [String]
1775
+ attr_accessor :schema
1776
+
1777
+ def initialize(**args)
1778
+ update!(**args)
1779
+ end
1780
+
1781
+ # Update properties of this object
1782
+ def update!(**args)
1783
+ @postgresql_tables = args[:postgresql_tables] if args.key?(:postgresql_tables)
1784
+ @schema = args[:schema] if args.key?(:schema)
1785
+ end
1786
+ end
1787
+
1788
+ # PostgreSQL data source configuration
1789
+ class PostgresqlSourceConfig
1790
+ include Google::Apis::Core::Hashable
1791
+
1792
+ # PostgreSQL database structure.
1793
+ # Corresponds to the JSON property `excludeObjects`
1794
+ # @return [Google::Apis::DatastreamV1::PostgresqlRdbms]
1795
+ attr_accessor :exclude_objects
1796
+
1797
+ # PostgreSQL database structure.
1798
+ # Corresponds to the JSON property `includeObjects`
1799
+ # @return [Google::Apis::DatastreamV1::PostgresqlRdbms]
1800
+ attr_accessor :include_objects
1801
+
1802
+ # Required. The name of the publication that includes the set of all tables that
1803
+ # are defined in the stream's include_objects.
1804
+ # Corresponds to the JSON property `publication`
1805
+ # @return [String]
1806
+ attr_accessor :publication
1807
+
1808
+ # Required. The name of the logical replication slot that's configured with the
1809
+ # pgoutput plugin.
1810
+ # Corresponds to the JSON property `replicationSlot`
1811
+ # @return [String]
1812
+ attr_accessor :replication_slot
1813
+
1814
+ def initialize(**args)
1815
+ update!(**args)
1816
+ end
1817
+
1818
+ # Update properties of this object
1819
+ def update!(**args)
1820
+ @exclude_objects = args[:exclude_objects] if args.key?(:exclude_objects)
1821
+ @include_objects = args[:include_objects] if args.key?(:include_objects)
1822
+ @publication = args[:publication] if args.key?(:publication)
1823
+ @replication_slot = args[:replication_slot] if args.key?(:replication_slot)
1824
+ end
1825
+ end
1826
+
1827
+ # PostgreSQL table.
1828
+ class PostgresqlTable
1829
+ include Google::Apis::Core::Hashable
1830
+
1831
+ # PostgreSQL columns in the schema. When unspecified as part of include/exclude
1832
+ # objects, includes/excludes everything.
1833
+ # Corresponds to the JSON property `postgresqlColumns`
1834
+ # @return [Array<Google::Apis::DatastreamV1::PostgresqlColumn>]
1835
+ attr_accessor :postgresql_columns
1836
+
1837
+ # Table name.
1838
+ # Corresponds to the JSON property `table`
1839
+ # @return [String]
1840
+ attr_accessor :table
1841
+
1842
+ def initialize(**args)
1843
+ update!(**args)
1844
+ end
1845
+
1846
+ # Update properties of this object
1847
+ def update!(**args)
1848
+ @postgresql_columns = args[:postgresql_columns] if args.key?(:postgresql_columns)
1849
+ @table = args[:table] if args.key?(:table)
1850
+ end
1851
+ end
1852
+
1491
1853
  # The PrivateConnection resource is used to establish private connectivity
1492
1854
  # between Datastream and a customer's network.
1493
1855
  class PrivateConnection
@@ -1627,6 +1989,25 @@ module Google
1627
1989
  end
1628
1990
  end
1629
1991
 
1992
+ # A single target dataset to which all data will be streamed.
1993
+ class SingleTargetDataset
1994
+ include Google::Apis::Core::Hashable
1995
+
1996
+ #
1997
+ # Corresponds to the JSON property `datasetId`
1998
+ # @return [String]
1999
+ attr_accessor :dataset_id
2000
+
2001
+ def initialize(**args)
2002
+ update!(**args)
2003
+ end
2004
+
2005
+ # Update properties of this object
2006
+ def update!(**args)
2007
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
2008
+ end
2009
+ end
2010
+
1630
2011
  # The configuration of the stream source.
1631
2012
  class SourceConfig
1632
2013
  include Google::Apis::Core::Hashable
@@ -1641,6 +2022,11 @@ module Google
1641
2022
  # @return [Google::Apis::DatastreamV1::OracleSourceConfig]
1642
2023
  attr_accessor :oracle_source_config
1643
2024
 
2025
+ # PostgreSQL data source configuration
2026
+ # Corresponds to the JSON property `postgresqlSourceConfig`
2027
+ # @return [Google::Apis::DatastreamV1::PostgresqlSourceConfig]
2028
+ attr_accessor :postgresql_source_config
2029
+
1644
2030
  # Required. Source connection profile resoource. Format: `projects/`project`/
1645
2031
  # locations/`location`/connectionProfiles/`name``
1646
2032
  # Corresponds to the JSON property `sourceConnectionProfile`
@@ -1655,10 +2041,31 @@ module Google
1655
2041
  def update!(**args)
1656
2042
  @mysql_source_config = args[:mysql_source_config] if args.key?(:mysql_source_config)
1657
2043
  @oracle_source_config = args[:oracle_source_config] if args.key?(:oracle_source_config)
2044
+ @postgresql_source_config = args[:postgresql_source_config] if args.key?(:postgresql_source_config)
1658
2045
  @source_connection_profile = args[:source_connection_profile] if args.key?(:source_connection_profile)
1659
2046
  end
1660
2047
  end
1661
2048
 
2049
+ # Destination datasets are created so that hierarchy of the destination data
2050
+ # objects matches the source hierarchy.
2051
+ class SourceHierarchyDatasets
2052
+ include Google::Apis::Core::Hashable
2053
+
2054
+ # Dataset template used for dynamic dataset creation.
2055
+ # Corresponds to the JSON property `datasetTemplate`
2056
+ # @return [Google::Apis::DatastreamV1::DatasetTemplate]
2057
+ attr_accessor :dataset_template
2058
+
2059
+ def initialize(**args)
2060
+ update!(**args)
2061
+ end
2062
+
2063
+ # Update properties of this object
2064
+ def update!(**args)
2065
+ @dataset_template = args[:dataset_template] if args.key?(:dataset_template)
2066
+ end
2067
+ end
2068
+
1662
2069
  # Represents an identifier of an object in the data source.
1663
2070
  class SourceObjectIdentifier
1664
2071
  include Google::Apis::Core::Hashable
@@ -1673,6 +2080,11 @@ module Google
1673
2080
  # @return [Google::Apis::DatastreamV1::OracleObjectIdentifier]
1674
2081
  attr_accessor :oracle_identifier
1675
2082
 
2083
+ # PostgreSQL data source object identifier.
2084
+ # Corresponds to the JSON property `postgresqlIdentifier`
2085
+ # @return [Google::Apis::DatastreamV1::PostgresqlObjectIdentifier]
2086
+ attr_accessor :postgresql_identifier
2087
+
1676
2088
  def initialize(**args)
1677
2089
  update!(**args)
1678
2090
  end
@@ -1681,6 +2093,7 @@ module Google
1681
2093
  def update!(**args)
1682
2094
  @mysql_identifier = args[:mysql_identifier] if args.key?(:mysql_identifier)
1683
2095
  @oracle_identifier = args[:oracle_identifier] if args.key?(:oracle_identifier)
2096
+ @postgresql_identifier = args[:postgresql_identifier] if args.key?(:postgresql_identifier)
1684
2097
  end
1685
2098
  end
1686
2099
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DatastreamV1
18
18
  # Version of the google-apis-datastream_v1 gem
19
- GEM_VERSION = "0.13.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220711"
25
+ REVISION = "20220817"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,18 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class BigQueryDestinationConfig
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class BigQueryProfile
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class CancelOperationRequest
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
@@ -58,6 +70,12 @@ module Google
58
70
  include Google::Apis::Core::JsonObjectSupport
59
71
  end
60
72
 
73
+ class DatasetTemplate
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
61
79
  class DestinationConfig
62
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
81
 
@@ -280,6 +298,48 @@ module Google
280
298
  include Google::Apis::Core::JsonObjectSupport
281
299
  end
282
300
 
301
+ class PostgresqlColumn
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class PostgresqlObjectIdentifier
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class PostgresqlProfile
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class PostgresqlRdbms
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class PostgresqlSchema
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class PostgresqlSourceConfig
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class PostgresqlTable
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
283
343
  class PrivateConnection
284
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
345
 
@@ -298,12 +358,24 @@ module Google
298
358
  include Google::Apis::Core::JsonObjectSupport
299
359
  end
300
360
 
361
+ class SingleTargetDataset
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
301
367
  class SourceConfig
302
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
369
 
304
370
  include Google::Apis::Core::JsonObjectSupport
305
371
  end
306
372
 
373
+ class SourceHierarchyDatasets
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
307
379
  class SourceObjectIdentifier
308
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
381
 
@@ -401,6 +473,8 @@ module Google
401
473
 
402
474
  property :oracle_excluded_objects, as: 'oracleExcludedObjects', class: Google::Apis::DatastreamV1::OracleRdbms, decorator: Google::Apis::DatastreamV1::OracleRdbms::Representation
403
475
 
476
+ property :postgresql_excluded_objects, as: 'postgresqlExcludedObjects', class: Google::Apis::DatastreamV1::PostgresqlRdbms, decorator: Google::Apis::DatastreamV1::PostgresqlRdbms::Representation
477
+
404
478
  end
405
479
  end
406
480
 
@@ -422,6 +496,23 @@ module Google
422
496
  end
423
497
  end
424
498
 
499
+ class BigQueryDestinationConfig
500
+ # @private
501
+ class Representation < Google::Apis::Core::JsonRepresentation
502
+ property :data_freshness, as: 'dataFreshness'
503
+ property :single_target_dataset, as: 'singleTargetDataset', class: Google::Apis::DatastreamV1::SingleTargetDataset, decorator: Google::Apis::DatastreamV1::SingleTargetDataset::Representation
504
+
505
+ property :source_hierarchy_datasets, as: 'sourceHierarchyDatasets', class: Google::Apis::DatastreamV1::SourceHierarchyDatasets, decorator: Google::Apis::DatastreamV1::SourceHierarchyDatasets::Representation
506
+
507
+ end
508
+ end
509
+
510
+ class BigQueryProfile
511
+ # @private
512
+ class Representation < Google::Apis::Core::JsonRepresentation
513
+ end
514
+ end
515
+
425
516
  class CancelOperationRequest
426
517
  # @private
427
518
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -431,6 +522,8 @@ module Google
431
522
  class ConnectionProfile
432
523
  # @private
433
524
  class Representation < Google::Apis::Core::JsonRepresentation
525
+ property :bigquery_profile, as: 'bigqueryProfile', class: Google::Apis::DatastreamV1::BigQueryProfile, decorator: Google::Apis::DatastreamV1::BigQueryProfile::Representation
526
+
434
527
  property :create_time, as: 'createTime'
435
528
  property :display_name, as: 'displayName'
436
529
  property :forward_ssh_connectivity, as: 'forwardSshConnectivity', class: Google::Apis::DatastreamV1::ForwardSshTunnelConnectivity, decorator: Google::Apis::DatastreamV1::ForwardSshTunnelConnectivity::Representation
@@ -443,6 +536,8 @@ module Google
443
536
  property :name, as: 'name'
444
537
  property :oracle_profile, as: 'oracleProfile', class: Google::Apis::DatastreamV1::OracleProfile, decorator: Google::Apis::DatastreamV1::OracleProfile::Representation
445
538
 
539
+ property :postgresql_profile, as: 'postgresqlProfile', class: Google::Apis::DatastreamV1::PostgresqlProfile, decorator: Google::Apis::DatastreamV1::PostgresqlProfile::Representation
540
+
446
541
  property :private_connectivity, as: 'privateConnectivity', class: Google::Apis::DatastreamV1::PrivateConnectivity, decorator: Google::Apis::DatastreamV1::PrivateConnectivity::Representation
447
542
 
448
543
  property :static_service_ip_connectivity, as: 'staticServiceIpConnectivity', class: Google::Apis::DatastreamV1::StaticServiceIpConnectivity, decorator: Google::Apis::DatastreamV1::StaticServiceIpConnectivity::Representation
@@ -451,9 +546,20 @@ module Google
451
546
  end
452
547
  end
453
548
 
549
+ class DatasetTemplate
550
+ # @private
551
+ class Representation < Google::Apis::Core::JsonRepresentation
552
+ property :dataset_id_prefix, as: 'datasetIdPrefix'
553
+ property :kms_key_name, as: 'kmsKeyName'
554
+ property :location, as: 'location'
555
+ end
556
+ end
557
+
454
558
  class DestinationConfig
455
559
  # @private
456
560
  class Representation < Google::Apis::Core::JsonRepresentation
561
+ property :bigquery_destination_config, as: 'bigqueryDestinationConfig', class: Google::Apis::DatastreamV1::BigQueryDestinationConfig, decorator: Google::Apis::DatastreamV1::BigQueryDestinationConfig::Representation
562
+
457
563
  property :destination_connection_profile, as: 'destinationConnectionProfile'
458
564
  property :gcs_destination_config, as: 'gcsDestinationConfig', class: Google::Apis::DatastreamV1::GcsDestinationConfig, decorator: Google::Apis::DatastreamV1::GcsDestinationConfig::Representation
459
565
 
@@ -472,6 +578,8 @@ module Google
472
578
 
473
579
  property :oracle_rdbms, as: 'oracleRdbms', class: Google::Apis::DatastreamV1::OracleRdbms, decorator: Google::Apis::DatastreamV1::OracleRdbms::Representation
474
580
 
581
+ property :postgresql_rdbms, as: 'postgresqlRdbms', class: Google::Apis::DatastreamV1::PostgresqlRdbms, decorator: Google::Apis::DatastreamV1::PostgresqlRdbms::Representation
582
+
475
583
  end
476
584
  end
477
585
 
@@ -482,6 +590,8 @@ module Google
482
590
 
483
591
  property :oracle_rdbms, as: 'oracleRdbms', class: Google::Apis::DatastreamV1::OracleRdbms, decorator: Google::Apis::DatastreamV1::OracleRdbms::Representation
484
592
 
593
+ property :postgresql_rdbms, as: 'postgresqlRdbms', class: Google::Apis::DatastreamV1::PostgresqlRdbms, decorator: Google::Apis::DatastreamV1::PostgresqlRdbms::Representation
594
+
485
595
  end
486
596
  end
487
597
 
@@ -827,6 +937,77 @@ module Google
827
937
  end
828
938
  end
829
939
 
940
+ class PostgresqlColumn
941
+ # @private
942
+ class Representation < Google::Apis::Core::JsonRepresentation
943
+ property :column, as: 'column'
944
+ property :data_type, as: 'dataType'
945
+ property :length, as: 'length'
946
+ property :nullable, as: 'nullable'
947
+ property :ordinal_position, as: 'ordinalPosition'
948
+ property :precision, as: 'precision'
949
+ property :primary_key, as: 'primaryKey'
950
+ property :scale, as: 'scale'
951
+ end
952
+ end
953
+
954
+ class PostgresqlObjectIdentifier
955
+ # @private
956
+ class Representation < Google::Apis::Core::JsonRepresentation
957
+ property :schema, as: 'schema'
958
+ property :table, as: 'table'
959
+ end
960
+ end
961
+
962
+ class PostgresqlProfile
963
+ # @private
964
+ class Representation < Google::Apis::Core::JsonRepresentation
965
+ property :database, as: 'database'
966
+ property :hostname, as: 'hostname'
967
+ property :password, as: 'password'
968
+ property :port, as: 'port'
969
+ property :username, as: 'username'
970
+ end
971
+ end
972
+
973
+ class PostgresqlRdbms
974
+ # @private
975
+ class Representation < Google::Apis::Core::JsonRepresentation
976
+ collection :postgresql_schemas, as: 'postgresqlSchemas', class: Google::Apis::DatastreamV1::PostgresqlSchema, decorator: Google::Apis::DatastreamV1::PostgresqlSchema::Representation
977
+
978
+ end
979
+ end
980
+
981
+ class PostgresqlSchema
982
+ # @private
983
+ class Representation < Google::Apis::Core::JsonRepresentation
984
+ collection :postgresql_tables, as: 'postgresqlTables', class: Google::Apis::DatastreamV1::PostgresqlTable, decorator: Google::Apis::DatastreamV1::PostgresqlTable::Representation
985
+
986
+ property :schema, as: 'schema'
987
+ end
988
+ end
989
+
990
+ class PostgresqlSourceConfig
991
+ # @private
992
+ class Representation < Google::Apis::Core::JsonRepresentation
993
+ property :exclude_objects, as: 'excludeObjects', class: Google::Apis::DatastreamV1::PostgresqlRdbms, decorator: Google::Apis::DatastreamV1::PostgresqlRdbms::Representation
994
+
995
+ property :include_objects, as: 'includeObjects', class: Google::Apis::DatastreamV1::PostgresqlRdbms, decorator: Google::Apis::DatastreamV1::PostgresqlRdbms::Representation
996
+
997
+ property :publication, as: 'publication'
998
+ property :replication_slot, as: 'replicationSlot'
999
+ end
1000
+ end
1001
+
1002
+ class PostgresqlTable
1003
+ # @private
1004
+ class Representation < Google::Apis::Core::JsonRepresentation
1005
+ collection :postgresql_columns, as: 'postgresqlColumns', class: Google::Apis::DatastreamV1::PostgresqlColumn, decorator: Google::Apis::DatastreamV1::PostgresqlColumn::Representation
1006
+
1007
+ property :table, as: 'table'
1008
+ end
1009
+ end
1010
+
830
1011
  class PrivateConnection
831
1012
  # @private
832
1013
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -863,6 +1044,13 @@ module Google
863
1044
  end
864
1045
  end
865
1046
 
1047
+ class SingleTargetDataset
1048
+ # @private
1049
+ class Representation < Google::Apis::Core::JsonRepresentation
1050
+ property :dataset_id, as: 'datasetId'
1051
+ end
1052
+ end
1053
+
866
1054
  class SourceConfig
867
1055
  # @private
868
1056
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -870,10 +1058,20 @@ module Google
870
1058
 
871
1059
  property :oracle_source_config, as: 'oracleSourceConfig', class: Google::Apis::DatastreamV1::OracleSourceConfig, decorator: Google::Apis::DatastreamV1::OracleSourceConfig::Representation
872
1060
 
1061
+ property :postgresql_source_config, as: 'postgresqlSourceConfig', class: Google::Apis::DatastreamV1::PostgresqlSourceConfig, decorator: Google::Apis::DatastreamV1::PostgresqlSourceConfig::Representation
1062
+
873
1063
  property :source_connection_profile, as: 'sourceConnectionProfile'
874
1064
  end
875
1065
  end
876
1066
 
1067
+ class SourceHierarchyDatasets
1068
+ # @private
1069
+ class Representation < Google::Apis::Core::JsonRepresentation
1070
+ property :dataset_template, as: 'datasetTemplate', class: Google::Apis::DatastreamV1::DatasetTemplate, decorator: Google::Apis::DatastreamV1::DatasetTemplate::Representation
1071
+
1072
+ end
1073
+ end
1074
+
877
1075
  class SourceObjectIdentifier
878
1076
  # @private
879
1077
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -881,6 +1079,8 @@ module Google
881
1079
 
882
1080
  property :oracle_identifier, as: 'oracleIdentifier', class: Google::Apis::DatastreamV1::OracleObjectIdentifier, decorator: Google::Apis::DatastreamV1::OracleObjectIdentifier::Representation
883
1081
 
1082
+ property :postgresql_identifier, as: 'postgresqlIdentifier', class: Google::Apis::DatastreamV1::PostgresqlObjectIdentifier, decorator: Google::Apis::DatastreamV1::PostgresqlObjectIdentifier::Representation
1083
+
884
1084
  end
885
1085
  end
886
1086
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-datastream_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.15.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-07-25 00:00:00.000000000 Z
11
+ date: 2022-09-19 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.7'
19
+ version: 0.7.2
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.7'
29
+ version: 0.7.2
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-datastream_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-datastream_v1/v0.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datastream_v1/v0.15.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastream_v1
63
63
  post_install_message:
64
64
  rdoc_options: []