google-cloud-dataplex-v1 0.5.0 → 0.6.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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dataplex/v1/content_service/client.rb +4 -4
  4. data/lib/google/cloud/dataplex/v1/content_service.rb +1 -1
  5. data/lib/google/cloud/dataplex/v1/data_profile_pb.rb +78 -0
  6. data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +108 -0
  7. data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +1171 -0
  8. data/lib/google/cloud/dataplex/v1/data_scan_service/credentials.rb +47 -0
  9. data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +770 -0
  10. data/lib/google/cloud/dataplex/v1/data_scan_service/paths.rb +113 -0
  11. data/lib/google/cloud/dataplex/v1/data_scan_service.rb +48 -0
  12. data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +64 -63
  13. data/lib/google/cloud/dataplex/v1/dataplex_service.rb +1 -1
  14. data/lib/google/cloud/dataplex/v1/datascans_pb.rb +169 -0
  15. data/lib/google/cloud/dataplex/v1/datascans_services_pb.rb +58 -0
  16. data/lib/google/cloud/dataplex/v1/logs_pb.rb +53 -0
  17. data/lib/google/cloud/dataplex/v1/metadata_pb.rb +5 -0
  18. data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +18 -16
  19. data/lib/google/cloud/dataplex/v1/metadata_service.rb +1 -1
  20. data/lib/google/cloud/dataplex/v1/processing_pb.rb +53 -0
  21. data/lib/google/cloud/dataplex/v1/version.rb +1 -1
  22. data/lib/google/cloud/dataplex/v1.rb +3 -2
  23. data/proto_docs/google/api/client.rb +318 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/cloud/dataplex/v1/analyze.rb +26 -21
  26. data/proto_docs/google/cloud/dataplex/v1/content.rb +4 -4
  27. data/proto_docs/google/cloud/dataplex/v1/data_profile.rb +232 -0
  28. data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +274 -0
  29. data/proto_docs/google/cloud/dataplex/v1/datascans.rb +418 -0
  30. data/proto_docs/google/cloud/dataplex/v1/logs.rb +135 -2
  31. data/proto_docs/google/cloud/dataplex/v1/metadata.rb +72 -52
  32. data/proto_docs/google/cloud/dataplex/v1/processing.rb +96 -0
  33. data/proto_docs/google/cloud/dataplex/v1/resources.rb +67 -61
  34. data/proto_docs/google/cloud/dataplex/v1/service.rb +67 -65
  35. data/proto_docs/google/cloud/dataplex/v1/tasks.rb +34 -34
  36. data/proto_docs/google/rpc/status.rb +4 -2
  37. metadata +20 -4
@@ -0,0 +1,113 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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
+ module DataScanService
25
+ # Path helper methods for the DataScanService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified DataScan resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/dataScans/{data_scan}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param data_scan [String]
37
+ #
38
+ # @return [::String]
39
+ def data_scan_path project:, location:, data_scan:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/dataScans/#{data_scan}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified DataScanJob resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/dataScans/{data_scan}/jobs/{job}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param data_scan [String]
56
+ # @param job [String]
57
+ #
58
+ # @return [::String]
59
+ def data_scan_job_path project:, location:, data_scan:, job:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
62
+ raise ::ArgumentError, "data_scan cannot contain /" if data_scan.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/dataScans/#{data_scan}/jobs/#{job}"
65
+ end
66
+
67
+ ##
68
+ # Create a fully-qualified Entity resource string.
69
+ #
70
+ # The resource will be in the following format:
71
+ #
72
+ # `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}`
73
+ #
74
+ # @param project [String]
75
+ # @param location [String]
76
+ # @param lake [String]
77
+ # @param zone [String]
78
+ # @param entity [String]
79
+ #
80
+ # @return [::String]
81
+ def entity_path project:, location:, lake:, zone:, entity:
82
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
83
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
84
+ raise ::ArgumentError, "lake cannot contain /" if lake.to_s.include? "/"
85
+ raise ::ArgumentError, "zone cannot contain /" if zone.to_s.include? "/"
86
+
87
+ "projects/#{project}/locations/#{location}/lakes/#{lake}/zones/#{zone}/entities/#{entity}"
88
+ end
89
+
90
+ ##
91
+ # Create a fully-qualified Location resource string.
92
+ #
93
+ # The resource will be in the following format:
94
+ #
95
+ # `projects/{project}/locations/{location}`
96
+ #
97
+ # @param project [String]
98
+ # @param location [String]
99
+ #
100
+ # @return [::String]
101
+ def location_path project:, location:
102
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
103
+
104
+ "projects/#{project}/locations/#{location}"
105
+ end
106
+
107
+ extend self
108
+ end
109
+ end
110
+ end
111
+ end
112
+ end
113
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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 "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dataplex/v1/version"
24
+
25
+ require "google/cloud/dataplex/v1/data_scan_service/credentials"
26
+ require "google/cloud/dataplex/v1/data_scan_service/paths"
27
+ require "google/cloud/dataplex/v1/data_scan_service/operations"
28
+ require "google/cloud/dataplex/v1/data_scan_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Dataplex
33
+ module V1
34
+ ##
35
+ # @example Load this service and instantiate a gRPC client
36
+ #
37
+ # require "google/cloud/dataplex/v1/data_scan_service"
38
+ # client = ::Google::Cloud::Dataplex::V1::DataScanService::Client.new
39
+ #
40
+ module DataScanService
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+
47
+ helper_path = ::File.join __dir__, "data_scan_service", "helpers.rb"
48
+ require "google/cloud/dataplex/v1/data_scan_service/helpers" if ::File.file? helper_path
@@ -622,12 +622,12 @@ module Google
622
622
  # `projects/{project_number}/locations/{location_id}`
