google-cloud-orchestration-airflow-service-v1 0.3.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/client.rb +26 -28
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/operations.rb +14 -16
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/client.rb +945 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/operations.rb +797 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/service_stub.rb +469 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest.rb +57 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments.rb +6 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments_pb.rb +1 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/client.rb +6 -8
- data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest/client.rb +354 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest/service_stub.rb +111 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest.rb +55 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/image_versions.rb +6 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/rest.rb +42 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/version.rb +1 -1
- data/lib/google/cloud/orchestration/airflow/service/v1.rb +5 -0
- data/proto_docs/google/api/client.rb +57 -3
- data/proto_docs/google/cloud/orchestration/airflow/service/v1/environments.rb +7 -0
- metadata +15 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 631a837802da9210eaf8b502637fda8737d773c20619a1058e88b25fb087b88d
|
4
|
+
data.tar.gz: 25aa2c68e225f51cb406a44e1a6e499e7241a1a69a3af7b738c2353da44d343e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f110c850827abd6d7dc2791467a87870322cbde9d79b4d93299fdfa5a48a849b5748f814b14bd592455cbeecac75949955f33796423e99edbf57935a9db75348
|
7
|
+
data.tar.gz: '090a959a3f9ad8484e8b4e3440c4feba1a7b5609120c3dd515aae6aa200b51e379effc246c0c6136ce4990eaf8c29aa99f7b39601f092b66144e04635ddd6056'
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud Composer V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Manages Apache Airflow environments on Google Cloud Platform.
|
4
4
|
|
5
5
|
The client library for the Cloud Composer API, built on the popular Apache Airflow open source project. Cloud Composer is a fully managed workflow orchestration service, enabling you to create, schedule, monitor, and manage workflows that span across clouds and on-premises data centers.
|
6
6
|
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
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
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://
|
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
|
|
@@ -203,14 +203,14 @@ module Google
|
|
203
203
|
# # Call the create_environment method.
|
204
204
|
# result = client.create_environment request
|
205
205
|
#
|
206
|
-
# # The returned object is of type Gapic::Operation. You can use
|
207
|
-
# #
|
208
|
-
# #
|
206
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
207
|
+
# # check the status of an operation, cancel it, or wait for results.
|
208
|
+
# # Here is how to wait for a response.
|
209
209
|
# result.wait_until_done! timeout: 60
|
210
210
|
# if result.response?
|
211
211
|
# p result.response
|
212
212
|
# else
|
213
|
-
# puts "
|
213
|
+
# puts "No response received."
|
214
214
|
# end
|
215
215
|
#
|
216
216
|
def create_environment request, options = nil
|
@@ -387,13 +387,11 @@ module Google
|
|
387
387
|
# # Call the list_environments method.
|
388
388
|
# result = client.list_environments request
|
389
389
|
#
|
390
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
391
|
-
# #
|
392
|
-
#
|
393
|
-
# # methods are also available for managing paging directly.
|
394
|
-
# result.each do |response|
|
390
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
391
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
392
|
+
# result.each do |item|
|
395
393
|
# # Each element is of type ::Google::Cloud::Orchestration::Airflow::Service::V1::Environment.
|
396
|
-
# p
|
394
|
+
# p item
|
397
395
|
# end
|
398
396
|
#
|
399
397
|
def list_environments request, options = nil
|
@@ -607,14 +605,14 @@ module Google
|
|
607
605
|
# # Call the update_environment method.
|
608
606
|
# result = client.update_environment request
|
609
607
|
#
|
610
|
-
# # The returned object is of type Gapic::Operation. You can use
|
611
|
-
# #
|
612
|
-
# #
|
608
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
609
|
+
# # check the status of an operation, cancel it, or wait for results.
|
610
|
+
# # Here is how to wait for a response.
|
613
611
|
# result.wait_until_done! timeout: 60
|
614
612
|
# if result.response?
|
615
613
|
# p result.response
|
616
614
|
# else
|
617
|
-
# puts "
|
615
|
+
# puts "No response received."
|
618
616
|
# end
|
619
617
|
#
|
620
618
|
def update_environment request, options = nil
|
@@ -701,14 +699,14 @@ module Google
|
|
701
699
|
# # Call the delete_environment method.
|
702
700
|
# result = client.delete_environment request
|
703
701
|
#
|
704
|
-
# # The returned object is of type Gapic::Operation. You can use
|
705
|
-
# #
|
706
|
-
# #
|
702
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
703
|
+
# # check the status of an operation, cancel it, or wait for results.
|
704
|
+
# # Here is how to wait for a response.
|
707
705
|
# result.wait_until_done! timeout: 60
|
708
706
|
# if result.response?
|
709
707
|
# p result.response
|
710
708
|
# else
|
711
|
-
# puts "
|
709
|
+
# puts "No response received."
|
712
710
|
# end
|
713
711
|
#
|
714
712
|
def delete_environment request, options = nil
|
@@ -801,14 +799,14 @@ module Google
|
|
801
799
|
# # Call the save_snapshot method.
|
802
800
|
# result = client.save_snapshot request
|
803
801
|
#
|
804
|
-
# # The returned object is of type Gapic::Operation. You can use
|
805
|
-
# #
|
806
|
-
# #
|
802
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
803
|
+
# # check the status of an operation, cancel it, or wait for results.
|
804
|
+
# # Here is how to wait for a response.
|
807
805
|
# result.wait_until_done! timeout: 60
|
808
806
|
# if result.response?
|
809
807
|
# p result.response
|
810
808
|
# else
|
811
|
-
# puts "
|
809
|
+
# puts "No response received."
|
812
810
|
# end
|
813
811
|
#
|
814
812
|
def save_snapshot request, options = nil
|
@@ -913,14 +911,14 @@ module Google
|
|
913
911
|
# # Call the load_snapshot method.
|
914
912
|
# result = client.load_snapshot request
|
915
913
|
#
|
916
|
-
# # The returned object is of type Gapic::Operation. You can use
|
917
|
-
# #
|
918
|
-
# #
|
914
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
915
|
+
# # check the status of an operation, cancel it, or wait for results.
|
916
|
+
# # Here is how to wait for a response.
|
919
917
|
# result.wait_until_done! timeout: 60
|
920
918
|
# if result.response?
|
921
919
|
# p result.response
|
922
920
|
# else
|
923
|
-
# puts "
|
921
|
+
# puts "No response received."
|
924
922
|
# end
|
925
923
|
#
|
926
924
|
def load_snapshot request, options = nil
|
@@ -1003,9 +1001,9 @@ module Google
|
|
1003
1001
|
# * (`String`) The path to a service account key file in JSON format
|
1004
1002
|
# * (`Hash`) A service account key as a Hash
|
1005
1003
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1006
|
-
# (see the [googleauth docs](https://
|
1004
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1007
1005
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1008
|
-
# (see the [signet docs](https://
|
1006
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1009
1007
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1010
1008
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1011
1009
|
# * (`nil`) indicating no credentials
|
@@ -160,13 +160,11 @@ module Google
|
|
160
160
|
# # Call the list_operations method.
|
161
161
|
# result = client.list_operations request
|
162
162
|
#
|
163
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
164
|
-
# #
|
165
|
-
#
|
166
|
-
# # methods are also available for managing paging directly.
|
167
|
-
# result.each do |response|
|
163
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
164
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
165
|
+
# result.each do |item|
|
168
166
|
# # Each element is of type ::Google::Longrunning::Operation.
|
169
|
-
# p
|
167
|
+
# p item
|
170
168
|
# end
|
171
169
|
#
|
172
170
|
def list_operations request, options = nil
|
@@ -255,14 +253,14 @@ module Google
|
|
255
253
|
# # Call the get_operation method.
|
256
254
|
# result = client.get_operation request
|
257
255
|
#
|
258
|
-
# # The returned object is of type Gapic::Operation. You can use
|
259
|
-
# #
|
260
|
-
# #
|
256
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
257
|
+
# # check the status of an operation, cancel it, or wait for results.
|
258
|
+
# # Here is how to wait for a response.
|
261
259
|
# result.wait_until_done! timeout: 60
|
262
260
|
# if result.response?
|
263
261
|
# p result.response
|
264
262
|
# else
|
265
|
-
# puts "
|
263
|
+
# puts "No response received."
|
266
264
|
# end
|
267
265
|
#
|
268
266
|
def get_operation request, options = nil
|
@@ -542,14 +540,14 @@ module Google
|
|
542
540
|
# # Call the wait_operation method.
|
543
541
|
# result = client.wait_operation request
|
544
542
|
#
|
545
|
-
# # The returned object is of type Gapic::Operation. You can use
|
546
|
-
# #
|
547
|
-
# #
|
543
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
544
|
+
# # check the status of an operation, cancel it, or wait for results.
|
545
|
+
# # Here is how to wait for a response.
|
548
546
|
# result.wait_until_done! timeout: 60
|
549
547
|
# if result.response?
|
550
548
|
# p result.response
|
551
549
|
# else
|
552
|
-
# puts "
|
550
|
+
# puts "No response received."
|
553
551
|
# end
|
554
552
|
#
|
555
553
|
def wait_operation request, options = nil
|
@@ -624,9 +622,9 @@ module Google
|
|
624
622
|
# * (`String`) The path to a service account key file in JSON format
|
625
623
|
# * (`Hash`) A service account key as a Hash
|
626
624
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
627
|
-
# (see the [googleauth docs](https://
|
625
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
628
626
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
629
|
-
# (see the [signet docs](https://
|
627
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
630
628
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
631
629
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
632
630
|
# * (`nil`) indicating no credentials
|