google-cloud-gke_backup-v1 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8eb70b4ce5bfab0fa40fa48a3f3bac4a5f5ec0bc68480ada1afa9c6a262fc1c9
4
- data.tar.gz: 59636d585e868eff9fee5abf8485fc656e8836ea3a28e418236ee33a5b473c9b
3
+ metadata.gz: 7719f3f7f3b5cfa2ce2d2048056e3c2e0c823ae239037e8d77052e315928790f
4
+ data.tar.gz: 1c5b87a2bed969c8d4b476306ab26a6ab3e66e463d4785711edfdb18b484e884
5
5
  SHA512:
6
- metadata.gz: 7e402f1217ed212d11b2aad7d6c82f92b6127bd0250e8ab4f1bb4ca46803bcdc9be7cda2242c00cc9be4081013516a8363642e8c0217c31fe1e4e011b7474965
7
- data.tar.gz: ba8b9ae140ef3426e1499cae19f06dd7120e0f1b28bdb062118030ecfa39c42bd7cd2b5c40fe9f23f940ced1ead2066f317520aafd0e2916a9886bc5787874db
6
+ metadata.gz: a57ea665b28709d0e3f06574d6fc54de1ba556c9796b074c5d9f5c950d389000bab6bda9b13acbfeaa074b55d0cc4187f766bc547d9ebb742c80dc59a9ee99da
7
+ data.tar.gz: fb61e9611118550eb87232d51c6b9dc697874dbc802e03bf3c6c4138191153e44147baefacaa753a57248ae50e82d585a1a345ac1420f4d354eb1392a842863a
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/gkebackup/v1/gkebackup_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -224,6 +226,18 @@ module Google
224
226
  config.endpoint = @config.endpoint
225
227
  end
226
228
 
