google-cloud-dataplex-v1 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +3 -3
- data/lib/google/cloud/dataplex/v1/analyze_pb.rb +117 -0
- data/lib/google/cloud/dataplex/v1/content_pb.rb +64 -0
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +798 -0
- data/lib/google/cloud/dataplex/v1/content_service/credentials.rb +47 -0
- data/lib/google/cloud/dataplex/v1/content_service/paths.rb +73 -0
- data/lib/google/cloud/dataplex/v1/content_service.rb +49 -0
- data/lib/google/cloud/dataplex/v1/content_services_pb.rb +53 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +637 -1
- data/lib/google/cloud/dataplex/v1/dataplex_service/paths.rb +21 -0
- data/lib/google/cloud/dataplex/v1/metadata_pb.rb +27 -1
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +531 -10
- data/lib/google/cloud/dataplex/v1/metadata_services_pb.rb +10 -0
- data/lib/google/cloud/dataplex/v1/service_pb.rb +46 -0
- data/lib/google/cloud/dataplex/v1/service_services_pb.rb +13 -0
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/lib/google/cloud/dataplex/v1.rb +2 -1
- data/proto_docs/google/cloud/dataplex/v1/analyze.rb +281 -0
- data/proto_docs/google/cloud/dataplex/v1/content.rb +142 -0
- data/proto_docs/google/cloud/dataplex/v1/metadata.rb +182 -36
- data/proto_docs/google/cloud/dataplex/v1/resources.rb +0 -7
- data/proto_docs/google/cloud/dataplex/v1/service.rb +137 -1
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1aa6df4e9a0ccb7f3c6c78f8202ec8ff6e73dd60181a45c60bf3cf3573d23cd
|
4
|
+
data.tar.gz: 4548e6c2e9e0371c396ec5ebed7b44eb42c58e0cd518a12e3bcc4fb73f87fb4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa15d1251e9f11bb406e60a63b9120c8097ad507f6785b63915a0a70ff1493786c42aea93d50c7f405dadb2cb8121c6a7e3f53842d75c08c8ff20b41ecc34f97
|
7
|
+
data.tar.gz: e04ec4c198436cd0e2132698166d5ea0fcb06097d6d9469544de5abee5578867018bd9248c8d3d4624d2a18b94d1d677b119bf04fff2dff32982c098a8dd9939
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export GOOGLE_CLOUD_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/dataplex/v1"
|
29
29
|
|
30
|
-
client = ::Google::Cloud::Dataplex::V1::
|
30
|
+
client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-dataplex-v1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{::Google::Cloud::Dataplex::V1::
|
67
|
+
{::Google::Cloud::Dataplex::V1::ContentService::Credentials}):
|
68
68
|
|
69
69
|
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -75,7 +75,7 @@ require "google/cloud/dataplex/v1"
|
|
75
75
|
|
76
76
|
ENV["GOOGLE_CLOUD_CREDENTIALS"] = "path/to/keyfile.json"
|
77
77
|
|
78
|
-
client = ::Google::Cloud::Dataplex::V1::
|
78
|
+
client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new
|
79
79
|
```
|
80
80
|
|
81
81
|
### Configuration
|
@@ -86,7 +86,7 @@ it in an environment variable. Either on an individual client initialization:
|
|
86
86
|
```ruby
|
87
87
|
require "google/cloud/dataplex/v1"
|
88
88
|
|
89
|
-
client = ::Google::Cloud::Dataplex::V1::
|
89
|
+
client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new do |config|
|
90
90
|
config.credentials = "path/to/keyfile.json"
|
91
91
|
end
|
92
92
|
```
|
@@ -96,11 +96,11 @@ Or globally for all clients:
|
|
96
96
|
```ruby
|
97
97
|
require "google/cloud/dataplex/v1"
|
98
98
|
|
99
|
-
::Google::Cloud::Dataplex::V1::
|
99
|
+
::Google::Cloud::Dataplex::V1::ContentService::Client.configure do |config|
|
100
100
|
config.credentials = "path/to/keyfile.json"
|
101
101
|
end
|
102
102
|
|
103
|
-
client = ::Google::Cloud::Dataplex::V1::
|
103
|
+
client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new
|
104
104
|
```
|
105
105
|
|
106
106
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -32,9 +32,9 @@ In order to use this library, you first need to go through the following steps:
|
|
32
32
|
```ruby
|
33
33
|
require "google/cloud/dataplex/v1"
|
34
34
|
|
35
|
-
client = ::Google::Cloud::Dataplex::V1::
|
36
|
-
request = ::Google::Cloud::Dataplex::V1::
|
37
|
-
response = client.
|
35
|
+
client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new
|
36
|
+
request = ::Google::Cloud::Dataplex::V1::CreateContentRequest.new # (request fields as keyword arguments...)
|
37
|
+
response = client.create_content request
|
38
38
|
```
|
39
39
|
|
40
40
|
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest)
|
@@ -0,0 +1,117 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dataplex/v1/analyze.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/field_behavior_pb'
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/cloud/dataplex/v1/resources_pb'
|
8
|
+
require 'google/protobuf/duration_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/dataplex/v1/analyze.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.dataplex.v1.Environment" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :display_name, :string, 2
|
17
|
+
optional :uid, :string, 3
|
18
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
19
|
+
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
20
|
+
map :labels, :string, :string, 6
|
21
|
+
optional :description, :string, 7
|
22
|
+
optional :state, :enum, 8, "google.cloud.dataplex.v1.State"
|
23
|
+
optional :infrastructure_spec, :message, 100, "google.cloud.dataplex.v1.Environment.InfrastructureSpec"
|
24
|
+
optional :session_spec, :message, 101, "google.cloud.dataplex.v1.Environment.SessionSpec"
|
25
|
+
optional :session_status, :message, 102, "google.cloud.dataplex.v1.Environment.SessionStatus"
|
26
|
+
optional :endpoints, :message, 200, "google.cloud.dataplex.v1.Environment.Endpoints"
|
27
|
+
end
|
28
|
+
add_message "google.cloud.dataplex.v1.Environment.InfrastructureSpec" do
|
29
|
+
oneof :resources do
|
30
|
+
optional :compute, :message, 50, "google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources"
|
31
|
+
end
|
32
|
+
oneof :runtime do
|
33
|
+
optional :os_image, :message, 100, "google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
add_message "google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources" do
|
37
|
+
optional :disk_size_gb, :int32, 1
|
38
|
+
optional :node_count, :int32, 2
|
39
|
+
optional :max_node_count, :int32, 3
|
40
|
+
end
|
41
|
+
add_message "google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime" do
|
42
|
+
optional :image_version, :string, 1
|
43
|
+
repeated :java_libraries, :string, 2
|
44
|
+
repeated :python_packages, :string, 3
|
45
|
+
map :properties, :string, :string, 4
|
46
|
+
end
|
47
|
+
add_message "google.cloud.dataplex.v1.Environment.SessionSpec" do
|
48
|
+
optional :max_idle_duration, :message, 1, "google.protobuf.Duration"
|
49
|
+
optional :enable_fast_startup, :bool, 2
|
50
|
+
end
|
51
|
+
add_message "google.cloud.dataplex.v1.Environment.SessionStatus" do
|
52
|
+
optional :active, :bool, 1
|
53
|
+
end
|
54
|
+
add_message "google.cloud.dataplex.v1.Environment.Endpoints" do
|
55
|
+
optional :notebooks, :string, 1
|
56
|
+
optional :sql, :string, 2
|
57
|
+
end
|
58
|
+
add_message "google.cloud.dataplex.v1.Content" do
|
59
|
+
optional :name, :string, 1
|
60
|
+
optional :uid, :string, 2
|
61
|
+
optional :path, :string, 3
|
62
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
63
|
+
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
64
|
+
map :labels, :string, :string, 6
|
65
|
+
optional :description, :string, 7
|
66
|
+
oneof :data do
|
67
|
+
optional :data_text, :string, 9
|
68
|
+
end
|
69
|
+
oneof :content do
|
70
|
+
optional :sql_script, :message, 100, "google.cloud.dataplex.v1.Content.SqlScript"
|
71
|
+
optional :notebook, :message, 101, "google.cloud.dataplex.v1.Content.Notebook"
|
72
|
+
end
|
73
|
+
end
|
74
|
+
add_message "google.cloud.dataplex.v1.Content.SqlScript" do
|
75
|
+
optional :engine, :enum, 1, "google.cloud.dataplex.v1.Content.SqlScript.QueryEngine"
|
76
|
+
end
|
77
|
+
add_enum "google.cloud.dataplex.v1.Content.SqlScript.QueryEngine" do
|
78
|
+
value :QUERY_ENGINE_UNSPECIFIED, 0
|
79
|
+
value :SPARK, 2
|
80
|
+
end
|
81
|
+
add_message "google.cloud.dataplex.v1.Content.Notebook" do
|
82
|
+
optional :kernel_type, :enum, 1, "google.cloud.dataplex.v1.Content.Notebook.KernelType"
|
83
|
+
end
|
84
|
+
add_enum "google.cloud.dataplex.v1.Content.Notebook.KernelType" do
|
85
|
+
value :KERNEL_TYPE_UNSPECIFIED, 0
|
86
|
+
value :PYTHON3, 1
|
87
|
+
end
|
88
|
+
add_message "google.cloud.dataplex.v1.Session" do
|
89
|
+
optional :name, :string, 1
|
90
|
+
optional :user_id, :string, 2
|
91
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
92
|
+
optional :state, :enum, 4, "google.cloud.dataplex.v1.State"
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
module Google
|
98
|
+
module Cloud
|
99
|
+
module Dataplex
|
100
|
+
module V1
|
101
|
+
Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Environment").msgclass
|
102
|
+
Environment::InfrastructureSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Environment.InfrastructureSpec").msgclass
|
103
|
+
Environment::InfrastructureSpec::ComputeResources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources").msgclass
|
104
|
+
Environment::InfrastructureSpec::OsImageRuntime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime").msgclass
|
105
|
+
Environment::SessionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Environment.SessionSpec").msgclass
|
106
|
+
Environment::SessionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Environment.SessionStatus").msgclass
|
107
|
+
Environment::Endpoints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Environment.Endpoints").msgclass
|
108
|
+
Content = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Content").msgclass
|
109
|
+
Content::SqlScript = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Content.SqlScript").msgclass
|
110
|
+
Content::SqlScript::QueryEngine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Content.SqlScript.QueryEngine").enummodule
|
111
|
+
Content::Notebook = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Content.Notebook").msgclass
|
112
|
+
Content::Notebook::KernelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Content.Notebook.KernelType").enummodule
|
113
|
+
Session = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Session").msgclass
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dataplex/v1/content.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/client_pb'
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/dataplex/v1/analyze_pb'
|
9
|
+
require 'google/protobuf/empty_pb'
|
10
|
+
require 'google/protobuf/field_mask_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/dataplex/v1/content.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.dataplex.v1.CreateContentRequest" do
|
16
|
+
optional :parent, :string, 1
|
17
|
+
optional :content, :message, 2, "google.cloud.dataplex.v1.Content"
|
18
|
+
optional :validate_only, :bool, 3
|
19
|
+
end
|
20
|
+
add_message "google.cloud.dataplex.v1.UpdateContentRequest" do
|
21
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
22
|
+
optional :content, :message, 2, "google.cloud.dataplex.v1.Content"
|
23
|
+
optional :validate_only, :bool, 3
|
24
|
+
end
|
25
|
+
add_message "google.cloud.dataplex.v1.DeleteContentRequest" do
|
26
|
+
optional :name, :string, 1
|
27
|
+
end
|
28
|
+
add_message "google.cloud.dataplex.v1.ListContentRequest" do
|
29
|
+
optional :parent, :string, 1
|
30
|
+
optional :page_size, :int32, 2
|
31
|
+
optional :page_token, :string, 3
|
32
|
+
optional :filter, :string, 4
|
33
|
+
end
|
34
|
+
add_message "google.cloud.dataplex.v1.ListContentResponse" do
|
35
|
+
repeated :content, :message, 1, "google.cloud.dataplex.v1.Content"
|
36
|
+
optional :next_page_token, :string, 2
|
37
|
+
end
|
38
|
+
add_message "google.cloud.dataplex.v1.GetContentRequest" do
|
39
|
+
optional :name, :string, 1
|
40
|
+
optional :view, :enum, 2, "google.cloud.dataplex.v1.GetContentRequest.ContentView"
|
41
|
+
end
|
42
|
+
add_enum "google.cloud.dataplex.v1.GetContentRequest.ContentView" do
|
43
|
+
value :CONTENT_VIEW_UNSPECIFIED, 0
|
44
|
+
value :BASIC, 1
|
45
|
+
value :FULL, 2
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
module Google
|
51
|
+
module Cloud
|
52
|
+
module Dataplex
|
53
|
+
module V1
|
54
|
+
CreateContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateContentRequest").msgclass
|
55
|
+
UpdateContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateContentRequest").msgclass
|
56
|
+
DeleteContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteContentRequest").msgclass
|
57
|
+
ListContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListContentRequest").msgclass
|
58
|
+
ListContentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListContentResponse").msgclass
|
59
|
+
GetContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetContentRequest").msgclass
|
60
|
+
GetContentRequest::ContentView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetContentRequest.ContentView").enummodule
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|