623
623
  # where `location_id` refers to a GCP region.
624
624
  # @param page_size [::Integer]
625
- # Optional. Maximum number of Lakes to return. The service may return fewer than this
626
- # value. If unspecified, at most 10 lakes will be returned. The maximum
627
- # value is 1000; values above 1000 will be coerced to 1000.
625
+ # Optional. Maximum number of Lakes to return. The service may return fewer
626
+ # than this value. If unspecified, at most 10 lakes will be returned. The
627
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
628
628
  # @param page_token [::String]
629
- # Optional. Page token received from a previous `ListLakes` call. Provide this to
630
- # retrieve the subsequent page. When paginating, all other parameters
629
+ # Optional. Page token received from a previous `ListLakes` call. Provide
630
+ # this to retrieve the subsequent page. When paginating, all other parameters
631
631
  # provided to `ListLakes` must match the call that provided the page token.
632
632
  # @param filter [::String]
633
633
  # Optional. Filter request.
@@ -813,14 +813,14 @@ module Google
813
813
  # Required. The resource name of the parent lake:
814
814
  # `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
815
815
  # @param page_size [::Integer]
816
- # Optional. Maximum number of actions to return. The service may return fewer than this
817
- # value. If unspecified, at most 10 actions will be returned. The maximum
818
- # value is 1000; values above 1000 will be coerced to 1000.
816
+ # Optional. Maximum number of actions to return. The service may return fewer
817
+ # than this value. If unspecified, at most 10 actions will be returned. The
818
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
819
819
  # @param page_token [::String]
820
- # Optional. Page token received from a previous `ListLakeActions` call. Provide this to
821
- # retrieve the subsequent page. When paginating, all other parameters
822
- # provided to `ListLakeActions` must match the call that provided the page
823
- # token.
820
+ # Optional. Page token received from a previous `ListLakeActions` call.
821
+ # Provide this to retrieve the subsequent page. When paginating, all other
822
+ # parameters provided to `ListLakeActions` must match the call that provided
823
+ # the page token.
824
824
  #
825
825
  # @yield [response, operation] Access the result along with the RPC operation
826
826
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::Action>]
@@ -1218,12 +1218,12 @@ module Google
1218
1218
  # Required. The resource name of the parent lake:
1219
1219
  # `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
1220
1220
  # @param page_size [::Integer]
1221
- # Optional. Maximum number of zones to return. The service may return fewer than this
1222
- # value. If unspecified, at most 10 zones will be returned. The maximum
1223
- # value is 1000; values above 1000 will be coerced to 1000.
1221
+ # Optional. Maximum number of zones to return. The service may return fewer
1222
+ # than this value. If unspecified, at most 10 zones will be returned. The
1223
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
1224
1224
  # @param page_token [::String]