229
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
230
+ config.credentials = credentials
231
+ config.quota_project = @quota_project_id
232
+ config.endpoint = @config.endpoint
233
+ end
234
+
235
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
236
+ config.credentials = credentials
237
+ config.quota_project = @quota_project_id
238
+ config.endpoint = @config.endpoint
239
+ end
240
+
227
241
  @backup_for_gke_stub = ::Gapic::ServiceStub.new(
228
242
  ::Google::Cloud::GkeBackup::V1::BackupForGKE::Stub,
229
243
  credentials: credentials,
@@ -240,6 +254,20 @@ module Google
240
254
  #
241
255
  attr_reader :operations_client
242
256
 
257
+ ##
258
+ # Get the associated client for mix-in of the Locations.
259
+ #
260
+ # @return [Google::Cloud::Location::Locations::Client]
261
+ #
262
+ attr_reader :location_client
263
+
264
+ ##
265
+ # Get the associated client for mix-in of the IAMPolicy.
266
+ #
267
+ # @return [Google::Iam::V1::IAMPolicy::Client]
268
+ #
269
+ attr_reader :iam_policy_client
270
+
243
271
  # Service calls
244
272
 
245
273
  ##
@@ -262,7 +290,7 @@ module Google
262
290
  #
263
291
  # @param parent [::String]
264
292
  # Required. The location within which to create the BackupPlan.
265
- # Format: projects/*/locations/*
293
+ # Format: `projects/*/locations/*`
266
294
  # @param backup_plan [::Google::Cloud::GkeBackup::V1::BackupPlan, ::Hash]
267
295
  # Required. The BackupPlan resource object to create.
268
296
  # @param backup_plan_id [::String]
@@ -367,7 +395,7 @@ module Google
367
395
  #
368
396
  # @param parent [::String]
369
397
  # Required. The location that contains the BackupPlans to list.
370
- # Format: projects/*/locations/*
398
+ # Format: `projects/*/locations/*`
371
399
  # @param page_size [::Integer]
372
400
  # The target number of results to return in a single response.
373
401
  # If not specified, a default value will be chosen by the service.
@@ -476,7 +504,7 @@ module Google
476
504
  #
477
505
  # @param name [::String]
478
506
  # Required. Fully qualified BackupPlan name.
479
- # Format: projects/*/locations/*/backupPlans/*
507
+ # Format: `projects/*/locations/*/backupPlans/*`
480
508
  #
481
509
  # @yield [response, operation] Access the result along with the RPC operation
482
510
  # @yieldparam response [::Google::Cloud::GkeBackup::V1::BackupPlan]
@@ -561,8 +589,8 @@ module Google
561
589
  # the default parameter values, pass an empty Hash as a request object (see above).
562
590
  #
563
591
  # @param backup_plan [::Google::Cloud::GkeBackup::V1::BackupPlan, ::Hash]
564
- # Required. A new version of the BackupPlan resource that contains updated fields.
565
- # This may be sparsely populated if an `update_mask` is provided.
592
+ # Required. A new version of the BackupPlan resource that contains updated
593
+ # fields. This may be sparsely populated if an `update_mask` is provided.
566
594
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
567
595
  # This is used to specify the fields to be overwritten in the
568
596
  # BackupPlan targeted for update. The values for each of these
@@ -666,11 +694,11 @@ module Google
666
694
  #
667
695
  # @param name [::String]
668
696
  # Required. Fully qualified BackupPlan name.
669
- # Format: projects/*/locations/*/backupPlans/*
697
+ # Format: `projects/*/locations/*/backupPlans/*`
670
698
  # @param etag [::String]
671
699
  # If provided, this value must match the current value of the
672
- # target BackupPlan's {::Google::Cloud::GkeBackup::V1::BackupPlan#etag etag} field or the request is
673
- # rejected.
700
+ # target BackupPlan's {::Google::Cloud::GkeBackup::V1::BackupPlan#etag etag} field
701
+ # or the request is rejected.
674
702
  #
675
703
  # @yield [response, operation] Access the result along with the RPC operation
676
704
  # @yieldparam response [::Gapic::Operation]
@@ -764,7 +792,7 @@ module Google
764
792
  #
765
793
  # @param parent [::String]
766
794
  # Required. The BackupPlan within which to create the Backup.
767
- # Format: projects/*/locations/*/backupPlans/*
795
+ # Format: `projects/*/locations/*/backupPlans/*`
768
796
  # @param backup [::Google::Cloud::GkeBackup::V1::Backup, ::Hash]
769
797
  # The Backup resource to create.
770
798
  # @param backup_id [::String]
@@ -869,7 +897,7 @@ module Google
869
897
  #
870
898
  # @param parent [::String]
871
899
  # Required. The BackupPlan that contains the Backups to list.
872
- # Format: projects/*/locations/*/backupPlans/*
900
+ # Format: `projects/*/locations/*/backupPlans/*`
873
901
  # @param page_size [::Integer]
874
902
  # The target number of results to return in a single response.
875
903
  # If not specified, a default value will be chosen by the service.
@@ -978,7 +1006,7 @@ module Google
978
1006
  #
979
1007
  # @param name [::String]
980
1008
  # Required. Full name of the Backup resource.
981
- # Format: projects/*/locations/*/backupPlans/*/backups/*
1009
+ # Format: `projects/*/locations/*/backupPlans/*/backups/*`
982
1010
  #
983
1011
  # @yield [response, operation] Access the result along with the RPC operation
984
1012
  # @yieldparam response [::Google::Cloud::GkeBackup::V1::Backup]
@@ -1063,8 +1091,8 @@ module Google
1063
1091
  # the default parameter values, pass an empty Hash as a request object (see above).
1064
1092
  #
1065
1093
  # @param backup [::Google::Cloud::GkeBackup::V1::Backup, ::Hash]
1066
- # Required. A new version of the Backup resource that contains updated fields.
1067
- # This may be sparsely populated if an `update_mask` is provided.
1094
+ # Required. A new version of the Backup resource that contains updated
1095
+ # fields. This may be sparsely populated if an `update_mask` is provided.
1068
1096
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1069
1097
  # This is used to specify the fields to be overwritten in the
1070
1098
  # Backup targeted for update. The values for each of these
@@ -1167,11 +1195,11 @@ module Google
1167
1195
  #
1168
1196
  # @param name [::String]
1169
1197
  # Required. Name of the Backup resource.
1170
- # Format: projects/*/locations/*/backupPlans/*/backups/*
1198
+ # Format: `projects/*/locations/*/backupPlans/*/backups/*`
1171
1199
  # @param etag [::String]
1172
1200
  # If provided, this value must match the current value of the
1173
- # target Backup's {::Google::Cloud::GkeBackup::V1::Backup#etag etag} field or the request is
1174
- # rejected.
1201
+ # target Backup's {::Google::Cloud::GkeBackup::V1::Backup#etag etag} field or the
1202
+ # request is rejected.
1175
1203
  # @param force [::Boolean]
1176
1204
  # If set to true, any VolumeBackups below this Backup will also be deleted.
1177
1205
  # Otherwise, the request will only succeed if the Backup has no
@@ -1269,7 +1297,7 @@ module Google
1269
1297
  #
1270
1298
  # @param parent [::String]
1271
1299
  # Required. The Backup that contains the VolumeBackups to list.
1272
- # Format: projects/*/locations/*/backupPlans/*/backups/*
1300
+ # Format: `projects/*/locations/*/backupPlans/*/backups/*`
1273
1301
  # @param page_size [::Integer]
1274
1302
  # The target number of results to return in a single response.
1275
1303
  # If not specified, a default value will be chosen by the service.
@@ -1378,7 +1406,7 @@ module Google
1378
1406
  #
1379
1407
  # @param name [::String]
1380
1408
  # Required. Full name of the VolumeBackup resource.
1381
- # Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
1409
+ # Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`
1382
1410
  #
1383
1411
  # @yield [response, operation] Access the result along with the RPC operation
1384
1412
  # @yieldparam response [::Google::Cloud::GkeBackup::V1::VolumeBackup]
@@ -1464,7 +1492,7 @@ module Google
1464
1492
  #
1465
1493
  # @param parent [::String]
1466
1494
  # Required. The location within which to create the RestorePlan.
1467
- # Format: projects/*/locations/*
1495
+ # Format: `projects/*/locations/*`
1468
1496
  # @param restore_plan [::Google::Cloud::GkeBackup::V1::RestorePlan, ::Hash]
1469
1497
  # Required. The RestorePlan resource object to create.
1470
1498
  # @param restore_plan_id [::String]
@@ -1569,7 +1597,7 @@ module Google
1569
1597
  #
1570
1598
  # @param parent [::String]
1571
1599
  # Required. The location that contains the RestorePlans to list.
1572
- # Format: projects/*/locations/*
1600
+ # Format: `projects/*/locations/*`
1573
1601
  # @param page_size [::Integer]
1574
1602
  # The target number of results to return in a single response.
1575
1603
  # If not specified, a default value will be chosen by the service.
@@ -1678,7 +1706,7 @@ module Google
1678
1706
  #
1679
1707
  # @param name [::String]
1680
1708
  # Required. Fully qualified RestorePlan name.
1681
- # Format: projects/*/locations/*/restorePlans/*
1709
+ # Format: `projects/*/locations/*/restorePlans/*`
1682
1710
  #
1683
1711
  # @yield [response, operation] Access the result along with the RPC operation
1684
1712
  # @yieldparam response [::Google::Cloud::GkeBackup::V1::RestorePlan]
@@ -1763,8 +1791,8 @@ module Google
1763
1791
  # the default parameter values, pass an empty Hash as a request object (see above).
1764
1792
  #
1765
1793
  # @param restore_plan [::Google::Cloud::GkeBackup::V1::RestorePlan, ::Hash]
1766
- # Required. A new version of the RestorePlan resource that contains updated fields.
1767
- # This may be sparsely populated if an `update_mask` is provided.
1794
+ # Required. A new version of the RestorePlan resource that contains updated
1795
+ # fields. This may be sparsely populated if an `update_mask` is provided.
1768
1796
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1769
1797
  # This is used to specify the fields to be overwritten in the
1770
1798
  # RestorePlan targeted for update. The values for each of these
@@ -1867,11 +1895,11 @@ module Google
1867
1895
  #
1868
1896
  # @param name [::String]
1869
1897
  # Required. Fully qualified RestorePlan name.
1870
- # Format: projects/*/locations/*/restorePlans/*
1898
+ # Format: `projects/*/locations/*/restorePlans/*`
1871
1899
  # @param etag [::String]
1872
1900
  # If provided, this value must match the current value of the
1873
- # target RestorePlan's {::Google::Cloud::GkeBackup::V1::RestorePlan#etag etag} field or the request is
1874
- # rejected.
1901
+ # target RestorePlan's {::Google::Cloud::GkeBackup::V1::RestorePlan#etag etag}
1902
+ # field or the request is rejected.
1875
1903
  # @param force [::Boolean]
1876
1904
  # If set to true, any Restores below this RestorePlan will also be deleted.
1877
1905
  # Otherwise, the request will only succeed if the RestorePlan has no
@@ -1969,7 +1997,7 @@ module Google
1969
1997
  #
1970
1998
  # @param parent [::String]
1971
1999
  # Required. The RestorePlan within which to create the Restore.
1972
- # Format: projects/*/locations/*/restorePlans/*
2000
+ # Format: `projects/*/locations/*/restorePlans/*`
1973
2001
  # @param restore [::Google::Cloud::GkeBackup::V1::Restore, ::Hash]
1974
2002
  # Required. The restore resource to create.
1975
2003
  # @param restore_id [::String]
@@ -2074,7 +2102,7 @@ module Google
2074
2102
  #
2075
2103
  # @param parent [::String]
2076
2104
  # Required. The RestorePlan that contains the Restores to list.
2077
- # Format: projects/*/locations/*/restorePlans/*
2105
+ # Format: `projects/*/locations/*/restorePlans/*`
2078
2106
  # @param page_size [::Integer]
2079
2107
  # The target number of results to return in a single response.
2080
2108
  # If not specified, a default value will be chosen by the service.
@@ -2183,7 +2211,7 @@ module Google
2183
2211
  #
2184
2212
  # @param name [::String]
2185
2213
  # Required. Name of the restore resource.
2186
- # Format: projects/*/locations/*/restorePlans/*/restores/*
2214
+ # Format: `projects/*/locations/*/restorePlans/*/restores/*`
2187
2215
  #
2188
2216
  # @yield [response, operation] Access the result along with the RPC operation
2189
2217
  # @yieldparam response [::Google::Cloud::GkeBackup::V1::Restore]
@@ -2268,8 +2296,8 @@ module Google
2268
2296
  # the default parameter values, pass an empty Hash as a request object (see above).
2269
2297
  #
2270
2298
  # @param restore [::Google::Cloud::GkeBackup::V1::Restore, ::Hash]
2271
- # Required. A new version of the Restore resource that contains updated fields.
2272
- # This may be sparsely populated if an `update_mask` is provided.
2299
+ # Required. A new version of the Restore resource that contains updated
2300
+ # fields. This may be sparsely populated if an `update_mask` is provided.
2273
2301
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2274
2302
  # This is used to specify the fields to be overwritten in the
2275
2303
  # Restore targeted for update. The values for each of these
@@ -2372,11 +2400,11 @@ module Google
2372
2400
  #
2373
2401
  # @param name [::String]
2374
2402
  # Required. Full name of the Restore
2375
- # Format: projects/*/locations/*/restorePlans/*/restores/*
2403
+ # Format: `projects/*/locations/*/restorePlans/*/restores/*`
2376
2404
  # @param etag [::String]
2377
2405
  # If provided, this value must match the current value of the
2378
- # target Restore's {::Google::Cloud::GkeBackup::V1::Restore#etag etag} field or the request is
2379
- # rejected.
2406
+ # target Restore's {::Google::Cloud::GkeBackup::V1::Restore#etag etag} field or
2407
+ # the request is rejected.
2380
2408
  # @param force [::Boolean]
2381
2409
  # If set to true, any VolumeRestores below this restore will also be deleted.
2382
2410
  # Otherwise, the request will only succeed if the restore has no
@@ -2474,7 +2502,7 @@ module Google
2474
2502
  #
2475
2503
  # @param parent [::String]
2476
2504
  # Required. The Restore that contains the VolumeRestores to list.
2477
- # Format: projects/*/locations/*/restorePlans/*/restores/*
2505
+ # Format: `projects/*/locations/*/restorePlans/*/restores/*`
2478
2506
  # @param page_size [::Integer]
2479
2507
  # The target number of results to return in a single response.
2480
2508
  # If not specified, a default value will be chosen by the service.
@@ -2583,7 +2611,7 @@ module Google
2583
2611
  #
2584
2612
  # @param name [::String]
2585
2613
  # Required. Full name of the VolumeRestore resource.
2586
- # Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
2614
+ # Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
2587
2615
  #
2588
2616
  # @yield [response, operation] Access the result along with the RPC operation
2589
2617
  # @yieldparam response [::Google::Cloud::GkeBackup::V1::VolumeRestore]
@@ -19,6 +19,8 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/gkebackup/v1/gkebackup_pb"
21
21
  require "google/cloud/gke_backup/v1/backup_for_gke/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+ require "google/iam/v1/rest"
22
24
 
23
25
  module Google
24
26
  module Cloud
@@ -221,6 +223,20 @@ module Google
221
223
  config.endpoint = @config.endpoint
222
224
  end
223
225
 
226
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
227
+ config.credentials = credentials
228
+ config.quota_project = @quota_project_id
229
+ config.endpoint = @config.endpoint
230
+ config.bindings_override = @config.bindings_override
231
+ end
232
+
233
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
234
+ config.credentials = credentials
235
+ config.quota_project = @quota_project_id
236
+ config.endpoint = @config.endpoint
237
+ config.bindings_override = @config.bindings_override
238
+ end
239
+
224
240
  @backup_for_gke_stub = ::Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
225
241
  end
226
242
 
@@ -231,6 +247,20 @@ module Google
231
247
  #
232
248
  attr_reader :operations_client
233
249
 
250
+ ##
251
+ # Get the associated client for mix-in of the Locations.
252
+ #
253
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
254
+ #
255
+ attr_reader :location_client
256
+
257
+ ##
258
+ # Get the associated client for mix-in of the IAMPolicy.
259
+ #
260
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
261
+ #
262
+ attr_reader :iam_policy_client
263
+
234
264
  # Service calls
235
265
 
236
266
  ##
@@ -253,7 +283,7 @@ module Google
253
283
  #
254
284
  # @param parent [::String]
255
285
  # Required. The location within which to create the BackupPlan.
256
- # Format: projects/*/locations/*
286
+ # Format: `projects/*/locations/*`
257
287
  # @param backup_plan [::Google::Cloud::GkeBackup::V1::BackupPlan, ::Hash]
258
288
  # Required. The BackupPlan resource object to create.
259
289
  # @param backup_plan_id [::String]
@@ -328,7 +358,7 @@ module Google
328
358
  #
329
359
  # @param parent [::String]
330
360
  # Required. The location that contains the BackupPlans to list.
331
- # Format: projects/*/locations/*
361
+ # Format: `projects/*/locations/*`
332
362
  # @param page_size [::Integer]
333
363
  # The target number of results to return in a single response.
334
364
  # If not specified, a default value will be chosen by the service.
@@ -409,7 +439,7 @@ module Google
409
439
  #
410
440
  # @param name [::String]
411
441
  # Required. Fully qualified BackupPlan name.
412
- # Format: projects/*/locations/*/backupPlans/*
442
+ # Format: `projects/*/locations/*/backupPlans/*`
413
443
  # @yield [result, operation] Access the result along with the TransportOperation object
414
444
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::BackupPlan]
415
445
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -471,8 +501,8 @@ module Google
471
501
  # the default parameter values, pass an empty Hash as a request object (see above).
