google-cloud-gke_backup-v1 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03c366813ec28f08a30fe60d4ddabe6bf4bb81a23c9287ae375f725f858c5095
4
- data.tar.gz: d0603b489b1fbd86ba34cca9d573d78531a9a4970389af94042fac8c09ca83ee
3
+ metadata.gz: aa10e1611224e396830d47d903093fd6fb1ec0e4b9acd5de0722873fbef70c17
4
+ data.tar.gz: 70ec017c2c29da167b0f4f6036a2b47585240e7dad5067d840089ce21de67651
5
5
  SHA512:
6
- metadata.gz: fdb6cdd9a3356306a2fd4911152edf66e821f45be0e8efcb8501fd3e363216425417de8d2bca25dfe1b6a444a23946fecb81b4b01f8ada9f07c968fb42e68e1d
7
- data.tar.gz: f3e028d066fed5c49183b0378994bf7cc694086227b42a3a8d246946dd853367817ae01d1554f0ba24b6b531f6ed85e620b1fd59c073910f71e4b0100d3e2b01
6
+ metadata.gz: b22997c9ca1dfdfc8cd1b34e6938dbddc9fd1773ca4a90f04a00d1de796a9c91ea891f296a8d36c0a134ee9ef67b218f9b4714567a0e15563f1654f91efd28ca
7
+ data.tar.gz: 531ae31669beb5521ac90f66561829e7137887ce850bb94c5a66abdd96eab9cfbe69a386d215a151fc68e9f4693f27ea0489a191b44d13bde476b2799066606b
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 Backup for GKE V1 API
2
2
 
3
- API Client library for the Backup for GKE V1 API
3
+ Backup for GKE is a managed Kubernetes workload backup and restore service for GKE clusters.
4
4
 
5
5
  Backup for GKE lets you protect, manage, and restore your containerized applications and data for stateful workloads running on Google Kubernetes Engine clusters.
6
6
 
@@ -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.
@@ -76,14 +76,14 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
83
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
84
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
85
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
86
- 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.
87
87
 
88
88
  ## Which client should I use?
89
89
 
@@ -295,14 +295,14 @@ module Google
295
295
  # # Call the create_backup_plan method.
296
296
  # result = client.create_backup_plan request
297
297
  #
298
- # # The returned object is of type Gapic::Operation. You can use this
299
- # # object to check the status of an operation, cancel it, or wait
300
- # # for results. Here is how to block until completion:
298
+ # # The returned object is of type Gapic::Operation. You can use it to
299
+ # # check the status of an operation, cancel it, or wait for results.
300
+ # # Here is how to wait for a response.
301
301
  # result.wait_until_done! timeout: 60
302
302
  # if result.response?
303
303
  # p result.response
304
304
  # else
305
- # puts "Error!"
305
+ # puts "No response received."
306
306
  # end
307
307
  #
308
308
  def create_backup_plan request, options = nil
@@ -407,13 +407,11 @@ module Google
407
407
  # # Call the list_backup_plans method.
408
408
  # result = client.list_backup_plans request
409
409
  #
410
- # # The returned object is of type Gapic::PagedEnumerable. You can
411
- # # iterate over all elements by calling #each, and the enumerable
412
- # # will lazily make API calls to fetch subsequent pages. Other
413
- # # methods are also available for managing paging directly.
414
- # result.each do |response|
410
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
411
+ # # over elements, and API calls will be issued to fetch pages as needed.
412
+ # result.each do |item|
415
413
  # # Each element is of type ::Google::Cloud::GkeBackup::V1::BackupPlan.
416
- # p response
414
+ # p item
417
415
  # end
418
416
  #
419
417
  def list_backup_plans request, options = nil
@@ -596,14 +594,14 @@ module Google
596
594
  # # Call the update_backup_plan method.
597
595
  # result = client.update_backup_plan request
598
596
  #
599
- # # The returned object is of type Gapic::Operation. You can use this
600
- # # object to check the status of an operation, cancel it, or wait
601
- # # for results. Here is how to block until completion:
597
+ # # The returned object is of type Gapic::Operation. You can use it to
598
+ # # check the status of an operation, cancel it, or wait for results.
599
+ # # Here is how to wait for a response.
602
600
  # result.wait_until_done! timeout: 60