1225
- # Optional. Page token received from a previous `ListZones` call. Provide this to
1226
- # retrieve the subsequent page. When paginating, all other parameters
1225
+ # Optional. Page token received from a previous `ListZones` call. Provide
1226
+ # this to retrieve the subsequent page. When paginating, all other parameters
1227
1227
  # provided to `ListZones` must match the call that provided the page token.
1228
1228
  # @param filter [::String]
1229
1229
  # Optional. Filter request.
@@ -1409,14 +1409,14 @@ module Google
1409
1409
  # Required. The resource name of the parent zone:
1410
1410
  # `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
1411
1411
  # @param page_size [::Integer]
1412
- # Optional. Maximum number of actions to return. The service may return fewer than this
1413
- # value. If unspecified, at most 10 actions will be returned. The maximum
1414
- # value is 1000; values above 1000 will be coerced to 1000.
1412
+ # Optional. Maximum number of actions to return. The service may return fewer
1413
+ # than this value. If unspecified, at most 10 actions will be returned. The
1414
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
1415
1415
  # @param page_token [::String]
1416
- # Optional. Page token received from a previous `ListZoneActions` call. Provide this to
1417
- # retrieve the subsequent page. When paginating, all other parameters
1418
- # provided to `ListZoneActions` must match the call that provided the page
1419
- # token.
1416
+ # Optional. Page token received from a previous `ListZoneActions` call.
1417
+ # Provide this to retrieve the subsequent page. When paginating, all other
1418
+ # parameters provided to `ListZoneActions` must match the call that provided
1419
+ # the page token.
1420
1420
  #
1421
1421
  # @yield [response, operation] Access the result along with the RPC operation
1422
1422
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::Action>]
@@ -1813,12 +1813,12 @@ module Google
1813
1813
  # Required. The resource name of the parent zone:
1814
1814
  # `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
1815
1815
  # @param page_size [::Integer]
1816
- # Optional. Maximum number of asset to return. The service may return fewer than
1817
- # this value. If unspecified, at most 10 assets will be returned. The
1816
+ # Optional. Maximum number of asset to return. The service may return fewer
1817
+ # than this value. If unspecified, at most 10 assets will be returned. The
1818
1818
  # maximum value is 1000; values above 1000 will be coerced to 1000.
1819
1819
  # @param page_token [::String]
1820
- # Optional. Page token received from a previous `ListAssets` call. Provide this to
1821
- # retrieve the subsequent page. When paginating, all other parameters
1820
+ # Optional. Page token received from a previous `ListAssets` call. Provide
1821
+ # this to retrieve the subsequent page. When paginating, all other parameters
1822
1822
  # provided to `ListAssets` must match the call that provided the page
1823
1823
  # token.
1824
1824
  # @param filter [::String]
@@ -2005,14 +2005,14 @@ module Google
2005
2005
  # Required. The resource name of the parent asset:
2006
2006
  # `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`.
2007
2007
  # @param page_size [::Integer]
2008
- # Optional. Maximum number of actions to return. The service may return fewer than this
2009
- # value. If unspecified, at most 10 actions will be returned. The maximum
2010
- # value is 1000; values above 1000 will be coerced to 1000.
2008
+ # Optional. Maximum number of actions to return. The service may return fewer
2009
+ # than this value. If unspecified, at most 10 actions will be returned. The
2010
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
2011
2011
  # @param page_token [::String]
2012
- # Optional. Page token received from a previous `ListAssetActions` call. Provide this
2013
- # to retrieve the subsequent page. When paginating, all other parameters
2014
- # provided to `ListAssetActions` must match the call that provided the page
2015
- # token.
2012
+ # Optional. Page token received from a previous `ListAssetActions` call.
2013
+ # Provide this to retrieve the subsequent page. When paginating, all other
2014
+ # parameters provided to `ListAssetActions` must match the call that provided
2015
+ # the page token.
2016
2016
  #
2017
2017
  # @yield [response, operation] Access the result along with the RPC operation
2018
2018
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::Action>]
@@ -2401,12 +2401,12 @@ module Google
2401
2401
  # Required. The resource name of the parent lake:
2402
2402
  # `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
