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,47 @@
|
|
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 "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Dataplex
|
24
|
+
module V1
|
25
|
+
module MetadataService
|
26
|
+
# Credentials for the MetadataService API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
33
|
+
"GOOGLE_CLOUD_KEYFILE",
|
34
|
+
"GCLOUD_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
37
|
+
"GCLOUD_KEYFILE_JSON"
|
38
|
+
]
|
39
|
+
self.paths = [
|
40
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
41
|
+
]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,102 @@
|
|
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
|
+
module MetadataService
|
25
|
+
# Path helper methods for the MetadataService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Entity resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param lake [String]
|
37
|
+
# @param zone [String]
|
38
|
+
# @param entity [String]
|
39
|
+
#
|
40
|
+
# @return [::String]
|
41
|
+
def entity_path project:, location:, lake:, zone:, entity:
|
42
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
43
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
44
|
+
raise ::ArgumentError, "lake cannot contain /" if lake.to_s.include? "/"
|
45
|
+
raise ::ArgumentError, "zone cannot contain /" if zone.to_s.include? "/"
|
46
|
+
|
47
|
+
"projects/#{project}/locations/#{location}/lakes/#{lake}/zones/#{zone}/entities/#{entity}"
|
48
|
+
end
|
49
|
+
|
50
|
+
##
|
51
|
+
# Create a fully-qualified Partition resource string.
|
52
|
+
#
|
53
|
+
# The resource will be in the following format:
|
54
|
+
#
|
55
|
+
# `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}/partitions/{partition}`
|
56
|
+
#
|
57
|
+
# @param project [String]
|
58
|
+
# @param location [String]
|
59
|
+
# @param lake [String]
|
60
|
+
# @param zone [String]
|
61
|
+
# @param entity [String]
|
62
|
+
# @param partition [String]
|
63
|
+
#
|
64
|
+
# @return [::String]
|
65
|
+
def partition_path project:, location:, lake:, zone:, entity:, partition:
|
66
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
67
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
68
|
+
raise ::ArgumentError, "lake cannot contain /" if lake.to_s.include? "/"
|
69
|
+
raise ::ArgumentError, "zone cannot contain /" if zone.to_s.include? "/"
|
70
|
+
raise ::ArgumentError, "entity cannot contain /" if entity.to_s.include? "/"
|
71
|
+
|
72
|
+
"projects/#{project}/locations/#{location}/lakes/#{lake}/zones/#{zone}/entities/#{entity}/partitions/#{partition}"
|
73
|
+
end
|
74
|
+
|
75
|
+
##
|
76
|
+
# Create a fully-qualified Zone resource string.
|
77
|
+
#
|
78
|
+
# The resource will be in the following format:
|
79
|
+
#
|
80
|
+
# `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}`
|
81
|
+
#
|
82
|
+
# @param project [String]
|
83
|
+
# @param location [String]
|
84
|
+
# @param lake [String]
|
85
|
+
# @param zone [String]
|
86
|
+
#
|
87
|
+
# @return [::String]
|
88
|
+
def zone_path project:, location:, lake:, zone:
|
89
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
90
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
91
|
+
raise ::ArgumentError, "lake cannot contain /" if lake.to_s.include? "/"
|
92
|
+
|
93
|
+
"projects/#{project}/locations/#{location}/lakes/#{lake}/zones/#{zone}"
|
94
|
+
end
|
95
|
+
|
96
|
+
extend self
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,50 @@
|
|
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 "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/metadata_service/credentials"
|
26
|
+
require "google/cloud/dataplex/v1/metadata_service/paths"
|
27
|
+
require "google/cloud/dataplex/v1/metadata_service/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Dataplex
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# Metadata service manages metadata resources such as tables, filesets and
|
35
|
+
# partitions.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/dataplex/v1/metadata_service"
|
40
|
+
# client = ::Google::Cloud::Dataplex::V1::MetadataService::Client.new
|
41
|
+
#
|
42
|
+
module MetadataService
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
helper_path = ::File.join __dir__, "metadata_service", "helpers.rb"
|
50
|
+
require "google/cloud/dataplex/v1/metadata_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/dataplex/v1/metadata.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/metadata_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Dataplex
|
25
|
+
module V1
|
26
|
+
module MetadataService
|
27
|
+
# Metadata service manages metadata resources such as tables, filesets and
|
28
|
+
# partitions.
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include ::GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.dataplex.v1.MetadataService'
|
36
|
+
|
37
|
+
# Get a metadata entity.
|
38
|
+
rpc :GetEntity, ::Google::Cloud::Dataplex::V1::GetEntityRequest, ::Google::Cloud::Dataplex::V1::Entity
|
39
|
+
# List metadata entities in a zone.
|
40
|
+
rpc :ListEntities, ::Google::Cloud::Dataplex::V1::ListEntitiesRequest, ::Google::Cloud::Dataplex::V1::ListEntitiesResponse
|
41
|
+
# Get a metadata partition of an entity.
|
42
|
+
rpc :GetPartition, ::Google::Cloud::Dataplex::V1::GetPartitionRequest, ::Google::Cloud::Dataplex::V1::Partition
|
43
|
+
# List metadata partitions of an entity.
|
44
|
+
rpc :ListPartitions, ::Google::Cloud::Dataplex::V1::ListPartitionsRequest, ::Google::Cloud::Dataplex::V1::ListPartitionsResponse
|
45
|
+
end
|
46
|
+
|
47
|
+
Stub = Service.rpc_stub_class
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,298 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dataplex/v1/resources.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/field_behavior_pb'
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/dataplex/v1/resources.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.dataplex.v1.Lake" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :display_name, :string, 2
|
16
|
+
optional :uid, :string, 3
|
17
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
18
|
+
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
19
|
+
map :labels, :string, :string, 6
|
20
|
+
optional :description, :string, 7
|
21
|
+
optional :state, :enum, 8, "google.cloud.dataplex.v1.State"
|
22
|
+
optional :service_account, :string, 9
|
23
|
+
optional :metastore, :message, 102, "google.cloud.dataplex.v1.Lake.Metastore"
|
24
|
+
optional :asset_status, :message, 103, "google.cloud.dataplex.v1.AssetStatus"
|
25
|
+
optional :metastore_status, :message, 104, "google.cloud.dataplex.v1.Lake.MetastoreStatus"
|
26
|
+
end
|
27
|
+
add_message "google.cloud.dataplex.v1.Lake.Metastore" do
|
28
|
+
optional :service, :string, 1
|
29
|
+
end
|
30
|
+
add_message "google.cloud.dataplex.v1.Lake.MetastoreStatus" do
|
31
|
+
optional :state, :enum, 1, "google.cloud.dataplex.v1.Lake.MetastoreStatus.State"
|
32
|
+
optional :message, :string, 2
|
33
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
34
|
+
optional :endpoint, :string, 4
|
35
|
+
end
|
36
|
+
add_enum "google.cloud.dataplex.v1.Lake.MetastoreStatus.State" do
|
37
|
+
value :STATE_UNSPECIFIED, 0
|
38
|
+
value :NONE, 1
|
39
|
+
value :READY, 2
|
40
|
+
value :UPDATING, 3
|
41
|
+
value :ERROR, 4
|
42
|
+
end
|
43
|
+
add_message "google.cloud.dataplex.v1.AssetStatus" do
|
44
|
+
optional :update_time, :message, 1, "google.protobuf.Timestamp"
|
45
|
+
optional :active_assets, :int32, 2
|
46
|
+
optional :security_policy_applying_assets, :int32, 3
|
47
|
+
end
|
48
|
+
add_message "google.cloud.dataplex.v1.Zone" do
|
49
|
+
optional :name, :string, 1
|
50
|
+
optional :display_name, :string, 2
|
51
|
+
optional :uid, :string, 3
|
52
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
53
|
+
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
54
|
+
map :labels, :string, :string, 6
|
55
|
+
optional :description, :string, 7
|
56
|
+
optional :state, :enum, 8, "google.cloud.dataplex.v1.State"
|
57
|
+
optional :type, :enum, 9, "google.cloud.dataplex.v1.Zone.Type"
|
58
|
+
optional :discovery_spec, :message, 103, "google.cloud.dataplex.v1.Zone.DiscoverySpec"
|
59
|
+
optional :resource_spec, :message, 104, "google.cloud.dataplex.v1.Zone.ResourceSpec"
|
60
|
+
optional :asset_status, :message, 105, "google.cloud.dataplex.v1.AssetStatus"
|
61
|
+
end
|
62
|
+
add_message "google.cloud.dataplex.v1.Zone.ResourceSpec" do
|
63
|
+
optional :location_type, :enum, 1, "google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType"
|
64
|
+
end
|
65
|
+
add_enum "google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType" do
|
66
|
+
value :LOCATION_TYPE_UNSPECIFIED, 0
|
67
|
+
value :SINGLE_REGION, 1
|
68
|
+
value :MULTI_REGION, 2
|
69
|
+
end
|
70
|
+
add_message "google.cloud.dataplex.v1.Zone.DiscoverySpec" do
|
71
|
+
optional :enabled, :bool, 1
|
72
|
+
repeated :include_patterns, :string, 2
|
73
|
+
repeated :exclude_patterns, :string, 3
|
74
|
+
optional :csv_options, :message, 4, "google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions"
|
75
|
+
optional :json_options, :message, 5, "google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions"
|
76
|
+
oneof :trigger do
|
77
|
+
optional :schedule, :string, 10
|
78
|
+
end
|
79
|
+
end
|
80
|
+
add_message "google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions" do
|
81
|
+
optional :header_rows, :int32, 1
|
82
|
+
optional :delimiter, :string, 2
|
83
|
+
optional :encoding, :string, 3
|
84
|
+
optional :disable_type_inference, :bool, 4
|
85
|
+
end
|
86
|
+
add_message "google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions" do
|
87
|
+
optional :encoding, :string, 1
|
88
|
+
optional :disable_type_inference, :bool, 2
|
89
|
+
end
|
90
|
+
add_enum "google.cloud.dataplex.v1.Zone.Type" do
|
91
|
+
value :TYPE_UNSPECIFIED, 0
|
92
|
+
value :RAW, 1
|
93
|
+
value :CURATED, 2
|
94
|
+
end
|
95
|
+
add_message "google.cloud.dataplex.v1.Action" do
|
96
|
+
optional :category, :enum, 1, "google.cloud.dataplex.v1.Action.Category"
|
97
|
+
optional :issue, :string, 2
|
98
|
+
optional :detect_time, :message, 4, "google.protobuf.Timestamp"
|
99
|
+
optional :name, :string, 5
|
100
|
+
optional :lake, :string, 6
|
101
|
+
optional :zone, :string, 7
|
102
|
+
optional :asset, :string, 8
|
103
|
+
repeated :data_locations, :string, 9
|
104
|
+
oneof :details do
|
105
|
+
optional :invalid_data_format, :message, 10, "google.cloud.dataplex.v1.Action.InvalidDataFormat"
|
106
|
+
optional :incompatible_data_schema, :message, 11, "google.cloud.dataplex.v1.Action.IncompatibleDataSchema"
|
107
|
+
optional :invalid_data_partition, :message, 12, "google.cloud.dataplex.v1.Action.InvalidDataPartition"
|
108
|
+
optional :missing_data, :message, 13, "google.cloud.dataplex.v1.Action.MissingData"
|
109
|
+
optional :missing_resource, :message, 14, "google.cloud.dataplex.v1.Action.MissingResource"
|
110
|
+
optional :unauthorized_resource, :message, 15, "google.cloud.dataplex.v1.Action.UnauthorizedResource"
|
111
|
+
optional :failed_security_policy_apply, :message, 21, "google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply"
|
112
|
+
optional :invalid_data_organization, :message, 22, "google.cloud.dataplex.v1.Action.InvalidDataOrganization"
|
113
|
+
end
|
114
|
+
end
|
115
|
+
add_message "google.cloud.dataplex.v1.Action.MissingResource" do
|
116
|
+
end
|
117
|
+
add_message "google.cloud.dataplex.v1.Action.UnauthorizedResource" do
|
118
|
+
end
|
119
|
+
add_message "google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply" do
|
120
|
+
optional :asset, :string, 1
|
121
|
+
end
|
122
|
+
add_message "google.cloud.dataplex.v1.Action.InvalidDataFormat" do
|
123
|
+
repeated :sampled_data_locations, :string, 1
|
124
|
+
optional :expected_format, :string, 2
|
125
|
+
optional :new_format, :string, 3
|
126
|
+
end
|
127
|
+
add_message "google.cloud.dataplex.v1.Action.IncompatibleDataSchema" do
|
128
|
+
optional :table, :string, 1
|
129
|
+
optional :existing_schema, :string, 2
|
130
|
+
optional :new_schema, :string, 3
|
131
|
+
repeated :sampled_data_locations, :string, 4
|
132
|
+
optional :schema_change, :enum, 5, "google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange"
|
133
|
+
end
|
134
|
+
add_enum "google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange" do
|
135
|
+
value :SCHEMA_CHANGE_UNSPECIFIED, 0
|
136
|
+
value :INCOMPATIBLE, 1
|
137
|
+
value :MODIFIED, 2
|
138
|
+
end
|
139
|
+
add_message "google.cloud.dataplex.v1.Action.InvalidDataPartition" do
|
140
|
+
optional :expected_structure, :enum, 1, "google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure"
|
141
|
+
end
|
142
|
+
add_enum "google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure" do
|
143
|
+
value :PARTITION_STRUCTURE_UNSPECIFIED, 0
|
144
|
+
value :CONSISTENT_KEYS, 1
|
145
|
+
value :HIVE_STYLE_KEYS, 2
|
146
|
+
end
|
147
|
+
add_message "google.cloud.dataplex.v1.Action.MissingData" do
|
148
|
+
end
|
149
|
+
add_message "google.cloud.dataplex.v1.Action.InvalidDataOrganization" do
|
150
|
+
end
|
151
|
+
add_enum "google.cloud.dataplex.v1.Action.Category" do
|
152
|
+
value :CATEGORY_UNSPECIFIED, 0
|
153
|
+
value :RESOURCE_MANAGEMENT, 1
|
154
|
+
value :SECURITY_POLICY, 2
|
155
|
+
value :DATA_DISCOVERY, 3
|
156
|
+
end
|
157
|
+
add_message "google.cloud.dataplex.v1.Asset" do
|
158
|
+
optional :name, :string, 1
|
159
|
+
optional :display_name, :string, 2
|
160
|
+
optional :uid, :string, 3
|
161
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
162
|
+
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
163
|
+
map :labels, :string, :string, 6
|
164
|
+
optional :description, :string, 7
|
165
|
+
optional :state, :enum, 8, "google.cloud.dataplex.v1.State"
|
166
|
+
optional :resource_spec, :message, 100, "google.cloud.dataplex.v1.Asset.ResourceSpec"
|
167
|
+
optional :resource_status, :message, 101, "google.cloud.dataplex.v1.Asset.ResourceStatus"
|
168
|
+
optional :security_status, :message, 103, "google.cloud.dataplex.v1.Asset.SecurityStatus"
|
169
|
+
optional :discovery_spec, :message, 106, "google.cloud.dataplex.v1.Asset.DiscoverySpec"
|
170
|
+
optional :discovery_status, :message, 107, "google.cloud.dataplex.v1.Asset.DiscoveryStatus"
|
171
|
+
end
|
172
|
+
add_message "google.cloud.dataplex.v1.Asset.SecurityStatus" do
|
173
|
+
optional :state, :enum, 1, "google.cloud.dataplex.v1.Asset.SecurityStatus.State"
|
174
|
+
optional :message, :string, 2
|
175
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
176
|
+
end
|
177
|
+
add_enum "google.cloud.dataplex.v1.Asset.SecurityStatus.State" do
|
178
|
+
value :STATE_UNSPECIFIED, 0
|
179
|
+
value :READY, 1
|
180
|
+
value :APPLYING, 2
|
181
|
+
value :ERROR, 3
|
182
|
+
end
|
183
|
+
add_message "google.cloud.dataplex.v1.Asset.DiscoverySpec" do
|
184
|
+
optional :enabled, :bool, 1
|
185
|
+
repeated :include_patterns, :string, 2
|
186
|
+
repeated :exclude_patterns, :string, 3
|
187
|
+
optional :csv_options, :message, 4, "google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions"
|
188
|
+
optional :json_options, :message, 5, "google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions"
|
189
|
+
oneof :trigger do
|
190
|
+
optional :schedule, :string, 10
|
191
|
+
end
|
192
|
+
end
|
193
|
+
add_message "google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions" do
|
194
|
+
optional :header_rows, :int32, 1
|
195
|
+
optional :delimiter, :string, 2
|
196
|
+
optional :encoding, :string, 3
|
197
|
+
optional :disable_type_inference, :bool, 4
|
198
|
+
end
|
199
|
+
add_message "google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions" do
|
200
|
+
optional :encoding, :string, 1
|
201
|
+
optional :disable_type_inference, :bool, 2
|
202
|
+
end
|
203
|
+
add_message "google.cloud.dataplex.v1.Asset.ResourceSpec" do
|
204
|
+
optional :name, :string, 1
|
205
|
+
optional :type, :enum, 2, "google.cloud.dataplex.v1.Asset.ResourceSpec.Type"
|
206
|
+
end
|
207
|
+
add_enum "google.cloud.dataplex.v1.Asset.ResourceSpec.Type" do
|
208
|
+
value :TYPE_UNSPECIFIED, 0
|
209
|
+
value :STORAGE_BUCKET, 1
|
210
|
+
value :BIGQUERY_DATASET, 2
|
211
|
+
end
|
212
|
+
add_message "google.cloud.dataplex.v1.Asset.ResourceStatus" do
|
213
|
+
optional :state, :enum, 1, "google.cloud.dataplex.v1.Asset.ResourceStatus.State"
|
214
|
+
optional :message, :string, 2
|
215
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
216
|
+
end
|
217
|
+
add_enum "google.cloud.dataplex.v1.Asset.ResourceStatus.State" do
|
218
|
+
value :STATE_UNSPECIFIED, 0
|
219
|
+
value :READY, 1
|
220
|
+
value :ERROR, 2
|
221
|
+
end
|
222
|
+
add_message "google.cloud.dataplex.v1.Asset.DiscoveryStatus" do
|
223
|
+
optional :state, :enum, 1, "google.cloud.dataplex.v1.Asset.DiscoveryStatus.State"
|
224
|
+
optional :message, :string, 2
|
225
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
226
|
+
optional :last_run_time, :message, 4, "google.protobuf.Timestamp"
|
227
|
+
optional :stats, :message, 6, "google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats"
|
228
|
+
optional :last_run_duration, :message, 7, "google.protobuf.Duration"
|
229
|
+
end
|
230
|
+
add_message "google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats" do
|
231
|
+
optional :data_items, :int64, 1
|
232
|
+
optional :data_size, :int64, 2
|
233
|
+
optional :tables, :int64, 3
|
234
|
+
optional :filesets, :int64, 4
|
235
|
+
end
|
236
|
+
add_enum "google.cloud.dataplex.v1.Asset.DiscoveryStatus.State" do
|
237
|
+
value :STATE_UNSPECIFIED, 0
|
238
|
+
value :SCHEDULED, 1
|
239
|
+
value :IN_PROGRESS, 2
|
240
|
+
value :PAUSED, 3
|
241
|
+
value :DISABLED, 5
|
242
|
+
end
|
243
|
+
add_enum "google.cloud.dataplex.v1.State" do
|
244
|
+
value :STATE_UNSPECIFIED, 0
|
245
|
+
value :ACTIVE, 1
|
246
|
+
value :CREATING, 2
|
247
|
+
value :DELETING, 3
|
248
|
+
value :ACTION_REQUIRED, 4
|
249
|
+
end
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
module Google
|
254
|
+
module Cloud
|
255
|
+
module Dataplex
|
256
|
+
module V1
|
257
|
+
Lake = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Lake").msgclass
|
258
|
+
Lake::Metastore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Lake.Metastore").msgclass
|
259
|
+
Lake::MetastoreStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Lake.MetastoreStatus").msgclass
|
260
|
+
Lake::MetastoreStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Lake.MetastoreStatus.State").enummodule
|
261
|
+
AssetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.AssetStatus").msgclass
|
262
|
+
Zone = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Zone").msgclass
|
263
|
+
Zone::ResourceSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Zone.ResourceSpec").msgclass
|
264
|
+
Zone::ResourceSpec::LocationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType").enummodule
|
265
|
+
Zone::DiscoverySpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Zone.DiscoverySpec").msgclass
|
266
|
+
Zone::DiscoverySpec::CsvOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions").msgclass
|
267
|
+
Zone::DiscoverySpec::JsonOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions").msgclass
|
268
|
+
Zone::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Zone.Type").enummodule
|
269
|
+
Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action").msgclass
|
270
|
+
Action::MissingResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.MissingResource").msgclass
|
271
|
+
Action::UnauthorizedResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.UnauthorizedResource").msgclass
|
272
|
+
Action::FailedSecurityPolicyApply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply").msgclass
|
273
|
+
Action::InvalidDataFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.InvalidDataFormat").msgclass
|
274
|
+
Action::IncompatibleDataSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.IncompatibleDataSchema").msgclass
|
275
|
+
Action::IncompatibleDataSchema::SchemaChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange").enummodule
|
276
|
+
Action::InvalidDataPartition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.InvalidDataPartition").msgclass
|
277
|
+
Action::InvalidDataPartition::PartitionStructure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure").enummodule
|
278
|
+
Action::MissingData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.MissingData").msgclass
|
279
|
+
Action::InvalidDataOrganization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.InvalidDataOrganization").msgclass
|
280
|
+
Action::Category = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Action.Category").enummodule
|
281
|
+
Asset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset").msgclass
|
282
|
+
Asset::SecurityStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.SecurityStatus").msgclass
|
283
|
+
Asset::SecurityStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.SecurityStatus.State").enummodule
|
284
|
+
Asset::DiscoverySpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.DiscoverySpec").msgclass
|
285
|
+
Asset::DiscoverySpec::CsvOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions").msgclass
|
286
|
+
Asset::DiscoverySpec::JsonOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions").msgclass
|
287
|
+
Asset::ResourceSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.ResourceSpec").msgclass
|
288
|
+
Asset::ResourceSpec::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.ResourceSpec.Type").enummodule
|
289
|
+
Asset::ResourceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.ResourceStatus").msgclass
|
290
|
+
Asset::ResourceStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.ResourceStatus.State").enummodule
|
291
|
+
Asset::DiscoveryStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.DiscoveryStatus").msgclass
|
292
|
+
Asset::DiscoveryStatus::Stats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats").msgclass
|
293
|
+
Asset::DiscoveryStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Asset.DiscoveryStatus.State").enummodule
|
294
|
+
State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.State").enummodule
|
295
|
+
end
|
296
|
+
end
|
297
|
+
end
|
298
|
+
end
|