603
601
  # if result.response?
604
602
  # p result.response
605
603
  # else
606
- # puts "Error!"
604
+ # puts "No response received."
607
605
  # end
608
606
  #
609
607
  def update_backup_plan request, options = nil
@@ -694,14 +692,14 @@ module Google
694
692
  # # Call the delete_backup_plan method.
695
693
  # result = client.delete_backup_plan request
696
694
  #
697
- # # The returned object is of type Gapic::Operation. You can use this
698
- # # object to check the status of an operation, cancel it, or wait
699
- # # for results. Here is how to block until completion:
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.
700
698
  # result.wait_until_done! timeout: 60
701
699
  # if result.response?
702
700
  # p result.response
703
701
  # else
704
- # puts "Error!"
702
+ # puts "No response received."
705
703
  # end
706
704
  #
707
705
  def delete_backup_plan request, options = nil
@@ -799,14 +797,14 @@ module Google
799
797
  # # Call the create_backup method.
800
798
  # result = client.create_backup request
801
799
  #
802
- # # The returned object is of type Gapic::Operation. You can use this
803
- # # object to check the status of an operation, cancel it, or wait
804
- # # for results. Here is how to block until completion:
800
+ # # The returned object is of type Gapic::Operation. You can use it to
801
+ # # check the status of an operation, cancel it, or wait for results.
802
+ # # Here is how to wait for a response.
805
803
  # result.wait_until_done! timeout: 60
806
804
  # if result.response?
807
805
  # p result.response
808
806
  # else
809
- # puts "Error!"
807
+ # puts "No response received."
810
808
  # end
811
809
  #
812
810
  def create_backup request, options = nil
@@ -911,13 +909,11 @@ module Google
911
909
  # # Call the list_backups method.
912
910
  # result = client.list_backups request
913
911
  #
914
- # # The returned object is of type Gapic::PagedEnumerable. You can
915
- # # iterate over all elements by calling #each, and the enumerable
916
- # # will lazily make API calls to fetch subsequent pages. Other
917
- # # methods are also available for managing paging directly.
918
- # result.each do |response|
912
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
913
+ # # over elements, and API calls will be issued to fetch pages as needed.
914
+ # result.each do |item|
919
915
  # # Each element is of type ::Google::Cloud::GkeBackup::V1::Backup.
920
- # p response
916
+ # p item
921
917
  # end
922
918
  #
923
919
  def list_backups request, options = nil
@@ -1099,14 +1095,14 @@ module Google
1099
1095
  # # Call the update_backup method.
1100
1096
  # result = client.update_backup request
1101
1097
  #
1102
- # # The returned object is of type Gapic::Operation. You can use this
1103
- # # object to check the status of an operation, cancel it, or wait
1104
- # # for results. Here is how to block until completion:
1098
+ # # The returned object is of type Gapic::Operation. You can use it to
1099
+ # # check the status of an operation, cancel it, or wait for results.
1100
+ # # Here is how to wait for a response.
1105
1101
  # result.wait_until_done! timeout: 60
1106
1102
  # if result.response?
1107
1103
  # p result.response
1108
1104
  # else
1109
- # puts "Error!"
1105
+ # puts "No response received."
1110
1106
  # end
1111
1107
  #
1112
1108
  def update_backup request, options = nil
@@ -1201,14 +1197,14 @@ module Google
1201
1197
  # # Call the delete_backup method.
1202
1198
  # result = client.delete_backup request
1203
1199
  #
1204
- # # The returned object is of type Gapic::Operation. You can use this
1205
- # # object to check the status of an operation, cancel it, or wait
1206
- # # for results. Here is how to block until completion:
1200
+ # # The returned object is of type Gapic::Operation. You can use it to
1201
+ # # check the status of an operation, cancel it, or wait for results.
1202
+ # # Here is how to wait for a response.
1207
1203
  # result.wait_until_done! timeout: 60
1208
1204
  # if result.response?
1209
1205
  # p result.response
1210
1206
  # else
1211
- # puts "Error!"
1207
+ # puts "No response received."
1212
1208
  # end
1213
1209
  #
1214
1210
  def delete_backup request, options = nil
@@ -1313,13 +1309,11 @@ module Google
1313
1309
  # # Call the list_volume_backups method.