472
502
  #
473
503
  # @param backup_plan [::Google::Cloud::GkeBackup::V1::BackupPlan, ::Hash]
474
- # Required. A new version of the BackupPlan resource that contains updated fields.
475
- # This may be sparsely populated if an `update_mask` is provided.
504
+ # Required. A new version of the BackupPlan resource that contains updated
505
+ # fields. This may be sparsely populated if an `update_mask` is provided.
476
506
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
477
507
  # This is used to specify the fields to be overwritten in the
478
508
  # BackupPlan targeted for update. The values for each of these
@@ -546,11 +576,11 @@ module Google
546
576
  #
547
577
  # @param name [::String]
548
578
  # Required. Fully qualified BackupPlan name.
549
- # Format: projects/*/locations/*/backupPlans/*
579
+ # Format: `projects/*/locations/*/backupPlans/*`
550
580
  # @param etag [::String]
551
581
  # If provided, this value must match the current value of the
552
- # target BackupPlan's {::Google::Cloud::GkeBackup::V1::BackupPlan#etag etag} field or the request is
553
- # rejected.
582
+ # target BackupPlan's {::Google::Cloud::GkeBackup::V1::BackupPlan#etag etag} field
583
+ # or the request is rejected.
554
584
  # @yield [result, operation] Access the result along with the TransportOperation object
