google-cloud-gke_backup-v1 0.8.0 → 0.10.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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb +197 -70
  3. data/lib/google/cloud/gke_backup/v1/backup_for_gke/operations.rb +13 -5
  4. data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb +190 -70
  5. data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/operations.rb +13 -6
  6. data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/service_stub.rb +59 -0
  7. data/lib/google/cloud/gke_backup/v1/version.rb +1 -1
  8. data/lib/google/cloud/gkebackup/v1/backup_pb.rb +1 -1
  9. data/lib/google/cloud/gkebackup/v1/backup_plan_pb.rb +11 -1
  10. data/lib/google/cloud/gkebackup/v1/common_pb.rb +4 -1
  11. data/lib/google/cloud/gkebackup/v1/gkebackup_pb.rb +3 -1
  12. data/lib/google/cloud/gkebackup/v1/gkebackup_services_pb.rb +2 -0
  13. data/lib/google/cloud/gkebackup/v1/restore_pb.rb +7 -1
  14. data/lib/google/cloud/gkebackup/v1/restore_plan_pb.rb +1 -1
  15. data/proto_docs/google/api/client.rb +4 -0
  16. data/proto_docs/google/cloud/gkebackup/v1/backup.rb +27 -18
  17. data/proto_docs/google/cloud/gkebackup/v1/backup_plan.rb +139 -34
  18. data/proto_docs/google/cloud/gkebackup/v1/common.rb +20 -5
  19. data/proto_docs/google/cloud/gkebackup/v1/gkebackup.rb +65 -46
  20. data/proto_docs/google/cloud/gkebackup/v1/restore.rb +233 -61
  21. data/proto_docs/google/cloud/gkebackup/v1/restore_plan.rb +2 -3
  22. data/proto_docs/google/cloud/gkebackup/v1/volume.rb +0 -2
  23. data/proto_docs/google/type/date.rb +53 -0
  24. data/proto_docs/google/type/dayofweek.rb +49 -0
  25. data/proto_docs/google/type/timeofday.rb +45 -0
  26. metadata +5 -2
@@ -35,6 +35,9 @@ module Google
35
35
  # manage backup and restore operations for their GKE clusters.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "gkebackup.$UNIVERSE_DOMAIN$"
40
43
 
@@ -156,6 +159,11 @@ module Google
156
159
  initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
157
160
  }
158
161
 
162
+ default_config.rpcs.get_backup_index_download_url.timeout = 60.0
163
+ default_config.rpcs.get_backup_index_download_url.retry_policy = {
164
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
165
+ }
166
+
159
167
  default_config
160
168
  end
161
169
  yield @configure if block_given?
@@ -357,12 +365,13 @@ module Google
357
365
  # Customize the options with defaults
358
366
  call_metadata = @config.rpcs.create_backup_plan.metadata.to_h
359
367
 
360
- # Set x-goog-api-client and x-goog-user-project headers
368
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
361
369
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
362
370
  lib_name: @config.lib_name, lib_version: @config.lib_version,
363
371
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
364
372
  transports_version_send: [:rest]
365
373
 
374
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
366
375
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
376
 
368
377
  options.apply_defaults timeout: @config.rpcs.create_backup_plan.timeout,
@@ -404,23 +413,23 @@ module Google
404
413
  # Required. The location that contains the BackupPlans to list.
405
414
  # Format: `projects/*/locations/*`
406
415
  # @param page_size [::Integer]
407
- # The target number of results to return in a single response.
416
+ # Optional. The target number of results to return in a single response.
408
417
  # If not specified, a default value will be chosen by the service.
409
- # Note that the response may inclue a partial list and a caller should
418
+ # Note that the response may include a partial list and a caller should
410
419
  # only rely on the response's
411
420
  # {::Google::Cloud::GkeBackup::V1::ListBackupPlansResponse#next_page_token next_page_token}
412
421
  # to determine if there are more instances left to be queried.
413
422
  # @param page_token [::String]
414
- # The value of
423
+ # Optional. The value of
415
424
  # {::Google::Cloud::GkeBackup::V1::ListBackupPlansResponse#next_page_token next_page_token}
416
425
  # received from a previous `ListBackupPlans` call.
417
426
  # Provide this to retrieve the subsequent page in a multi-page list of
418
427
  # results. When paginating, all other parameters provided to
419
428
  # `ListBackupPlans` must match the call that provided the page token.
420
429
  # @param filter [::String]
421
- # Field match expression used to filter the results.
430
+ # Optional. Field match expression used to filter the results.
422
431
  # @param order_by [::String]