2403
2403
  # @param page_size [::Integer]
2404
- # Optional. Maximum number of tasks to return. The service may return fewer than this
2405
- # value. If unspecified, at most 10 tasks will be returned. The maximum
2406
- # value is 1000; values above 1000 will be coerced to 1000.
2404
+ # Optional. Maximum number of tasks to return. The service may return fewer
2405
+ # than this value. If unspecified, at most 10 tasks will be returned. The
2406
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
2407
2407
  # @param page_token [::String]
2408
- # Optional. Page token received from a previous `ListZones` call. Provide this to
2409
- # retrieve the subsequent page. When paginating, all other parameters
2408
+ # Optional. Page token received from a previous `ListZones` call. Provide
2409
+ # this to retrieve the subsequent page. When paginating, all other parameters
2410
2410
  # provided to `ListZones` must match the call that provided the page token.
2411
2411
  # @param filter [::String]
2412
2412
  # Optional. Filter request.
@@ -2592,12 +2592,12 @@ module Google
2592
2592
  # Required. The resource name of the parent environment:
2593
2593
  # `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`.
2594
2594
  # @param page_size [::Integer]
2595
- # Optional. Maximum number of jobs to return. The service may return fewer than
2596
- # this value. If unspecified, at most 10 jobs will be returned. The
2595
+ # Optional. Maximum number of jobs to return. The service may return fewer
2596
+ # than this value. If unspecified, at most 10 jobs will be returned. The
2597
2597
  # maximum value is 1000; values above 1000 will be coerced to 1000.
2598
2598
  # @param page_token [::String]
2599
- # Optional. Page token received from a previous `ListJobs` call. Provide this to
2600
- # retrieve the subsequent page. When paginating, all other parameters
2599
+ # Optional. Page token received from a previous `ListJobs` call. Provide this
2600
+ # to retrieve the subsequent page. When paginating, all other parameters
2601
2601
  # provided to `ListJobs` must match the call that provided the page
2602
2602
  # token.
2603
2603
  #
@@ -3166,14 +3166,15 @@ module Google
3166
3166
  # Required. The resource name of the parent lake:
3167
3167
  # `projects/{project_id}/locations/{location_id}/lakes/{lake_id}`.
3168
3168
  # @param page_size [::Integer]
3169
- # Optional. Maximum number of environments to return. The service may return fewer than
3170
- # this value. If unspecified, at most 10 environments will be returned. The
3171
- # maximum value is 1000; values above 1000 will be coerced to 1000.
3169
+ # Optional. Maximum number of environments to return. The service may return
3170
+ # fewer than this value. If unspecified, at most 10 environments will be
3171
+ # returned. The maximum value is 1000; values above 1000 will be coerced to
3172
+ # 1000.
3172
3173
  # @param page_token [::String]
3173
- # Optional. Page token received from a previous `ListEnvironments` call. Provide this
3174
- # to retrieve the subsequent page. When paginating, all other parameters
3175
- # provided to `ListEnvironments` must match the call that provided the page
3176
- # token.
3174
+ # Optional. Page token received from a previous `ListEnvironments` call.
3175
+ # Provide this to retrieve the subsequent page. When paginating, all other
3176
+ # parameters provided to `ListEnvironments` must match the call that provided
3177
+ # the page token.
3177
3178
  # @param filter [::String]
3178
3179
  # Optional. Filter request.
3179
3180
  # @param order_by [::String]
@@ -3358,22 +3359,22 @@ module Google
3358
3359
  # Required. The resource name of the parent environment:
3359
3360
  # `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}`.
3360
3361
  # @param page_size [::Integer]
3361
- # Optional. Maximum number of sessions to return. The service may return fewer than
3362
- # this value. If unspecified, at most 10 sessions will be returned. The
3363
- # maximum value is 1000; values above 1000 will be coerced to 1000.
3362
+ # Optional. Maximum number of sessions to return. The service may return
3363
+ # fewer than this value. If unspecified, at most 10 sessions will be
3364
+ # returned. The maximum value is 1000; values above 1000 will be coerced to
3365
+ # 1000.
3364
3366
  # @param page_token [::String]
