google-cloud-dataplex-v1 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -5
- data/lib/google/cloud/dataplex/v1/analyze_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/content_pb.rb +4 -1
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +372 -0
- data/lib/google/cloud/dataplex/v1/content_services_pb.rb +24 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +67 -13
- data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +3 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service.rb +3 -3
- data/lib/google/cloud/dataplex/v1/logs_pb.rb +3 -2
- data/lib/google/cloud/dataplex/v1/metadata_pb.rb +2 -1
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +38 -9
- data/lib/google/cloud/dataplex/v1/resources_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/service_pb.rb +3 -1
- data/lib/google/cloud/dataplex/v1/service_services_pb.rb +3 -3
- data/lib/google/cloud/dataplex/v1/tasks_pb.rb +11 -2
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/lib/google/cloud/dataplex/v1.rb +2 -0
- data/proto_docs/google/cloud/dataplex/v1/logs.rb +4 -0
- data/proto_docs/google/cloud/dataplex/v1/metadata.rb +48 -45
- data/proto_docs/google/cloud/dataplex/v1/resources.rb +1 -1
- data/proto_docs/google/cloud/dataplex/v1/service.rb +20 -9
- data/proto_docs/google/cloud/dataplex/v1/tasks.rb +31 -2
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +53 -12
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dataplex/v1/service_pb"
|
21
|
+
require "google/cloud/location"
|
22
|
+
require "google/iam/v1/iam_policy"
|
21
23
|
|
22
24
|
module Google
|
23
25
|
module Cloud
|
@@ -29,9 +31,9 @@ module Google
|
|
29
31
|
#
|
30
32
|
# Dataplex service provides data lakes as a service. The primary resources
|
31
33
|
# offered by this service are Lakes, Zones and Assets which collectively allow
|
32
|
-
# a data
|
33
|
-
# organization located across cloud projects in a variety of storage
|
34
|
-
# including Cloud Storage and BigQuery.
|
34
|
+
# a data administrator to organize, manage, secure and catalog data across
|
35
|
+
# their organization located across cloud projects in a variety of storage
|
36
|
+
# systems including Cloud Storage and BigQuery.
|
35
37
|
#
|
36
38
|
class Client
|
37
39
|
include Paths
|
@@ -159,6 +161,22 @@ module Google
|
|
159
161
|
|
160
162
|
default_config.rpcs.cancel_job.timeout = 60.0
|
161
163
|
|
164
|
+
default_config.rpcs.create_environment.timeout = 60.0
|
165
|
+
|
166
|
+
default_config.rpcs.update_environment.timeout = 60.0
|
167
|
+
|
168
|
+
default_config.rpcs.delete_environment.timeout = 60.0
|
169
|
+
|
170
|
+
default_config.rpcs.list_environments.timeout = 60.0
|
171
|
+
default_config.rpcs.list_environments.retry_policy = {
|
172
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
173
|
+
}
|
174
|
+
|
175
|
+
default_config.rpcs.get_environment.timeout = 60.0
|
176
|
+
default_config.rpcs.get_environment.retry_policy = {
|
177
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
178
|
+
}
|
179
|
+
|
162
180
|
default_config
|
163
181
|
end
|
164
182
|
yield @configure if block_given?
|
@@ -234,6 +252,18 @@ module Google
|
|
234
252
|
config.endpoint = @config.endpoint
|
235
253
|
end
|
236
254
|
|
255
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
256
|
+
config.credentials = credentials
|
257
|
+
config.quota_project = @quota_project_id
|
258
|
+
config.endpoint = @config.endpoint
|
259
|
+
end
|
260
|
+
|
261
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
262
|
+
config.credentials = credentials
|
263
|
+
config.quota_project = @quota_project_id
|
264
|
+
config.endpoint = @config.endpoint
|
265
|
+
end
|
266
|
+
|
237
267
|
@dataplex_service_stub = ::Gapic::ServiceStub.new(
|
238
268
|
::Google::Cloud::Dataplex::V1::DataplexService::Stub,
|
239
269
|
credentials: credentials,
|
@@ -250,6 +280,20 @@ module Google
|
|
250
280
|
#
|
251
281
|
attr_reader :operations_client
|
252
282
|
|
283
|
+
##
|
284
|
+
# Get the associated client for mix-in of the Locations.
|
285
|
+
#
|
286
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
287
|
+
#
|
288
|
+
attr_reader :location_client
|
289
|
+
|
290
|
+
##
|
291
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
292
|
+
#
|
293
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
294
|
+
#
|
295
|
+
attr_reader :iam_policy_client
|
296
|
+
|
253
297
|
# Service calls
|
254
298
|
|
255
299
|
##
|
@@ -481,7 +525,7 @@ module Google
|
|
481
525
|
#
|
482
526
|
# @param name [::String]
|
483
527
|
# Required. The resource name of the lake:
|
484
|
-
# `projects/{project_number}/locations/{location_id}/lakes/{lake_id}
|
528
|
+
# `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
|
485
529
|
#
|
486
530
|
# @yield [response, operation] Access the result along with the RPC operation
|
487
531
|
# @yieldparam response [::Gapic::Operation]
|
@@ -767,7 +811,7 @@ module Google
|
|
767
811
|
#
|
768
812
|
# @param parent [::String]
|
769
813
|
# Required. The resource name of the parent lake:
|
770
|
-
# `projects/{project_number}/locations/{location_id}/lakes/{lake_id}
|
814
|
+
# `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
|
771
815
|
# @param page_size [::Integer]
|
772
816
|
# Optional. Maximum number of actions to return. The service may return fewer than this
|
773
817
|
# value. If unspecified, at most 10 actions will be returned. The maximum
|
@@ -1465,7 +1509,7 @@ module Google
|
|
1465
1509
|
#
|
1466
1510
|
# @param parent [::String]
|
1467
1511
|
# Required. The resource name of the parent zone:
|
1468
|
-
# `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}
|
1512
|
+
# `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
|
1469
1513
|
# @param asset_id [::String]
|
1470
1514
|
# Required. Asset identifier.
|
1471
1515
|
# This ID will be used to generate names such as table names when publishing
|
@@ -2460,7 +2504,7 @@ module Google
|
|
2460
2504
|
#
|
2461
2505
|
# @param name [::String]
|
2462
2506
|
# Required. The resource name of the task:
|
2463
|
-
# `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}
|
2507
|
+
# `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`.
|
2464
2508
|
#
|
2465
2509
|
# @yield [response, operation] Access the result along with the RPC operation
|
2466
2510
|
# @yieldparam response [::Google::Cloud::Dataplex::V1::Task]
|
@@ -2820,7 +2864,7 @@ module Google
|
|
2820
2864
|
#
|
2821
2865
|
# @param parent [::String]
|
2822
2866
|
# Required. The resource name of the parent lake:
|
2823
|
-
# projects
|
2867
|
+
# `projects/{project_id}/locations/{location_id}/lakes/{lake_id}`.
|
2824
2868
|
# @param environment_id [::String]
|
2825
2869
|
# Required. Environment identifier.
|
2826
2870
|
# * Must contain only lowercase letters, numbers and hyphens.
|
@@ -3026,7 +3070,7 @@ module Google
|
|
3026
3070
|
#
|
3027
3071
|
# @param name [::String]
|
3028
3072
|
# Required. The resource name of the environment:
|
3029
|
-
# projects
|
3073
|
+
# `projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environments/{environment_id}`.
|
3030
3074
|
#
|
3031
3075
|
# @yield [response, operation] Access the result along with the RPC operation
|
3032
3076
|
# @yieldparam response [::Gapic::Operation]
|
@@ -3120,7 +3164,7 @@ module Google
|
|
3120
3164
|
#
|
3121
3165
|
# @param parent [::String]
|
3122
3166
|
# Required. The resource name of the parent lake:
|
3123
|
-
# projects
|
3167
|
+
# `projects/{project_id}/locations/{location_id}/lakes/{lake_id}`.
|
3124
3168
|
# @param page_size [::Integer]
|
3125
3169
|
# Optional. Maximum number of environments to return. The service may return fewer than
|
3126
3170
|
# this value. If unspecified, at most 10 environments will be returned. The
|
@@ -3226,7 +3270,7 @@ module Google
|
|
3226
3270
|
#
|
3227
3271
|
# @param name [::String]
|
3228
3272
|
# Required. The resource name of the environment:
|
3229
|
-
# projects
|
3273
|
+
# `projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environments/{environment_id}`.
|
3230
3274
|
#
|
3231
3275
|
# @yield [response, operation] Access the result along with the RPC operation
|
3232
3276
|
# @yieldparam response [::Google::Cloud::Dataplex::V1::Environment]
|
@@ -3305,14 +3349,14 @@ module Google
|
|
3305
3349
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3306
3350
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3307
3351
|
#
|
3308
|
-
# @overload list_sessions(parent: nil, page_size: nil, page_token: nil)
|
3352
|
+
# @overload list_sessions(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
3309
3353
|
# Pass arguments to `list_sessions` via keyword arguments. Note that at
|
3310
3354
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3311
3355
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3312
3356
|
#
|
3313
3357
|
# @param parent [::String]
|
3314
3358
|
# Required. The resource name of the parent environment:
|
3315
|
-
# projects
|
3359
|
+
# `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}`.
|
3316
3360
|
# @param page_size [::Integer]
|
3317
3361
|
# Optional. Maximum number of sessions to return. The service may return fewer than
|
3318
3362
|
# this value. If unspecified, at most 10 sessions will be returned. The
|
@@ -3322,6 +3366,16 @@ module Google
|
|
3322
3366
|
# retrieve the subsequent page. When paginating, all other parameters
|
3323
3367
|
# provided to `ListSessions` must match the call that provided the page
|
3324
3368
|
# token.
|
3369
|
+
# @param filter [::String]
|
3370
|
+
# Optional. Filter request. The following `mode` filter is supported to return only the
|
3371
|
+
# sessions belonging to the requester when the mode is USER and return
|
3372
|
+
# sessions of all the users when the mode is ADMIN. When no filter is sent
|
3373
|
+
# default to USER mode.
|
3374
|
+
# NOTE: When the mode is ADMIN, the requester should have
|
3375
|
+
# `dataplex.environments.listAllSessions` permission to list all sessions,
|
3376
|
+
# in absence of the permission, the request fails.
|
3377
|
+
#
|
3378
|
+
# mode = ADMIN | USER
|
3325
3379
|
#
|
3326
3380
|
# @yield [response, operation] Access the result along with the RPC operation
|
3327
3381
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::Session>]
|
@@ -34,9 +34,9 @@ module Google
|
|
34
34
|
##
|
35
35
|
# Dataplex service provides data lakes as a service. The primary resources
|
36
36
|
# offered by this service are Lakes, Zones and Assets which collectively allow
|
37
|
-
# a data
|
38
|
-
# organization located across cloud projects in a variety of storage
|
39
|
-
# including Cloud Storage and BigQuery.
|
37
|
+
# a data administrator to organize, manage, secure and catalog data across
|
38
|
+
# their organization located across cloud projects in a variety of storage
|
39
|
+
# systems including Cloud Storage and BigQuery.
|
40
40
|
#
|
41
41
|
# To load this service and instantiate a client:
|
42
42
|
#
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dataplex/v1/logs.proto
|
3
3
|
|
4
|
-
require 'google/
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
5
6
|
require 'google/protobuf/duration_pb'
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'google/protobuf'
|
8
8
|
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/dataplex/v1/logs.proto", :syntax => :proto3) do
|
@@ -33,6 +33,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
33
33
|
optional :partition, :string, 1
|
34
34
|
optional :entity, :string, 2
|
35
35
|
optional :type, :enum, 3, "google.cloud.dataplex.v1.DiscoveryEvent.EntityType"
|
36
|
+
repeated :sampled_data_locations, :string, 4
|
36
37
|
end
|
37
38
|
add_message "google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails" do
|
38
39
|
optional :type, :string, 1
|
@@ -1,13 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dataplex/v1/metadata.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
8
10
|
require 'google/protobuf/empty_pb'
|
9
11
|
require 'google/protobuf/timestamp_pb'
|
10
|
-
require 'google/protobuf'
|
11
12
|
|
12
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
14
|
add_file("google/cloud/dataplex/v1/metadata.proto", :syntax => :proto3) do
|
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/dataplex/v1/metadata_pb"
|
21
|
+
require "google/cloud/location"
|
22
|
+
require "google/iam/v1/iam_policy"
|
21
23
|
|
22
24
|
module Google
|
23
25
|
module Cloud
|
@@ -164,6 +166,18 @@ module Google
|
|
164
166
|
@quota_project_id = @config.quota_project
|
165
167
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
166
168
|
|
169
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
170
|
+
config.credentials = credentials
|
171
|
+
config.quota_project = @quota_project_id
|
172
|
+
config.endpoint = @config.endpoint
|
173
|
+
end
|
174
|
+
|
175
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
176
|
+
config.credentials = credentials
|
177
|
+
config.quota_project = @quota_project_id
|
178
|
+
config.endpoint = @config.endpoint
|
179
|
+
end
|
180
|
+
|
167
181
|
@metadata_service_stub = ::Gapic::ServiceStub.new(
|
168
182
|
::Google::Cloud::Dataplex::V1::MetadataService::Stub,
|
169
183
|
credentials: credentials,
|
@@ -173,6 +187,20 @@ module Google
|
|
173
187
|
)
|
174
188
|
end
|
175
189
|
|
190
|
+
##
|
191
|
+
# Get the associated client for mix-in of the Locations.
|
192
|
+
#
|
193
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
194
|
+
#
|
195
|
+
attr_reader :location_client
|
196
|
+
|
197
|
+
##
|
198
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
199
|
+
#
|
200
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
201
|
+
#
|
202
|
+
attr_reader :iam_policy_client
|
203
|
+
|
176
204
|
# Service calls
|
177
205
|
|
178
206
|
##
|
@@ -376,7 +404,8 @@ module Google
|
|
376
404
|
# Required. The resource name of the entity:
|
377
405
|
# `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
|
378
406
|
# @param etag [::String]
|
379
|
-
# Required. The etag associated with the
|
407
|
+
# Required. The etag associated with the entity, which can be retrieved with a
|
408
|
+
# [GetEntity][] request.
|
380
409
|
#
|
381
410
|
# @yield [response, operation] Access the result along with the RPC operation
|
382
411
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -570,8 +599,8 @@ module Google
|
|
570
599
|
# - Entity ID: ?filter="id=entityID"
|
571
600
|
# - Asset ID: ?filter="asset=assetID"
|
572
601
|
# - Data path ?filter="data_path=gs://my-bucket"
|
573
|
-
# - Is HIVE compatible: ?filter
|
574
|
-
# - Is BigQuery compatible: ?filter
|
602
|
+
# - Is HIVE compatible: ?filter="hive_compatible=true"
|
603
|
+
# - Is BigQuery compatible: ?filter="bigquery_compatible=true"
|
575
604
|
#
|
576
605
|
# @yield [response, operation] Access the result along with the RPC operation
|
577
606
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::Entity>]
|
@@ -760,7 +789,7 @@ module Google
|
|
760
789
|
# The \\{partition_value_path} segment consists of an ordered sequence of
|
761
790
|
# partition values separated by "/". All values must be provided.
|
762
791
|
# @param etag [::String]
|
763
|
-
# Optional. The etag associated with the partition
|
792
|
+
# Optional. The etag associated with the partition.
|
764
793
|
#
|
765
794
|
# @yield [response, operation] Access the result along with the RPC operation
|
766
795
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -945,14 +974,14 @@ module Google
|
|
945
974
|
# provided to `ListPartitions` must match the call that provided the
|
946
975
|
# page token.
|
947
976
|
# @param filter [::String]
|
948
|
-
# Optional. Filter the partitions returned to the caller using a key
|
949
|
-
# expression.
|
977
|
+
# Optional. Filter the partitions returned to the caller using a key value pair
|
978
|
+
# expression. Supported operators and syntax:
|
950
979
|
#
|
951
|
-
# -
|
980
|
+
# - logic operators: AND, OR
|
952
981
|
# - comparison operators: <, >, >=, <= ,=, !=
|
953
982
|
# - LIKE operators:
|
954
|
-
#
|
955
|
-
#
|
983
|
+
# - The right hand of a LIKE operator supports "." and
|
984
|
+
# "*" for wildcard searches, for example "value1 LIKE ".*oo.*"
|
956
985
|
# - parenthetical grouping: ( )
|
957
986
|
#
|
958
987
|
# Sample filter expression: `?filter="key1 < value1 OR key2 > value2"
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dataplex/v1/resources.proto
|
3
3
|
|
4
|
-
require 'google/
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
5
6
|
require 'google/api/field_behavior_pb'
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
require 'google/protobuf/duration_pb'
|
8
9
|
require 'google/protobuf/timestamp_pb'
|
9
|
-
require 'google/protobuf'
|
10
10
|
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/dataplex/v1/resources.proto", :syntax => :proto3) do
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dataplex/v1/service.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -12,7 +14,6 @@ require 'google/longrunning/operations_pb'
|
|
12
14
|
require 'google/protobuf/empty_pb'
|
13
15
|
require 'google/protobuf/field_mask_pb'
|
14
16
|
require 'google/protobuf/timestamp_pb'
|
15
|
-
require 'google/protobuf'
|
16
17
|
|
17
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
19
|
add_file("google/cloud/dataplex/v1/service.proto", :syntax => :proto3) do
|
@@ -205,6 +206,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
205
206
|
optional :parent, :string, 1
|
206
207
|
optional :page_size, :int32, 2
|
207
208
|
optional :page_token, :string, 3
|
209
|
+
optional :filter, :string, 4
|
208
210
|
end
|
209
211
|
add_message "google.cloud.dataplex.v1.ListSessionsResponse" do
|
210
212
|
repeated :sessions, :message, 1, "google.cloud.dataplex.v1.Session"
|
@@ -26,9 +26,9 @@ module Google
|
|
26
26
|
module DataplexService
|
27
27
|
# Dataplex service provides data lakes as a service. The primary resources
|
28
28
|
# offered by this service are Lakes, Zones and Assets which collectively allow
|
29
|
-
# a data
|
30
|
-
# organization located across cloud projects in a variety of storage
|
31
|
-
# including Cloud Storage and BigQuery.
|
29
|
+
# a data administrator to organize, manage, secure and catalog data across
|
30
|
+
# their organization located across cloud projects in a variety of storage
|
31
|
+
# systems including Cloud Storage and BigQuery.
|
32
32
|
class Service
|
33
33
|
|
34
34
|
include ::GRPC::GenericService
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dataplex/v1/tasks.proto
|
3
3
|
|
4
|
-
require 'google/
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
5
6
|
require 'google/api/field_behavior_pb'
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
require 'google/cloud/dataplex/v1/resources_pb'
|
8
9
|
require 'google/protobuf/duration_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
|
-
require 'google/protobuf'
|
11
11
|
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/dataplex/v1/tasks.proto", :syntax => :proto3) do
|
@@ -22,6 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
22
|
map :labels, :string, :string, 8
|
23
23
|
optional :trigger_spec, :message, 100, "google.cloud.dataplex.v1.Task.TriggerSpec"
|
24
24
|
optional :execution_spec, :message, 101, "google.cloud.dataplex.v1.Task.ExecutionSpec"
|
25
|
+
optional :execution_status, :message, 201, "google.cloud.dataplex.v1.Task.ExecutionStatus"
|
25
26
|
oneof :config do
|
26
27
|
optional :spark, :message, 300, "google.cloud.dataplex.v1.Task.SparkTaskConfig"
|
27
28
|
end
|
@@ -42,6 +43,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
42
43
|
optional :max_executors_count, :int32, 2
|
43
44
|
end
|
44
45
|
add_message "google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime" do
|
46
|
+
optional :image, :string, 1
|
45
47
|
repeated :java_jars, :string, 2
|
46
48
|
repeated :python_packages, :string, 3
|
47
49
|
map :properties, :string, :string, 4
|
@@ -70,7 +72,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
70
72
|
add_message "google.cloud.dataplex.v1.Task.ExecutionSpec" do
|
71
73
|
map :args, :string, :string, 4
|
72
74
|
optional :service_account, :string, 5
|
75
|
+
optional :project, :string, 7
|
73
76
|
optional :max_job_execution_lifetime, :message, 8, "google.protobuf.Duration"
|
77
|
+
optional :kms_key, :string, 9
|
74
78
|
end
|
75
79
|
add_message "google.cloud.dataplex.v1.Task.SparkTaskConfig" do
|
76
80
|
repeated :file_uris, :string, 3
|
@@ -84,6 +88,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
84
88
|
optional :sql_script, :string, 105
|
85
89
|
end
|
86
90
|
end
|
91
|
+
add_message "google.cloud.dataplex.v1.Task.ExecutionStatus" do
|
92
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
93
|
+
optional :latest_job, :message, 9, "google.cloud.dataplex.v1.Job"
|
94
|
+
end
|
87
95
|
add_message "google.cloud.dataplex.v1.Job" do
|
88
96
|
optional :name, :string, 1
|
89
97
|
optional :uid, :string, 2
|
@@ -124,6 +132,7 @@ module Google
|
|
124
132
|
Task::TriggerSpec::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.TriggerSpec.Type").enummodule
|
125
133
|
Task::ExecutionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.ExecutionSpec").msgclass
|
126
134
|
Task::SparkTaskConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.SparkTaskConfig").msgclass
|
135
|
+
Task::ExecutionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Task.ExecutionStatus").msgclass
|
127
136
|
Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Job").msgclass
|
128
137
|
Job::Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Job.Service").enummodule
|
129
138
|
Job::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Job.State").enummodule
|
@@ -102,6 +102,10 @@ module Google
|
|
102
102
|
# @!attribute [rw] type
|
103
103
|
# @return [::Google::Cloud::Dataplex::V1::DiscoveryEvent::EntityType]
|
104
104
|
# The type of the containing entity resource.
|
105
|
+
# @!attribute [rw] sampled_data_locations
|
106
|
+
# @return [::Array<::String>]
|
107
|
+
# The locations of the data items (e.g., a Cloud Storage objects) sampled
|
108
|
+
# for metadata inference.
|
105
109
|
class PartitionDetails
|
106
110
|
include ::Google::Protobuf::MessageExts
|
107
111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|