Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 28dab85

Browse files
feat: add datastream v1 (#61)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 425538443 Source-Link: googleapis/googleapis@07cb2ca Source-Link: https://github.com/googleapis/googleapis-gen/commit/66d72baf59afe47c026154bf8ebd27bf29c3e554 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjZkNzJiYWY1OWFmZTQ3YzAyNjE1NGJmOGViZDI3YmYyOWMzZTU1NCJ9 fix: remove `FetchErrorsRequest` and `FetchErrorsResponse` fix: remove `NoConnectivitySettings` fix: remove `GcsFileFormat` and `SchemaFileFormat`
1 parent 88cf10a commit 28dab85

30 files changed

+18972
-160
lines changed

.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"repo": "googleapis/python-datastream",
1111
"distribution_name": "google-cloud-datastream",
1212
"api_id": "datastream.googleapis.com",
13-
"default_version": "v1alpha1",
13+
"default_version": "v1",
1414
"codeowner_team": "",
1515
"api_shortname": "datastream"
1616
}

docs/datastream_v1/datastream.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Datastream
2+
----------------------------
3+
4+
.. automodule:: google.cloud.datastream_v1.services.datastream
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.datastream_v1.services.datastream.pagers
9+
:members:
10+
:inherited-members:

docs/datastream_v1/services.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Cloud Datastream v1 API
2+
===========================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
datastream

docs/datastream_v1/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Datastream v1 API
2+
========================================
3+
4+
.. automodule:: google.cloud.datastream_v1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of Datastream.
6+
By default, you will get version ``datastream_v1``.
7+
8+
9+
API Reference
10+
-------------
11+
.. toctree::
12+
:maxdepth: 2
13+
14+
datastream_v1/services
15+
datastream_v1/types
516

617
API Reference
718
-------------

google/cloud/datastream/__init__.py

Lines changed: 82 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -14,122 +14,86 @@
1414
# limitations under the License.
1515
#
1616

