google-cloud-gke_backup-v1 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb +70 -40
  4. data/lib/google/cloud/gke_backup/v1/backup_for_gke/operations.rb +5 -3
  5. data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb +79 -40
  6. data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/operations.rb +9 -7
  7. data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/service_stub.rb +24 -24
  8. data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest.rb +1 -0
  9. data/lib/google/cloud/gke_backup/v1/bindings_override.rb +255 -0
  10. data/lib/google/cloud/gke_backup/v1/rest.rb +1 -0
  11. data/lib/google/cloud/gke_backup/v1/version.rb +1 -1
  12. data/lib/google/cloud/gkebackup/v1/backup_pb.rb +26 -49
  13. data/lib/google/cloud/gkebackup/v1/backup_plan_pb.rb +27 -35
  14. data/lib/google/cloud/gkebackup/v1/common_pb.rb +24 -14
  15. data/lib/google/cloud/gkebackup/v1/gkebackup_pb.rb +32 -152
  16. data/lib/google/cloud/gkebackup/v1/restore_pb.rb +30 -70
  17. data/lib/google/cloud/gkebackup/v1/restore_plan_pb.rb +27 -13
  18. data/lib/google/cloud/gkebackup/v1/volume_pb.rb +26 -55
  19. data/proto_docs/google/api/client.rb +67 -4
  20. data/proto_docs/google/cloud/gkebackup/v1/backup.rb +43 -31
  21. data/proto_docs/google/cloud/gkebackup/v1/backup_plan.rb +54 -13
  22. data/proto_docs/google/cloud/gkebackup/v1/common.rb +1 -1
  23. data/proto_docs/google/cloud/gkebackup/v1/gkebackup.rb +63 -61
  24. data/proto_docs/google/cloud/gkebackup/v1/restore.rb +194 -29
  25. data/proto_docs/google/cloud/gkebackup/v1/restore_plan.rb +40 -13
  26. data/proto_docs/google/cloud/gkebackup/v1/volume.rb +23 -20
  27. data/proto_docs/google/protobuf/any.rb +7 -4
  28. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  29. data/proto_docs/google/type/expr.rb +75 -0
  30. metadata +46 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa10e1611224e396830d47d903093fd6fb1ec0e4b9acd5de0722873fbef70c17
4
- data.tar.gz: 70ec017c2c29da167b0f4f6036a2b47585240e7dad5067d840089ce21de67651
3
+ metadata.gz: 7719f3f7f3b5cfa2ce2d2048056e3c2e0c823ae239037e8d77052e315928790f
4
+ data.tar.gz: 1c5b87a2bed969c8d4b476306ab26a6ab3e66e463d4785711edfdb18b484e884
5
5
  SHA512:
6
- metadata.gz: b22997c9ca1dfdfc8cd1b34e6938dbddc9fd1773ca4a90f04a00d1de796a9c91ea891f296a8d36c0a134ee9ef67b218f9b4714567a0e15563f1654f91efd28ca
7
- data.tar.gz: 531ae31669beb5521ac90f66561829e7137887ce850bb94c5a66abdd96eab9cfbe69a386d215a151fc68e9f4693f27ea0489a191b44d13bde476b2799066606b
6
+ metadata.gz: a57ea665b28709d0e3f06574d6fc54de1ba556c9796b074c5d9f5c950d389000bab6bda9b13acbfeaa074b55d0cc4187f766bc547d9ebb742c80dc59a9ee99da
7
+ data.tar.gz: fb61e9611118550eb87232d51c6b9dc697874dbc802e03bf3c6c4138191153e44147baefacaa753a57248ae50e82d585a1a345ac1420f4d354eb1392a842863a
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -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
@@ -208,7 +210,7 @@ module Google
208
210
  credentials = @config.credentials
209
211
  # Use self-signed JWT if the endpoint is unchanged from default,
210
212
  # but only if the default endpoint does not have a region prefix.
211
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
213
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
212
214
  !@config.endpoint.split(".").first.include?("-")
213
215
  credentials ||= Credentials.default scope: @config.scope,
214
216
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -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]
@@ -2687,9 +2715,9 @@ module Google
2687
2715
  # * (`String`) The path to a service account key file in JSON format
2688
2716
  # * (`Hash`) A service account key as a Hash
2689
2717
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2690
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2718
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2691
2719
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2692
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2720
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2693
2721
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2694
2722
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2695
2723
  # * (`nil`) indicating no credentials
@@ -2731,7 +2759,9 @@ module Google
2731
2759
  class Configuration
2732
2760
  extend ::Gapic::Config
2733
2761
 
2734
- config_attr :endpoint, "gkebackup.googleapis.com", ::String
2762
+ DEFAULT_ENDPOINT = "gkebackup.googleapis.com"
2763
+
2764
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2735
2765
  config_attr :credentials, nil do |value|
2736
2766
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2737
2767
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "gkebackup.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "gkebackup.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC