google-cloud-gke_backup-v1 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb +25 -16
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/operations.rb +10 -1
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb +507 -15
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/operations.rb +75 -0
- data/lib/google/cloud/gke_backup/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/gkebackup/v1/gkebackup.rb +15 -15
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2be2b1a312ce59f8927177ecb25dddecde1bd58cc1de8cc96aeee6adf280cbf
|
4
|
+
data.tar.gz: 395d2792ee9c9ed25297b74454e85e8e1431a5871abd3b3075fab521c409aef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a490c63a12342323f865b7df6240b26603bb49eceeba7f33d77fe99e5b74c5fc6e48e0bb01f85896734285f8aa263c7415524ead93ba17c069d81600836f34e7
|
7
|
+
data.tar.gz: 9cb99a2f3ed7ceede75bec301bc56a2ffe8bb7cf08e908f6128b66cf2dfd611f2b2d742be10811a436b17441242fa26a5793f5166dce92dfd1c598fe5d8cfd99
|
@@ -243,7 +243,8 @@ module Google
|
|
243
243
|
credentials: credentials,
|
244
244
|
endpoint: @config.endpoint,
|
245
245
|
channel_args: @config.channel_args,
|
246
|
-
interceptors: @config.interceptors
|
246
|
+
interceptors: @config.interceptors,
|
247
|
+
channel_pool_config: @config.channel_pool
|
247
248
|
)
|
248
249
|
end
|
249
250
|
|
@@ -799,11 +800,11 @@ module Google
|
|
799
800
|
# The client-provided short name for the Backup resource.
|
800
801
|
# This name must:
|
801
802
|
#
|
802
|
-
#
|
803
|
-
#
|
804
|
-
#
|
805
|
-
#
|
806
|
-
#
|
803
|
+
# - be between 1 and 63 characters long (inclusive)
|
804
|
+
# - consist of only lower-case ASCII letters, numbers, and dashes
|
805
|
+
# - start with a lower-case letter
|
806
|
+
# - end with a lower-case letter or number
|
807
|
+
# - be unique within the set of Backups in this BackupPlan
|
807
808
|
#
|
808
809
|
# @yield [response, operation] Access the result along with the RPC operation
|
809
810
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1499,11 +1500,11 @@ module Google
|
|
1499
1500
|
# Required. The client-provided short name for the RestorePlan resource.
|
1500
1501
|
# This name must:
|
1501
1502
|
#
|
1502
|
-
#
|
1503
|
-
#
|
1504
|
-
#
|
1505
|
-
#
|
1506
|
-
#
|
1503
|
+
# - be between 1 and 63 characters long (inclusive)
|
1504
|
+
# - consist of only lower-case ASCII letters, numbers, and dashes
|
1505
|
+
# - start with a lower-case letter
|
1506
|
+
# - end with a lower-case letter or number
|
1507
|
+
# - be unique within the set of RestorePlans in this location
|
1507
1508
|
#
|
1508
1509
|
# @yield [response, operation] Access the result along with the RPC operation
|
1509
1510
|
# @yieldparam response [::Gapic::Operation]
|
@@ -2004,11 +2005,11 @@ module Google
|
|
2004
2005
|
# Required. The client-provided short name for the Restore resource.
|
2005
2006
|
# This name must:
|
2006
2007
|
#
|
2007
|
-
#
|
2008
|
-
#
|
2009
|
-
#
|
2010
|
-
#
|
2011
|
-
#
|
2008
|
+
# - be between 1 and 63 characters long (inclusive)
|
2009
|
+
# - consist of only lower-case ASCII letters, numbers, and dashes
|
2010
|
+
# - start with a lower-case letter
|
2011
|
+
# - end with a lower-case letter or number
|
2012
|
+
# - be unique within the set of Restores in this RestorePlan.
|
2012
2013
|
#
|
2013
2014
|
# @yield [response, operation] Access the result along with the RPC operation
|
2014
2015
|
# @yieldparam response [::Gapic::Operation]
|
@@ -2796,6 +2797,14 @@ module Google
|
|
2796
2797
|
end
|
2797
2798
|
end
|
2798
2799
|
|
2800
|
+
##
|
2801
|
+
# Configuration for the channel pool
|
2802
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2803
|
+
#
|
2804
|
+
def channel_pool
|
2805
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2806
|
+
end
|
2807
|
+
|
2799
2808
|
##
|
2800
2809
|
# Configuration RPC class for the BackupForGKE API.
|
2801
2810
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -302,6 +302,29 @@ module Google
|
|
302
302
|
# @return [::Gapic::Operation]
|
303
303
|
#
|
304
304
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
305
|
+
#
|
306
|
+
# @example Basic example
|
307
|
+
# require "google/cloud/gke_backup/v1"
|
308
|
+
#
|
309
|
+
# # Create a client object. The client can be reused for multiple calls.
|
310
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
311
|
+
#
|
312
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
313
|
+
# request = Google::Cloud::GkeBackup::V1::CreateBackupPlanRequest.new
|
314
|
+
#
|
315
|
+
# # Call the create_backup_plan method.
|
316
|
+
# result = client.create_backup_plan request
|
317
|
+
#
|
318
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
319
|
+
# # check the status of an operation, cancel it, or wait for results.
|
320
|
+
# # Here is how to wait for a response.
|
321
|
+
# result.wait_until_done! timeout: 60
|
322
|
+
# if result.response?
|
323
|
+
# p result.response
|
324
|
+
# else
|
325
|
+
# puts "No response received."
|
326
|
+
# end
|
327
|
+
#
|
305
328
|
def create_backup_plan request, options = nil
|
306
329
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
307
330
|
|
@@ -384,6 +407,26 @@ module Google
|
|
384
407
|
# @return [::Google::Cloud::GkeBackup::V1::ListBackupPlansResponse]
|
385
408
|
#
|
386
409
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
410
|
+
#
|
411
|
+
# @example Basic example
|
412
|
+
# require "google/cloud/gke_backup/v1"
|
413
|
+
#
|
414
|
+
# # Create a client object. The client can be reused for multiple calls.
|
415
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
416
|
+
#
|
417
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
418
|
+
# request = Google::Cloud::GkeBackup::V1::ListBackupPlansRequest.new
|
419
|
+
#
|
420
|
+
# # Call the list_backup_plans method.
|
421
|
+
# result = client.list_backup_plans request
|
422
|
+
#
|
423
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
424
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
425
|
+
# result.each do |item|
|
426
|
+
# # Each element is of type ::Google::Cloud::GkeBackup::V1::BackupPlan.
|
427
|
+
# p item
|
428
|
+
# end
|
429
|
+
#
|
387
430
|
def list_backup_plans request, options = nil
|
388
431
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
389
432
|
|
@@ -447,6 +490,22 @@ module Google
|
|
447
490
|
# @return [::Google::Cloud::GkeBackup::V1::BackupPlan]
|
448
491
|
#
|
449
492
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
493
|
+
#
|
494
|
+
# @example Basic example
|
495
|
+
# require "google/cloud/gke_backup/v1"
|
496
|
+
#
|
497
|
+
# # Create a client object. The client can be reused for multiple calls.
|
498
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
499
|
+
#
|
500
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
501
|
+
# request = Google::Cloud::GkeBackup::V1::GetBackupPlanRequest.new
|
502
|
+
#
|
503
|
+
# # Call the get_backup_plan method.
|
504
|
+
# result = client.get_backup_plan request
|
505
|
+
#
|
506
|
+
# # The returned object is of type Google::Cloud::GkeBackup::V1::BackupPlan.
|
507
|
+
# p result
|
508
|
+
#
|
450
509
|
def get_backup_plan request, options = nil
|
451
510
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
452
511
|
|
@@ -520,6 +579,29 @@ module Google
|
|
520
579
|
# @return [::Gapic::Operation]
|
521
580
|
#
|
522
581
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
582
|
+
#
|
583
|
+
# @example Basic example
|
584
|
+
# require "google/cloud/gke_backup/v1"
|
585
|
+
#
|
586
|
+
# # Create a client object. The client can be reused for multiple calls.
|
587
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
588
|
+
#
|
589
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
590
|
+
# request = Google::Cloud::GkeBackup::V1::UpdateBackupPlanRequest.new
|
591
|
+
#
|
592
|
+
# # Call the update_backup_plan method.
|
593
|
+
# result = client.update_backup_plan request
|
594
|
+
#
|
595
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
596
|
+
# # check the status of an operation, cancel it, or wait for results.
|
597
|
+
# # Here is how to wait for a response.
|
598
|
+
# result.wait_until_done! timeout: 60
|
599
|
+
# if result.response?
|
600
|
+
# p result.response
|
601
|
+
# else
|
602
|
+
# puts "No response received."
|
603
|
+
# end
|
604
|
+
#
|
523
605
|
def update_backup_plan request, options = nil
|
524
606
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
525
607
|
|
@@ -588,6 +670,29 @@ module Google
|
|
588
670
|
# @return [::Gapic::Operation]
|
589
671
|
#
|
590
672
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
673
|
+
#
|
674
|
+
# @example Basic example
|
675
|
+
# require "google/cloud/gke_backup/v1"
|
676
|
+
#
|
677
|
+
# # Create a client object. The client can be reused for multiple calls.
|
678
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
679
|
+
#
|
680
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
681
|
+
# request = Google::Cloud::GkeBackup::V1::DeleteBackupPlanRequest.new
|
682
|
+
#
|
683
|
+
# # Call the delete_backup_plan method.
|
684
|
+
# result = client.delete_backup_plan request
|
685
|
+
#
|
686
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
687
|
+
# # check the status of an operation, cancel it, or wait for results.
|
688
|
+
# # Here is how to wait for a response.
|
689
|
+
# result.wait_until_done! timeout: 60
|
690
|
+
# if result.response?
|
691
|
+
# p result.response
|
692
|
+
# else
|
693
|
+
# puts "No response received."
|
694
|
+
# end
|
695
|
+
#
|
591
696
|
def delete_backup_plan request, options = nil
|
592
697
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
593
698
|
|
@@ -651,11 +756,11 @@ module Google
|
|
651
756
|
# The client-provided short name for the Backup resource.
|
652
757
|
# This name must:
|
653
758
|
#
|
654
|
-
#
|
655
|
-
#
|
656
|
-
#
|
657
|
-
#
|
658
|
-
#
|
759
|
+
# - be between 1 and 63 characters long (inclusive)
|
760
|
+
# - consist of only lower-case ASCII letters, numbers, and dashes
|
761
|
+
# - start with a lower-case letter
|
762
|
+
# - end with a lower-case letter or number
|
763
|
+
# - be unique within the set of Backups in this BackupPlan
|
659
764
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
660
765
|
# @yieldparam result [::Gapic::Operation]
|
661
766
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -663,6 +768,29 @@ module Google
|
|
663
768
|
# @return [::Gapic::Operation]
|
664
769
|
#
|
665
770
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
771
|
+
#
|
772
|
+
# @example Basic example
|
773
|
+
# require "google/cloud/gke_backup/v1"
|
774
|
+
#
|
775
|
+
# # Create a client object. The client can be reused for multiple calls.
|
776
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
777
|
+
#
|
778
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
779
|
+
# request = Google::Cloud::GkeBackup::V1::CreateBackupRequest.new
|
780
|
+
#
|
781
|
+
# # Call the create_backup method.
|
782
|
+
# result = client.create_backup request
|
783
|
+
#
|
784
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
785
|
+
# # check the status of an operation, cancel it, or wait for results.
|
786
|
+
# # Here is how to wait for a response.
|
787
|
+
# result.wait_until_done! timeout: 60
|
788
|
+
# if result.response?
|
789
|
+
# p result.response
|
790
|
+
# else
|
791
|
+
# puts "No response received."
|
792
|
+
# end
|
793
|
+
#
|
666
794
|
def create_backup request, options = nil
|
667
795
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
668
796
|
|
@@ -745,6 +873,26 @@ module Google
|
|
745
873
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GkeBackup::V1::Backup>]
|
746
874
|
#
|
747
875
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
876
|
+
#
|
877
|
+
# @example Basic example
|
878
|
+
# require "google/cloud/gke_backup/v1"
|
879
|
+
#
|
880
|
+
# # Create a client object. The client can be reused for multiple calls.
|
881
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
882
|
+
#
|
883
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
884
|
+
# request = Google::Cloud::GkeBackup::V1::ListBackupsRequest.new
|
885
|
+
#
|
886
|
+
# # Call the list_backups method.
|
887
|
+
# result = client.list_backups request
|
888
|
+
#
|
889
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
890
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
891
|
+
# result.each do |item|
|
892
|
+
# # Each element is of type ::Google::Cloud::GkeBackup::V1::Backup.
|
893
|
+
# p item
|
894
|
+
# end
|
895
|
+
#
|
748
896
|
def list_backups request, options = nil
|
749
897
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
750
898
|
|
@@ -809,6 +957,22 @@ module Google
|
|
809
957
|
# @return [::Google::Cloud::GkeBackup::V1::Backup]
|
810
958
|
#
|
811
959
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
960
|
+
#
|
961
|
+
# @example Basic example
|
962
|
+
# require "google/cloud/gke_backup/v1"
|
963
|
+
#
|
964
|
+
# # Create a client object. The client can be reused for multiple calls.
|
965
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
966
|
+
#
|
967
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
968
|
+
# request = Google::Cloud::GkeBackup::V1::GetBackupRequest.new
|
969
|
+
#
|
970
|
+
# # Call the get_backup method.
|
971
|
+
# result = client.get_backup request
|
972
|
+
#
|
973
|
+
# # The returned object is of type Google::Cloud::GkeBackup::V1::Backup.
|
974
|
+
# p result
|
975
|
+
#
|
812
976
|
def get_backup request, options = nil
|
813
977
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
814
978
|
|
@@ -881,6 +1045,29 @@ module Google
|
|
881
1045
|
# @return [::Gapic::Operation]
|
882
1046
|
#
|
883
1047
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1048
|
+
#
|
1049
|
+
# @example Basic example
|
1050
|
+
# require "google/cloud/gke_backup/v1"
|
1051
|
+
#
|
1052
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1053
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
1054
|
+
#
|
1055
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1056
|
+
# request = Google::Cloud::GkeBackup::V1::UpdateBackupRequest.new
|
1057
|
+
#
|
1058
|
+
# # Call the update_backup method.
|
1059
|
+
# result = client.update_backup request
|
1060
|
+
#
|
1061
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1062
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1063
|
+
# # Here is how to wait for a response.
|
1064
|
+
# result.wait_until_done! timeout: 60
|
1065
|
+
# if result.response?
|
1066
|
+
# p result.response
|
1067
|
+
# else
|
1068
|
+
# puts "No response received."
|
1069
|
+
# end
|
1070
|
+
#
|
884
1071
|
def update_backup request, options = nil
|
885
1072
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
886
1073
|
|
@@ -953,6 +1140,29 @@ module Google
|
|
953
1140
|
# @return [::Gapic::Operation]
|
954
1141
|
#
|
955
1142
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1143
|
+
#
|
1144
|
+
# @example Basic example
|
1145
|
+
# require "google/cloud/gke_backup/v1"
|
1146
|
+
#
|
1147
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1148
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
1149
|
+
#
|
1150
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1151
|
+
# request = Google::Cloud::GkeBackup::V1::DeleteBackupRequest.new
|
1152
|
+
#
|
1153
|
+
# # Call the delete_backup method.
|
1154
|
+
# result = client.delete_backup request
|
1155
|
+
#
|
1156
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1157
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1158
|
+
# # Here is how to wait for a response.
|
1159
|
+
# result.wait_until_done! timeout: 60
|
1160
|
+
# if result.response?
|
1161
|
+
# p result.response
|
1162
|
+
# else
|
1163
|
+
# puts "No response received."
|
1164
|
+
# end
|
1165
|
+
#
|
956
1166
|
def delete_backup request, options = nil
|
957
1167
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
958
1168
|
|
@@ -1035,6 +1245,26 @@ module Google
|
|
1035
1245
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GkeBackup::V1::VolumeBackup>]
|
1036
1246
|
#
|
1037
1247
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1248
|
+
#
|
1249
|
+
# @example Basic example
|
1250
|
+
# require "google/cloud/gke_backup/v1"
|
1251
|
+
#
|
1252
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1253
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
1254
|
+
#
|
1255
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1256
|
+
# request = Google::Cloud::GkeBackup::V1::ListVolumeBackupsRequest.new
|
1257
|
+
#
|
1258
|
+
# # Call the list_volume_backups method.
|
1259
|
+
# result = client.list_volume_backups request
|
1260
|
+
#
|
1261
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1262
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1263
|
+
# result.each do |item|
|
1264
|
+
# # Each element is of type ::Google::Cloud::GkeBackup::V1::VolumeBackup.
|
1265
|
+
# p item
|
1266
|
+
# end
|
1267
|
+
#
|
1038
1268
|
def list_volume_backups request, options = nil
|
1039
1269
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1040
1270
|
|
@@ -1099,6 +1329,22 @@ module Google
|
|
1099
1329
|
# @return [::Google::Cloud::GkeBackup::V1::VolumeBackup]
|
1100
1330
|
#
|
1101
1331
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1332
|
+
#
|
1333
|
+
# @example Basic example
|
1334
|
+
# require "google/cloud/gke_backup/v1"
|
1335
|
+
#
|
1336
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1337
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
1338
|
+
#
|
1339
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1340
|
+
# request = Google::Cloud::GkeBackup::V1::GetVolumeBackupRequest.new
|
1341
|
+
#
|
1342
|
+
# # Call the get_volume_backup method.
|
1343
|
+
# result = client.get_volume_backup request
|
1344
|
+
#
|
1345
|
+
# # The returned object is of type Google::Cloud::GkeBackup::V1::VolumeBackup.
|
1346
|
+
# p result
|
1347
|
+
#
|
1102
1348
|
def get_volume_backup request, options = nil
|
1103
1349
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1104
1350
|
|
@@ -1161,11 +1407,11 @@ module Google
|
|
1161
1407
|
# Required. The client-provided short name for the RestorePlan resource.
|
1162
1408
|
# This name must:
|
1163
1409
|
#
|
1164
|
-
#
|
1165
|
-
#
|
1166
|
-
#
|
1167
|
-
#
|
1168
|
-
#
|
1410
|
+
# - be between 1 and 63 characters long (inclusive)
|
1411
|
+
# - consist of only lower-case ASCII letters, numbers, and dashes
|
1412
|
+
# - start with a lower-case letter
|
1413
|
+
# - end with a lower-case letter or number
|
1414
|
+
# - be unique within the set of RestorePlans in this location
|
1169
1415
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1170
1416
|
# @yieldparam result [::Gapic::Operation]
|
1171
1417
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1173,6 +1419,29 @@ module Google
|
|
1173
1419
|
# @return [::Gapic::Operation]
|
1174
1420
|
#
|
1175
1421
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1422
|
+
#
|
1423
|
+
# @example Basic example
|
1424
|
+
# require "google/cloud/gke_backup/v1"
|
1425
|
+
#
|
1426
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1427
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
1428
|
+
#
|
1429
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1430
|
+
# request = Google::Cloud::GkeBackup::V1::CreateRestorePlanRequest.new
|
1431
|
+
#
|
1432
|
+
# # Call the create_restore_plan method.
|
1433
|
+
# result = client.create_restore_plan request
|
1434
|
+
#
|
1435
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1436
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1437
|
+
# # Here is how to wait for a response.
|
1438
|
+
# result.wait_until_done! timeout: 60
|
1439
|
+
# if result.response?
|
1440
|
+
# p result.response
|
1441
|
+
# else
|
1442
|
+
# puts "No response received."
|
1443
|
+
# end
|
1444
|
+
#
|
1176
1445
|
def create_restore_plan request, options = nil
|
1177
1446
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1178
1447
|
|
@@ -1255,6 +1524,26 @@ module Google
|
|
1255
1524
|
# @return [::Google::Cloud::GkeBackup::V1::ListRestorePlansResponse]
|
1256
1525
|
#
|
1257
1526
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1527
|
+
#
|
1528
|
+
# @example Basic example
|
1529
|
+
# require "google/cloud/gke_backup/v1"
|
1530
|
+
#
|
1531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1532
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
1533
|
+
#
|
1534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1535
|
+
# request = Google::Cloud::GkeBackup::V1::ListRestorePlansRequest.new
|
1536
|
+
#
|
1537
|
+
# # Call the list_restore_plans method.
|
1538
|
+
# result = client.list_restore_plans request
|
1539
|
+
#
|
1540
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1541
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1542
|
+
# result.each do |item|
|
1543
|
+
# # Each element is of type ::Google::Cloud::GkeBackup::V1::RestorePlan.
|
1544
|
+
# p item
|
1545
|
+
# end
|
1546
|
+
#
|
1258
1547
|
def list_restore_plans request, options = nil
|
1259
1548
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1260
1549
|
|
@@ -1318,6 +1607,22 @@ module Google
|
|
1318
1607
|
# @return [::Google::Cloud::GkeBackup::V1::RestorePlan]
|
1319
1608
|
#
|
1320
1609
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1610
|
+
#
|
1611
|
+
# @example Basic example
|
1612
|
+
# require "google/cloud/gke_backup/v1"
|
1613
|
+
#
|
1614
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1615
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
1616
|
+
#
|
1617
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1618
|
+
# request = Google::Cloud::GkeBackup::V1::GetRestorePlanRequest.new
|
1619
|
+
#
|
1620
|
+
# # Call the get_restore_plan method.
|
1621
|
+
# result = client.get_restore_plan request
|
1622
|
+
#
|
1623
|
+
# # The returned object is of type Google::Cloud::GkeBackup::V1::RestorePlan.
|
1624
|
+
# p result
|
1625
|
+
#
|
1321
1626
|
def get_restore_plan request, options = nil
|
1322
1627
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1323
1628
|
|
@@ -1390,6 +1695,29 @@ module Google
|
|
1390
1695
|
# @return [::Gapic::Operation]
|
1391
1696
|
#
|
1392
1697
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1698
|
+
#
|
1699
|
+
# @example Basic example
|
1700
|
+
# require "google/cloud/gke_backup/v1"
|
1701
|
+
#
|
1702
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1703
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
1704
|
+
#
|
1705
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1706
|
+
# request = Google::Cloud::GkeBackup::V1::UpdateRestorePlanRequest.new
|
1707
|
+
#
|
1708
|
+
# # Call the update_restore_plan method.
|
1709
|
+
# result = client.update_restore_plan request
|
1710
|
+
#
|
1711
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1712
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1713
|
+
# # Here is how to wait for a response.
|
1714
|
+
# result.wait_until_done! timeout: 60
|
1715
|
+
# if result.response?
|
1716
|
+
# p result.response
|
1717
|
+
# else
|
1718
|
+
# puts "No response received."
|
1719
|
+
# end
|
1720
|
+
#
|
1393
1721
|
def update_restore_plan request, options = nil
|
1394
1722
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1395
1723
|
|
@@ -1462,6 +1790,29 @@ module Google
|
|
1462
1790
|
# @return [::Gapic::Operation]
|
1463
1791
|
#
|
1464
1792
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1793
|
+
#
|
1794
|
+
# @example Basic example
|
1795
|
+
# require "google/cloud/gke_backup/v1"
|
1796
|
+
#
|
1797
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1798
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
1799
|
+
#
|
1800
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1801
|
+
# request = Google::Cloud::GkeBackup::V1::DeleteRestorePlanRequest.new
|
1802
|
+
#
|
1803
|
+
# # Call the delete_restore_plan method.
|
1804
|
+
# result = client.delete_restore_plan request
|
1805
|
+
#
|
1806
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1807
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1808
|
+
# # Here is how to wait for a response.
|
1809
|
+
# result.wait_until_done! timeout: 60
|
1810
|
+
# if result.response?
|
1811
|
+
# p result.response
|
1812
|
+
# else
|
1813
|
+
# puts "No response received."
|
1814
|
+
# end
|
1815
|
+
#
|
1465
1816
|
def delete_restore_plan request, options = nil
|
1466
1817
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1467
1818
|
|
@@ -1525,11 +1876,11 @@ module Google
|
|
1525
1876
|
# Required. The client-provided short name for the Restore resource.
|
1526
1877
|
# This name must:
|
1527
1878
|
#
|
1528
|
-
#
|
1529
|
-
#
|
1530
|
-
#
|
1531
|
-
#
|
1532
|
-
#
|
1879
|
+
# - be between 1 and 63 characters long (inclusive)
|
1880
|
+
# - consist of only lower-case ASCII letters, numbers, and dashes
|
1881
|
+
# - start with a lower-case letter
|
1882
|
+
# - end with a lower-case letter or number
|
1883
|
+
# - be unique within the set of Restores in this RestorePlan.
|
1533
1884
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1534
1885
|
# @yieldparam result [::Gapic::Operation]
|
1535
1886
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1537,6 +1888,29 @@ module Google
|
|
1537
1888
|
# @return [::Gapic::Operation]
|
1538
1889
|
#
|
1539
1890
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1891
|
+
#
|
1892
|
+
# @example Basic example
|
1893
|
+
# require "google/cloud/gke_backup/v1"
|
1894
|
+
#
|
1895
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1896
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
1897
|
+
#
|
1898
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1899
|
+
# request = Google::Cloud::GkeBackup::V1::CreateRestoreRequest.new
|
1900
|
+
#
|
1901
|
+
# # Call the create_restore method.
|
1902
|
+
# result = client.create_restore request
|
1903
|
+
#
|
1904
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1905
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1906
|
+
# # Here is how to wait for a response.
|
1907
|
+
# result.wait_until_done! timeout: 60
|
1908
|
+
# if result.response?
|
1909
|
+
# p result.response
|
1910
|
+
# else
|
1911
|
+
# puts "No response received."
|
1912
|
+
# end
|
1913
|
+
#
|
1540
1914
|
def create_restore request, options = nil
|
1541
1915
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1542
1916
|
|
@@ -1619,6 +1993,26 @@ module Google
|
|
1619
1993
|
# @return [::Google::Cloud::GkeBackup::V1::ListRestoresResponse]
|
1620
1994
|
#
|
1621
1995
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1996
|
+
#
|
1997
|
+
# @example Basic example
|
1998
|
+
# require "google/cloud/gke_backup/v1"
|
1999
|
+
#
|
2000
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2001
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
2002
|
+
#
|
2003
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2004
|
+
# request = Google::Cloud::GkeBackup::V1::ListRestoresRequest.new
|
2005
|
+
#
|
2006
|
+
# # Call the list_restores method.
|
2007
|
+
# result = client.list_restores request
|
2008
|
+
#
|
2009
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2010
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2011
|
+
# result.each do |item|
|
2012
|
+
# # Each element is of type ::Google::Cloud::GkeBackup::V1::Restore.
|
2013
|
+
# p item
|
2014
|
+
# end
|
2015
|
+
#
|
1622
2016
|
def list_restores request, options = nil
|
1623
2017
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1624
2018
|
|
@@ -1682,6 +2076,22 @@ module Google
|
|
1682
2076
|
# @return [::Google::Cloud::GkeBackup::V1::Restore]
|
1683
2077
|
#
|
1684
2078
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2079
|
+
#
|
2080
|
+
# @example Basic example
|
2081
|
+
# require "google/cloud/gke_backup/v1"
|
2082
|
+
#
|
2083
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2084
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
2085
|
+
#
|
2086
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2087
|
+
# request = Google::Cloud::GkeBackup::V1::GetRestoreRequest.new
|
2088
|
+
#
|
2089
|
+
# # Call the get_restore method.
|
2090
|
+
# result = client.get_restore request
|
2091
|
+
#
|
2092
|
+
# # The returned object is of type Google::Cloud::GkeBackup::V1::Restore.
|
2093
|
+
# p result
|
2094
|
+
#
|
1685
2095
|
def get_restore request, options = nil
|
1686
2096
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1687
2097
|
|
@@ -1754,6 +2164,29 @@ module Google
|
|
1754
2164
|
# @return [::Gapic::Operation]
|
1755
2165
|
#
|
1756
2166
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2167
|
+
#
|
2168
|
+
# @example Basic example
|
2169
|
+
# require "google/cloud/gke_backup/v1"
|
2170
|
+
#
|
2171
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2172
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
2173
|
+
#
|
2174
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2175
|
+
# request = Google::Cloud::GkeBackup::V1::UpdateRestoreRequest.new
|
2176
|
+
#
|
2177
|
+
# # Call the update_restore method.
|
2178
|
+
# result = client.update_restore request
|
2179
|
+
#
|
2180
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2181
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2182
|
+
# # Here is how to wait for a response.
|
2183
|
+
# result.wait_until_done! timeout: 60
|
2184
|
+
# if result.response?
|
2185
|
+
# p result.response
|
2186
|
+
# else
|
2187
|
+
# puts "No response received."
|
2188
|
+
# end
|
2189
|
+
#
|
1757
2190
|
def update_restore request, options = nil
|
1758
2191
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1759
2192
|
|
@@ -1826,6 +2259,29 @@ module Google
|
|
1826
2259
|
# @return [::Gapic::Operation]
|
1827
2260
|
#
|
1828
2261
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2262
|
+
#
|
2263
|
+
# @example Basic example
|
2264
|
+
# require "google/cloud/gke_backup/v1"
|
2265
|
+
#
|
2266
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2267
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
2268
|
+
#
|
2269
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2270
|
+
# request = Google::Cloud::GkeBackup::V1::DeleteRestoreRequest.new
|
2271
|
+
#
|
2272
|
+
# # Call the delete_restore method.
|
2273
|
+
# result = client.delete_restore request
|
2274
|
+
#
|
2275
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2276
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2277
|
+
# # Here is how to wait for a response.
|
2278
|
+
# result.wait_until_done! timeout: 60
|
2279
|
+
# if result.response?
|
2280
|
+
# p result.response
|
2281
|
+
# else
|
2282
|
+
# puts "No response received."
|
2283
|
+
# end
|
2284
|
+
#
|
1829
2285
|
def delete_restore request, options = nil
|
1830
2286
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1831
2287
|
|
@@ -1908,6 +2364,26 @@ module Google
|
|
1908
2364
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GkeBackup::V1::VolumeRestore>]
|
1909
2365
|
#
|
1910
2366
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2367
|
+
#
|
2368
|
+
# @example Basic example
|
2369
|
+
# require "google/cloud/gke_backup/v1"
|
2370
|
+
#
|
2371
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2372
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
2373
|
+
#
|
2374
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2375
|
+
# request = Google::Cloud::GkeBackup::V1::ListVolumeRestoresRequest.new
|
2376
|
+
#
|
2377
|
+
# # Call the list_volume_restores method.
|
2378
|
+
# result = client.list_volume_restores request
|
2379
|
+
#
|
2380
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2381
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2382
|
+
# result.each do |item|
|
2383
|
+
# # Each element is of type ::Google::Cloud::GkeBackup::V1::VolumeRestore.
|
2384
|
+
# p item
|
2385
|
+
# end
|
2386
|
+
#
|
1911
2387
|
def list_volume_restores request, options = nil
|
1912
2388
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1913
2389
|
|
@@ -1972,6 +2448,22 @@ module Google
|
|
1972
2448
|
# @return [::Google::Cloud::GkeBackup::V1::VolumeRestore]
|
1973
2449
|
#
|
1974
2450
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2451
|
+
#
|
2452
|
+
# @example Basic example
|
2453
|
+
# require "google/cloud/gke_backup/v1"
|
2454
|
+
#
|
2455
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2456
|
+
# client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
|
2457
|
+
#
|
2458
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2459
|
+
# request = Google::Cloud::GkeBackup::V1::GetVolumeRestoreRequest.new
|
2460
|
+
#
|
2461
|
+
# # Call the get_volume_restore method.
|
2462
|
+
# result = client.get_volume_restore request
|
2463
|
+
#
|
2464
|
+
# # The returned object is of type Google::Cloud::GkeBackup::V1::VolumeRestore.
|
2465
|
+
# p result
|
2466
|
+
#
|
1975
2467
|
def get_volume_restore request, options = nil
|
1976
2468
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1977
2469
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -185,11 +185,11 @@ module Google
|
|
185
185
|
# The client-provided short name for the Backup resource.
|
186
186
|
# This name must:
|
187
187
|
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
#
|
191
|
-
#
|
192
|
-
#
|
188
|
+
# - be between 1 and 63 characters long (inclusive)
|
189
|
+
# - consist of only lower-case ASCII letters, numbers, and dashes
|
190
|
+
# - start with a lower-case letter
|
191
|
+
# - end with a lower-case letter or number
|
192
|
+
# - be unique within the set of Backups in this BackupPlan
|
193
193
|
class CreateBackupRequest
|
194
194
|
include ::Google::Protobuf::MessageExts
|
195
195
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -363,11 +363,11 @@ module Google
|
|
363
363
|
# Required. The client-provided short name for the RestorePlan resource.
|
364
364
|
# This name must:
|
365
365
|
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
366
|
+
# - be between 1 and 63 characters long (inclusive)
|
367
|
+
# - consist of only lower-case ASCII letters, numbers, and dashes
|
368
|
+
# - start with a lower-case letter
|
369
|
+
# - end with a lower-case letter or number
|
370
|
+
# - be unique within the set of RestorePlans in this location
|
371
371
|
class CreateRestorePlanRequest
|
372
372
|
include ::Google::Protobuf::MessageExts
|
373
373
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -487,11 +487,11 @@ module Google
|
|
487
487
|
# Required. The client-provided short name for the Restore resource.
|
488
488
|
# This name must:
|
489
489
|
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
490
|
+
# - be between 1 and 63 characters long (inclusive)
|
491
|
+
# - consist of only lower-case ASCII letters, numbers, and dashes
|
492
|
+
# - start with a lower-case letter
|
493
|
+
# - end with a lower-case letter or number
|
494
|
+
# - be unique within the set of Restores in this RestorePlan.
|
495
495
|
class CreateRestoreRequest
|
496
496
|
include ::Google::Protobuf::MessageExts
|
497
497
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-gke_backup-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
- !ruby/object:Gem::Version
|
272
272
|
version: '0'
|
273
273
|
requirements: []
|
274
|
-
rubygems_version: 3.4.
|
274
|
+
rubygems_version: 3.4.19
|
275
275
|
signing_key:
|
276
276
|
specification_version: 4
|
277
277
|
summary: Backup for GKE is a managed Kubernetes workload backup and restore service
|