423
- # Field by which to sort the results.
432
+ # Optional. Field by which to sort the results.
424
433
  # @yield [result, operation] Access the result along with the TransportOperation object
425
434
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::ListBackupPlansResponse]
426
435
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -459,12 +468,13 @@ module Google
459
468
  # Customize the options with defaults
460
469
  call_metadata = @config.rpcs.list_backup_plans.metadata.to_h
461
470
 
462
- # Set x-goog-api-client and x-goog-user-project headers
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
463
472
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
464
473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
465
474
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
466
475
  transports_version_send: [:rest]
467
476
 
477
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
468
478
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
469
479
 
470
480
  options.apply_defaults timeout: @config.rpcs.list_backup_plans.timeout,
@@ -538,12 +548,13 @@ module Google
538
548
  # Customize the options with defaults
539
549
  call_metadata = @config.rpcs.get_backup_plan.metadata.to_h
540
550
 
541
- # Set x-goog-api-client and x-goog-user-project headers
551
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
542
552
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
543
553
  lib_name: @config.lib_name, lib_version: @config.lib_version,
544
554
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
545
555
  transports_version_send: [:rest]
546
556
 
557
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
547
558
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
548
559
 
549
560
  options.apply_defaults timeout: @config.rpcs.get_backup_plan.timeout,
@@ -584,7 +595,7 @@ module Google
584
595
  # Required. A new version of the BackupPlan resource that contains updated
585
596
  # fields. This may be sparsely populated if an `update_mask` is provided.
586
597
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
587
- # This is used to specify the fields to be overwritten in the
598
+ # Optional. This is used to specify the fields to be overwritten in the
588
599
  # BackupPlan targeted for update. The values for each of these
589
600
  # updated fields will be taken from the `backup_plan` provided
590
601
  # with this request. Field names are relative to the root of the resource
@@ -634,12 +645,13 @@ module Google
634
645
  # Customize the options with defaults
635
646
  call_metadata = @config.rpcs.update_backup_plan.metadata.to_h
636
647
 
637
- # Set x-goog-api-client and x-goog-user-project headers
648
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
638
649
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
639
650
  lib_name: @config.lib_name, lib_version: @config.lib_version,
640
651
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
641
652
  transports_version_send: [:rest]
642
653
 
654
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
643
655
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
644
656
 
645
657
  options.apply_defaults timeout: @config.rpcs.update_backup_plan.timeout,
@@ -681,7 +693,7 @@ module Google
681
693
  # Required. Fully qualified BackupPlan name.
682
694
  # Format: `projects/*/locations/*/backupPlans/*`
683
695
  # @param etag [::String]
684
- # If provided, this value must match the current value of the
696
+ # Optional. If provided, this value must match the current value of the
685
697
  # target BackupPlan's {::Google::Cloud::GkeBackup::V1::BackupPlan#etag etag} field
686
698
  # or the request is rejected.
687
699
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -725,12 +737,13 @@ module Google
725
737
  # Customize the options with defaults
726
738
  call_metadata = @config.rpcs.delete_backup_plan.metadata.to_h
727
739
 
728
- # Set x-goog-api-client and x-goog-user-project headers
740
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
729
741
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
730
742
  lib_name: @config.lib_name, lib_version: @config.lib_version,
731
743
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
732
744
  transports_version_send: [:rest]
733
745
 
746
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
734
747
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
735
748
 
736
749
  options.apply_defaults timeout: @config.rpcs.delete_backup_plan.timeout,
@@ -772,9 +785,9 @@ module Google
772
785
  # Required. The BackupPlan within which to create the Backup.
773
786
  # Format: `projects/*/locations/*/backupPlans/*`
774
787
  # @param backup [::Google::Cloud::GkeBackup::V1::Backup, ::Hash]
775
- # The Backup resource to create.
788
+ # Optional. The Backup resource to create.
776
789
  # @param backup_id [::String]
777
- # The client-provided short name for the Backup resource.
790
+ # Optional. The client-provided short name for the Backup resource.
778
791
  # This name must:
779
792
  #
780
793
  # - be between 1 and 63 characters long (inclusive)
@@ -823,12 +836,13 @@ module Google
823
836
  # Customize the options with defaults
824
837
  call_metadata = @config.rpcs.create_backup.metadata.to_h
825
838
 
826
- # Set x-goog-api-client and x-goog-user-project headers
839
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
827
840
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
828
841
  lib_name: @config.lib_name, lib_version: @config.lib_version,
829
842
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
830
843
  transports_version_send: [:rest]
831
844
 
845
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
832
846
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
833
847
 
834
848
  options.apply_defaults timeout: @config.rpcs.create_backup.timeout,
