google-cloud-dataplex-v1 0.1.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.
- 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,157 @@
|
|
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 DataplexService
|
25
|
+
# Path helper methods for the DataplexService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Asset resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param lake [String]
|
37
|
+
# @param zone [String]
|
38
|
+
# @param asset [String]
|
39
|
+
#
|
40
|
+
# @return [::String]
|
41
|
+
def asset_path project:, location:, lake:, zone:, asset:
|
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}/assets/#{asset}"
|
48
|
+
end
|
49
|
+
|
50
|
+
##
|
51
|
+
# Create a fully-qualified Job resource string.
|
52
|
+
#
|
53
|
+
# The resource will be in the following format:
|
54
|
+
#
|
55
|
+
# `projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}/jobs/{job}`
|
56
|
+
#
|
57
|
+
# @param project [String]
|
58
|
+
# @param location [String]
|
59
|
+
# @param lake [String]
|
60
|
+
# @param task [String]
|
61
|
+
# @param job [String]
|
62
|
+
#
|
63
|
+
# @return [::String]
|
64
|
+
def job_path project:, location:, lake:, task:, job:
|
65
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
66
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
67
|
+
raise ::ArgumentError, "lake cannot contain /" if lake.to_s.include? "/"
|
68
|
+
raise ::ArgumentError, "task cannot contain /" if task.to_s.include? "/"
|
69
|
+
|
70
|
+
"projects/#{project}/locations/#{location}/lakes/#{lake}/tasks/#{task}/jobs/#{job}"
|
71
|
+
end
|
72
|
+
|
73
|
+
##
|
74
|
+
# Create a fully-qualified Lake resource string.
|
75
|
+
#
|
76
|
+
# The resource will be in the following format:
|
77
|
+
#
|
78
|
+
# `projects/{project}/locations/{location}/lakes/{lake}`
|
79
|
+
#
|
80
|
+
# @param project [String]
|
81
|
+
# @param location [String]
|
82
|
+
# @param lake [String]
|
83
|
+
#
|
84
|
+
# @return [::String]
|
85
|
+
def lake_path project:, location:, lake:
|
86
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
87
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
88
|
+
|
89
|
+
"projects/#{project}/locations/#{location}/lakes/#{lake}"
|
90
|
+
end
|
91
|
+
|
92
|
+
##
|
93
|
+
# Create a fully-qualified Location resource string.
|
94
|
+
#
|
95
|
+
# The resource will be in the following format:
|
96
|
+
#
|
97
|
+
# `projects/{project}/locations/{location}`
|
98
|
+
#
|
99
|
+
# @param project [String]
|
100
|
+
# @param location [String]
|
101
|
+
#
|
102
|
+
# @return [::String]
|
103
|
+
def location_path project:, location:
|
104
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
105
|
+
|
106
|
+
"projects/#{project}/locations/#{location}"
|
107
|
+
end
|
108
|
+
|
109
|
+
##
|
110
|
+
# Create a fully-qualified Task resource string.
|
111
|
+
#
|
112
|
+
# The resource will be in the following format:
|
113
|
+
#
|
114
|
+
# `projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}`
|
115
|
+
#
|
116
|
+
# @param project [String]
|
117
|
+
# @param location [String]
|
118
|
+
# @param lake [String]
|
119
|
+
# @param task [String]
|
120
|
+
#
|
121
|
+
# @return [::String]
|
122
|
+
def task_path project:, location:, lake:, task:
|
123
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
124
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
125
|
+
raise ::ArgumentError, "lake cannot contain /" if lake.to_s.include? "/"
|
126
|
+
|
127
|
+
"projects/#{project}/locations/#{location}/lakes/#{lake}/tasks/#{task}"
|
128
|
+
end
|
129
|
+
|
130
|
+
##
|
131
|
+
# Create a fully-qualified Zone resource string.
|
132
|
+
#
|
133
|
+
# The resource will be in the following format:
|
134
|
+
#
|
135
|
+
# `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}`
|
136
|
+
#
|
137
|
+
# @param project [String]
|
138
|
+
# @param location [String]
|
139
|
+
# @param lake [String]
|
140
|
+
# @param zone [String]
|
141
|
+
#
|
142
|
+
# @return [::String]
|
143
|
+
def zone_path project:, location:, lake:, zone:
|
144
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
145
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
146
|
+
raise ::ArgumentError, "lake cannot contain /" if lake.to_s.include? "/"
|
147
|
+
|
148
|
+
"projects/#{project}/locations/#{location}/lakes/#{lake}/zones/#{zone}"
|
149
|
+
end
|
150
|
+
|
151
|
+
extend self
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
@@ -0,0 +1,54 @@
|
|
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/dataplex_service/credentials"
|
26
|
+
require "google/cloud/dataplex/v1/dataplex_service/paths"
|
27
|
+
require "google/cloud/dataplex/v1/dataplex_service/operations"
|
28
|
+
require "google/cloud/dataplex/v1/dataplex_service/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Dataplex
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# Dataplex service provides data lakes as a service. The primary resources
|
36
|
+
# offered by this service are Lakes, Zones and Assets which collectively allow
|
37
|
+
# a data adminstrator to organize, manage, secure and catalog data across their
|
38
|
+
# organization located across cloud projects in a variety of storage systems
|
39
|
+
# including Cloud Storage and BigQuery.
|
40
|
+
#
|
41
|
+
# To load this service and instantiate a client:
|
42
|
+
#
|
43
|
+
# require "google/cloud/dataplex/v1/dataplex_service"
|
44
|
+
# client = ::Google::Cloud::Dataplex::V1::DataplexService::Client.new
|
45
|
+
#
|
46
|
+
module DataplexService
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
helper_path = ::File.join __dir__, "dataplex_service", "helpers.rb"
|
54
|
+
require "google/cloud/dataplex/v1/dataplex_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,135 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dataplex/v1/logs.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/protobuf/duration_pb'
|
6
|
+
require 'google/protobuf/timestamp_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/dataplex/v1/logs.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.dataplex.v1.DiscoveryEvent" do
|
12
|
+
optional :message, :string, 1
|
13
|
+
optional :lake_id, :string, 2
|
14
|
+
optional :zone_id, :string, 3
|
15
|
+
optional :asset_id, :string, 4
|
16
|
+
optional :data_location, :string, 5
|
17
|
+
optional :type, :enum, 10, "google.cloud.dataplex.v1.DiscoveryEvent.EventType"
|
18
|
+
oneof :details do
|
19
|
+
optional :config, :message, 20, "google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails"
|
20
|
+
optional :entity, :message, 21, "google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails"
|
21
|
+
optional :partition, :message, 22, "google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails"
|
22
|
+
optional :action, :message, 23, "google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
add_message "google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails" do
|
26
|
+
map :parameters, :string, :string, 1
|
27
|
+
end
|
28
|
+
add_message "google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails" do
|
29
|
+
optional :entity, :string, 1
|
30
|
+
optional :type, :enum, 2, "google.cloud.dataplex.v1.DiscoveryEvent.EntityType"
|
31
|
+
end
|
32
|
+
add_message "google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails" do
|
33
|
+
optional :partition, :string, 1
|
34
|
+
optional :entity, :string, 2
|
35
|
+
optional :type, :enum, 3, "google.cloud.dataplex.v1.DiscoveryEvent.EntityType"
|
36
|
+
end
|
37
|
+
add_message "google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails" do
|
38
|
+
optional :type, :string, 1
|
39
|
+
end
|
40
|
+
add_enum "google.cloud.dataplex.v1.DiscoveryEvent.EventType" do
|
41
|
+
value :EVENT_TYPE_UNSPECIFIED, 0
|
42
|
+
value :CONFIG, 1
|
43
|
+
value :ENTITY_CREATED, 2
|
44
|
+
value :ENTITY_UPDATED, 3
|
45
|
+
value :ENTITY_DELETED, 4
|
46
|
+
value :PARTITION_CREATED, 5
|
47
|
+
value :PARTITION_UPDATED, 6
|
48
|
+
value :PARTITION_DELETED, 7
|
49
|
+
end
|
50
|
+
add_enum "google.cloud.dataplex.v1.DiscoveryEvent.EntityType" do
|
51
|
+
value :ENTITY_TYPE_UNSPECIFIED, 0
|
52
|
+
value :TABLE, 1
|
53
|
+
value :FILESET, 2
|
54
|
+
end
|
55
|
+
add_message "google.cloud.dataplex.v1.JobEvent" do
|
56
|
+
optional :message, :string, 1
|
57
|
+
optional :job_id, :string, 2
|
58
|
+
optional :start_time, :message, 3, "google.protobuf.Timestamp"
|
59
|
+
optional :end_time, :message, 4, "google.protobuf.Timestamp"
|
60
|
+
optional :state, :enum, 5, "google.cloud.dataplex.v1.JobEvent.State"
|
61
|
+
optional :retries, :int32, 6
|
62
|
+
optional :type, :enum, 7, "google.cloud.dataplex.v1.JobEvent.Type"
|
63
|
+
optional :service, :enum, 8, "google.cloud.dataplex.v1.JobEvent.Service"
|
64
|
+
optional :service_job, :string, 9
|
65
|
+
end
|
66
|
+
add_enum "google.cloud.dataplex.v1.JobEvent.Type" do
|
67
|
+
value :TYPE_UNSPECIFIED, 0
|
68
|
+
value :SPARK, 1
|
69
|
+
value :NOTEBOOK, 2
|
70
|
+
end
|
71
|
+
add_enum "google.cloud.dataplex.v1.JobEvent.State" do
|
72
|
+
value :STATE_UNSPECIFIED, 0
|
73
|
+
value :SUCCEEDED, 1
|
74
|
+
value :FAILED, 2
|
75
|
+
value :CANCELLED, 3
|
76
|
+
value :ABORTED, 4
|
77
|
+
end
|
78
|
+
add_enum "google.cloud.dataplex.v1.JobEvent.Service" do
|
79
|
+
value :SERVICE_UNSPECIFIED, 0
|
80
|
+
value :DATAPROC, 1
|
81
|
+
end
|
82
|
+
add_message "google.cloud.dataplex.v1.SessionEvent" do
|
83
|
+
optional :message, :string, 1
|
84
|
+
optional :user_id, :string, 2
|
85
|
+
optional :session_id, :string, 3
|
86
|
+
optional :type, :enum, 4, "google.cloud.dataplex.v1.SessionEvent.EventType"
|
87
|
+
oneof :detail do
|
88
|
+
optional :query, :message, 5, "google.cloud.dataplex.v1.SessionEvent.QueryDetail"
|
89
|
+
end
|
90
|
+
end
|
91
|
+
add_message "google.cloud.dataplex.v1.SessionEvent.QueryDetail" do
|
92
|
+
optional :query_id, :string, 1
|
93
|
+
optional :query_text, :string, 2
|
94
|
+
optional :engine, :enum, 3, "google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine"
|
95
|
+
optional :duration, :message, 4, "google.protobuf.Duration"
|
96
|
+
optional :result_size_bytes, :int64, 5
|
97
|
+
optional :data_processed_bytes, :int64, 6
|
98
|
+
end
|
99
|
+
add_enum "google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine" do
|
100
|
+
value :ENGINE_UNSPECIFIED, 0
|
101
|
+
value :SPARK_SQL, 1
|
102
|
+
value :BIGQUERY, 2
|
103
|
+
end
|
104
|
+
add_enum "google.cloud.dataplex.v1.SessionEvent.EventType" do
|
105
|
+
value :EVENT_TYPE_UNSPECIFIED, 0
|
106
|
+
value :START, 1
|
107
|
+
value :STOP, 2
|
108
|
+
value :QUERY, 3
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
module Google
|
114
|
+
module Cloud
|
115
|
+
module Dataplex
|
116
|
+
module V1
|
117
|
+
DiscoveryEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DiscoveryEvent").msgclass
|
118
|
+
DiscoveryEvent::ConfigDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails").msgclass
|
119
|
+
DiscoveryEvent::EntityDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails").msgclass
|
120
|
+
DiscoveryEvent::PartitionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails").msgclass
|
121
|
+
DiscoveryEvent::ActionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails").msgclass
|
122
|
+
DiscoveryEvent::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DiscoveryEvent.EventType").enummodule
|
123
|
+
DiscoveryEvent::EntityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DiscoveryEvent.EntityType").enummodule
|
124
|
+
JobEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.JobEvent").msgclass
|
125
|
+
JobEvent::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.JobEvent.Type").enummodule
|
126
|
+
JobEvent::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.JobEvent.State").enummodule
|
127
|
+
JobEvent::Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.JobEvent.Service").enummodule
|
128
|
+
SessionEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.SessionEvent").msgclass
|
129
|
+
SessionEvent::QueryDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.SessionEvent.QueryDetail").msgclass
|
130
|
+
SessionEvent::QueryDetail::Engine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine").enummodule
|
131
|
+
SessionEvent::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.SessionEvent.EventType").enummodule
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -0,0 +1,214 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dataplex/v1/metadata.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/protobuf/empty_pb'
|
9
|
+
require 'google/protobuf/field_mask_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/dataplex/v1/metadata.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.dataplex.v1.ListEntitiesRequest" do
|
16
|
+
optional :parent, :string, 1
|
17
|
+
optional :view, :enum, 2, "google.cloud.dataplex.v1.ListEntitiesRequest.EntityView"
|
18
|
+
optional :page_size, :int32, 3
|
19
|
+
optional :page_token, :string, 4
|
20
|
+
optional :filter, :string, 5
|
21
|
+
end
|
22
|
+
add_enum "google.cloud.dataplex.v1.ListEntitiesRequest.EntityView" do
|
23
|
+
value :ENTITY_VIEW_UNSPECIFIED, 0
|
24
|
+
value :TABLES, 1
|
25
|
+
value :FILESETS, 2
|
26
|
+
end
|
27
|
+
add_message "google.cloud.dataplex.v1.ListEntitiesResponse" do
|
28
|
+
repeated :entities, :message, 1, "google.cloud.dataplex.v1.Entity"
|
29
|
+
optional :next_page_token, :string, 2
|
30
|
+
end
|
31
|
+
add_message "google.cloud.dataplex.v1.GetEntityRequest" do
|
32
|
+
optional :name, :string, 1
|
33
|
+
optional :view, :enum, 2, "google.cloud.dataplex.v1.GetEntityRequest.EntityView"
|
34
|
+
end
|
35
|
+
add_enum "google.cloud.dataplex.v1.GetEntityRequest.EntityView" do
|
36
|
+
value :ENTITY_VIEW_UNSPECIFIED, 0
|
37
|
+
value :BASIC, 1
|
38
|
+
value :SCHEMA, 2
|
39
|
+
value :FULL, 4
|
40
|
+
end
|
41
|
+
add_message "google.cloud.dataplex.v1.ListPartitionsRequest" do
|
42
|
+
optional :parent, :string, 1
|
43
|
+
optional :page_size, :int32, 2
|
44
|
+
optional :page_token, :string, 3
|
45
|
+
optional :filter, :string, 4
|
46
|
+
end
|
47
|
+
add_message "google.cloud.dataplex.v1.ListPartitionsResponse" do
|
48
|
+
repeated :partitions, :message, 1, "google.cloud.dataplex.v1.Partition"
|
49
|
+
optional :next_page_token, :string, 2
|
50
|
+
end
|
51
|
+
add_message "google.cloud.dataplex.v1.GetPartitionRequest" do
|
52
|
+
optional :name, :string, 1
|
53
|
+
end
|
54
|
+
add_message "google.cloud.dataplex.v1.Entity" do
|
55
|
+
optional :name, :string, 1
|
56
|
+
optional :display_name, :string, 2
|
57
|
+
optional :description, :string, 3
|
58
|
+
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
59
|
+
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
60
|
+
optional :id, :string, 7
|
61
|
+
optional :etag, :string, 8
|
62
|
+
optional :type, :enum, 10, "google.cloud.dataplex.v1.Entity.Type"
|
63
|
+
optional :asset, :string, 11
|
64
|
+
optional :data_path, :string, 12
|
65
|
+
optional :data_path_pattern, :string, 13
|
66
|
+
optional :catalog_entry, :string, 14
|
67
|
+
optional :system, :enum, 15, "google.cloud.dataplex.v1.StorageSystem"
|
68
|
+
optional :format, :message, 16, "google.cloud.dataplex.v1.StorageFormat"
|
69
|
+
optional :compatibility, :message, 19, "google.cloud.dataplex.v1.Entity.CompatibilityStatus"
|
70
|
+
optional :schema, :message, 50, "google.cloud.dataplex.v1.Schema"
|
71
|
+
end
|
72
|
+
add_message "google.cloud.dataplex.v1.Entity.CompatibilityStatus" do
|
73
|
+
optional :hive_metastore, :message, 1, "google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility"
|
74
|
+
optional :bigquery, :message, 2, "google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility"
|
75
|
+
end
|
76
|
+
add_message "google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility" do
|
77
|
+
optional :compatible, :bool, 1
|
78
|
+
optional :reason, :string, 2
|
79
|
+
end
|
80
|
+
add_enum "google.cloud.dataplex.v1.Entity.Type" do
|
81
|
+
value :TYPE_UNSPECIFIED, 0
|
82
|
+
value :TABLE, 1
|
83
|
+
value :FILESET, 2
|
84
|
+
end
|
85
|
+
add_message "google.cloud.dataplex.v1.Partition" do
|
86
|
+
optional :name, :string, 1
|
87
|
+
repeated :values, :string, 2
|
88
|
+
optional :location, :string, 3
|
89
|
+
optional :etag, :string, 4
|
90
|
+
end
|
91
|
+
add_message "google.cloud.dataplex.v1.Schema" do
|
92
|
+
optional :user_managed, :bool, 1
|
93
|
+
repeated :fields, :message, 2, "google.cloud.dataplex.v1.Schema.SchemaField"
|
94
|
+
repeated :partition_fields, :message, 3, "google.cloud.dataplex.v1.Schema.PartitionField"
|
95
|
+
optional :partition_style, :enum, 4, "google.cloud.dataplex.v1.Schema.PartitionStyle"
|
96
|
+
end
|
97
|
+
add_message "google.cloud.dataplex.v1.Schema.SchemaField" do
|
98
|
+
optional :name, :string, 1
|
99
|
+
optional :description, :string, 2
|
100
|
+
optional :type, :enum, 3, "google.cloud.dataplex.v1.Schema.Type"
|
101
|
+
optional :mode, :enum, 4, "google.cloud.dataplex.v1.Schema.Mode"
|
102
|
+
repeated :fields, :message, 10, "google.cloud.dataplex.v1.Schema.SchemaField"
|
103
|
+
end
|
104
|
+
add_message "google.cloud.dataplex.v1.Schema.PartitionField" do
|
105
|
+
optional :name, :string, 1
|
106
|
+
optional :type, :enum, 2, "google.cloud.dataplex.v1.Schema.Type"
|
107
|
+
end
|
108
|
+
add_enum "google.cloud.dataplex.v1.Schema.Type" do
|
109
|
+
value :TYPE_UNSPECIFIED, 0
|
110
|
+
value :BOOLEAN, 1
|
111
|
+
value :BYTE, 2
|
112
|
+
value :INT16, 3
|
113
|
+
value :INT32, 4
|
114
|
+
value :INT64, 5
|
115
|
+
value :FLOAT, 6
|
116
|
+
value :DOUBLE, 7
|
117
|
+
value :DECIMAL, 8
|
118
|
+
value :STRING, 9
|
119
|
+
value :BINARY, 10
|
120
|
+
value :TIMESTAMP, 11
|
121
|
+
value :DATE, 12
|
122
|
+
value :TIME, 13
|
123
|
+
value :RECORD, 14
|
124
|
+
value :NULL, 100
|
125
|
+
end
|
126
|
+
add_enum "google.cloud.dataplex.v1.Schema.Mode" do
|
127
|
+
value :MODE_UNSPECIFIED, 0
|
128
|
+
value :REQUIRED, 1
|
129
|
+
value :NULLABLE, 2
|
130
|
+
value :REPEATED, 3
|
131
|
+
end
|
132
|
+
add_enum "google.cloud.dataplex.v1.Schema.PartitionStyle" do
|
133
|
+
value :PARTITION_STYLE_UNSPECIFIED, 0
|
134
|
+
value :HIVE_COMPATIBLE, 1
|
135
|
+
end
|
136
|
+
add_message "google.cloud.dataplex.v1.StorageFormat" do
|
137
|
+
optional :format, :enum, 1, "google.cloud.dataplex.v1.StorageFormat.Format"
|
138
|
+
optional :compression_format, :enum, 2, "google.cloud.dataplex.v1.StorageFormat.CompressionFormat"
|
139
|
+
optional :mime_type, :string, 3
|
140
|
+
oneof :options do
|
141
|
+
optional :csv, :message, 10, "google.cloud.dataplex.v1.StorageFormat.CsvOptions"
|
142
|
+
optional :json, :message, 11, "google.cloud.dataplex.v1.StorageFormat.JsonOptions"
|
143
|
+
end
|
144
|
+
end
|
145
|
+
add_message "google.cloud.dataplex.v1.StorageFormat.CsvOptions" do
|
146
|
+
optional :encoding, :string, 1
|
147
|
+
optional :header_rows, :int32, 2
|
148
|
+
optional :delimiter, :string, 3
|
149
|
+
optional :quote, :string, 4
|
150
|
+
end
|
151
|
+
add_message "google.cloud.dataplex.v1.StorageFormat.JsonOptions" do
|
152
|
+
optional :encoding, :string, 1
|
153
|
+
end
|
154
|
+
add_enum "google.cloud.dataplex.v1.StorageFormat.Format" do
|
155
|
+
value :FORMAT_UNSPECIFIED, 0
|
156
|
+
value :PARQUET, 1
|
157
|
+
value :AVRO, 2
|
158
|
+
value :ORC, 3
|
159
|
+
value :CSV, 100
|
160
|
+
value :JSON, 101
|
161
|
+
value :IMAGE, 200
|
162
|
+
value :AUDIO, 201
|
163
|
+
value :VIDEO, 202
|
164
|
+
value :TEXT, 203
|
165
|
+
value :TFRECORD, 204
|
166
|
+
value :OTHER, 1000
|
167
|
+
value :UNKNOWN, 1001
|
168
|
+
end
|
169
|
+
add_enum "google.cloud.dataplex.v1.StorageFormat.CompressionFormat" do
|
170
|
+
value :COMPRESSION_FORMAT_UNSPECIFIED, 0
|
171
|
+
value :GZIP, 2
|
172
|
+
value :BZIP2, 3
|
173
|
+
end
|
174
|
+
add_enum "google.cloud.dataplex.v1.StorageSystem" do
|
175
|
+
value :STORAGE_SYSTEM_UNSPECIFIED, 0
|
176
|
+
value :CLOUD_STORAGE, 1
|
177
|
+
value :BIGQUERY, 2
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
module Google
|
183
|
+
module Cloud
|
184
|
+
module Dataplex
|
185
|
+
module V1
|
186
|
+
ListEntitiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListEntitiesRequest").msgclass
|
187
|
+
ListEntitiesRequest::EntityView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListEntitiesRequest.EntityView").enummodule
|
188
|
+
ListEntitiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListEntitiesResponse").msgclass
|
189
|
+
GetEntityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetEntityRequest").msgclass
|
190
|
+
GetEntityRequest::EntityView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetEntityRequest.EntityView").enummodule
|
191
|
+
ListPartitionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListPartitionsRequest").msgclass
|
192
|
+
ListPartitionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListPartitionsResponse").msgclass
|
193
|
+
GetPartitionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetPartitionRequest").msgclass
|
194
|
+
Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Entity").msgclass
|
195
|
+
Entity::CompatibilityStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Entity.CompatibilityStatus").msgclass
|
196
|
+
Entity::CompatibilityStatus::Compatibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility").msgclass
|
197
|
+
Entity::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Entity.Type").enummodule
|
198
|
+
Partition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Partition").msgclass
|
199
|
+
Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Schema").msgclass
|
200
|
+
Schema::SchemaField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Schema.SchemaField").msgclass
|
201
|
+
Schema::PartitionField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Schema.PartitionField").msgclass
|
202
|
+
Schema::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Schema.Type").enummodule
|
203
|
+
Schema::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Schema.Mode").enummodule
|
204
|
+
Schema::PartitionStyle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Schema.PartitionStyle").enummodule
|
205
|
+
StorageFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.StorageFormat").msgclass
|
206
|
+
StorageFormat::CsvOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.StorageFormat.CsvOptions").msgclass
|
207
|
+
StorageFormat::JsonOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.StorageFormat.JsonOptions").msgclass
|
208
|
+
StorageFormat::Format = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.StorageFormat.Format").enummodule
|
209
|
+
StorageFormat::CompressionFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.StorageFormat.CompressionFormat").enummodule
|
210
|
+
StorageSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.StorageSystem").enummodule
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|