1314
1310
  # result = client.list_volume_backups request
1315
1311
  #
1316
- # # The returned object is of type Gapic::PagedEnumerable. You can
1317
- # # iterate over all elements by calling #each, and the enumerable
1318
- # # will lazily make API calls to fetch subsequent pages. Other
1319
- # # methods are also available for managing paging directly.
1320
- # result.each do |response|
1312
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1313
+ # # over elements, and API calls will be issued to fetch pages as needed.
1314
+ # result.each do |item|
1321
1315
  # # Each element is of type ::Google::Cloud::GkeBackup::V1::VolumeBackup.
1322
- # p response
1316
+ # p item
1323
1317
  # end
1324
1318
  #
1325
1319
  def list_volume_backups request, options = nil
@@ -1503,14 +1497,14 @@ module Google
1503
1497
  # # Call the create_restore_plan method.
1504
1498
  # result = client.create_restore_plan request
1505
1499
  #
1506
- # # The returned object is of type Gapic::Operation. You can use this
1507
- # # object to check the status of an operation, cancel it, or wait
1508
- # # for results. Here is how to block until completion:
1500
+ # # The returned object is of type Gapic::Operation. You can use it to
1501
+ # # check the status of an operation, cancel it, or wait for results.
1502
+ # # Here is how to wait for a response.
1509
1503
  # result.wait_until_done! timeout: 60
1510
1504
  # if result.response?
1511
1505
  # p result.response
1512
1506
  # else
1513
- # puts "Error!"
1507
+ # puts "No response received."
1514
1508
  # end
1515
1509
  #
1516
1510
  def create_restore_plan request, options = nil
@@ -1615,13 +1609,11 @@ module Google
1615
1609
  # # Call the list_restore_plans method.
1616
1610
  # result = client.list_restore_plans request
1617
1611
  #
1618
- # # The returned object is of type Gapic::PagedEnumerable. You can
1619
- # # iterate over all elements by calling #each, and the enumerable
1620
- # # will lazily make API calls to fetch subsequent pages. Other
1621
- # # methods are also available for managing paging directly.
1622
- # result.each do |response|
1612
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1613
+ # # over elements, and API calls will be issued to fetch pages as needed.
1614
+ # result.each do |item|
1623
1615
  # # Each element is of type ::Google::Cloud::GkeBackup::V1::RestorePlan.
1624
- # p response
1616
+ # p item
1625
1617
  # end
1626
1618
  #
1627
1619
  def list_restore_plans request, options = nil
@@ -1803,14 +1795,14 @@ module Google
1803
1795
  # # Call the update_restore_plan method.
1804
1796
  # result = client.update_restore_plan request
1805
1797
  #
1806
- # # The returned object is of type Gapic::Operation. You can use this
1807
- # # object to check the status of an operation, cancel it, or wait
1808
- # # for results. Here is how to block until completion:
1798
+ # # The returned object is of type Gapic::Operation. You can use it to
1799
+ # # check the status of an operation, cancel it, or wait for results.
1800
+ # # Here is how to wait for a response.
1809
1801
  # result.wait_until_done! timeout: 60
1810
1802
  # if result.response?
1811
1803
  # p result.response
1812
1804
  # else
1813
- # puts "Error!"
1805
+ # puts "No response received."
1814
1806
  # end
1815
1807
  #
1816
1808
  def update_restore_plan request, options = nil
@@ -1905,14 +1897,14 @@ module Google
1905
1897
  # # Call the delete_restore_plan method.
1906
1898
  # result = client.delete_restore_plan request
1907
1899
  #
1908
- # # The returned object is of type Gapic::Operation. You can use this
1909
- # # object to check the status of an operation, cancel it, or wait
1910
- # # for results. Here is how to block until completion:
1900
+ # # The returned object is of type Gapic::Operation. You can use it to
1901
+ # # check the status of an operation, cancel it, or wait for results.
1902
+ # # Here is how to wait for a response.
1911
1903
  # result.wait_until_done! timeout: 60
1912
1904
  # if result.response?
1913
1905
  # p result.response
1914
1906
  # else
1915
- # puts "Error!"
1907
+ # puts "No response received."
1916
1908
  # end
1917
1909
  #
1918
1910
  def delete_restore_plan request, options = nil