@@ -870,23 +884,23 @@ module Google
870
884
  # Required. The BackupPlan that contains the Backups to list.
871
885
  # Format: `projects/*/locations/*/backupPlans/*`
872
886
  # @param page_size [::Integer]
873
- # The target number of results to return in a single response.
887
+ # Optional. The target number of results to return in a single response.
874
888
  # If not specified, a default value will be chosen by the service.
875
- # Note that the response may inclue a partial list and a caller should
889
+ # Note that the response may include a partial list and a caller should
876
890
  # only rely on the response's
877
891
  # {::Google::Cloud::GkeBackup::V1::ListBackupsResponse#next_page_token next_page_token}
878
892
  # to determine if there are more instances left to be queried.
879
893
  # @param page_token [::String]
880
- # The value of
894
+ # Optional. The value of
881
895
  # {::Google::Cloud::GkeBackup::V1::ListBackupsResponse#next_page_token next_page_token}
882
896
  # received from a previous `ListBackups` call.
883
897
  # Provide this to retrieve the subsequent page in a multi-page list of
884
898
  # results. When paginating, all other parameters provided to
885
899
  # `ListBackups` must match the call that provided the page token.
886
900
  # @param filter [::String]
887
- # Field match expression used to filter the results.
901
+ # Optional. Field match expression used to filter the results.
888
902
  # @param order_by [::String]
889
- # Field by which to sort the results.
903
+ # Optional. Field by which to sort the results.
890
904
  # @yield [result, operation] Access the result along with the TransportOperation object
891
905
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GkeBackup::V1::Backup>]
892
906
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -925,12 +939,13 @@ module Google
925
939
  # Customize the options with defaults
926
940
  call_metadata = @config.rpcs.list_backups.metadata.to_h
927
941
 
928
- # Set x-goog-api-client and x-goog-user-project headers
942
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
929
943
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
930
944
  lib_name: @config.lib_name, lib_version: @config.lib_version,
931
945
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
932
946
  transports_version_send: [:rest]
933
947
 
948
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
934
949
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
935
950
 
936
951
  options.apply_defaults timeout: @config.rpcs.list_backups.timeout,
@@ -1005,12 +1020,13 @@ module Google
1005
1020
  # Customize the options with defaults
1006
1021
  call_metadata = @config.rpcs.get_backup.metadata.to_h
1007
1022
 
1008
- # Set x-goog-api-client and x-goog-user-project headers
1023
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1009
1024
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1010
1025
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1011
1026
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1012
1027
  transports_version_send: [:rest]
1013
1028
 
1029
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1014
1030
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1015
1031
 
1016
1032
  options.apply_defaults timeout: @config.rpcs.get_backup.timeout,
@@ -1051,7 +1067,7 @@ module Google
1051
1067
  # Required. A new version of the Backup resource that contains updated
1052
1068
  # fields. This may be sparsely populated if an `update_mask` is provided.
1053
1069
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1054
- # This is used to specify the fields to be overwritten in the
1070
+ # Optional. This is used to specify the fields to be overwritten in the
1055
1071
  # Backup targeted for update. The values for each of these
1056
1072
  # updated fields will be taken from the `backup_plan` provided
1057
1073
  # with this request. Field names are relative to the root of the resource.
@@ -1100,12 +1116,13 @@ module Google
1100
1116
  # Customize the options with defaults
1101
1117
  call_metadata = @config.rpcs.update_backup.metadata.to_h
1102
1118
 
1103
- # Set x-goog-api-client and x-goog-user-project headers
1119
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1104
1120
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1105
1121
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1106
1122
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1107
1123
  transports_version_send: [:rest]
1108
1124
 
1125
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1109
1126
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1110
1127
 
1111
1128
  options.apply_defaults timeout: @config.rpcs.update_backup.timeout,
@@ -1147,12 +1164,12 @@ module Google
1147
1164
  # Required. Name of the Backup resource.
1148
1165
  # Format: `projects/*/locations/*/backupPlans/*/backups/*`
1149
1166
  # @param etag [::String]
1150
- # If provided, this value must match the current value of the
1167
+ # Optional. If provided, this value must match the current value of the
1151
1168
  # target Backup's {::Google::Cloud::GkeBackup::V1::Backup#etag etag} field or the
1152
1169
  # request is rejected.
1153
1170
  # @param force [::Boolean]
1154
- # If set to true, any VolumeBackups below this Backup will also be deleted.
1155
- # Otherwise, the request will only succeed if the Backup has no
1171
+ # Optional. If set to true, any VolumeBackups below this Backup will also be
1172
+ # deleted. Otherwise, the request will only succeed if the Backup has no
1156
1173
  # VolumeBackups.
