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.
Files changed (21) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/orchestration/airflow/service/v1/environments/client.rb +26 -28
  4. data/lib/google/cloud/orchestration/airflow/service/v1/environments/operations.rb +14 -16
  5. data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/client.rb +945 -0
  6. data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/operations.rb +797 -0
  7. data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/service_stub.rb +469 -0
  8. data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest.rb +57 -0
  9. data/lib/google/cloud/orchestration/airflow/service/v1/environments.rb +6 -0
  10. data/lib/google/cloud/orchestration/airflow/service/v1/environments_pb.rb +1 -0
  11. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/client.rb +6 -8
  12. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest/client.rb +354 -0
  13. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest/service_stub.rb +111 -0
  14. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest.rb +55 -0
  15. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions.rb +6 -0
  16. data/lib/google/cloud/orchestration/airflow/service/v1/rest.rb +42 -0
  17. data/lib/google/cloud/orchestration/airflow/service/v1/version.rb +1 -1
  18. data/lib/google/cloud/orchestration/airflow/service/v1.rb +5 -0
  19. data/proto_docs/google/api/client.rb +57 -3
  20. data/proto_docs/google/cloud/orchestration/airflow/service/v1/environments.rb +7 -0
  21. metadata +15 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fd74eac5e4a724c6b7e660ede76650d39bc14070b69a99f1d7b6ff4b8bfb5e1
4
- data.tar.gz: aa154b38a7c6b7fdce3562f67a7de4e1c7efe58dce8a9d7be603da67a9310c81
3
+ metadata.gz: 631a837802da9210eaf8b502637fda8737d773c20619a1058e88b25fb087b88d
4
+ data.tar.gz: 25aa2c68e225f51cb406a44e1a6e499e7241a1a69a3af7b738c2353da44d343e
5
5
  SHA512:
6
- metadata.gz: f71781256e53466e202765f048a81d03ff7f62752edc7188caeffd65f8e6f1a4ad6a7f98e78e5351bf15ecec39cfa139baa628c19f3384c20afd9e0fd2b77357
7
- data.tar.gz: b3a5ecb299ff686bbe708d718249aed3b783cdb87e3ed0f72d69c9ccda8430c1088ff2a91f30f321f2386cf634d51a9e0ffd20a2d162b92880aa4c6fe3f19af7
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
- API Client library for the Cloud Composer V1 API
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://googleapis.dev/ruby/google-cloud-logging/latest)
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 this
207
- # # object to check the status of an operation, cancel it, or wait
208
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
392
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
611
- # # object to check the status of an operation, cancel it, or wait
612
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
705
- # # object to check the status of an operation, cancel it, or wait
706
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
805
- # # object to check the status of an operation, cancel it, or wait
806
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
917
- # # object to check the status of an operation, cancel it, or wait
918
- # # for results. Here is how to block until completion:
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 "Error!"
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- # # iterate over all elements by calling #each, and the enumerable
165
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
259
- # # object to check the status of an operation, cancel it, or wait
260
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
546
- # # object to check the status of an operation, cancel it, or wait
547
- # # for results. Here is how to block until completion:
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 "Error!"
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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