google-cloud-dataplex-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +3133 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/credentials.rb +47 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +767 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/paths.rb +157 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service.rb +54 -0
- data/lib/google/cloud/dataplex/v1/logs_pb.rb +135 -0
- data/lib/google/cloud/dataplex/v1/metadata_pb.rb +214 -0
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +729 -0
- data/lib/google/cloud/dataplex/v1/metadata_service/credentials.rb +47 -0
- data/lib/google/cloud/dataplex/v1/metadata_service/paths.rb +102 -0
- data/lib/google/cloud/dataplex/v1/metadata_service.rb +50 -0
- data/lib/google/cloud/dataplex/v1/metadata_services_pb.rb +52 -0
- data/lib/google/cloud/dataplex/v1/resources_pb.rb +298 -0
- data/lib/google/cloud/dataplex/v1/service_pb.rb +218 -0
- data/lib/google/cloud/dataplex/v1/service_services_pb.rb +102 -0
- data/lib/google/cloud/dataplex/v1/tasks_pb.rb +133 -0
- data/lib/google/cloud/dataplex/v1/version.rb +28 -0
- data/lib/google/cloud/dataplex/v1.rb +39 -0
- data/lib/google-cloud-dataplex-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/dataplex/v1/logs.rb +308 -0
- data/proto_docs/google/cloud/dataplex/v1/metadata.rb +533 -0
- data/proto_docs/google/cloud/dataplex/v1/resources.rb +821 -0
- data/proto_docs/google/cloud/dataplex/v1/service.rb +601 -0
- data/proto_docs/google/cloud/dataplex/v1/tasks.rb +349 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +231 -0
@@ -0,0 +1,218 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dataplex/v1/service.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/client_pb'
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/dataplex/v1/resources_pb'
|
9
|
+
require 'google/cloud/dataplex/v1/tasks_pb'
|
10
|
+
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
13
|
+
require 'google/protobuf/timestamp_pb'
|
14
|
+
require 'google/protobuf'
|
15
|
+
|
16
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
|
+
add_file("google/cloud/dataplex/v1/service.proto", :syntax => :proto3) do
|
18
|
+
add_message "google.cloud.dataplex.v1.CreateLakeRequest" do
|
19
|
+
optional :parent, :string, 1
|
20
|
+
optional :lake_id, :string, 2
|
21
|
+
optional :lake, :message, 3, "google.cloud.dataplex.v1.Lake"
|
22
|
+
optional :validate_only, :bool, 4
|
23
|
+
end
|
24
|
+
add_message "google.cloud.dataplex.v1.UpdateLakeRequest" do
|
25
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
26
|
+
optional :lake, :message, 2, "google.cloud.dataplex.v1.Lake"
|
27
|
+
optional :validate_only, :bool, 3
|
28
|
+
end
|
29
|
+
add_message "google.cloud.dataplex.v1.DeleteLakeRequest" do
|
30
|
+
optional :name, :string, 1
|
31
|
+
end
|
32
|
+
add_message "google.cloud.dataplex.v1.ListLakesRequest" do
|
33
|
+
optional :parent, :string, 1
|
34
|
+
optional :page_size, :int32, 2
|
35
|
+
optional :page_token, :string, 3
|
36
|
+
optional :filter, :string, 4
|
37
|
+
optional :order_by, :string, 5
|
38
|
+
end
|
39
|
+
add_message "google.cloud.dataplex.v1.ListLakesResponse" do
|
40
|
+
repeated :lakes, :message, 1, "google.cloud.dataplex.v1.Lake"
|
41
|
+
optional :next_page_token, :string, 2
|
42
|
+
repeated :unreachable_locations, :string, 3
|
43
|
+
end
|
44
|
+
add_message "google.cloud.dataplex.v1.ListLakeActionsRequest" do
|
45
|
+
optional :parent, :string, 1
|
46
|
+
optional :page_size, :int32, 2
|
47
|
+
optional :page_token, :string, 3
|
48
|
+
end
|
49
|
+
add_message "google.cloud.dataplex.v1.ListActionsResponse" do
|
50
|
+
repeated :actions, :message, 1, "google.cloud.dataplex.v1.Action"
|
51
|
+
optional :next_page_token, :string, 2
|
52
|
+
end
|
53
|
+
add_message "google.cloud.dataplex.v1.GetLakeRequest" do
|
54
|
+
optional :name, :string, 1
|
55
|
+
end
|
56
|
+
add_message "google.cloud.dataplex.v1.CreateZoneRequest" do
|
57
|
+
optional :parent, :string, 1
|
58
|
+
optional :zone_id, :string, 2
|
59
|
+
optional :zone, :message, 3, "google.cloud.dataplex.v1.Zone"
|
60
|
+
optional :validate_only, :bool, 4
|
61
|
+
end
|
62
|
+
add_message "google.cloud.dataplex.v1.UpdateZoneRequest" do
|
63
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
64
|
+
optional :zone, :message, 2, "google.cloud.dataplex.v1.Zone"
|
65
|
+
optional :validate_only, :bool, 3
|
66
|
+
end
|
67
|
+
add_message "google.cloud.dataplex.v1.DeleteZoneRequest" do
|
68
|
+
optional :name, :string, 1
|
69
|
+
end
|
70
|
+
add_message "google.cloud.dataplex.v1.ListZonesRequest" do
|
71
|
+
optional :parent, :string, 1
|
72
|
+
optional :page_size, :int32, 2
|
73
|
+
optional :page_token, :string, 3
|
74
|
+
optional :filter, :string, 4
|
75
|
+
optional :order_by, :string, 5
|
76
|
+
end
|
77
|
+
add_message "google.cloud.dataplex.v1.ListZonesResponse" do
|
78
|
+
repeated :zones, :message, 1, "google.cloud.dataplex.v1.Zone"
|
79
|
+
optional :next_page_token, :string, 2
|
80
|
+
end
|
81
|
+
add_message "google.cloud.dataplex.v1.ListZoneActionsRequest" do
|
82
|
+
optional :parent, :string, 1
|
83
|
+
optional :page_size, :int32, 2
|
84
|
+
optional :page_token, :string, 3
|
85
|
+
end
|
86
|
+
add_message "google.cloud.dataplex.v1.GetZoneRequest" do
|
87
|
+
optional :name, :string, 1
|
88
|
+
end
|
89
|
+
add_message "google.cloud.dataplex.v1.CreateAssetRequest" do
|
90
|
+
optional :parent, :string, 1
|
91
|
+
optional :asset_id, :string, 2
|
92
|
+
optional :asset, :message, 3, "google.cloud.dataplex.v1.Asset"
|
93
|
+
optional :validate_only, :bool, 4
|
94
|
+
end
|
95
|
+
add_message "google.cloud.dataplex.v1.UpdateAssetRequest" do
|
96
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
97
|
+
optional :asset, :message, 2, "google.cloud.dataplex.v1.Asset"
|
98
|
+
optional :validate_only, :bool, 3
|
99
|
+
end
|
100
|
+
add_message "google.cloud.dataplex.v1.DeleteAssetRequest" do
|
101
|
+
optional :name, :string, 1
|
102
|
+
end
|
103
|
+
add_message "google.cloud.dataplex.v1.ListAssetsRequest" do
|
104
|
+
optional :parent, :string, 1
|
105
|
+
optional :page_size, :int32, 2
|
106
|
+
optional :page_token, :string, 3
|
107
|
+
optional :filter, :string, 4
|
108
|
+
optional :order_by, :string, 5
|
109
|
+
end
|
110
|
+
add_message "google.cloud.dataplex.v1.ListAssetsResponse" do
|
111
|
+
repeated :assets, :message, 1, "google.cloud.dataplex.v1.Asset"
|
112
|
+
optional :next_page_token, :string, 2
|
113
|
+
end
|
114
|
+
add_message "google.cloud.dataplex.v1.ListAssetActionsRequest" do
|
115
|
+
optional :parent, :string, 1
|
116
|
+
optional :page_size, :int32, 2
|
117
|
+
optional :page_token, :string, 3
|
118
|
+
end
|
119
|
+
add_message "google.cloud.dataplex.v1.GetAssetRequest" do
|
120
|
+
optional :name, :string, 1
|
121
|
+
end
|
122
|
+
add_message "google.cloud.dataplex.v1.OperationMetadata" do
|
123
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
124
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
125
|
+
optional :target, :string, 3
|
126
|
+
optional :verb, :string, 4
|
127
|
+
optional :status_message, :string, 5
|
128
|
+
optional :requested_cancellation, :bool, 6
|
129
|
+
optional :api_version, :string, 7
|
130
|
+
end
|
131
|
+
add_message "google.cloud.dataplex.v1.CreateTaskRequest" do
|
132
|
+
optional :parent, :string, 1
|
133
|
+
optional :task_id, :string, 2
|
134
|
+
optional :task, :message, 3, "google.cloud.dataplex.v1.Task"
|
135
|
+
optional :validate_only, :bool, 4
|
136
|
+
end
|
137
|
+
add_message "google.cloud.dataplex.v1.UpdateTaskRequest" do
|
138
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
139
|
+
optional :task, :message, 2, "google.cloud.dataplex.v1.Task"
|
140
|
+
optional :validate_only, :bool, 3
|
141
|
+
end
|
142
|
+
add_message "google.cloud.dataplex.v1.DeleteTaskRequest" do
|
143
|
+
optional :name, :string, 1
|
144
|
+
end
|
145
|
+
add_message "google.cloud.dataplex.v1.ListTasksRequest" do
|
146
|
+
optional :parent, :string, 1
|
147
|
+
optional :page_size, :int32, 2
|
148
|
+
optional :page_token, :string, 3
|
149
|
+
optional :filter, :string, 4
|
150
|
+
optional :order_by, :string, 5
|
151
|
+
end
|
152
|
+
add_message "google.cloud.dataplex.v1.ListTasksResponse" do
|
153
|
+
repeated :tasks, :message, 1, "google.cloud.dataplex.v1.Task"
|
154
|
+
optional :next_page_token, :string, 2
|
155
|
+
repeated :unreachable_locations, :string, 3
|
156
|
+
end
|
157
|
+
add_message "google.cloud.dataplex.v1.GetTaskRequest" do
|
158
|
+
optional :name, :string, 1
|
159
|
+
end
|
160
|
+
add_message "google.cloud.dataplex.v1.GetJobRequest" do
|
161
|
+
optional :name, :string, 1
|
162
|
+
end
|
163
|
+
add_message "google.cloud.dataplex.v1.ListJobsRequest" do
|
164
|
+
optional :parent, :string, 1
|
165
|
+
optional :page_size, :int32, 2
|
166
|
+
optional :page_token, :string, 3
|
167
|
+
end
|
168
|
+
add_message "google.cloud.dataplex.v1.ListJobsResponse" do
|
169
|
+
repeated :jobs, :message, 1, "google.cloud.dataplex.v1.Job"
|
170
|
+
optional :next_page_token, :string, 2
|
171
|
+
end
|
172
|
+
add_message "google.cloud.dataplex.v1.CancelJobRequest" do
|
173
|
+
optional :name, :string, 1
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
module Google
|
179
|
+
module Cloud
|
180
|
+
module Dataplex
|
181
|
+
module V1
|
182
|
+
CreateLakeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateLakeRequest").msgclass
|
183
|
+
UpdateLakeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateLakeRequest").msgclass
|
184
|
+
DeleteLakeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteLakeRequest").msgclass
|
185
|
+
ListLakesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListLakesRequest").msgclass
|
186
|
+
ListLakesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListLakesResponse").msgclass
|
187
|
+
ListLakeActionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListLakeActionsRequest").msgclass
|
188
|
+
ListActionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListActionsResponse").msgclass
|
189
|
+
GetLakeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetLakeRequest").msgclass
|
190
|
+
CreateZoneRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateZoneRequest").msgclass
|
191
|
+
UpdateZoneRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateZoneRequest").msgclass
|
192
|
+
DeleteZoneRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteZoneRequest").msgclass
|
193
|
+
ListZonesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListZonesRequest").msgclass
|
194
|
+
ListZonesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListZonesResponse").msgclass
|
195
|
+
ListZoneActionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListZoneActionsRequest").msgclass
|
196
|
+
GetZoneRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetZoneRequest").msgclass
|
197
|
+
CreateAssetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateAssetRequest").msgclass
|
198
|
+
UpdateAssetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateAssetRequest").msgclass
|
199
|
+
DeleteAssetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteAssetRequest").msgclass
|
200
|
+
ListAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListAssetsRequest").msgclass
|
201
|
+
ListAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListAssetsResponse").msgclass
|
202
|
+
ListAssetActionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListAssetActionsRequest").msgclass
|
203
|
+
GetAssetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetAssetRequest").msgclass
|
204
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.OperationMetadata").msgclass
|
205
|
+
CreateTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateTaskRequest").msgclass
|
206
|
+
UpdateTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateTaskRequest").msgclass
|
207
|
+
DeleteTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteTaskRequest").msgclass
|
208
|
+
ListTasksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListTasksRequest").msgclass
|
209
|
+
ListTasksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListTasksResponse").msgclass
|
210
|
+
GetTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetTaskRequest").msgclass
|
211
|
+
GetJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetJobRequest").msgclass
|
212
|
+
ListJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListJobsRequest").msgclass
|
213
|
+
ListJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListJobsResponse").msgclass
|
214
|
+
CancelJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CancelJobRequest").msgclass
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/dataplex/v1/service.proto for package 'google.cloud.dataplex.v1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/dataplex/v1/service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Dataplex
|
25
|
+
module V1
|
26
|
+
module DataplexService
|
27
|
+
# Dataplex service provides data lakes as a service. The primary resources
|
28
|
+
# offered by this service are Lakes, Zones and Assets which collectively allow
|
29
|
+
# a data adminstrator to organize, manage, secure and catalog data across their
|
30
|
+
# organization located across cloud projects in a variety of storage systems
|
31
|
+
# including Cloud Storage and BigQuery.
|
32
|
+
class Service
|
33
|
+
|
34
|
+
include ::GRPC::GenericService
|
35
|
+
|
36
|
+
self.marshal_class_method = :encode
|
37
|
+
self.unmarshal_class_method = :decode
|
38
|
+
self.service_name = 'google.cloud.dataplex.v1.DataplexService'
|
39
|
+
|
40
|
+
# Creates a lake resource.
|
41
|
+
rpc :CreateLake, ::Google::Cloud::Dataplex::V1::CreateLakeRequest, ::Google::Longrunning::Operation
|
42
|
+
# Updates a lake resource.
|
43
|
+
rpc :UpdateLake, ::Google::Cloud::Dataplex::V1::UpdateLakeRequest, ::Google::Longrunning::Operation
|
44
|
+
# Deletes a lake resource. All zones within the lake must be deleted before
|
45
|
+
# the lake can be deleted.
|
46
|
+
rpc :DeleteLake, ::Google::Cloud::Dataplex::V1::DeleteLakeRequest, ::Google::Longrunning::Operation
|
47
|
+
# Lists lake resources in a project and location.
|
48
|
+
rpc :ListLakes, ::Google::Cloud::Dataplex::V1::ListLakesRequest, ::Google::Cloud::Dataplex::V1::ListLakesResponse
|
49
|
+
# Retrieves a lake resource.
|
50
|
+
rpc :GetLake, ::Google::Cloud::Dataplex::V1::GetLakeRequest, ::Google::Cloud::Dataplex::V1::Lake
|
51
|
+
# Lists action resources in a lake.
|
52
|
+
rpc :ListLakeActions, ::Google::Cloud::Dataplex::V1::ListLakeActionsRequest, ::Google::Cloud::Dataplex::V1::ListActionsResponse
|
53
|
+
# Creates a zone resource within a lake.
|
54
|
+
rpc :CreateZone, ::Google::Cloud::Dataplex::V1::CreateZoneRequest, ::Google::Longrunning::Operation
|
55
|
+
# Updates a zone resource.
|
56
|
+
rpc :UpdateZone, ::Google::Cloud::Dataplex::V1::UpdateZoneRequest, ::Google::Longrunning::Operation
|
57
|
+
# Deletes a zone resource. All assets within a zone must be deleted before
|
58
|
+
# the zone can be deleted.
|
59
|
+
rpc :DeleteZone, ::Google::Cloud::Dataplex::V1::DeleteZoneRequest, ::Google::Longrunning::Operation
|
60
|
+
# Lists zone resources in a lake.
|
61
|
+
rpc :ListZones, ::Google::Cloud::Dataplex::V1::ListZonesRequest, ::Google::Cloud::Dataplex::V1::ListZonesResponse
|
62
|
+
# Retrieves a zone resource.
|
63
|
+
rpc :GetZone, ::Google::Cloud::Dataplex::V1::GetZoneRequest, ::Google::Cloud::Dataplex::V1::Zone
|
64
|
+
# Lists action resources in a zone.
|
65
|
+
rpc :ListZoneActions, ::Google::Cloud::Dataplex::V1::ListZoneActionsRequest, ::Google::Cloud::Dataplex::V1::ListActionsResponse
|
66
|
+
# Creates an asset resource.
|
67
|
+
rpc :CreateAsset, ::Google::Cloud::Dataplex::V1::CreateAssetRequest, ::Google::Longrunning::Operation
|
68
|
+
# Updates an asset resource.
|
69
|
+
rpc :UpdateAsset, ::Google::Cloud::Dataplex::V1::UpdateAssetRequest, ::Google::Longrunning::Operation
|
70
|
+
# Deletes an asset resource. The referenced storage resource is detached
|
71
|
+
# (default) or deleted based on the associated Lifecycle policy.
|
72
|
+
rpc :DeleteAsset, ::Google::Cloud::Dataplex::V1::DeleteAssetRequest, ::Google::Longrunning::Operation
|
73
|
+
# Lists asset resources in a zone.
|
74
|
+
rpc :ListAssets, ::Google::Cloud::Dataplex::V1::ListAssetsRequest, ::Google::Cloud::Dataplex::V1::ListAssetsResponse
|
75
|
+
# Retrieves an asset resource.
|
76
|
+
rpc :GetAsset, ::Google::Cloud::Dataplex::V1::GetAssetRequest, ::Google::Cloud::Dataplex::V1::Asset
|
77
|
+
# Lists action resources in an asset.
|
78
|
+
rpc :ListAssetActions, ::Google::Cloud::Dataplex::V1::ListAssetActionsRequest, ::Google::Cloud::Dataplex::V1::ListActionsResponse
|
79
|
+
# Creates a task resource within a lake.
|
80
|
+
rpc :CreateTask, ::Google::Cloud::Dataplex::V1::CreateTaskRequest, ::Google::Longrunning::Operation
|
81
|
+
# Update the task resource.
|
82
|
+
rpc :UpdateTask, ::Google::Cloud::Dataplex::V1::UpdateTaskRequest, ::Google::Longrunning::Operation
|
83
|
+
# Delete the task resource.
|
84
|
+
rpc :DeleteTask, ::Google::Cloud::Dataplex::V1::DeleteTaskRequest, ::Google::Longrunning::Operation
|
85
|
+
# Lists tasks under the given lake.
|
86
|
+
rpc :ListTasks, ::Google::Cloud::Dataplex::V1::ListTasksRequest, ::Google::Cloud::Dataplex::V1::ListTasksResponse
|
87
|
+
# Get task resource.
|
88
|
+
rpc :GetTask, ::Google::Cloud::Dataplex::V1::GetTaskRequest, ::Google::Cloud::Dataplex::V1::Task
|
89
|
+
# Lists Jobs under the given task.
|
90
|
+
rpc :ListJobs, ::Google::Cloud::Dataplex::V1::ListJobsRequest, ::Google::Cloud::Dataplex::V1::ListJobsResponse
|
91
|
+
# Get job resource.
|
92
|
+
rpc :GetJob, ::Google::Cloud::Dataplex::V1::GetJobRequest, ::Google::Cloud::Dataplex::V1::Job
|
93
|
+
# Cancel jobs running for the task resource.
|
94
|
+
rpc :CancelJob, ::Google::Cloud::Dataplex::V1::CancelJobRequest, ::Google::Protobuf::Empty
|
95
|
+
end
|
96
|
+
|
97
|
+
Stub = Service.rpc_stub_class
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,133 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dataplex/v1/tasks.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/field_behavior_pb'
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/cloud/dataplex/v1/resources_pb'
|
8
|
+
require 'google/protobuf/duration_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/dataplex/v1/tasks.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.dataplex.v1.Task" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :uid, :string, 2
|
17
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
18
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
19
|
+
optional :description, :string, 5
|
20
|
+
optional :display_name, :string, 6
|
21
|
+
optional :state, :enum, 7, "google.cloud.dataplex.v1.State"
|
22
|
+
map :labels, :string, :string, 8
|
23
|
+
optional :trigger_spec, :message, 100, "google.cloud.dataplex.v1.Task.TriggerSpec"
|
24
|
+
optional :execution_spec, :message, 101, "google.cloud.dataplex.v1.Task.ExecutionSpec"
|
25
|
+
oneof :config do
|
26
|
+
optional :spark, :message, 300, "google.cloud.dataplex.v1.Task.SparkTaskConfig"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
add_message "google.cloud.dataplex.v1.Task.InfrastructureSpec" do
|
30
|
+
oneof :resources do
|
31
|
+
optional :batch, :message, 52, "google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources"
|
32
|
+
end
|
33
|
+
oneof :runtime do
|
34
|
+
optional :container_image, :message, 101, "google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime"
|
35
|
+
end
|
36
|
+
oneof :network do
|
37
|
+
optional :vpc_network, :message, 150, "google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
add_message "google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources" do
|
41
|
+
optional :executors_count, :int32, 1
|
42
|
+
optional :max_executors_count, :int32, 2
|
43
|
+
end
|
44
|
+
add_message "google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime" do
|
45
|
+
repeated :java_jars, :string, 2
|
46
|
+
repeated :python_packages, :string, 3
|
47
|
+
map :properties, :string, :string, 4
|
48
|
+
end
|
49
|
+
add_message "google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork" do
|
50
|
+
repeated :network_tags, :string, 3
|
51
|
+
oneof :network_name do
|
52
|
+
optional :network, :string, 1
|
53
|
+
optional :sub_network, :string, 2
|
54
|
+
end
|
55
|
+
end
|
56
|
+
add_message "google.cloud.dataplex.v1.Task.TriggerSpec" do
|
57
|
+
optional :type, :enum, 5, "google.cloud.dataplex.v1.Task.TriggerSpec.Type"
|
58
|
+
optional :start_time, :message, 6, "google.protobuf.Timestamp"
|
59
|
+
optional :disabled, :bool, 4
|
60
|
+
optional :max_retries, :int32, 7
|
61
|
+
oneof :trigger do
|
62
|
+
optional :schedule, :string, 100
|
63
|
+
end
|
64
|
+
end
|
65
|
+
add_enum "google.cloud.dataplex.v1.Task.TriggerSpec.Type" do
|
66
|
+
value :TYPE_UNSPECIFIED, 0
|
67
|
+
value :ON_DEMAND, 1
|
68
|
+
value :RECURRING, 2
|
69
|
+
end
|
70
|
+
add_message "google.cloud.dataplex.v1.Task.ExecutionSpec" do
|
71
|
+
map :args, :string, :string, 4
|
72
|
+
optional :service_account, :string, 5
|
73
|
+
optional :max_job_execution_lifetime, :message, 8, "google.protobuf.Duration"
|
74
|
+
end
|
75
|
+
add_message "google.cloud.dataplex.v1.Task.SparkTaskConfig" do
|
76
|
+
repeated :file_uris, :string, 3
|
77
|
+
repeated :archive_uris, :string, 4
|
78
|
+
optional :infrastructure_spec, :message, 6, "google.cloud.dataplex.v1.Task.InfrastructureSpec"
|
79
|
+
oneof :driver do
|
80
|
+
optional :main_jar_file_uri, :string, 100
|
81
|
+
optional :main_class, :string, 101
|
82
|
+
optional :python_script_file, :string, 102
|
83
|
+
optional :sql_script_file, :string, 104
|
84
|
+
optional :sql_script, :string, 105
|
85
|
+
end
|
86
|
+
end
|
87
|
+
add_message "google.cloud.dataplex.v1.Job" do
|
88
|
+
optional :name, :string, 1
|
89
|
+
optional :uid, :string, 2
|
90
|
+
optional :start_time, :message, 3, "google.protobuf.Timestamp"
|
91
|
+
optional :end_time, :message, 4, "google.protobuf.Timestamp"
|
92
|
+
optional :state, :enum, 5, "google.cloud.dataplex.v1.Job.State"
|
93
|
+
optional :retry_count, :uint32, 6
|
94
|
+
optional :service, :enum, 7, "google.cloud.dataplex.v1.Job.Service"
|
95
|
+
optional :service_job, :string, 8
|
96
|
+
optional :message, :string, 9
|
97
|
+
end
|
98
|
+
add_enum "google.cloud.dataplex.v1.Job.Service" do
|
99
|
+
value :SERVICE_UNSPECIFIED, 0
|
100
|
+
value :DATAPROC, 1
|
101
|
+
end
|
102
|
+
add_enum "google.cloud.dataplex.v1.Job.State" do
|
103
|
+
value :STATE_UNSPECIFIED, 0
|
104
|
+
value :RUNNING, 1
|
105
|
+
value :CANCELLING, 2
|
106
|
+
value :CANCELLED, 3
|
107
|
+
value :SUCCEEDED, 4
|
108
|
+
value :FAILED, 5
|
109
|
+
value :ABORTED, 6
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
module Google
|
115
|
+
module Cloud
|
116
|
+
module Dataplex
|
117
|
+
module V1
|
118
|
+
Task = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task").msgclass
|
119
|
+
Task::InfrastructureSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.InfrastructureSpec").msgclass
|
120
|
+
Task::InfrastructureSpec::BatchComputeResources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources").msgclass
|
121
|
+
Task::InfrastructureSpec::ContainerImageRuntime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime").msgclass
|
122
|
+
Task::InfrastructureSpec::VpcNetwork = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork").msgclass
|
123
|
+
Task::TriggerSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.TriggerSpec").msgclass
|
124
|
+
Task::TriggerSpec::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.TriggerSpec.Type").enummodule
|
125
|
+
Task::ExecutionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.ExecutionSpec").msgclass
|
126
|
+
Task::SparkTaskConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.SparkTaskConfig").msgclass
|
127
|
+
Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Job").msgclass
|
128
|
+
Job::Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Job.Service").enummodule
|
129
|
+
Job::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Job.State").enummodule
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Dataplex
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/dataplex/v1/metadata_service"
|
20
|
+
require "google/cloud/dataplex/v1/dataplex_service"
|
21
|
+
require "google/cloud/dataplex/v1/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module Dataplex
|
26
|
+
##
|
27
|
+
# To load this package, including all its services, and instantiate a client:
|
28
|
+
#
|
29
|
+
# require "google/cloud/dataplex/v1"
|
30
|
+
# client = ::Google::Cloud::Dataplex::V1::MetadataService::Client.new
|
31
|
+
#
|
32
|
+
module V1
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
39
|
+
require "google/cloud/dataplex/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/dataplex/v1"
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|