555
585
  # @yieldparam result [::Gapic::Operation]
556
586
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -614,7 +644,7 @@ module Google
614
644
  #
615
645
  # @param parent [::String]
616
646
  # Required. The BackupPlan within which to create the Backup.
617
- # Format: projects/*/locations/*/backupPlans/*
647
+ # Format: `projects/*/locations/*/backupPlans/*`
618
648
  # @param backup [::Google::Cloud::GkeBackup::V1::Backup, ::Hash]
619
649
  # The Backup resource to create.
620
650
  # @param backup_id [::String]
@@ -689,7 +719,7 @@ module Google
689
719
  #
690
720
  # @param parent [::String]
691
721
  # Required. The BackupPlan that contains the Backups to list.
692
- # Format: projects/*/locations/*/backupPlans/*
722
+ # Format: `projects/*/locations/*/backupPlans/*`
693
723
  # @param page_size [::Integer]
694
724
  # The target number of results to return in a single response.
695
725
  # If not specified, a default value will be chosen by the service.
@@ -771,7 +801,7 @@ module Google
771
801
  #
772
802
  # @param name [::String]
773
803
  # Required. Full name of the Backup resource.
774
- # Format: projects/*/locations/*/backupPlans/*/backups/*
804
+ # Format: `projects/*/locations/*/backupPlans/*/backups/*`
775
805
  # @yield [result, operation] Access the result along with the TransportOperation object