1157
1174
  # @yield [result, operation] Access the result along with the TransportOperation object
1158
1175
  # @yieldparam result [::Gapic::Operation]
@@ -1195,12 +1212,13 @@ module Google
1195
1212
  # Customize the options with defaults
1196
1213
  call_metadata = @config.rpcs.delete_backup.metadata.to_h
1197
1214
 
1198
- # Set x-goog-api-client and x-goog-user-project headers
1215
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1199
1216
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1200
1217
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1201
1218
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1202
1219
  transports_version_send: [:rest]
1203
1220
 
1221
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1204
1222
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1205
1223
 
1206
1224
  options.apply_defaults timeout: @config.rpcs.delete_backup.timeout,
@@ -1242,23 +1260,23 @@ module Google
1242
1260
  # Required. The Backup that contains the VolumeBackups to list.
1243
1261
  # Format: `projects/*/locations/*/backupPlans/*/backups/*`
1244
1262
  # @param page_size [::Integer]
1245
- # The target number of results to return in a single response.
1263
+ # Optional. The target number of results to return in a single response.
1246
1264
  # If not specified, a default value will be chosen by the service.
1247
- # Note that the response may inclue a partial list and a caller should
1265
+ # Note that the response may include a partial list and a caller should
1248
1266
  # only rely on the response's
1249
1267
  # {::Google::Cloud::GkeBackup::V1::ListVolumeBackupsResponse#next_page_token next_page_token}
1250
1268
  # to determine if there are more instances left to be queried.
1251
1269
  # @param page_token [::String]
1252
- # The value of
1270
+ # Optional. The value of
1253
1271
  # {::Google::Cloud::GkeBackup::V1::ListVolumeBackupsResponse#next_page_token next_page_token}
1254
1272
  # received from a previous `ListVolumeBackups` call.
1255
1273
  # Provide this to retrieve the subsequent page in a multi-page list of
1256
1274
  # results. When paginating, all other parameters provided to
1257
1275
  # `ListVolumeBackups` must match the call that provided the page token.
1258
1276
  # @param filter [::String]
1259
- # Field match expression used to filter the results.
1277
+ # Optional. Field match expression used to filter the results.
1260
1278
  # @param order_by [::String]
1261
- # Field by which to sort the results.
1279
+ # Optional. Field by which to sort the results.
1262
1280
  # @yield [result, operation] Access the result along with the TransportOperation object
1263
1281
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GkeBackup::V1::VolumeBackup>]
1264
1282
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1297,12 +1315,13 @@ module Google
1297
1315
  # Customize the options with defaults
1298
1316
  call_metadata = @config.rpcs.list_volume_backups.metadata.to_h
1299
1317
 
1300
- # Set x-goog-api-client and x-goog-user-project headers
1318
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1301
1319
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1302
1320
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1303
1321
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1304
1322
  transports_version_send: [:rest]
1305
1323
 
1324
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1306
1325
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1307
1326
 
1308
1327
  options.apply_defaults timeout: @config.rpcs.list_volume_backups.timeout,
@@ -1377,12 +1396,13 @@ module Google
1377
1396
  # Customize the options with defaults
1378
1397
  call_metadata = @config.rpcs.get_volume_backup.metadata.to_h
1379
1398
 
1380
- # Set x-goog-api-client and x-goog-user-project headers
1399
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1381
1400
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1382
1401
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1383
1402
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1384
1403
  transports_version_send: [:rest]
1385
1404
 
1405
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1386
1406
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1387
1407
 
1388
1408
  options.apply_defaults timeout: @config.rpcs.get_volume_backup.timeout,
@@ -1474,12 +1494,13 @@ module Google
1474
1494
  # Customize the options with defaults
1475
1495
  call_metadata = @config.rpcs.create_restore_plan.metadata.to_h
1476
1496
 
1477
- # Set x-goog-api-client and x-goog-user-project headers
1497
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1478
1498
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1479
1499
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1480
1500
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1481
1501
  transports_version_send: [:rest]
1482
1502
 
1503
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1483
1504
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1484
1505
 
1485
1506
  options.apply_defaults timeout: @config.rpcs.create_restore_plan.timeout,
@@ -1521,23 +1542,23 @@ module Google
1521
1542
  # Required. The location that contains the RestorePlans to list.
1522
1543
  # Format: `projects/*/locations/*`
1523
1544
  # @param page_size [::Integer]
1524
- # The target number of results to return in a single response.
1545
+ # Optional. The target number of results to return in a single response.
1525
1546
  # If not specified, a default value will be chosen by the service.