17-
from google.cloud.datastream_v1alpha1.services.datastream.client import DatastreamClient
18-
from google.cloud.datastream_v1alpha1.services.datastream.async_client import (
17+
from google.cloud.datastream_v1.services.datastream.client import DatastreamClient
18+
from google.cloud.datastream_v1.services.datastream.async_client import (
1919
DatastreamAsyncClient,
2020
)
2121

22-
from google.cloud.datastream_v1alpha1.types.datastream import (
23-
CreateConnectionProfileRequest,
24-
)
25-
from google.cloud.datastream_v1alpha1.types.datastream import (
26-
CreatePrivateConnectionRequest,
27-
)
28-
from google.cloud.datastream_v1alpha1.types.datastream import CreateRouteRequest
29-
from google.cloud.datastream_v1alpha1.types.datastream import CreateStreamRequest
30-
from google.cloud.datastream_v1alpha1.types.datastream import (
31-
DeleteConnectionProfileRequest,
32-
)
33-
from google.cloud.datastream_v1alpha1.types.datastream import (
34-
DeletePrivateConnectionRequest,
35-
)
36-
from google.cloud.datastream_v1alpha1.types.datastream import DeleteRouteRequest
37-
from google.cloud.datastream_v1alpha1.types.datastream import DeleteStreamRequest
38-
from google.cloud.datastream_v1alpha1.types.datastream import (
39-
DiscoverConnectionProfileRequest,
40-
)
41-
from google.cloud.datastream_v1alpha1.types.datastream import (
22+
from google.cloud.datastream_v1.types.datastream import CreateConnectionProfileRequest
23+
from google.cloud.datastream_v1.types.datastream import CreatePrivateConnectionRequest
24+
from google.cloud.datastream_v1.types.datastream import CreateRouteRequest
25+
from google.cloud.datastream_v1.types.datastream import CreateStreamRequest
26+
from google.cloud.datastream_v1.types.datastream import DeleteConnectionProfileRequest
27+
from google.cloud.datastream_v1.types.datastream import DeletePrivateConnectionRequest
28+
from google.cloud.datastream_v1.types.datastream import DeleteRouteRequest
29+
from google.cloud.datastream_v1.types.datastream import DeleteStreamRequest
30+
from google.cloud.datastream_v1.types.datastream import DiscoverConnectionProfileRequest
31+
from google.cloud.datastream_v1.types.datastream import (
4232
DiscoverConnectionProfileResponse,
4333
)
44-
from google.cloud.datastream_v1alpha1.types.datastream import FetchErrorsRequest
45-
from google.cloud.datastream_v1alpha1.types.datastream import FetchErrorsResponse
46-
from google.cloud.datastream_v1alpha1.types.datastream import FetchStaticIpsRequest
47-
from google.cloud.datastream_v1alpha1.types.datastream import FetchStaticIpsResponse
48-
from google.cloud.datastream_v1alpha1.types.datastream import (
49-
GetConnectionProfileRequest,
50-
)
51-
from google.cloud.datastream_v1alpha1.types.datastream import (
52-
GetPrivateConnectionRequest,
53-
)
54-
from google.cloud.datastream_v1alpha1.types.datastream import GetRouteRequest
55-
from google.cloud.datastream_v1alpha1.types.datastream import GetStreamRequest
56-
from google.cloud.datastream_v1alpha1.types.datastream import (
57-
ListConnectionProfilesRequest,
58-
)
59-
from google.cloud.datastream_v1alpha1.types.datastream import (
60-
ListConnectionProfilesResponse,
61-
)
62-
from google.cloud.datastream_v1alpha1.types.datastream import (
63-
ListPrivateConnectionsRequest,
64-
)
65-
from google.cloud.datastream_v1alpha1.types.datastream import (
66-
ListPrivateConnectionsResponse,
67-
)
68-
from google.cloud.datastream_v1alpha1.types.datastream import ListRoutesRequest
69-
from google.cloud.datastream_v1alpha1.types.datastream import ListRoutesResponse
70-
from google.cloud.datastream_v1alpha1.types.datastream import ListStreamsRequest
71-
from google.cloud.datastream_v1alpha1.types.datastream import ListStreamsResponse
72-
from google.cloud.datastream_v1alpha1.types.datastream import OperationMetadata
73-
from google.cloud.datastream_v1alpha1.types.datastream import (
74-
UpdateConnectionProfileRequest,
75-
)
76-
from google.cloud.datastream_v1alpha1.types.datastream import UpdateStreamRequest
77-
from google.cloud.datastream_v1alpha1.types.datastream_resources import AvroFileFormat
78-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
79-
ConnectionProfile,
80-
)
81-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
82-
DestinationConfig,
83-
)
84-
from google.cloud.datastream_v1alpha1.types.datastream_resources import Error
85-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
34+
from google.cloud.datastream_v1.types.datastream import FetchStaticIpsRequest
35+
from google.cloud.datastream_v1.types.datastream import FetchStaticIpsResponse
36+
from google.cloud.datastream_v1.types.datastream import GetConnectionProfileRequest
37+
from google.cloud.datastream_v1.types.datastream import GetPrivateConnectionRequest
38+
from google.cloud.datastream_v1.types.datastream import GetRouteRequest
39+
from google.cloud.datastream_v1.types.datastream import GetStreamObjectRequest
40+
from google.cloud.datastream_v1.types.datastream import GetStreamRequest
41+
from google.cloud.datastream_v1.types.datastream import ListConnectionProfilesRequest
42+
from google.cloud.datastream_v1.types.datastream import ListConnectionProfilesResponse
43+
from google.cloud.datastream_v1.types.datastream import ListPrivateConnectionsRequest
44+
from google.cloud.datastream_v1.types.datastream import ListPrivateConnectionsResponse
45+
from google.cloud.datastream_v1.types.datastream import ListRoutesRequest
46+
from google.cloud.datastream_v1.types.datastream import ListRoutesResponse
47+
from google.cloud.datastream_v1.types.datastream import ListStreamObjectsRequest
48+
from google.cloud.datastream_v1.types.datastream import ListStreamObjectsResponse
49+
from google.cloud.datastream_v1.types.datastream import ListStreamsRequest
50+
from google.cloud.datastream_v1.types.datastream import ListStreamsResponse
51+
from google.cloud.datastream_v1.types.datastream import LookupStreamObjectRequest
52+
from google.cloud.datastream_v1.types.datastream import OperationMetadata
53+
from google.cloud.datastream_v1.types.datastream import StartBackfillJobRequest
54+
from google.cloud.datastream_v1.types.datastream import StartBackfillJobResponse
55+
from google.cloud.datastream_v1.types.datastream import StopBackfillJobRequest
56+
from google.cloud.datastream_v1.types.datastream import StopBackfillJobResponse
57+
from google.cloud.datastream_v1.types.datastream import UpdateConnectionProfileRequest
58+
from google.cloud.datastream_v1.types.datastream import UpdateStreamRequest
59+
from google.cloud.datastream_v1.types.datastream_resources import AvroFileFormat
60+
from google.cloud.datastream_v1.types.datastream_resources import BackfillJob
61+
from google.cloud.datastream_v1.types.datastream_resources import ConnectionProfile
62+
from google.cloud.datastream_v1.types.datastream_resources import DestinationConfig
63+
from google.cloud.datastream_v1.types.datastream_resources import Error
64+
from google.cloud.datastream_v1.types.datastream_resources import (
8665
ForwardSshTunnelConnectivity,
8766
)
88-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
89-
GcsDestinationConfig,
90-
)
91-
from google.cloud.datastream_v1alpha1.types.datastream_resources import GcsProfile
92-
from google.cloud.datastream_v1alpha1.types.datastream_resources import JsonFileFormat
93-
from google.cloud.datastream_v1alpha1.types.datastream_resources import MysqlColumn
94-
from google.cloud.datastream_v1alpha1.types.datastream_resources import MysqlDatabase
95-
from google.cloud.datastream_v1alpha1.types.datastream_resources import MysqlProfile
96-
from google.cloud.datastream_v1alpha1.types.datastream_resources import MysqlRdbms
97-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
98-
MysqlSourceConfig,
99-
)
100-
from google.cloud.datastream_v1alpha1.types.datastream_resources import MysqlSslConfig
101-
from google.cloud.datastream_v1alpha1.types.datastream_resources import MysqlTable
102-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
103-
NoConnectivitySettings,
104-
)
105-
from google.cloud.datastream_v1alpha1.types.datastream_resources import OracleColumn
106-
from google.cloud.datastream_v1alpha1.types.datastream_resources import OracleProfile
107-
from google.cloud.datastream_v1alpha1.types.datastream_resources import OracleRdbms
108-
from google.cloud.datastream_v1alpha1.types.datastream_resources import OracleSchema
109-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
110-
OracleSourceConfig,
111-
)
112-
from google.cloud.datastream_v1alpha1.types.datastream_resources import OracleTable
113-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
114-
PrivateConnection,
115-
)
116-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
117-
PrivateConnectivity,
118-
)
119-
from google.cloud.datastream_v1alpha1.types.datastream_resources import Route
120-
from google.cloud.datastream_v1alpha1.types.datastream_resources import SourceConfig
121-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
67+
from google.cloud.datastream_v1.types.datastream_resources import GcsDestinationConfig
68+
from google.cloud.datastream_v1.types.datastream_resources import GcsProfile
69+
from google.cloud.datastream_v1.types.datastream_resources import JsonFileFormat
70+
from google.cloud.datastream_v1.types.datastream_resources import MysqlColumn
71+
from google.cloud.datastream_v1.types.datastream_resources import MysqlDatabase
72+
from google.cloud.datastream_v1.types.datastream_resources import MysqlProfile
73+
from google.cloud.datastream_v1.types.datastream_resources import MysqlRdbms
74+
from google.cloud.datastream_v1.types.datastream_resources import MysqlSourceConfig
75+
from google.cloud.datastream_v1.types.datastream_resources import MysqlSslConfig
76+
from google.cloud.datastream_v1.types.datastream_resources import MysqlTable
77+
from google.cloud.datastream_v1.types.datastream_resources import OracleColumn
78+
from google.cloud.datastream_v1.types.datastream_resources import OracleProfile
79+
from google.cloud.datastream_v1.types.datastream_resources import OracleRdbms
80+
from google.cloud.datastream_v1.types.datastream_resources import OracleSchema
81+
from google.cloud.datastream_v1.types.datastream_resources import OracleSourceConfig
82+
from google.cloud.datastream_v1.types.datastream_resources import OracleTable
83+
from google.cloud.datastream_v1.types.datastream_resources import PrivateConnection
84+
from google.cloud.datastream_v1.types.datastream_resources import PrivateConnectivity
85+
from google.cloud.datastream_v1.types.datastream_resources import Route
86+
from google.cloud.datastream_v1.types.datastream_resources import SourceConfig
87+
from google.cloud.datastream_v1.types.datastream_resources import SourceObjectIdentifier
88+
from google.cloud.datastream_v1.types.datastream_resources import (
12289
StaticServiceIpConnectivity,
12390
)
124-
from google.cloud.datastream_v1alpha1.types.datastream_resources import Stream
125-
from google.cloud.datastream_v1alpha1.types.datastream_resources import Validation
126-
from google.cloud.datastream_v1alpha1.types.datastream_resources import (
127-
ValidationMessage,
128-
)
129-
from google.cloud.datastream_v1alpha1.types.datastream_resources import ValidationResult
130-
from google.cloud.datastream_v1alpha1.types.datastream_resources import VpcPeeringConfig
131-
from google.cloud.datastream_v1alpha1.types.datastream_resources import GcsFileFormat
132-
from google.cloud.datastream_v1alpha1.types.datastream_resources import SchemaFileFormat
91+
from google.cloud.datastream_v1.types.datastream_resources import Stream
92+
from google.cloud.datastream_v1.types.datastream_resources import StreamObject
93+
from google.cloud.datastream_v1.types.datastream_resources import Validation
94+
from google.cloud.datastream_v1.types.datastream_resources import ValidationMessage
95+
from google.cloud.datastream_v1.types.datastream_resources import ValidationResult
96+
from google.cloud.datastream_v1.types.datastream_resources import VpcPeeringConfig
13397

