google-cloud-dataplex-v1 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +13 -8
  4. data/lib/google/cloud/dataplex/v1/analyze_pb.rb +117 -0
  5. data/lib/google/cloud/dataplex/v1/content_pb.rb +65 -0
  6. data/lib/google/cloud/dataplex/v1/content_service/client.rb +798 -0
  7. data/lib/google/cloud/dataplex/v1/content_service/credentials.rb +47 -0
  8. data/lib/google/cloud/dataplex/v1/content_service/paths.rb +73 -0
  9. data/lib/google/cloud/dataplex/v1/content_service.rb +49 -0
  10. data/lib/google/cloud/dataplex/v1/content_services_pb.rb +53 -0
  11. data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +637 -1
  12. data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +3 -0
  13. data/lib/google/cloud/dataplex/v1/dataplex_service/paths.rb +21 -0
  14. data/lib/google/cloud/dataplex/v1/logs_pb.rb +2 -2
  15. data/lib/google/cloud/dataplex/v1/metadata_pb.rb +29 -2
  16. data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +531 -10
  17. data/lib/google/cloud/dataplex/v1/metadata_services_pb.rb +10 -0
  18. data/lib/google/cloud/dataplex/v1/resources_pb.rb +2 -2
  19. data/lib/google/cloud/dataplex/v1/service_pb.rb +48 -1
  20. data/lib/google/cloud/dataplex/v1/service_services_pb.rb +13 -0
  21. data/lib/google/cloud/dataplex/v1/tasks_pb.rb +2 -2
  22. data/lib/google/cloud/dataplex/v1/version.rb +1 -1
  23. data/lib/google/cloud/dataplex/v1.rb +4 -1
  24. data/proto_docs/google/cloud/dataplex/v1/analyze.rb +281 -0
  25. data/proto_docs/google/cloud/dataplex/v1/content.rb +142 -0
  26. data/proto_docs/google/cloud/dataplex/v1/metadata.rb +182 -36
  27. data/proto_docs/google/cloud/dataplex/v1/resources.rb +0 -7
  28. data/proto_docs/google/cloud/dataplex/v1/service.rb +137 -1
  29. data/proto_docs/google/protobuf/any.rb +3 -3
  30. metadata +21 -12
@@ -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 ContentService
26
+ # Credentials for the ContentService 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,73 @@
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 ContentService
25
+ # Path helper methods for the ContentService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Content resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/lakes/{lake}/content/{content}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param lake [String]
37
+ # @param content [String]
38
+ #
39
+ # @return [::String]
40
+ def content_path project:, location:, lake:, content:
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+ raise ::ArgumentError, "lake cannot contain /" if lake.to_s.include? "/"
44
+
45
+ "projects/#{project}/locations/#{location}/lakes/#{lake}/content/#{content}"
46
+ end
47
+
48
+ ##
49
+ # Create a fully-qualified Lake resource string.
50
+ #
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/lakes/{lake}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ # @param lake [String]
58
+ #
59
+ # @return [::String]
60
+ def lake_path project:, location:, lake:
61
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
62
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/lakes/#{lake}"
65
+ end
66
+
67
+ extend self
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,49 @@
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/content_service/credentials"
26
+ require "google/cloud/dataplex/v1/content_service/paths"
27
+ require "google/cloud/dataplex/v1/content_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Dataplex
32
+ module V1
33
+ ##
34
+ # ContentService manages Notebook and SQL Scripts for Dataplex.
35
+ #
36
+ # To load this service and instantiate a client:
37
+ #
38
+ # require "google/cloud/dataplex/v1/content_service"
39
+ # client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new
40
+ #
41
+ module ContentService
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "content_service", "helpers.rb"
49
+ require "google/cloud/dataplex/v1/content_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,53 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/dataplex/v1/content.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/content_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dataplex
25
+ module V1
26
+ module ContentService
27
+ # ContentService manages Notebook and SQL Scripts for Dataplex.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.dataplex.v1.ContentService'
35
+
36
+ # Create a content.
37
+ rpc :CreateContent, ::Google::Cloud::Dataplex::V1::CreateContentRequest, ::Google::Cloud::Dataplex::V1::Content
38
+ # Update a content. Only supports full resource update.
39
+ rpc :UpdateContent, ::Google::Cloud::Dataplex::V1::UpdateContentRequest, ::Google::Cloud::Dataplex::V1::Content
40
+ # Delete a content.
41
+ rpc :DeleteContent, ::Google::Cloud::Dataplex::V1::DeleteContentRequest, ::Google::Protobuf::Empty
42
+ # Get a content resource.
43
+ rpc :GetContent, ::Google::Cloud::Dataplex::V1::GetContentRequest, ::Google::Cloud::Dataplex::V1::Content
44
+ # List content.
45
+ rpc :ListContent, ::Google::Cloud::Dataplex::V1::ListContentRequest, ::Google::Cloud::Dataplex::V1::ListContentResponse
46
+ end
47
+
48
+ Stub = Service.rpc_stub_class
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end