google-cloud-dataplex-v1 0.1.0 → 0.3.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 +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +13 -8
- data/lib/google/cloud/dataplex/v1/analyze_pb.rb +117 -0
- data/lib/google/cloud/dataplex/v1/content_pb.rb +65 -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/operations.rb +3 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/paths.rb +21 -0
- data/lib/google/cloud/dataplex/v1/logs_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/metadata_pb.rb +29 -2
- 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/resources_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/service_pb.rb +48 -1
- data/lib/google/cloud/dataplex/v1/service_services_pb.rb +13 -0
- data/lib/google/cloud/dataplex/v1/tasks_pb.rb +2 -2
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/lib/google/cloud/dataplex/v1.rb +4 -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
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +21 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08f2e3c54ea7464141f54532909e4a6922c96c1d92983a27c94dc161a3975bcc'
|
4
|
+
data.tar.gz: 3c15bc88f4a98ffe892fb8b0e8d68b516c21ab9cfd6b005332aa64e02205085c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6698a536ca3acf60e7b77c04bccced2306b22d3cfcf724be192bca7641b598394cebd88b4f0d9cc76a9e361fa58af4737e60983f641845bbeeb84afc3210fd17
|
7
|
+
data.tar.gz: 94e7f000a624c22bee8e081f43b3586a4dbdacbd55f55a5fa5e9136c8a5cb2fbb3d1e2e8c4d7c88d5890c0b82d2c1eb706538bcc3827a4b83b1093d0f8fba68d
|
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)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -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/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/dataplex/v1/resources_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
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,65 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dataplex/v1/content.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/analyze_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
13
|
+
|
14
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
+
add_file("google/cloud/dataplex/v1/content.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.cloud.dataplex.v1.CreateContentRequest" do
|
17
|
+
optional :parent, :string, 1
|
18
|
+
optional :content, :message, 2, "google.cloud.dataplex.v1.Content"
|
19
|
+
optional :validate_only, :bool, 3
|
20
|
+
end
|
21
|
+
add_message "google.cloud.dataplex.v1.UpdateContentRequest" do
|
22
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
23
|
+
optional :content, :message, 2, "google.cloud.dataplex.v1.Content"
|
24
|
+
optional :validate_only, :bool, 3
|
25
|
+
end
|
26
|
+
add_message "google.cloud.dataplex.v1.DeleteContentRequest" do
|
27
|
+
optional :name, :string, 1
|
28
|
+
end
|
29
|
+
add_message "google.cloud.dataplex.v1.ListContentRequest" do
|
30
|
+
optional :parent, :string, 1
|
31
|
+
optional :page_size, :int32, 2
|
32
|
+
optional :page_token, :string, 3
|
33
|
+
optional :filter, :string, 4
|
34
|
+
end
|
35
|
+
add_message "google.cloud.dataplex.v1.ListContentResponse" do
|
36
|
+
repeated :content, :message, 1, "google.cloud.dataplex.v1.Content"
|
37
|
+
optional :next_page_token, :string, 2
|
38
|
+
end
|
39
|
+
add_message "google.cloud.dataplex.v1.GetContentRequest" do
|
40
|
+
optional :name, :string, 1
|
41
|
+
optional :view, :enum, 2, "google.cloud.dataplex.v1.GetContentRequest.ContentView"
|
42
|
+
end
|
43
|
+
add_enum "google.cloud.dataplex.v1.GetContentRequest.ContentView" do
|
44
|
+
value :CONTENT_VIEW_UNSPECIFIED, 0
|
45
|
+
value :BASIC, 1
|
46
|
+
value :FULL, 2
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
module Google
|
52
|
+
module Cloud
|
53
|
+
module Dataplex
|
54
|
+
module V1
|
55
|
+
CreateContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateContentRequest").msgclass
|
56
|
+
UpdateContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateContentRequest").msgclass
|
57
|
+
DeleteContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteContentRequest").msgclass
|
58
|
+
ListContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListContentRequest").msgclass
|
59
|
+
ListContentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListContentResponse").msgclass
|
60
|
+
GetContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetContentRequest").msgclass
|
61
|
+
GetContentRequest::ContentView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetContentRequest.ContentView").enummodule
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|