3365
- # Optional. Page token received from a previous `ListSessions` call. Provide this to
3366
- # retrieve the subsequent page. When paginating, all other parameters
3367
+ # Optional. Page token received from a previous `ListSessions` call. Provide
3368
+ # this to retrieve the subsequent page. When paginating, all other parameters
3367
3369
  # provided to `ListSessions` must match the call that provided the page
3368
3370
  # token.
3369
3371
  # @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.
3372
+ # Optional. Filter request. The following `mode` filter is supported to
3373
+ # return only the sessions belonging to the requester when the mode is USER
3374
+ # and return sessions of all the users when the mode is ADMIN. When no filter
3375
+ # is sent default to USER mode. NOTE: When the mode is ADMIN, the requester
3376
+ # should have `dataplex.environments.listAllSessions` permission to list all
3377
+ # sessions, in absence of the permission, the request fails.
3377
3378
  #
3378
3379
  # mode = ADMIN | USER
3379
3380
  #
@@ -38,7 +38,7 @@ module Google
38
38
  # their organization located across cloud projects in a variety of storage
39
39
  # systems including Cloud Storage and BigQuery.
40
40
  #
41
- # To load this service and instantiate a client:
41
+ # @example Load this service and instantiate a gRPC client
42
42
  #
43
43
  # require "google/cloud/dataplex/v1/dataplex_service"
44
44
  # client = ::Google::Cloud::Dataplex::V1::DataplexService::Client.new