1526
- # Note that the response may inclue a partial list and a caller should
1547
+ # Note that the response may include a partial list and a caller should
1527
1548
  # only rely on the response's
1528
1549
  # {::Google::Cloud::GkeBackup::V1::ListRestorePlansResponse#next_page_token next_page_token}
1529
1550
  # to determine if there are more instances left to be queried.
1530
1551
  # @param page_token [::String]
1531
- # The value of
1552
+ # Optional. The value of
1532
1553
  # {::Google::Cloud::GkeBackup::V1::ListRestorePlansResponse#next_page_token next_page_token}
1533
1554
  # received from a previous `ListRestorePlans` call.
1534
1555
  # Provide this to retrieve the subsequent page in a multi-page list of
1535
1556
  # results. When paginating, all other parameters provided to
1536
1557
  # `ListRestorePlans` must match the call that provided the page token.
1537
1558
  # @param filter [::String]
1538
- # Field match expression used to filter the results.
1559
+ # Optional. Field match expression used to filter the results.
1539
1560
  # @param order_by [::String]
1540
- # Field by which to sort the results.
1561
+ # Optional. Field by which to sort the results.
1541
1562
  # @yield [result, operation] Access the result along with the TransportOperation object
1542
1563
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::ListRestorePlansResponse]
1543
1564
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1576,12 +1597,13 @@ module Google
1576
1597
  # Customize the options with defaults
1577
1598
  call_metadata = @config.rpcs.list_restore_plans.metadata.to_h
1578
1599
 
1579
- # Set x-goog-api-client and x-goog-user-project headers
1600
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1580
1601
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1581
1602
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1582
1603
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1583
1604
  transports_version_send: [:rest]
1584
1605
 
1606
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1585
1607
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1586
1608
 
1587
1609
  options.apply_defaults timeout: @config.rpcs.list_restore_plans.timeout,
@@ -1655,12 +1677,13 @@ module Google
1655
1677
  # Customize the options with defaults
1656
1678
  call_metadata = @config.rpcs.get_restore_plan.metadata.to_h
1657
1679
 
1658
- # Set x-goog-api-client and x-goog-user-project headers
1680
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1659
1681
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1660
1682
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1661
1683
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1662
1684
  transports_version_send: [:rest]
1663
1685
 
1686
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1664
1687
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1665
1688
 
1666
1689
  options.apply_defaults timeout: @config.rpcs.get_restore_plan.timeout,
@@ -1701,7 +1724,7 @@ module Google
1701
1724
  # Required. A new version of the RestorePlan resource that contains updated
1702
1725
  # fields. This may be sparsely populated if an `update_mask` is provided.
1703
1726
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1704
- # This is used to specify the fields to be overwritten in the
1727
+ # Optional. This is used to specify the fields to be overwritten in the
1705
1728
  # RestorePlan targeted for update. The values for each of these
1706
1729
  # updated fields will be taken from the `restore_plan` provided
1707
1730
  # with this request. Field names are relative to the root of the resource.
@@ -1750,12 +1773,13 @@ module Google
1750
1773
  # Customize the options with defaults
1751
1774
  call_metadata = @config.rpcs.update_restore_plan.metadata.to_h
1752
1775
 
1753
- # Set x-goog-api-client and x-goog-user-project headers
1776
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1754
1777
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1755
1778
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1756
1779
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1757
1780
  transports_version_send: [:rest]
1758
1781
 
1782
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1759
1783
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1760
1784
 
1761
1785
  options.apply_defaults timeout: @config.rpcs.update_restore_plan.timeout,
@@ -1797,12 +1821,12 @@ module Google
1797
1821
  # Required. Fully qualified RestorePlan name.
1798
1822
  # Format: `projects/*/locations/*/restorePlans/*`
1799
1823
  # @param etag [::String]
1800
- # If provided, this value must match the current value of the
1824
+ # Optional. If provided, this value must match the current value of the
1801
1825
  # target RestorePlan's {::Google::Cloud::GkeBackup::V1::RestorePlan#etag etag}
1802
1826
  # field or the request is rejected.
1803
1827
  # @param force [::Boolean]
1804
- # If set to true, any Restores below this RestorePlan will also be deleted.
1805
- # Otherwise, the request will only succeed if the RestorePlan has no
1828
+ # Optional. If set to true, any Restores below this RestorePlan will also be
1829
+ # deleted. Otherwise, the request will only succeed if the RestorePlan has no
1806
1830
  # Restores.
1807
1831
  # @yield [result, operation] Access the result along with the TransportOperation object
1808
1832
  # @yieldparam result [::Gapic::Operation]
@@ -1845,12 +1869,13 @@ module Google
1845
1869
  # Customize the options with defaults
1846
1870
  call_metadata = @config.rpcs.delete_restore_plan.metadata.to_h
1847
1871
 
1848
- # Set x-goog-api-client and x-goog-user-project headers
1872
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1849
1873
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1850
1874
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1851
1875
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1852
1876
  transports_version_send: [:rest]
1853
1877
 
1878
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1854
1879
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1855
1880
 
1856
1881
  options.apply_defaults timeout: @config.rpcs.delete_restore_plan.timeout,
@@ -1943,12 +1968,13 @@ module Google
1943
1968
  # Customize the options with defaults
1944
1969
  call_metadata = @config.rpcs.create_restore.metadata.to_h
1945
1970
 
1946
- # Set x-goog-api-client and x-goog-user-project headers
1971
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1947
1972
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1948
1973
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1949
1974
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
1950
1975
  transports_version_send: [:rest]
1951
1976
 
1977
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1952
1978
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1953
1979
 
1954
1980
  options.apply_defaults timeout: @config.rpcs.create_restore.timeout,
@@ -1990,23 +2016,23 @@ module Google
1990
2016
  # Required. The RestorePlan that contains the Restores to list.
1991
2017
  # Format: `projects/*/locations/*/restorePlans/*`
1992
2018
  # @param page_size [::Integer]
1993
- # The target number of results to return in a single response.
2019
+ # Optional. The target number of results to return in a single response.
1994
2020
  # If not specified, a default value will be chosen by the service.
1995
- # Note that the response may inclue a partial list and a caller should
2021
+ # Note that the response may include a partial list and a caller should
1996
2022
  # only rely on the response's
1997
2023
  # {::Google::Cloud::GkeBackup::V1::ListRestoresResponse#next_page_token next_page_token}
1998
2024
  # to determine if there are more instances left to be queried.
1999
2025
  # @param page_token [::String]
2000
- # The value of
2026
+ # Optional. The value of
2001
2027
  # {::Google::Cloud::GkeBackup::V1::ListRestoresResponse#next_page_token next_page_token}
2002
2028
  # received from a previous `ListRestores` call.
2003
2029
  # Provide this to retrieve the subsequent page in a multi-page list of
2004
2030
  # results. When paginating, all other parameters provided to `ListRestores`
2005
2031
  # must match the call that provided the page token.
2006
2032
  # @param filter [::String]
2007
- # Field match expression used to filter the results.
2033
+ # Optional. Field match expression used to filter the results.
2008
2034
  # @param order_by [::String]
2009
- # Field by which to sort the results.
2035
+ # Optional. Field by which to sort the results.
2010
2036
  # @yield [result, operation] Access the result along with the TransportOperation object
2011
2037
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::ListRestoresResponse]
2012
2038
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2045,12 +2071,13 @@ module Google
2045
2071
  # Customize the options with defaults
2046
2072
  call_metadata = @config.rpcs.list_restores.metadata.to_h
2047
2073
 
2048
- # Set x-goog-api-client and x-goog-user-project headers
2074
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2049
2075
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2050
2076
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2051
2077
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
2052
2078
  transports_version_send: [:rest]
2053
2079
 
2080
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2054
2081
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2055
2082
 
2056
2083
  options.apply_defaults timeout: @config.rpcs.list_restores.timeout,
@@ -2124,12 +2151,13 @@ module Google
2124
2151
  # Customize the options with defaults
2125
2152
  call_metadata = @config.rpcs.get_restore.metadata.to_h
2126
2153
 
2127
- # Set x-goog-api-client and x-goog-user-project headers
2154
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2128
2155
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2129
2156
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2130
2157
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
2131
2158
  transports_version_send: [:rest]
2132
2159
 
2160
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2133
2161
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2134
2162
 
2135
2163
  options.apply_defaults timeout: @config.rpcs.get_restore.timeout,
@@ -2170,7 +2198,7 @@ module Google
2170
2198
  # Required. A new version of the Restore resource that contains updated
2171
2199
  # fields. This may be sparsely populated if an `update_mask` is provided.
2172
2200
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2173
- # This is used to specify the fields to be overwritten in the
2201
+ # Optional. This is used to specify the fields to be overwritten in the
2174
2202
  # Restore targeted for update. The values for each of these
2175
2203
  # updated fields will be taken from the `restore` provided
2176
2204
  # with this request. Field names are relative to the root of the resource.
@@ -2219,12 +2247,13 @@ module Google
2219
2247
  # Customize the options with defaults
