google-cloud-gke_hub-v1 0.2.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab270f9a65942083380c26d16fd3ae1d0089d8eeb36a134cd82743e4196b7955
4
- data.tar.gz: 6ba4a2cada35b35f52df499645a3287ffa22106076a6cc351be314d7b21a9247
3
+ metadata.gz: e211e3671a0c7c0ffae2b48a5da58e845d6157c309f8850f1ea8c27baf24a750
4
+ data.tar.gz: 51aa70f26d9cdc2c05a4d1722256079f1fdb71b8b8032d947c4c862cb10bd586
5
5
  SHA512:
6
- metadata.gz: e68fd0e24d7be18d89db16b1fff0562d5d0522c8f584e7a240b4b0c2d1529973ad3d3d6c1aaa751afe940a7608fc03b9a455a5faa49d0769c4e6b548ed4eb161
7
- data.tar.gz: eb3d9b6c7812fbbbc964bb1714d9c66a454ef0e128cb08c290b267c75c7d99dab4cc4803e1995fa5c14f3eb46dd07b87bc0ce86aca2e902d6eea204aa116ef40
6
+ metadata.gz: e33bb17ef24514e8a6fe326da7dcc3764aa066d9478522d4caa9f8768bc186e8e2ff9645ca60e76e0972a106ccf2f5a7e15caa844ee9021e7cc47db00cbefa64
7
+ data.tar.gz: b70f7a2fec748e8194c03356fe72b3ba1d316261ee8ce3cf72f5165371904c35e4ff167e5aa42ce7b53bf26c567cb1a9070ace63fc0470813731b50948280602
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -46,7 +46,7 @@ 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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/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.
@@ -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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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
 
@@ -249,13 +249,11 @@ module Google
249
249
  # # Call the list_memberships method.
250
250
  # result = client.list_memberships request
251
251
  #
252
- # # The returned object is of type Gapic::PagedEnumerable. You can
253
- # # iterate over all elements by calling #each, and the enumerable
254
- # # will lazily make API calls to fetch subsequent pages. Other
255
- # # methods are also available for managing paging directly.
256
- # result.each do |response|
252
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
253
+ # # over elements, and API calls will be issued to fetch pages as needed.
254
+ # result.each do |item|
257
255
  # # Each element is of type ::Google::Cloud::GkeHub::V1::Membership.
258
- # p response
256
+ # p item
259
257
  # end
260
258
  #
261
259
  def list_memberships request, options = nil
@@ -370,13 +368,11 @@ module Google
370
368
  # # Call the list_features method.
371
369
  # result = client.list_features request
372
370
  #
373
- # # The returned object is of type Gapic::PagedEnumerable. You can
374
- # # iterate over all elements by calling #each, and the enumerable
375
- # # will lazily make API calls to fetch subsequent pages. Other
376
- # # methods are also available for managing paging directly.
377
- # result.each do |response|
371
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
372
+ # # over elements, and API calls will be issued to fetch pages as needed.
373
+ # result.each do |item|
378
374
  # # Each element is of type ::Google::Cloud::GkeHub::V1::Feature.
379
- # p response
375
+ # p item
380
376
  # end
381
377
  #
382
378
  def list_features request, options = nil
@@ -665,14 +661,14 @@ module Google
665
661
  # # Call the create_membership method.
666
662
  # result = client.create_membership request
667
663
  #
668
- # # The returned object is of type Gapic::Operation. You can use this
669
- # # object to check the status of an operation, cancel it, or wait
670
- # # for results. Here is how to block until completion:
664
+ # # The returned object is of type Gapic::Operation. You can use it to
665
+ # # check the status of an operation, cancel it, or wait for results.
666
+ # # Here is how to wait for a response.
671
667
  # result.wait_until_done! timeout: 60
672
668
  # if result.response?
673
669
  # p result.response
674
670
  # else
675
- # puts "Error!"
671
+ # puts "No response received."
676
672
  # end
677
673
  #
678
674
  def create_membership request, options = nil
@@ -777,14 +773,14 @@ module Google
777
773
  # # Call the create_feature method.
778
774
  # result = client.create_feature request
779
775
  #
780
- # # The returned object is of type Gapic::Operation. You can use this
781
- # # object to check the status of an operation, cancel it, or wait
782
- # # for results. Here is how to block until completion:
776
+ # # The returned object is of type Gapic::Operation. You can use it to
777
+ # # check the status of an operation, cancel it, or wait for results.
778
+ # # Here is how to wait for a response.
783
779
  # result.wait_until_done! timeout: 60
784
780
  # if result.response?
785
781
  # p result.response
786
782
  # else
787
- # puts "Error!"
783
+ # puts "No response received."
788
784
  # end
789
785
  #
790
786
  def create_feature request, options = nil
@@ -889,14 +885,14 @@ module Google
889
885
  # # Call the delete_membership method.
890
886
  # result = client.delete_membership request
891
887
  #