13498
__all__ = (
13599
"DatastreamClient",
@@ -144,26 +108,33 @@
144108
"DeleteStreamRequest",
145109
"DiscoverConnectionProfileRequest",
146110
"DiscoverConnectionProfileResponse",
147-
"FetchErrorsRequest",
148-
"FetchErrorsResponse",
149111
"FetchStaticIpsRequest",
150112
"FetchStaticIpsResponse",
151113
"GetConnectionProfileRequest",
152114
"GetPrivateConnectionRequest",
153115
"GetRouteRequest",
116+
"GetStreamObjectRequest",
154117
"GetStreamRequest",
155118
"ListConnectionProfilesRequest",
156119
"ListConnectionProfilesResponse",
157120
"ListPrivateConnectionsRequest",
158121
"ListPrivateConnectionsResponse",
159122
"ListRoutesRequest",
160123
"ListRoutesResponse",
124+
"ListStreamObjectsRequest",
125+
"ListStreamObjectsResponse",
161126
"ListStreamsRequest",
162127
"ListStreamsResponse",
128+
"LookupStreamObjectRequest",
163129
"OperationMetadata",
130+
"StartBackfillJobRequest",
131+
"StartBackfillJobResponse",
132+
"StopBackfillJobRequest",
133+
"StopBackfillJobResponse",
164134
"UpdateConnectionProfileRequest",
165135
"UpdateStreamRequest",
166136
"AvroFileFormat",
137+
"BackfillJob",
167138
"ConnectionProfile",
168139
"DestinationConfig",
169140
"Error",
@@ -178,7 +149,6 @@
178149
"MysqlSourceConfig",
179150
"MysqlSslConfig",
180151
"MysqlTable",
181-
"NoConnectivitySettings",
182152
"OracleColumn",
183153
"OracleProfile",
184154
"OracleRdbms",
@@ -189,12 +159,12 @@
189159
"PrivateConnectivity",
190160
"Route",
191161
"SourceConfig",
162+
"SourceObjectIdentifier",
192163
"StaticServiceIpConnectivity",
193164
"Stream",
165+
"StreamObject",
194166
"Validation",
195167
"ValidationMessage",
196168
"ValidationResult",
197169
"VpcPeeringConfig",
198-
"GcsFileFormat",
199-
"SchemaFileFormat",
200170
)

0 commit comments

Comments
 (0)