2220
2248
  call_metadata = @config.rpcs.update_restore.metadata.to_h
2221
2249
 
2222
- # Set x-goog-api-client and x-goog-user-project headers
2250
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2223
2251
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2224
2252
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2225
2253
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
2226
2254
  transports_version_send: [:rest]
2227
2255
 
2256
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2228
2257
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2229
2258
 
2230
2259
  options.apply_defaults timeout: @config.rpcs.update_restore.timeout,
@@ -2266,12 +2295,12 @@ module Google
2266
2295
  # Required. Full name of the Restore
2267
2296
  # Format: `projects/*/locations/*/restorePlans/*/restores/*`
2268
2297
  # @param etag [::String]
2269
- # If provided, this value must match the current value of the
2298
+ # Optional. If provided, this value must match the current value of the
2270
2299
  # target Restore's {::Google::Cloud::GkeBackup::V1::Restore#etag etag} field or
2271
2300
  # the request is rejected.
2272
2301
  # @param force [::Boolean]
2273
- # If set to true, any VolumeRestores below this restore will also be deleted.
2274
- # Otherwise, the request will only succeed if the restore has no
2302
+ # Optional. If set to true, any VolumeRestores below this restore will also
2303
+ # be deleted. Otherwise, the request will only succeed if the restore has no
2275
2304
  # VolumeRestores.
2276
2305
  # @yield [result, operation] Access the result along with the TransportOperation object
2277
2306
  # @yieldparam result [::Gapic::Operation]
@@ -2314,12 +2343,13 @@ module Google
2314
2343
  # Customize the options with defaults
2315
2344
  call_metadata = @config.rpcs.delete_restore.metadata.to_h
2316
2345
 
2317
- # Set x-goog-api-client and x-goog-user-project headers
2346
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2318
2347
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2319
2348
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2320
2349
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
2321
2350
  transports_version_send: [:rest]
2322
2351
 
2352
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2323
2353
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2324
2354
 
2325
2355
  options.apply_defaults timeout: @config.rpcs.delete_restore.timeout,
@@ -2361,23 +2391,23 @@ module Google
2361
2391
  # Required. The Restore that contains the VolumeRestores to list.
2362
2392
  # Format: `projects/*/locations/*/restorePlans/*/restores/*`
2363
2393
  # @param page_size [::Integer]
2364
- # The target number of results to return in a single response.
2394
+ # Optional. The target number of results to return in a single response.
2365
2395
  # If not specified, a default value will be chosen by the service.
2366
- # Note that the response may inclue a partial list and a caller should
2396
+ # Note that the response may include a partial list and a caller should
2367
2397
  # only rely on the response's
2368
2398
  # {::Google::Cloud::GkeBackup::V1::ListVolumeRestoresResponse#next_page_token next_page_token}
2369
2399
  # to determine if there are more instances left to be queried.
2370
2400
  # @param page_token [::String]
2371
- # The value of
2401
+ # Optional. The value of
2372
2402
  # {::Google::Cloud::GkeBackup::V1::ListVolumeRestoresResponse#next_page_token next_page_token}
2373
2403
  # received from a previous `ListVolumeRestores` call.
2374
2404
  # Provide this to retrieve the subsequent page in a multi-page list of
2375
2405
  # results. When paginating, all other parameters provided to
2376
2406
  # `ListVolumeRestores` must match the call that provided the page token.
2377
2407
  # @param filter [::String]
2378
- # Field match expression used to filter the results.
2408
+ # Optional. Field match expression used to filter the results.
2379
2409
  # @param order_by [::String]
2380
- # Field by which to sort the results.
2410
+ # Optional. Field by which to sort the results.
2381
2411
  # @yield [result, operation] Access the result along with the TransportOperation object
2382
2412
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GkeBackup::V1::VolumeRestore>]
2383
2413
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2416,12 +2446,13 @@ module Google
2416
2446
  # Customize the options with defaults
2417
2447
  call_metadata = @config.rpcs.list_volume_restores.metadata.to_h
2418
2448
 
2419
- # Set x-goog-api-client and x-goog-user-project headers
2449
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2420
2450
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2421
2451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2422
2452
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
2423
2453
  transports_version_send: [:rest]
2424
2454
 
2455
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2425
2456
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2426
2457
 
2427
2458
  options.apply_defaults timeout: @config.rpcs.list_volume_restores.timeout,
@@ -2496,12 +2527,13 @@ module Google
2496
2527
  # Customize the options with defaults
2497
2528
  call_metadata = @config.rpcs.get_volume_restore.metadata.to_h
2498
2529
 