776
806
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::Backup]
777
807
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -833,8 +863,8 @@ module Google
833
863
  # the default parameter values, pass an empty Hash as a request object (see above).
834
864
  #
835
865
  # @param backup [::Google::Cloud::GkeBackup::V1::Backup, ::Hash]
836
- # Required. A new version of the Backup resource that contains updated fields.
837
- # This may be sparsely populated if an `update_mask` is provided.
866
+ # Required. A new version of the Backup resource that contains updated
867
+ # fields. This may be sparsely populated if an `update_mask` is provided.
838
868
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
839
869
  # This is used to specify the fields to be overwritten in the
840
870
  # Backup targeted for update. The values for each of these
@@ -907,11 +937,11 @@ module Google
907
937
  #
908
938
  # @param name [::String]
909
939
  # Required. Name of the Backup resource.
910
- # Format: projects/*/locations/*/backupPlans/*/backups/*
940
+ # Format: `projects/*/locations/*/backupPlans/*/backups/*`
911
941
  # @param etag [::String]
912
942
  # If provided, this value must match the current value of the
913
- # target Backup's {::Google::Cloud::GkeBackup::V1::Backup#etag etag} field or the request is
914
- # rejected.
943
+ # target Backup's {::Google::Cloud::GkeBackup::V1::Backup#etag etag} field or the
944
+ # request is rejected.
915
945
  # @param force [::Boolean]
