google-cloud-data_fusion-v1 0.2.0 → 0.4.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 +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/data_fusion/v1/data_fusion/client.rb +30 -32
- data/lib/google/cloud/data_fusion/v1/data_fusion/operations.rb +17 -17
- data/lib/google/cloud/data_fusion/v1/data_fusion/rest/client.rb +823 -0
- data/lib/google/cloud/data_fusion/v1/data_fusion/rest/operations.rb +795 -0
- data/lib/google/cloud/data_fusion/v1/data_fusion/rest/service_stub.rb +464 -0
- data/lib/google/cloud/data_fusion/v1/data_fusion/rest.rb +55 -0
- data/lib/google/cloud/data_fusion/v1/data_fusion.rb +7 -1
- data/lib/google/cloud/data_fusion/v1/rest.rb +37 -0
- data/lib/google/cloud/data_fusion/v1/version.rb +1 -1
- data/lib/google/cloud/data_fusion/v1.rb +7 -2
- data/lib/google/cloud/datafusion/v1/datafusion_pb.rb +26 -138
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +20 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd47cc522eb5a7d1c685de20714d33634e13dd9c7db12e7b243759a270bcc495
|
4
|
+
data.tar.gz: c74ae301b093a7c6dad1b29a6b13c9be6241c211d9bc5b1777666515a08802bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2751575e8bb67a171f2985db7bc6ca518b9e477873fff9106b0fa6292e90b0ec14d9f19653302680650f49feedb13b2ef94626ba1aa071a993c59a7f1548b958
|
7
|
+
data.tar.gz: 5a90a19a176b99ae930a438025c2c9f62ea6a41362811150b4d85b66c27ffd86cde213c833fb026750d8aa2363932ecdaeac291cc56526b6ff6d6e18e41bdb71
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud Data Fusion V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Cloud Data Fusion is a fully-managed, cloud native, enterprise data integration service for quickly building and managing data pipelines. It provides a graphical interface to increase time efficiency and reduce complexity, and allows business users, developers, and data scientists to easily and reliably build scalable data integration solutions to cleanse, prepare, blend, transfer and transform data without having to wrestle with infrastructure.
|
4
4
|
|
5
5
|
Cloud Data Fusion is a fully managed, cloud-native, enterprise data integration service for quickly building and managing data pipelines.
|
6
6
|
|
@@ -46,8 +46,8 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -127,7 +127,7 @@ module Google
|
|
127
127
|
credentials = @config.credentials
|
128
128
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
129
129
|
# but only if the default endpoint does not have a region prefix.
|
130
|
-
enable_self_signed_jwt = @config.endpoint ==
|
130
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
131
131
|
!@config.endpoint.split(".").first.include?("-")
|
132
132
|
credentials ||= Credentials.default scope: @config.scope,
|
133
133
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -213,13 +213,11 @@ module Google
|
|
213
213
|
# # Call the list_available_versions method.
|
214
214
|
# result = client.list_available_versions request
|
215
215
|
#
|
216
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
217
|
-
# #
|
218
|
-
#
|
219
|
-
# # methods are also available for managing paging directly.
|
220
|
-
# result.each do |response|
|
216
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
217
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
218
|
+
# result.each do |item|
|
221
219
|
# # Each element is of type ::Google::Cloud::DataFusion::V1::Version.
|
222
|
-
# p
|
220
|
+
# p item
|
223
221
|
# end
|
224
222
|
#
|
225
223
|
def list_available_versions request, options = nil
|
@@ -317,13 +315,11 @@ module Google
|
|
317
315
|
# # Call the list_instances method.
|
318
316
|
# result = client.list_instances request
|
319
317
|
#
|
320
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
321
|
-
# #
|
322
|
-
#
|
323
|
-
# # methods are also available for managing paging directly.
|
324
|
-
# result.each do |response|
|
318
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
319
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
320
|
+
# result.each do |item|
|
325
321
|
# # Each element is of type ::Google::Cloud::DataFusion::V1::Instance.
|
326
|
-
# p
|
322
|
+
# p item
|
327
323
|
# end
|
328
324
|
#
|
329
325
|
def list_instances request, options = nil
|
@@ -500,14 +496,14 @@ module Google
|
|
500
496
|
# # Call the create_instance method.
|
501
497
|
# result = client.create_instance request
|
502
498
|
#
|
503
|
-
# # The returned object is of type Gapic::Operation. You can use
|
504
|
-
# #
|
505
|
-
# #
|
499
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
500
|
+
# # check the status of an operation, cancel it, or wait for results.
|
501
|
+
# # Here is how to wait for a response.
|
506
502
|
# result.wait_until_done! timeout: 60
|
507
503
|
# if result.response?
|
508
504
|
# p result.response
|
509
505
|
# else
|
510
|
-
# puts "
|
506
|
+
# puts "No response received."
|
511
507
|
# end
|
512
508
|
#
|
513
509
|
def create_instance request, options = nil
|
@@ -594,14 +590,14 @@ module Google
|
|
594
590
|
# # Call the delete_instance method.
|
595
591
|
# result = client.delete_instance request
|
596
592
|
#
|
597
|
-
# # The returned object is of type Gapic::Operation. You can use
|
598
|
-
# #
|
599
|
-
# #
|
593
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
594
|
+
# # check the status of an operation, cancel it, or wait for results.
|
595
|
+
# # Here is how to wait for a response.
|
600
596
|
# result.wait_until_done! timeout: 60
|
601
597
|
# if result.response?
|
602
598
|
# p result.response
|
603
599
|
# else
|
604
|
-
# puts "
|
600
|
+
# puts "No response received."
|
605
601
|
# end
|
606
602
|
#
|
607
603
|
def delete_instance request, options = nil
|
@@ -696,14 +692,14 @@ module Google
|
|
696
692
|
# # Call the update_instance method.
|
697
693
|
# result = client.update_instance request
|
698
694
|
#
|
699
|
-
# # The returned object is of type Gapic::Operation. You can use
|
700
|
-
# #
|
701
|
-
# #
|
695
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
696
|
+
# # check the status of an operation, cancel it, or wait for results.
|
697
|
+
# # Here is how to wait for a response.
|
702
698
|
# result.wait_until_done! timeout: 60
|
703
699
|
# if result.response?
|
704
700
|
# p result.response
|
705
701
|
# else
|
706
|
-
# puts "
|
702
|
+
# puts "No response received."
|
707
703
|
# end
|
708
704
|
#
|
709
705
|
def update_instance request, options = nil
|
@@ -791,14 +787,14 @@ module Google
|
|
791
787
|
# # Call the restart_instance method.
|
792
788
|
# result = client.restart_instance request
|
793
789
|
#
|
794
|
-
# # The returned object is of type Gapic::Operation. You can use
|
795
|
-
# #
|
796
|
-
# #
|
790
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
791
|
+
# # check the status of an operation, cancel it, or wait for results.
|
792
|
+
# # Here is how to wait for a response.
|
797
793
|
# result.wait_until_done! timeout: 60
|
798
794
|
# if result.response?
|
799
795
|
# p result.response
|
800
796
|
# else
|
801
|
-
# puts "
|
797
|
+
# puts "No response received."
|
802
798
|
# end
|
803
799
|
#
|
804
800
|
def restart_instance request, options = nil
|
@@ -881,9 +877,9 @@ module Google
|
|
881
877
|
# * (`String`) The path to a service account key file in JSON format
|
882
878
|
# * (`Hash`) A service account key as a Hash
|
883
879
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
884
|
-
# (see the [googleauth docs](https://
|
880
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
885
881
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
886
|
-
# (see the [signet docs](https://
|
882
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
887
883
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
888
884
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
889
885
|
# * (`nil`) indicating no credentials
|
@@ -925,7 +921,9 @@ module Google
|
|
925
921
|
class Configuration
|
926
922
|
extend ::Gapic::Config
|
927
923
|
|
928
|
-
|
924
|
+
DEFAULT_ENDPOINT = "datafusion.googleapis.com"
|
925
|
+
|
926
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
929
927
|
config_attr :credentials, nil do |value|
|
930
928
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
931
929
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|
@@ -666,7 +664,9 @@ module Google
|
|
666
664
|
class Configuration
|
667
665
|
extend ::Gapic::Config
|
668
666
|
|
669
|
-
|
667
|
+
DEFAULT_ENDPOINT = "datafusion.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
670
670
|
config_attr :credentials, nil do |value|
|
671
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
672
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|