2499
- # Set x-goog-api-client and x-goog-user-project headers
2530
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2500
2531
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2501
2532
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2502
2533
  gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
2503
2534
  transports_version_send: [:rest]
2504
2535
 
2536
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2505
2537
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2506
2538
 
2507
2539
  options.apply_defaults timeout: @config.rpcs.get_volume_restore.timeout,
@@ -2520,6 +2552,87 @@ module Google
2520
2552
  raise ::Google::Cloud::Error.from_error(e)
2521
2553
  end
2522
2554
 
2555
+ ##
2556
+ # Retrieve the link to the backupIndex.
2557
+ #
2558
+ # @overload get_backup_index_download_url(request, options = nil)
2559
+ # Pass arguments to `get_backup_index_download_url` via a request object, either of type
2560
+ # {::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlRequest} or an equivalent Hash.
2561
+ #
2562
+ # @param request [::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlRequest, ::Hash]
2563
+ # A request object representing the call parameters. Required. To specify no
2564
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2565
+ # @param options [::Gapic::CallOptions, ::Hash]
2566
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2567
+ #
2568
+ # @overload get_backup_index_download_url(backup: nil)
2569
+ # Pass arguments to `get_backup_index_download_url` via keyword arguments. Note that at
2570
+ # least one keyword argument is required. To specify no parameters, or to keep all
2571
+ # the default parameter values, pass an empty Hash as a request object (see above).
2572
+ #
2573
+ # @param backup [::String]
2574
+ # Required. Full name of Backup resource.
2575
+ # Format:
2576
+ # projects/\\{project}/locations/\\{location}/backupPlans/\\{backup_plan}/backups/\\{backup}
2577
+ # @yield [result, operation] Access the result along with the TransportOperation object
2578
+ # @yieldparam result [::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlResponse]
2579
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2580
+ #
2581
+ # @return [::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlResponse]
2582
+ #
2583
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2584
+ #
2585
+ # @example Basic example
2586
+ # require "google/cloud/gke_backup/v1"
2587
+ #
2588
+ # # Create a client object. The client can be reused for multiple calls.
2589
+ # client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
2590
+ #
2591
+ # # Create a request. To set request fields, pass in keyword arguments.
2592
+ # request = Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlRequest.new
2593
+ #
2594
+ # # Call the get_backup_index_download_url method.
2595
+ # result = client.get_backup_index_download_url request
2596
+ #
2597
+ # # The returned object is of type Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlResponse.
2598
+ # p result
2599
+ #
2600
+ def get_backup_index_download_url request, options = nil
2601
+ raise ::ArgumentError, "request must be provided" if request.nil?
2602
+
2603
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlRequest
2604
+
2605
+ # Converts hash and nil to an options object
2606
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2607
+
2608
+ # Customize the options with defaults
2609
+ call_metadata = @config.rpcs.get_backup_index_download_url.metadata.to_h
2610
+
2611
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2612
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2613
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2614
+ gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
2615
+ transports_version_send: [:rest]
2616
+
2617
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2618
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2619
+
2620
+ options.apply_defaults timeout: @config.rpcs.get_backup_index_download_url.timeout,
2621
+ metadata: call_metadata,
2622
+ retry_policy: @config.rpcs.get_backup_index_download_url.retry_policy
2623
+
2624
+ options.apply_defaults timeout: @config.timeout,
2625
+ metadata: @config.metadata,
2626
+ retry_policy: @config.retry_policy
2627
+
2628
+ @backup_for_gke_stub.get_backup_index_download_url request, options do |result, operation|
2629
+ yield result, operation if block_given?
2630
+ return result
2631
+ end
2632
+ rescue ::Gapic::Rest::Error => e
2633
+ raise ::Google::Cloud::Error.from_error(e)
2634
+ end
2635
+
2523
2636
  ##
2524
2637
  # Configuration class for the BackupForGKE REST API.
2525
2638
  #
@@ -2780,6 +2893,11 @@ module Google
2780
2893
  # @return [::Gapic::Config::Method]
2781
2894
  #
2782
2895
  attr_reader :get_volume_restore
2896
+ ##
2897
+ # RPC-specific configuration for `get_backup_index_download_url`
2898
+ # @return [::Gapic::Config::Method]
2899
+ #
2900
+ attr_reader :get_backup_index_download_url
2783
2901
 
2784
2902
  # @private
2785
2903
  def initialize parent_rpcs = nil
@@ -2831,6 +2949,8 @@ module Google
2831
2949
  @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
2832
2950
  get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
2833
2951
  @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
2952
+ get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
2953
+ @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config
2834
2954
 
2835
2955
  yield self if block_given?
2836
2956
  end