916
946
  # If set to true, any VolumeBackups below this Backup will also be deleted.
917
947
  # Otherwise, the request will only succeed if the Backup has no
@@ -979,7 +1009,7 @@ module Google
979
1009
  #
980
1010
  # @param parent [::String]
981
1011
  # Required. The Backup that contains the VolumeBackups to list.
982
- # Format: projects/*/locations/*/backupPlans/*/backups/*
1012
+ # Format: `projects/*/locations/*/backupPlans/*/backups/*`
983
1013
  # @param page_size [::Integer]
984
1014
  # The target number of results to return in a single response.
985
1015
  # If not specified, a default value will be chosen by the service.
@@ -1061,7 +1091,7 @@ module Google
1061
1091
  #
1062
1092
  # @param name [::String]
1063
1093
  # Required. Full name of the VolumeBackup resource.
1064
- # Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*
1094
+ # Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`
1065
1095
  # @yield [result, operation] Access the result along with the TransportOperation object
1066
1096
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::VolumeBackup]
1067
1097
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1124,7 +1154,7 @@ module Google
1124
1154
  #
1125
1155
  # @param parent [::String]
1126
1156
  # Required. The location within which to create the RestorePlan.
1127
- # Format: projects/*/locations/*
1157
+ # Format: `projects/*/locations/*`
1128
1158
  # @param restore_plan [::Google::Cloud::GkeBackup::V1::RestorePlan, ::Hash]
