google-cloud-gke_backup-v1 0.2.0 → 0.3.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 +2 -2
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb +72 -84
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/operations.rb +12 -14
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb +2285 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/operations.rb +793 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/service_stub.rb +1472 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest.rb +54 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke.rb +7 -1
- data/lib/google/cloud/gke_backup/v1/rest.rb +37 -0
- data/lib/google/cloud/gke_backup/v1/version.rb +1 -1
- data/lib/google/cloud/gke_backup/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +16 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa10e1611224e396830d47d903093fd6fb1ec0e4b9acd5de0722873fbef70c17
|
4
|
+
data.tar.gz: 70ec017c2c29da167b0f4f6036a2b47585240e7dad5067d840089ce21de67651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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/
|
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.
|
@@ -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
|
299
|
-
# #
|
300
|
-
# #
|
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 "
|
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
|
-
# #
|
412
|
-
#
|
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
|
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
|
600
|
-
# #
|
601
|
-
# #
|
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 "
|
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
|
698
|
-
# #
|
699
|
-
# #
|
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 "
|
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
|
803
|
-
# #
|
804
|
-
# #
|
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 "
|
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
|
-
# #
|
916
|
-
#
|
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
|
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
|
1103
|
-
# #
|
1104
|
-
# #
|
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 "
|
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
|
1205
|
-
# #
|
1206
|
-
# #
|
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 "
|
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
|
-
# #
|
1318
|
-
#
|
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
|
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
|
1507
|
-
# #
|
1508
|
-
# #
|
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 "
|
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
|
-
# #
|
1620
|
-
#
|
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
|
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
|
1807
|
-
# #
|
1808
|
-
# #
|
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 "
|
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
|
1909
|
-
# #
|
1910
|
-
# #
|
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 "
|
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
|
2014
|
-
# #
|
2015
|
-
# #
|
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 "
|
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
|
-
# #
|
2127
|
-
#
|
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
|
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
|
2314
|
-
# #
|
2315
|
-
# #
|
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 "
|
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
|
2416
|
-
# #
|
2417
|
-
# #
|
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 "
|
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
|
-
# #
|
2529
|
-
#
|
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
|
2521
|
+
# p item
|
2534
2522
|
# end
|
2535
2523
|
#
|
2536
2524
|
def list_volume_restores request, options = nil
|
@@ -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
|