google-cloud-gke_backup-v1 0.4.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8eb70b4ce5bfab0fa40fa48a3f3bac4a5f5ec0bc68480ada1afa9c6a262fc1c9
4
- data.tar.gz: 59636d585e868eff9fee5abf8485fc656e8836ea3a28e418236ee33a5b473c9b
3
+ metadata.gz: 196ad40cb95707bd2713f11e9b16bed49eaae0f476174f6084f08e05267b0ccc
4
+ data.tar.gz: c4227c95ec0913f11298427753e03b67f34b3139f02ff9806f127af1a1024840
5
5
  SHA512:
6
- metadata.gz: 7e402f1217ed212d11b2aad7d6c82f92b6127bd0250e8ab4f1bb4ca46803bcdc9be7cda2242c00cc9be4081013516a8363642e8c0217c31fe1e4e011b7474965
7
- data.tar.gz: ba8b9ae140ef3426e1499cae19f06dd7120e0f1b28bdb062118030ecfa39c42bd7cd2b5c40fe9f23f940ced1ead2066f317520aafd0e2916a9886bc5787874db
6
+ metadata.gz: eced1efb7d7dbd982e0089af8982dd0ba66a9489dca04804c8e03a3d2a62f08f4e2f1c844b53700a7eaeda384a10e2970b86b740923ab9cdda5adb891f6e864e
7
+ data.tar.gz: b02ac4edb2e5937ed83f9d2caab75abf2e811674ddfe1f7abca9fd07b2fc9dfe7b26dd059aedaa2701d0cb4a2875722737db515fddaee01a5bf3c93f15c489c8
@@ -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,18 +792,18 @@ 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]
771
799
  # The client-provided short name for the Backup resource.
772
800
  # This name must:
773
801
  #
774
- # - be between 1 and 63 characters long (inclusive)
775
- # - consist of only lower-case ASCII letters, numbers, and dashes
776
- # - start with a lower-case letter
777
- # - end with a lower-case letter or number
778
- # - be unique within the set of Backups in this BackupPlan
802
+ # - be between 1 and 63 characters long (inclusive)
803
+ # - consist of only lower-case ASCII letters, numbers, and dashes
804
+ # - start with a lower-case letter
805
+ # - end with a lower-case letter or number
806
+ # - be unique within the set of Backups in this BackupPlan
779
807
  #
780
808
  # @yield [response, operation] Access the result along with the RPC operation
781
809
  # @yieldparam response [::Gapic::Operation]
@@ -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,18 +1492,18 @@ 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]
1471
1499
  # Required. The client-provided short name for the RestorePlan resource.
1472
1500
  # This name must:
1473
1501
  #
1474
- # - be between 1 and 63 characters long (inclusive)
1475
- # - consist of only lower-case ASCII letters, numbers, and dashes
1476
- # - start with a lower-case letter
1477
- # - end with a lower-case letter or number
1478
- # - be unique within the set of RestorePlans in this location
1502
+ # - be between 1 and 63 characters long (inclusive)
1503
+ # - consist of only lower-case ASCII letters, numbers, and dashes
1504
+ # - start with a lower-case letter
1505
+ # - end with a lower-case letter or number
1506
+ # - be unique within the set of RestorePlans in this location
1479
1507
  #
1480
1508
  # @yield [response, operation] Access the result along with the RPC operation
1481
1509
  # @yieldparam response [::Gapic::Operation]
@@ -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,18 +1997,18 @@ 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]
1976
2004
  # Required. The client-provided short name for the Restore resource.
1977
2005
  # This name must:
1978
2006
  #
1979
- # - be between 1 and 63 characters long (inclusive)
1980
- # - consist of only lower-case ASCII letters, numbers, and dashes
1981
- # - start with a lower-case letter
1982
- # - end with a lower-case letter or number
1983
- # - be unique within the set of Restores in this RestorePlan.
2007
+ # - be between 1 and 63 characters long (inclusive)
2008
+ # - consist of only lower-case ASCII letters, numbers, and dashes
2009
+ # - start with a lower-case letter
2010
+ # - end with a lower-case letter or number
2011
+ # - be unique within the set of Restores in this RestorePlan.
1984
2012
  #
1985
2013
  # @yield [response, operation] Access the result along with the RPC operation
1986
2014
  # @yieldparam response [::Gapic::Operation]
@@ -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]