892
- # # The returned object is of type Gapic::Operation. You can use this
893
- # # object to check the status of an operation, cancel it, or wait
894
- # # for results. Here is how to block until completion:
888
+ # # The returned object is of type Gapic::Operation. You can use it to
889
+ # # check the status of an operation, cancel it, or wait for results.
890
+ # # Here is how to wait for a response.
895
891
  # result.wait_until_done! timeout: 60
896
892
  # if result.response?
897
893
  # p result.response
898
894
  # else
899
- # puts "Error!"
895
+ # puts "No response received."
900
896
  # end
901
897
  #
902
898
  def delete_membership request, options = nil
@@ -1001,14 +997,14 @@ module Google
1001
997
  # # Call the delete_feature method.
1002
998
  # result = client.delete_feature request
1003
999
  #
1004
- # # The returned object is of type Gapic::Operation. You can use this
1005
- # # object to check the status of an operation, cancel it, or wait
1006
- # # for results. Here is how to block until completion:
1000
+ # # The returned object is of type Gapic::Operation. You can use it to
1001
+ # # check the status of an operation, cancel it, or wait for results.
1002
+ # # Here is how to wait for a response.
1007
1003
  # result.wait_until_done! timeout: 60
1008
1004
  # if result.response?
1009
1005
  # p result.response
1010
1006
  # else
1011
- # puts "Error!"
1007
+ # puts "No response received."
1012
1008
  # end
1013
1009
  #
1014
1010
  def delete_feature request, options = nil
@@ -1120,14 +1116,14 @@ module Google
1120
1116
  # # Call the update_membership method.
1121
1117
  # result = client.update_membership request
1122
1118
  #
1123
- # # The returned object is of type Gapic::Operation. You can use this
1124
- # # object to check the status of an operation, cancel it, or wait
1125
- # # for results. Here is how to block until completion:
1119
+ # # The returned object is of type Gapic::Operation. You can use it to
1120
+ # # check the status of an operation, cancel it, or wait for results.
1121
+ # # Here is how to wait for a response.
1126
1122
  # result.wait_until_done! timeout: 60
1127
1123
  # if result.response?
1128
1124
  # p result.response
1129
1125
  # else
1130
- # puts "Error!"
1126
+ # puts "No response received."
1131
1127
  # end
1132
1128
  #
1133
1129
  def update_membership request, options = nil
@@ -1239,14 +1235,14 @@ module Google
1239
1235
  # # Call the update_feature method.
1240
1236
  # result = client.update_feature request
1241
1237
  #
1242
- # # The returned object is of type Gapic::Operation. You can use this
1243
- # # object to check the status of an operation, cancel it, or wait
1244
- # # for results. Here is how to block until completion:
1238
+ # # The returned object is of type Gapic::Operation. You can use it to
1239
+ # # check the status of an operation, cancel it, or wait for results.
1240
+ # # Here is how to wait for a response.
1245
1241
  # result.wait_until_done! timeout: 60
1246
1242
  # if result.response?
1247
1243
  # p result.response
1248
1244
  # else
1249
- # puts "Error!"
1245
+ # puts "No response received."
1250
1246
  # end
1251
1247
  #
1252
1248
  def update_feature request, options = nil
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -155,13 +158,11 @@ module Google
155
158
  # # Call the list_operations method.
156
159
  # result = client.list_operations request
157
160
  #
158
- # # The returned object is of type Gapic::PagedEnumerable. You can
159
- # # iterate over all elements by calling #each, and the enumerable
160
- # # will lazily make API calls to fetch subsequent pages. Other
161
- # # methods are also available for managing paging directly.
162
- # 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|
163
164
  # # Each element is of type ::Google::Longrunning::Operation.
164
- # p response
165
+ # p item
165
166
  # end
166
167
  #
167
168
  def list_operations request, options = nil
@@ -250,14 +251,14 @@ module Google
250
251
  # # Call the get_operation method.
251
252
  # result = client.get_operation request
252
253
  #
253
- # # The returned object is of type Gapic::Operation. You can use this
254
- # # object to check the status of an operation, cancel it, or wait
255
- # # for results. Here is how to block until completion:
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.
256
257
  # result.wait_until_done! timeout: 60
257
258
  # if result.response?
258
259
  # p result.response
259
260
  # else
260
- # puts "Error!"
261
+ # puts "No response received."
261
262
  # end
262
263
  #
263
264
  def get_operation request, options = nil
@@ -537,14 +538,14 @@ module Google
537
538
  # # Call the wait_operation method.
538
539
  # result = client.wait_operation request
539
540
  #
540
- # # The returned object is of type Gapic::Operation. You can use this
541
- # # object to check the status of an operation, cancel it, or wait
542
- # # for results. Here is how to block until completion:
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.
543
544
  # result.wait_until_done! timeout: 60
544
545
  # if result.response?
545
546
  # p result.response
546
547
  # else
547
- # puts "Error!"
548
+ # puts "No response received."
548
549
  # end
549
550
  #
550
551
  def wait_operation request, options = nil