1129
1159
  # Required. The RestorePlan resource object to create.
1130
1160
  # @param restore_plan_id [::String]
@@ -1199,7 +1229,7 @@ module Google
1199
1229
  #
1200
1230
  # @param parent [::String]
1201
1231
  # Required. The location that contains the RestorePlans to list.
1202
- # Format: projects/*/locations/*
1232
+ # Format: `projects/*/locations/*`
1203
1233
  # @param page_size [::Integer]
1204
1234
  # The target number of results to return in a single response.
1205
1235
  # If not specified, a default value will be chosen by the service.
@@ -1280,7 +1310,7 @@ module Google
1280
1310
  #
1281
1311
  # @param name [::String]
1282
1312
  # Required. Fully qualified RestorePlan name.
1283
- # Format: projects/*/locations/*/restorePlans/*
1313
+ # Format: `projects/*/locations/*/restorePlans/*`
1284
1314
  # @yield [result, operation] Access the result along with the TransportOperation object
1285
1315
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::RestorePlan]
1286
1316
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1342,8 +1372,8 @@ module Google
1342
1372
  # the default parameter values, pass an empty Hash as a request object (see above).
1343
1373
  #
1344
1374
  # @param restore_plan [::Google::Cloud::GkeBackup::V1::RestorePlan, ::Hash]
1345
- # Required. A new version of the RestorePlan resource that contains updated fields.
1346
- # This may be sparsely populated if an `update_mask` is provided.
1375
+ # Required. A new version of the RestorePlan resource that contains updated
1376
+ # fields. This may be sparsely populated if an `update_mask` is provided.
1347
1377
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1348
1378
  # This is used to specify the fields to be overwritten in the
1349
1379
  # RestorePlan targeted for update. The values for each of these
@@ -1416,11 +1446,11 @@ module Google
1416
1446
  #
1417
1447
  # @param name [::String]
1418
1448
  # Required. Fully qualified RestorePlan name.
1419
- # Format: projects/*/locations/*/restorePlans/*
1449
+ # Format: `projects/*/locations/*/restorePlans/*`
1420
1450
  # @param etag [::String]
1421
1451
  # If provided, this value must match the current value of the
1422
- # target RestorePlan's {::Google::Cloud::GkeBackup::V1::RestorePlan#etag etag} field or the request is
1423
- # rejected.
1452
+ # target RestorePlan's {::Google::Cloud::GkeBackup::V1::RestorePlan#etag etag}
1453
+ # field or the request is rejected.
1424
1454
  # @param force [::Boolean]
1425
1455
  # If set to true, any Restores below this RestorePlan will also be deleted.
1426
1456
  # Otherwise, the request will only succeed if the RestorePlan has no
@@ -1488,7 +1518,7 @@ module Google
1488
1518
  #
1489
1519
  # @param parent [::String]
1490
1520
  # Required. The RestorePlan within which to create the Restore.
1491
- # Format: projects/*/locations/*/restorePlans/*
1521
+ # Format: `projects/*/locations/*/restorePlans/*`
1492
1522
  # @param restore [::Google::Cloud::GkeBackup::V1::Restore, ::Hash]
1493
1523
  # Required. The restore resource to create.
1494
1524
  # @param restore_id [::String]
@@ -1563,7 +1593,7 @@ module Google
1563
1593
  #
1564
1594
  # @param parent [::String]
1565
1595
  # Required. The RestorePlan that contains the Restores to list.