@@ -2010,14 +2002,14 @@ module Google
2010
2002
  # # Call the create_restore method.
2011
2003
  # result = client.create_restore request
2012
2004
  #
2013
- # # The returned object is of type Gapic::Operation. You can use this
2014
- # # object to check the status of an operation, cancel it, or wait
2015
- # # for results. Here is how to block until completion:
2005
+ # # The returned object is of type Gapic::Operation. You can use it to
2006
+ # # check the status of an operation, cancel it, or wait for results.
2007
+ # # Here is how to wait for a response.
2016
2008
  # result.wait_until_done! timeout: 60
2017
2009
  # if result.response?
2018
2010
  # p result.response
2019
2011
  # else
2020
- # puts "Error!"
2012
+ # puts "No response received."
2021
2013
  # end
2022
2014
  #
2023
2015
  def create_restore request, options = nil
@@ -2122,13 +2114,11 @@ module Google
2122
2114
  # # Call the list_restores method.
2123
2115
  # result = client.list_restores request
2124
2116
  #
2125
- # # The returned object is of type Gapic::PagedEnumerable. You can
2126
- # # iterate over all elements by calling #each, and the enumerable
2127
- # # will lazily make API calls to fetch subsequent pages. Other
2128
- # # methods are also available for managing paging directly.
2129
- # result.each do |response|
2117
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2118
+ # # over elements, and API calls will be issued to fetch pages as needed.
2119
+ # result.each do |item|
2130
2120
  # # Each element is of type ::Google::Cloud::GkeBackup::V1::Restore.
2131
- # p response
2121
+ # p item
2132
2122
  # end
2133
2123
  #
2134
2124
  def list_restores request, options = nil
@@ -2310,14 +2300,14 @@ module Google
2310
2300
  # # Call the update_restore method.
2311
2301
  # result = client.update_restore request
2312
2302
  #
2313
- # # The returned object is of type Gapic::Operation. You can use this
2314
- # # object to check the status of an operation, cancel it, or wait
2315
- # # for results. Here is how to block until completion:
2303
+ # # The returned object is of type Gapic::Operation. You can use it to
2304
+ # # check the status of an operation, cancel it, or wait for results.
2305
+ # # Here is how to wait for a response.
2316
2306
  # result.wait_until_done! timeout: 60
2317
2307
  # if result.response?
2318
2308
  # p result.response
2319
2309
  # else
2320
- # puts "Error!"
2310
+ # puts "No response received."
2321
2311
  # end
2322
2312
  #
2323
2313
  def update_restore request, options = nil
@@ -2412,14 +2402,14 @@ module Google
2412
2402
  # # Call the delete_restore method.
2413
2403
  # result = client.delete_restore request
2414
2404
  #
2415
- # # The returned object is of type Gapic::Operation. You can use this
2416
- # # object to check the status of an operation, cancel it, or wait
2417
- # # for results. Here is how to block until completion:
2405
+ # # The returned object is of type Gapic::Operation. You can use it to
2406
+ # # check the status of an operation, cancel it, or wait for results.
2407
+ # # Here is how to wait for a response.
2418
2408
  # result.wait_until_done! timeout: 60
2419
2409
  # if result.response?
2420
2410
  # p result.response
2421
2411
  # else
2422
- # puts "Error!"
2412
+ # puts "No response received."
2423
2413
  # end
2424
2414
  #
2425
2415
  def delete_restore request, options = nil
@@ -2524,13 +2514,11 @@ module Google
2524
2514
  # # Call the list_volume_restores method.
2525
2515
  # result = client.list_volume_restores request
2526
2516
  #
2527
- # # The returned object is of type Gapic::PagedEnumerable. You can
2528
- # # iterate over all elements by calling #each, and the enumerable
2529
- # # will lazily make API calls to fetch subsequent pages. Other
2530
- # # methods are also available for managing paging directly.
2531
- # result.each do |response|
2517
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2518
+ # # over elements, and API calls will be issued to fetch pages as needed.
2519
+ # result.each do |item|
2532
2520
  # # Each element is of type ::Google::Cloud::GkeBackup::V1::VolumeRestore.
2533
- # p response
2521
+ # p item
2534
2522
  # end
2535
2523
  #
2536
2524
  def list_volume_restores 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