@@ -0,0 +1,169 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dataplex/v1/datascans.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/dataplex/v1/data_profile_pb'
11
+ require 'google/cloud/dataplex/v1/data_quality_pb'
12
+ require 'google/cloud/dataplex/v1/processing_pb'
13
+ require 'google/cloud/dataplex/v1/resources_pb'
14
+ require 'google/longrunning/operations_pb'
15
+ require 'google/protobuf/field_mask_pb'
16
+ require 'google/protobuf/timestamp_pb'
17
+
18
+ Google::Protobuf::DescriptorPool.generated_pool.build do
19
+ add_file("google/cloud/dataplex/v1/datascans.proto", :syntax => :proto3) do
20
+ add_message "google.cloud.dataplex.v1.CreateDataScanRequest" do
21
+ optional :parent, :string, 1
22
+ optional :data_scan, :message, 2, "google.cloud.dataplex.v1.DataScan"
23
+ optional :data_scan_id, :string, 3
24
+ end
25
+ add_message "google.cloud.dataplex.v1.UpdateDataScanRequest" do
26
+ optional :data_scan, :message, 1, "google.cloud.dataplex.v1.DataScan"
27
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
28
+ end
29
+ add_message "google.cloud.dataplex.v1.DeleteDataScanRequest" do
30
+ optional :name, :string, 1
31
+ end
32
+ add_message "google.cloud.dataplex.v1.GetDataScanRequest" do
33
+ optional :name, :string, 1
34
+ optional :view, :enum, 2, "google.cloud.dataplex.v1.GetDataScanRequest.DataScanView"
35
+ end
36
+ add_enum "google.cloud.dataplex.v1.GetDataScanRequest.DataScanView" do
37
+ value :DATA_SCAN_VIEW_UNSPECIFIED, 0
38
+ value :BASIC, 1
39
+ value :FULL, 10
40
+ end
41
+ add_message "google.cloud.dataplex.v1.ListDataScansRequest" do
42
+ optional :parent, :string, 1
43
+ optional :page_size, :int32, 2
44
+ optional :page_token, :string, 3
45
+ optional :filter, :string, 4
46
+ optional :order_by, :string, 5
47
+ end
48
+ add_message "google.cloud.dataplex.v1.ListDataScansResponse" do
49
+ repeated :data_scans, :message, 1, "google.cloud.dataplex.v1.DataScan"
50
+ optional :next_page_token, :string, 2
51
+ repeated :unreachable, :string, 3
52
+ end
53
+ add_message "google.cloud.dataplex.v1.RunDataScanRequest" do
54
+ optional :name, :string, 1
55
+ end
56
+ add_message "google.cloud.dataplex.v1.RunDataScanResponse" do
57
+ optional :job, :message, 1, "google.cloud.dataplex.v1.DataScanJob"
58
+ end
59
+ add_message "google.cloud.dataplex.v1.GetDataScanJobRequest" do
60
+ optional :name, :string, 1
61
+ optional :view, :enum, 2, "google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView"
62
+ end
63
+ add_enum "google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView" do
64
+ value :DATA_SCAN_JOB_VIEW_UNSPECIFIED, 0
65
+ value :BASIC, 1
66
+ value :FULL, 10
67
+ end
68
+ add_message "google.cloud.dataplex.v1.ListDataScanJobsRequest" do
69
+ optional :parent, :string, 1
70
+ optional :page_size, :int32, 2
71
+ optional :page_token, :string, 3
72
+ end
73
+ add_message "google.cloud.dataplex.v1.ListDataScanJobsResponse" do
74
+ repeated :data_scan_jobs, :message, 1, "google.cloud.dataplex.v1.DataScanJob"
75
+ optional :next_page_token, :string, 2
76
+ end
77
+ add_message "google.cloud.dataplex.v1.DataScan" do
78
+ optional :name, :string, 1
79
+ optional :uid, :string, 2
80
+ optional :description, :string, 3
81
+ optional :display_name, :string, 4
82
+ map :labels, :string, :string, 5
83
+ optional :state, :enum, 6, "google.cloud.dataplex.v1.State"
84
+ optional :create_time, :message, 7, "google.protobuf.Timestamp"
85
+ optional :update_time, :message, 8, "google.protobuf.Timestamp"
86
+ optional :data, :message, 9, "google.cloud.dataplex.v1.DataSource"
87
+ optional :execution_spec, :message, 10, "google.cloud.dataplex.v1.DataScan.ExecutionSpec"
88
+ optional :execution_status, :message, 11, "google.cloud.dataplex.v1.DataScan.ExecutionStatus"
89
+ optional :type, :enum, 12, "google.cloud.dataplex.v1.DataScanType"
90
+ oneof :spec do
91
+ optional :data_quality_spec, :message, 100, "google.cloud.dataplex.v1.DataQualitySpec"
92
+ optional :data_profile_spec, :message, 101, "google.cloud.dataplex.v1.DataProfileSpec"
93
+ end
94
+ oneof :result do
95
+ optional :data_quality_result, :message, 200, "google.cloud.dataplex.v1.DataQualityResult"
96
+ optional :data_profile_result, :message, 201, "google.cloud.dataplex.v1.DataProfileResult"
97
+ end
98
+ end
99
+ add_message "google.cloud.dataplex.v1.DataScan.ExecutionSpec" do
100
+ optional :trigger, :message, 1, "google.cloud.dataplex.v1.Trigger"
101
+ oneof :incremental do
102
+ optional :field, :string, 100
103
+ end
104
+ end
105
+ add_message "google.cloud.dataplex.v1.DataScan.ExecutionStatus" do
106
+ optional :latest_job_start_time, :message, 4, "google.protobuf.Timestamp"
107
+ optional :latest_job_end_time, :message, 5, "google.protobuf.Timestamp"
108
+ end
109
+ add_message "google.cloud.dataplex.v1.DataScanJob" do
110
+ optional :name, :string, 1
111
+ optional :uid, :string, 2
112
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
113
+ optional :end_time, :message, 4, "google.protobuf.Timestamp"
114
+ optional :state, :enum, 5, "google.cloud.dataplex.v1.DataScanJob.State"
115
+ optional :message, :string, 6
116
+ optional :type, :enum, 7, "google.cloud.dataplex.v1.DataScanType"
117
+ oneof :spec do
118
+ optional :data_quality_spec, :message, 100, "google.cloud.dataplex.v1.DataQualitySpec"
119
+ optional :data_profile_spec, :message, 101, "google.cloud.dataplex.v1.DataProfileSpec"
120
+ end
121
+ oneof :result do
122
+ optional :data_quality_result, :message, 200, "google.cloud.dataplex.v1.DataQualityResult"
123
+ optional :data_profile_result, :message, 201, "google.cloud.dataplex.v1.DataProfileResult"
124
+ end
125
+ end
126
+ add_enum "google.cloud.dataplex.v1.DataScanJob.State" do
127
+ value :STATE_UNSPECIFIED, 0
128
+ value :RUNNING, 1
129
+ value :CANCELING, 2
130
+ value :CANCELLED, 3
131
+ value :SUCCEEDED, 4
132
+ value :FAILED, 5
133
+ value :PENDING, 7
134
+ end
135
+ add_enum "google.cloud.dataplex.v1.DataScanType" do
136
+ value :DATA_SCAN_TYPE_UNSPECIFIED, 0
137
+ value :DATA_QUALITY, 1
138
+ value :DATA_PROFILE, 2
139
+ end
140
+ end
141
+ end
142
+
143
+ module Google
144
+ module Cloud
145
+ module Dataplex
146
+ module V1
147
+ CreateDataScanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateDataScanRequest").msgclass
148
+ UpdateDataScanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateDataScanRequest").msgclass
149
+ DeleteDataScanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteDataScanRequest").msgclass
150
+ GetDataScanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetDataScanRequest").msgclass
151
+ GetDataScanRequest::DataScanView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetDataScanRequest.DataScanView").enummodule
152
+ ListDataScansRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListDataScansRequest").msgclass
153
+ ListDataScansResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListDataScansResponse").msgclass
154
+ RunDataScanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.RunDataScanRequest").msgclass
155
+ RunDataScanResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.RunDataScanResponse").msgclass
156
+ GetDataScanJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetDataScanJobRequest").msgclass
157
+ GetDataScanJobRequest::DataScanJobView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView").enummodule
158
+ ListDataScanJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListDataScanJobsRequest").msgclass
159
+ ListDataScanJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListDataScanJobsResponse").msgclass
160
+ DataScan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataScan").msgclass
161
+ DataScan::ExecutionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataScan.ExecutionSpec").msgclass
162
+ DataScan::ExecutionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataScan.ExecutionStatus").msgclass
163
+ DataScanJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataScanJob").msgclass
164
+ DataScanJob::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataScanJob.State").enummodule
165
+ DataScanType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DataScanType").enummodule
166
+ end
167
+ end
168
+ end
169
+ end
@@ -0,0 +1,58 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/dataplex/v1/datascans.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/datascans_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dataplex
25
+ module V1
26
+ module DataScanService
27
+ class Service
28
+
29
+ include ::GRPC::GenericService
30
+
31
+ self.marshal_class_method = :encode
32
+ self.unmarshal_class_method = :decode
33
+ self.service_name = 'google.cloud.dataplex.v1.DataScanService'
34
+
35
+ # Creates a dataScan resource.
36
+ rpc :CreateDataScan, ::Google::Cloud::Dataplex::V1::CreateDataScanRequest, ::Google::Longrunning::Operation
37
+ # Update the dataScan resource.
38
+ rpc :UpdateDataScan, ::Google::Cloud::Dataplex::V1::UpdateDataScanRequest, ::Google::Longrunning::Operation
39
+ # Delete the dataScan resource.
40
+ rpc :DeleteDataScan, ::Google::Cloud::Dataplex::V1::DeleteDataScanRequest, ::Google::Longrunning::Operation
41
+ # Get dataScan resource.
42
+ rpc :GetDataScan, ::Google::Cloud::Dataplex::V1::GetDataScanRequest, ::Google::Cloud::Dataplex::V1::DataScan
43
+ # Lists dataScans.
44
+ rpc :ListDataScans, ::Google::Cloud::Dataplex::V1::ListDataScansRequest, ::Google::Cloud::Dataplex::V1::ListDataScansResponse
45
+ # Run an on demand execution of a DataScan.
46
+ rpc :RunDataScan, ::Google::Cloud::Dataplex::V1::RunDataScanRequest, ::Google::Cloud::Dataplex::V1::RunDataScanResponse
47
+ # Get DataScanJob resource.
48
+ rpc :GetDataScanJob, ::Google::Cloud::Dataplex::V1::GetDataScanJobRequest, ::Google::Cloud::Dataplex::V1::DataScanJob
49
+ # Lists DataScanJobs under the given dataScan.
50
+ rpc :ListDataScanJobs, ::Google::Cloud::Dataplex::V1::ListDataScanJobsRequest, ::Google::Cloud::Dataplex::V1::ListDataScanJobsResponse
51
+ end
52
+
53
+ Stub = Service.rpc_stub_class
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end