google-cloud-gke_backup-v1 0.3.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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb +70 -40
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/operations.rb +5 -3
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb +79 -40
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/operations.rb +9 -7
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/service_stub.rb +24 -24
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest.rb +1 -0
- data/lib/google/cloud/gke_backup/v1/bindings_override.rb +255 -0
- data/lib/google/cloud/gke_backup/v1/rest.rb +1 -0
- data/lib/google/cloud/gke_backup/v1/version.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/backup_pb.rb +26 -49
- data/lib/google/cloud/gkebackup/v1/backup_plan_pb.rb +27 -35
- data/lib/google/cloud/gkebackup/v1/common_pb.rb +24 -14
- data/lib/google/cloud/gkebackup/v1/gkebackup_pb.rb +32 -152
- data/lib/google/cloud/gkebackup/v1/restore_pb.rb +30 -70
- data/lib/google/cloud/gkebackup/v1/restore_plan_pb.rb +27 -13
- data/lib/google/cloud/gkebackup/v1/volume_pb.rb +26 -55
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/gkebackup/v1/backup.rb +43 -31
- data/proto_docs/google/cloud/gkebackup/v1/backup_plan.rb +54 -13
- data/proto_docs/google/cloud/gkebackup/v1/common.rb +1 -1
- data/proto_docs/google/cloud/gkebackup/v1/gkebackup.rb +63 -61
- data/proto_docs/google/cloud/gkebackup/v1/restore.rb +194 -29
- data/proto_docs/google/cloud/gkebackup/v1/restore_plan.rb +40 -13
- data/proto_docs/google/cloud/gkebackup/v1/volume.rb +23 -20
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +46 -4
@@ -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
|
@@ -204,7 +206,7 @@ module Google
|
|
204
206
|
credentials = @config.credentials
|
205
207
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
206
208
|
# but only if the default endpoint does not have a region prefix.
|
207
|
-
enable_self_signed_jwt = @config.endpoint ==
|
209
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
208
210
|
!@config.endpoint.split(".").first.include?("-")
|
209
211
|
credentials ||= Credentials.default scope: @config.scope,
|
210
212
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
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
|
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
|
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
|
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
|
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}
|
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
|
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
|
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]
|
@@ -2015,9 +2045,9 @@ module Google
|
|
2015
2045
|
# * (`String`) The path to a service account key file in JSON format
|
2016
2046
|
# * (`Hash`) A service account key as a Hash
|
2017
2047
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2018
|
-
# (see the [googleauth docs](https://
|
2048
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
2019
2049
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2020
|
-
# (see the [signet docs](https://
|
2050
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
2021
2051
|
# * (`nil`) indicating no credentials
|
2022
2052
|
# @return [::Object]
|
2023
2053
|
# @!attribute [rw] scope
|
@@ -2050,7 +2080,9 @@ module Google
|
|
2050
2080
|
class Configuration
|
2051
2081
|
extend ::Gapic::Config
|
2052
2082
|
|
2053
|
-
|
2083
|
+
DEFAULT_ENDPOINT = "gkebackup.googleapis.com"
|
2084
|
+
|
2085
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
2054
2086
|
config_attr :credentials, nil do |value|
|
2055
2087
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2056
2088
|
allowed.any? { |klass| klass === value }
|
@@ -2063,6 +2095,13 @@ module Google
|
|
2063
2095
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2064
2096
|
config_attr :quota_project, nil, ::String, nil
|
2065
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
|
+
|
2066
2105
|
# @private
|
2067
2106
|
def initialize parent_config = nil
|
2068
2107
|
@parent_config = parent_config unless parent_config.nil?
|
@@ -411,9 +411,9 @@ module Google
|
|
411
411
|
# * (`String`) The path to a service account key file in JSON format
|
412
412
|
# * (`Hash`) A service account key as a Hash
|
413
413
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
414
|
-
# (see the [googleauth docs](https://
|
414
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
415
415
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
416
|
-
# (see the [signet docs](https://
|
416
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
417
417
|
# * (`nil`) indicating no credentials
|
418
418
|
# @return [::Object]
|
419
419
|
# @!attribute [rw] scope
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "gkebackup.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_plan_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_plans_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_plan_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_plan_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_plan_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_backups_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -401,7 +401,7 @@ module Google
|
|
401
401
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_request request_pb
|
403
403
|
query_string_params = if query_string_params.any?
|
404
|
-
query_string_params.to_h { |p| p.split
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
@@ -439,7 +439,7 @@ module Google
|
|
439
439
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_volume_backups_request request_pb
|
441
441
|
query_string_params = if query_string_params.any?
|
442
|
-
query_string_params.to_h { |p| p.split
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
443
|
else
|
444
444
|
{}
|
445
445
|
end
|
@@ -477,7 +477,7 @@ module Google
|
|
477
477
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_volume_backup_request request_pb
|
479
479
|
query_string_params = if query_string_params.any?
|
480
|
-
query_string_params.to_h { |p| p.split
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
481
481
|
else
|
482
482
|
{}
|
483
483
|
end
|
@@ -515,7 +515,7 @@ module Google
|
|
515
515
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_restore_plan_request request_pb
|
517
517
|
query_string_params = if query_string_params.any?
|
518
|
-
query_string_params.to_h { |p| p.split
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
519
519
|
else
|
520
520
|
{}
|
521
521
|
end
|
@@ -553,7 +553,7 @@ module Google
|
|
553
553
|
|
554
554
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_plans_request request_pb
|
555
555
|
query_string_params = if query_string_params.any?
|
556
|
-
query_string_params.to_h { |p| p.split
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
557
557
|
else
|
558
558
|
{}
|
559
559
|
end
|
@@ -591,7 +591,7 @@ module Google
|
|
591
591
|
|
592
592
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_plan_request request_pb
|
593
593
|
query_string_params = if query_string_params.any?
|
594
|
-
query_string_params.to_h { |p| p.split
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
595
595
|
else
|
596
596
|
{}
|
597
597
|
end
|
@@ -629,7 +629,7 @@ module Google
|
|
629
629
|
|
630
630
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_restore_plan_request request_pb
|
631
631
|
query_string_params = if query_string_params.any?
|
632
|
-
query_string_params.to_h { |p| p.split
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
633
633
|
else
|
634
634
|
{}
|
635
635
|
end
|
@@ -667,7 +667,7 @@ module Google
|
|
667
667
|
|
668
668
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_restore_plan_request request_pb
|
669
669
|
query_string_params = if query_string_params.any?
|
670
|
-
query_string_params.to_h { |p| p.split
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
671
671
|
else
|
672
672
|
{}
|
673
673
|
end
|
@@ -705,7 +705,7 @@ module Google
|
|
705
705
|
|
706
706
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_restore_request request_pb
|
707
707
|
query_string_params = if query_string_params.any?
|
708
|
-
query_string_params.to_h { |p| p.split
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
709
709
|
else
|
710
710
|
{}
|
711
711
|
end
|
@@ -743,7 +743,7 @@ module Google
|
|
743
743
|
|
744
744
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_restores_request request_pb
|
745
745
|
query_string_params = if query_string_params.any?
|
746
|
-
query_string_params.to_h { |p| p.split
|
746
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
747
747
|
else
|
748
748
|
{}
|
749
749
|
end
|
@@ -781,7 +781,7 @@ module Google
|
|
781
781
|
|
782
782
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_request request_pb
|
783
783
|
query_string_params = if query_string_params.any?
|
784
|
-
query_string_params.to_h { |p| p.split
|
784
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
785
785
|
else
|
786
786
|
{}
|
787
787
|
end
|
@@ -819,7 +819,7 @@ module Google
|
|
819
819
|
|
820
820
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_restore_request request_pb
|
821
821
|
query_string_params = if query_string_params.any?
|
822
|
-
query_string_params.to_h { |p| p.split
|
822
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
823
823
|
else
|
824
824
|
{}
|
825
825
|
end
|
@@ -857,7 +857,7 @@ module Google
|
|
857
857
|
|
858
858
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_restore_request request_pb
|
859
859
|
query_string_params = if query_string_params.any?
|
860
|
-
query_string_params.to_h { |p| p.split
|
860
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
861
861
|
else
|
862
862
|
{}
|
863
863
|
end
|
@@ -895,7 +895,7 @@ module Google
|
|
895
895
|
|
896
896
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_volume_restores_request request_pb
|
897
897
|
query_string_params = if query_string_params.any?
|
898
|
-
query_string_params.to_h { |p| p.split
|
898
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
899
899
|
else
|
900
900
|
{}
|
901
901
|
end
|
@@ -933,7 +933,7 @@ module Google
|
|
933
933
|
|
934
934
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_volume_restore_request request_pb
|
935
935
|
query_string_params = if query_string_params.any?
|
936
|
-
query_string_params.to_h { |p| p.split
|
936
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
937
937
|
else
|
938
938
|
{}
|
939
939
|
end
|
@@ -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"
|