1566
- # Format: projects/*/locations/*/restorePlans/*
1596
+ # Format: `projects/*/locations/*/restorePlans/*`
1567
1597
  # @param page_size [::Integer]
1568
1598
  # The target number of results to return in a single response.
1569
1599
  # If not specified, a default value will be chosen by the service.
@@ -1644,7 +1674,7 @@ module Google
1644
1674
  #
1645
1675
  # @param name [::String]
1646
1676
  # Required. Name of the restore resource.
1647
- # Format: projects/*/locations/*/restorePlans/*/restores/*
1677
+ # Format: `projects/*/locations/*/restorePlans/*/restores/*`
1648
1678
  # @yield [result, operation] Access the result along with the TransportOperation object
1649
1679
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::Restore]
1650
1680
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1706,8 +1736,8 @@ module Google
1706
1736
  # the default parameter values, pass an empty Hash as a request object (see above).
1707
1737
  #
1708
1738
  # @param restore [::Google::Cloud::GkeBackup::V1::Restore, ::Hash]
1709
- # Required. A new version of the Restore resource that contains updated fields.
1710
- # This may be sparsely populated if an `update_mask` is provided.
1739
+ # Required. A new version of the Restore resource that contains updated
1740
+ # fields. This may be sparsely populated if an `update_mask` is provided.
1711
1741
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1712
1742
  # This is used to specify the fields to be overwritten in the
1713
1743
  # Restore targeted for update. The values for each of these
@@ -1780,11 +1810,11 @@ module Google
1780
1810
  #
1781
1811
  # @param name [::String]
1782
1812
  # Required. Full name of the Restore
1783
- # Format: projects/*/locations/*/restorePlans/*/restores/*
1813
+ # Format: `projects/*/locations/*/restorePlans/*/restores/*`
1784
1814
  # @param etag [::String]
1785
1815
  # If provided, this value must match the current value of the
1786
- # target Restore's {::Google::Cloud::GkeBackup::V1::Restore#etag etag} field or the request is
1787
- # rejected.
1816
+ # target Restore's {::Google::Cloud::GkeBackup::V1::Restore#etag etag} field or
1817
+ # the request is rejected.
1788
1818
  # @param force [::Boolean]
1789
1819
  # If set to true, any VolumeRestores below this restore will also be deleted.
1790
1820
  # Otherwise, the request will only succeed if the restore has no
@@ -1852,7 +1882,7 @@ module Google
1852
1882
  #
1853
1883
  # @param parent [::String]
1854
1884
  # Required. The Restore that contains the VolumeRestores to list.
1855
- # Format: projects/*/locations/*/restorePlans/*/restores/*
1885
+ # Format: `projects/*/locations/*/restorePlans/*/restores/*`
1856
1886
  # @param page_size [::Integer]
1857
1887
  # The target number of results to return in a single response.
1858
1888
  # If not specified, a default value will be chosen by the service.
@@ -1934,7 +1964,7 @@ module Google
1934
1964
  #
1935
1965
  # @param name [::String]
1936
1966
  # Required. Full name of the VolumeRestore resource.
1937
- # Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
1967
+ # Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
1938
1968
  # @yield [result, operation] Access the result along with the TransportOperation object
1939
1969
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::VolumeRestore]
1940
1970
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2065,6 +2095,13 @@ module Google
2065
2095
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2066
2096
  config_attr :quota_project, nil, ::String, nil
2067
2097
 
2098
+ # @private
2099
+ # Overrides for http bindings for the RPCs of this service
2100
+ # are only used when this service is used as mixin, and only
2101
+ # by the host service.
2102
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
2103
+ config_attr :bindings_override, {}, ::Hash, nil
2104
+
2068
2105
  # @private
2069
2106
  def initialize parent_config = nil
2070
2107
  @parent_config = parent_config unless parent_config.nil?
@@ -21,6 +21,7 @@ require "gapic/config"
21
21
  require "gapic/config/method"
22
22
 
23
23
  require "google/cloud/gke_backup/v1/version"
24
+ require "google/cloud/gke_backup/v1/bindings_override"
24
25
 
25
26
  require "google/cloud/gke_backup/v1/backup_for_gke/credentials"
26
27
  require "google/cloud/gke_backup/v1/backup_for_gke/paths"