google-cloud-spanner-admin-database-v1 0.18.0 → 0.20.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.
@@ -28,6 +28,9 @@ module Google
28
28
  module Rest
29
29
  # Service that implements Longrunning Operations API.
30
30
  class Operations
31
+ # @private
32
+ API_VERSION = ""
33
+
31
34
  # @private
32
35
  DEFAULT_ENDPOINT_TEMPLATE = "spanner.$UNIVERSE_DOMAIN$"
33
36
 
@@ -183,12 +186,13 @@ module Google
183
186
  # Customize the options with defaults
184
187
  call_metadata = @config.rpcs.list_operations.metadata.to_h
185
188
 
186
- # Set x-goog-api-client and x-goog-user-project headers
189
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
187
190
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
188
191
  lib_name: @config.lib_name, lib_version: @config.lib_version,
189
192
  gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION,
190
193
  transports_version_send: [:rest]
191
194
 
195
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
192
196
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
193
197
 
194
198
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -271,12 +275,13 @@ module Google
271
275
  # Customize the options with defaults
272
276
  call_metadata = @config.rpcs.get_operation.metadata.to_h
273
277
 
274
- # Set x-goog-api-client and x-goog-user-project headers
278
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
275
279
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
280
  lib_name: @config.lib_name, lib_version: @config.lib_version,
277
281
  gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION,
278
282
  transports_version_send: [:rest]
279
283
 
284
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
280
285
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
281
286
 
282
287
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -353,12 +358,13 @@ module Google
353
358
  # Customize the options with defaults
354
359
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
355
360
 
356
- # Set x-goog-api-client and x-goog-user-project headers
361
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
357
362
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
358
363
  lib_name: @config.lib_name, lib_version: @config.lib_version,
359
364
  gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION,
360
365
  transports_version_send: [:rest]
361
366
 
367
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
362
368
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
363
369
 
364
370
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -440,12 +446,13 @@ module Google
440
446
  # Customize the options with defaults
441
447
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
442
448
 
443
- # Set x-goog-api-client and x-goog-user-project headers
449
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
444
450
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
445
451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
446
452
  gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION,
447
453
  transports_version_send: [:rest]
448
454
 
455
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
449
456
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
450
457
 
451
458
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -823,6 +823,196 @@ module Google
823
823
  result
824
824
  end
825
825
 
826
+ ##
827
+ # Baseline implementation for the create_backup_schedule REST call
828
+ #
829
+ # @param request_pb [::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupScheduleRequest]
830
+ # A request object representing the call parameters. Required.
831
+ # @param options [::Gapic::CallOptions]
832
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
833
+ #
834
+ # @yield [result, operation] Access the result along with the TransportOperation object
835
+ # @yieldparam result [::Google::Cloud::Spanner::Admin::Database::V1::BackupSchedule]
836
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
837
+ #
838
+ # @return [::Google::Cloud::Spanner::Admin::Database::V1::BackupSchedule]
839
+ # A result object deserialized from the server's reply
840
+ def create_backup_schedule request_pb, options = nil
841
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
842
+
843
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_schedule_request request_pb
844
+ query_string_params = if query_string_params.any?
845
+ query_string_params.to_h { |p| p.split "=", 2 }
846
+ else
847
+ {}
848
+ end
849
+
850
+ response = @client_stub.make_http_request(
851
+ verb,
852
+ uri: uri,
853
+ body: body || "",
854
+ params: query_string_params,
855
+ options: options
856
+ )
857
+ operation = ::Gapic::Rest::TransportOperation.new response
858
+ result = ::Google::Cloud::Spanner::Admin::Database::V1::BackupSchedule.decode_json response.body, ignore_unknown_fields: true
859
+
860
+ yield result, operation if block_given?
861
+ result
862
+ end
863
+
864
+ ##
865
+ # Baseline implementation for the get_backup_schedule REST call
866
+ #
867
+ # @param request_pb [::Google::Cloud::Spanner::Admin::Database::V1::GetBackupScheduleRequest]
868
+ # A request object representing the call parameters. Required.
869
+ # @param options [::Gapic::CallOptions]
870
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
871
+ #
872
+ # @yield [result, operation] Access the result along with the TransportOperation object
873
+ # @yieldparam result [::Google::Cloud::Spanner::Admin::Database::V1::BackupSchedule]
874
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
875
+ #
876
+ # @return [::Google::Cloud::Spanner::Admin::Database::V1::BackupSchedule]
877
+ # A result object deserialized from the server's reply
878
+ def get_backup_schedule request_pb, options = nil
879
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
880
+
881
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_schedule_request request_pb
882
+ query_string_params = if query_string_params.any?
883
+ query_string_params.to_h { |p| p.split "=", 2 }
884
+ else
885
+ {}
886
+ end
887
+
888
+ response = @client_stub.make_http_request(
889
+ verb,
890
+ uri: uri,
891
+ body: body || "",
892
+ params: query_string_params,
893
+ options: options
894
+ )
895
+ operation = ::Gapic::Rest::TransportOperation.new response
896
+ result = ::Google::Cloud::Spanner::Admin::Database::V1::BackupSchedule.decode_json response.body, ignore_unknown_fields: true
897
+
898
+ yield result, operation if block_given?
899
+ result
900
+ end
901
+
902
+ ##
903
+ # Baseline implementation for the update_backup_schedule REST call
904
+ #
905
+ # @param request_pb [::Google::Cloud::Spanner::Admin::Database::V1::UpdateBackupScheduleRequest]
906
+ # A request object representing the call parameters. Required.
907
+ # @param options [::Gapic::CallOptions]
908
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
909
+ #
910
+ # @yield [result, operation] Access the result along with the TransportOperation object
911
+ # @yieldparam result [::Google::Cloud::Spanner::Admin::Database::V1::BackupSchedule]
912
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
913
+ #
914
+ # @return [::Google::Cloud::Spanner::Admin::Database::V1::BackupSchedule]
915
+ # A result object deserialized from the server's reply
916
+ def update_backup_schedule request_pb, options = nil
917
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
918
+
919
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_schedule_request request_pb
920
+ query_string_params = if query_string_params.any?
921
+ query_string_params.to_h { |p| p.split "=", 2 }
922
+ else
923
+ {}
924
+ end
925
+
926
+ response = @client_stub.make_http_request(
927
+ verb,
928
+ uri: uri,
929
+ body: body || "",
930
+ params: query_string_params,
931
+ options: options
932
+ )
933
+ operation = ::Gapic::Rest::TransportOperation.new response
934
+ result = ::Google::Cloud::Spanner::Admin::Database::V1::BackupSchedule.decode_json response.body, ignore_unknown_fields: true
935
+
936
+ yield result, operation if block_given?
937
+ result
938
+ end
939
+
940
+ ##
941
+ # Baseline implementation for the delete_backup_schedule REST call
942
+ #
943
+ # @param request_pb [::Google::Cloud::Spanner::Admin::Database::V1::DeleteBackupScheduleRequest]
944
+ # A request object representing the call parameters. Required.
945
+ # @param options [::Gapic::CallOptions]
946
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
947
+ #
948
+ # @yield [result, operation] Access the result along with the TransportOperation object
949
+ # @yieldparam result [::Google::Protobuf::Empty]
950
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
951
+ #
952
+ # @return [::Google::Protobuf::Empty]
953
+ # A result object deserialized from the server's reply
954
+ def delete_backup_schedule request_pb, options = nil
955
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
956
+
957
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_schedule_request request_pb
958
+ query_string_params = if query_string_params.any?
959
+ query_string_params.to_h { |p| p.split "=", 2 }
960
+ else
961
+ {}
962
+ end
963
+
964
+ response = @client_stub.make_http_request(
965
+ verb,
966
+ uri: uri,
967
+ body: body || "",
968
+ params: query_string_params,
969
+ options: options
970
+ )
971
+ operation = ::Gapic::Rest::TransportOperation.new response
972
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
973
+
974
+ yield result, operation if block_given?
975
+ result
976
+ end
977
+
978
+ ##
979
+ # Baseline implementation for the list_backup_schedules REST call
980
+ #
981
+ # @param request_pb [::Google::Cloud::Spanner::Admin::Database::V1::ListBackupSchedulesRequest]
982
+ # A request object representing the call parameters. Required.
983
+ # @param options [::Gapic::CallOptions]
984
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
985
+ #
986
+ # @yield [result, operation] Access the result along with the TransportOperation object
987
+ # @yieldparam result [::Google::Cloud::Spanner::Admin::Database::V1::ListBackupSchedulesResponse]
988
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
989
+ #
990
+ # @return [::Google::Cloud::Spanner::Admin::Database::V1::ListBackupSchedulesResponse]
991
+ # A result object deserialized from the server's reply
992
+ def list_backup_schedules request_pb, options = nil
993
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
994
+
995
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_schedules_request request_pb
996
+ query_string_params = if query_string_params.any?
997
+ query_string_params.to_h { |p| p.split "=", 2 }
998
+ else
999
+ {}
1000
+ end
1001
+
1002
+ response = @client_stub.make_http_request(
1003
+ verb,
1004
+ uri: uri,
1005
+ body: body || "",
1006
+ params: query_string_params,
1007
+ options: options
1008
+ )
1009
+ operation = ::Gapic::Rest::TransportOperation.new response
1010
+ result = ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupSchedulesResponse.decode_json response.body, ignore_unknown_fields: true
1011
+
1012
+ yield result, operation if block_given?
1013
+ result
1014
+ end
1015
+
826
1016
  ##
827
1017
  # @private
828
1018
  #
@@ -1000,6 +1190,14 @@ module Google
1000
1190
  ["resource", %r{^projects/[^/]+/instances/[^/]+/backups/[^/]+/?$}, false]
1001
1191
  ]
1002
1192
  )
1193
+ .with_bindings(
1194
+ uri_method: :post,
1195
+ uri_template: "/v1/{resource}:setIamPolicy",
1196
+ body: "*",
1197
+ matches: [
1198
+ ["resource", %r{^projects/[^/]+/instances/[^/]+/databases/[^/]+/backupSchedules/[^/]+/?$}, false]
1199
+ ]
1200
+ )
1003
1201
  transcoder.transcode request_pb
1004
1202
  end
1005
1203
 
@@ -1030,6 +1228,14 @@ module Google
1030
1228
  ["resource", %r{^projects/[^/]+/instances/[^/]+/backups/[^/]+/?$}, false]
1031
1229
  ]
1032
1230
  )
1231
+ .with_bindings(
1232
+ uri_method: :post,
1233
+ uri_template: "/v1/{resource}:getIamPolicy",
1234
+ body: "*",
1235
+ matches: [
1236
+ ["resource", %r{^projects/[^/]+/instances/[^/]+/databases/[^/]+/backupSchedules/[^/]+/?$}, false]
1237
+ ]
1238
+ )
1033
1239
  transcoder.transcode request_pb
1034
1240
  end
1035
1241
 
@@ -1060,6 +1266,14 @@ module Google
1060
1266
  ["resource", %r{^projects/[^/]+/instances/[^/]+/backups/[^/]+/?$}, false]
1061
1267
  ]
1062
1268
  )
1269
+ .with_bindings(
1270
+ uri_method: :post,
1271
+ uri_template: "/v1/{resource}:testIamPermissions",
1272
+ body: "*",
1273
+ matches: [
1274
+ ["resource", %r{^projects/[^/]+/instances/[^/]+/databases/[^/]+/backupSchedules/[^/]+/?$}, false]
1275
+ ]
1276
+ )
1063
1277
  .with_bindings(
1064
1278
  uri_method: :post,
1065
1279
  uri_template: "/v1/{resource}:testIamPermissions",
@@ -1284,6 +1498,113 @@ module Google
1284
1498
  )
1285
1499
  transcoder.transcode request_pb
1286
1500
  end
1501
+
1502
+ ##
1503
+ # @private
1504
+ #
1505
+ # GRPC transcoding helper method for the create_backup_schedule REST call
1506
+ #
1507
+ # @param request_pb [::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupScheduleRequest]
1508
+ # A request object representing the call parameters. Required.
1509
+ # @return [Array(String, [String, nil], Hash{String => String})]
1510
+ # Uri, Body, Query string parameters
1511
+ def self.transcode_create_backup_schedule_request request_pb
1512
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1513
+ .with_bindings(
1514
+ uri_method: :post,
1515
+ uri_template: "/v1/{parent}/backupSchedules",
1516
+ body: "backup_schedule",
1517
+ matches: [
1518
+ ["parent", %r{^projects/[^/]+/instances/[^/]+/databases/[^/]+/?$}, false]
1519
+ ]
1520
+ )
1521
+ transcoder.transcode request_pb
1522
+ end
1523
+
1524
+ ##
1525
+ # @private
1526
+ #
1527
+ # GRPC transcoding helper method for the get_backup_schedule REST call
1528
+ #
1529
+ # @param request_pb [::Google::Cloud::Spanner::Admin::Database::V1::GetBackupScheduleRequest]
1530
+ # A request object representing the call parameters. Required.
1531
+ # @return [Array(String, [String, nil], Hash{String => String})]
1532
+ # Uri, Body, Query string parameters
1533
+ def self.transcode_get_backup_schedule_request request_pb
1534
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1535
+ .with_bindings(
1536
+ uri_method: :get,
1537
+ uri_template: "/v1/{name}",
1538
+ matches: [
1539
+ ["name", %r{^projects/[^/]+/instances/[^/]+/databases/[^/]+/backupSchedules/[^/]+/?$}, false]
1540
+ ]
1541
+ )
1542
+ transcoder.transcode request_pb
1543
+ end
1544
+
1545
+ ##
1546
+ # @private
1547
+ #
1548
+ # GRPC transcoding helper method for the update_backup_schedule REST call
1549
+ #
1550
+ # @param request_pb [::Google::Cloud::Spanner::Admin::Database::V1::UpdateBackupScheduleRequest]
1551
+ # A request object representing the call parameters. Required.
1552
+ # @return [Array(String, [String, nil], Hash{String => String})]
1553
+ # Uri, Body, Query string parameters
1554
+ def self.transcode_update_backup_schedule_request request_pb
1555
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1556
+ .with_bindings(
1557
+ uri_method: :patch,
1558
+ uri_template: "/v1/{backup_schedule.name}",
1559
+ body: "backup_schedule",
1560
+ matches: [
1561
+ ["backup_schedule.name", %r{^projects/[^/]+/instances/[^/]+/databases/[^/]+/backupSchedules/[^/]+/?$}, false]
1562
+ ]
1563
+ )
1564
+ transcoder.transcode request_pb
1565
+ end
1566
+
1567
+ ##
1568
+ # @private
1569
+ #
1570
+ # GRPC transcoding helper method for the delete_backup_schedule REST call
1571
+ #
1572
+ # @param request_pb [::Google::Cloud::Spanner::Admin::Database::V1::DeleteBackupScheduleRequest]
1573
+ # A request object representing the call parameters. Required.
1574
+ # @return [Array(String, [String, nil], Hash{String => String})]
1575
+ # Uri, Body, Query string parameters
1576
+ def self.transcode_delete_backup_schedule_request request_pb
1577
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1578
+ .with_bindings(
1579
+ uri_method: :delete,
1580
+ uri_template: "/v1/{name}",
1581
+ matches: [
1582
+ ["name", %r{^projects/[^/]+/instances/[^/]+/databases/[^/]+/backupSchedules/[^/]+/?$}, false]
1583
+ ]
1584
+ )
1585
+ transcoder.transcode request_pb
1586
+ end
1587
+
1588
+ ##
1589
+ # @private
1590
+ #
1591
+ # GRPC transcoding helper method for the list_backup_schedules REST call
1592
+ #
1593
+ # @param request_pb [::Google::Cloud::Spanner::Admin::Database::V1::ListBackupSchedulesRequest]
1594
+ # A request object representing the call parameters. Required.
1595
+ # @return [Array(String, [String, nil], Hash{String => String})]
1596
+ # Uri, Body, Query string parameters
1597
+ def self.transcode_list_backup_schedules_request request_pb
1598
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1599
+ .with_bindings(
1600
+ uri_method: :get,
1601
+ uri_template: "/v1/{parent}/backupSchedules",
1602
+ matches: [
1603
+ ["parent", %r{^projects/[^/]+/instances/[^/]+/databases/[^/]+/?$}, false]
1604
+ ]
1605
+ )
1606
+ transcoder.transcode request_pb
1607
+ end
1287
1608
  end
1288
1609
  end
1289
1610
  end
@@ -39,7 +39,7 @@ module Google
39
39
  # The Cloud Spanner Database Admin API can be used to:
40
40
  # * create, drop, and list databases
41
41
  # * update the schema of pre-existing databases
42
- # * create, delete and list backups for a database
42
+ # * create, delete, copy and list backups for a database
43
43
  # * restore a database from an existing backup
44
44
  #
45
45
  # To load this service and instantiate a REST client:
@@ -40,7 +40,7 @@ module Google
40
40
  # The Cloud Spanner Database Admin API can be used to:
41
41
  # * create, drop, and list databases
42
42
  # * update the schema of pre-existing databases
43
- # * create, delete and list backups for a database
43
+ # * create, delete, copy and list backups for a database
44
44
  # * restore a database from an existing backup
45
45
  #
46
46
  # @example Load this service and instantiate a gRPC client
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Database
25
25
  module V1
26
- VERSION = "0.18.0"
26
+ VERSION = "0.20.0"
27
27
  end
28
28
  end
29
29
  end
@@ -12,7 +12,7 @@ require 'google/protobuf/timestamp_pb'
12
12
  require 'google/spanner/admin/database/v1/common_pb'
13
13
 
14
14
 
15
- descriptor_data = "\n-google/spanner/admin/database/v1/backup.proto\x12 google.spanner.admin.database.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-google/spanner/admin/database/v1/common.proto\"\xc3\x06\n\x06\x42\x61\x63kup\x12\x36\n\x08\x64\x61tabase\x18\x02 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x30\n\x0cversion_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x42\n\x05state\x18\x06 \x01(\x0e\x32..google.spanner.admin.database.v1.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x15referencing_databases\x18\x07 \x03(\tB\'\xe0\x41\x03\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12N\n\x0f\x65ncryption_info\x18\x08 \x01(\x0b\x32\x30.google.spanner.admin.database.v1.EncryptionInfoB\x03\xe0\x41\x03\x12P\n\x10\x64\x61tabase_dialect\x18\n \x01(\x0e\x32\x31.google.spanner.admin.database.v1.DatabaseDialectB\x03\xe0\x41\x03\x12\x42\n\x13referencing_backups\x18\x0b \x03(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x38\n\x0fmax_expire_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02:\\\xea\x41Y\n\x1dspanner.googleapis.com/Backup\x12\x38projects/{project}/instances/{instance}/backups/{backup}\"\x85\x02\n\x13\x43reateBackupRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12=\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32(.google.spanner.admin.database.v1.BackupB\x03\xe0\x41\x02\x12^\n\x11\x65ncryption_config\x18\x04 \x01(\x0b\x32>.google.spanner.admin.database.v1.CreateBackupEncryptionConfigB\x03\xe0\x41\x01\"\xf8\x01\n\x14\x43reateBackupMetadata\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x36\n\x08\x64\x61tabase\x18\x02 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x45\n\x08progress\x18\x03 \x01(\x0b\x32\x33.google.spanner.admin.database.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb6\x02\n\x11\x43opyBackupRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\rsource_backup\x18\x03 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\\\n\x11\x65ncryption_config\x18\x05 \x01(\x0b\x32<.google.spanner.admin.database.v1.CopyBackupEncryptionConfigB\x03\xe0\x41\x01\"\xf9\x01\n\x12\x43opyBackupMetadata\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x39\n\rsource_backup\x18\x02 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x45\n\x08progress\x18\x03 \x01(\x0b\x32\x33.google.spanner.admin.database.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8a\x01\n\x13UpdateBackupRequest\x12=\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32(.google.spanner.admin.database.v1.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"G\n\x10GetBackupRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\"J\n\x13\x44\x65leteBackupRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\"\x84\x01\n\x12ListBackupsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"i\n\x13ListBackupsResponse\x12\x39\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32(.google.spanner.admin.database.v1.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8d\x01\n\x1bListBackupOperationsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"j\n\x1cListBackupOperationsResponse\x12\x31\n\noperations\x18\x01 \x03(\x0b\x32\x1d.google.longrunning.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe2\x01\n\nBackupInfo\x12\x32\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x30\n\x0cversion_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x0fsource_database\x18\x03 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\"\xdd\x02\n\x1c\x43reateBackupEncryptionConfig\x12k\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32M.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionTypeB\x03\xe0\x41\x02\x12?\n\x0ckms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"\x8e\x01\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17USE_DATABASE_ENCRYPTION\x10\x01\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x02\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x03\"\xe9\x02\n\x1a\x43opyBackupEncryptionConfig\x12i\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32K.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionTypeB\x03\xe0\x41\x02\x12?\n\x0ckms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"\x9e\x01\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12+\n\'USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION\x10\x01\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x02\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x03\x42\xfd\x01\n$com.google.spanner.admin.database.v1B\x0b\x42\x61\x63kupProtoP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/databasepb;databasepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1b\x06proto3"
15
+ descriptor_data = "\n-google/spanner/admin/database/v1/backup.proto\x12 google.spanner.admin.database.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-google/spanner/admin/database/v1/common.proto\"\xb9\x07\n\x06\x42\x61\x63kup\x12\x36\n\x08\x64\x61tabase\x18\x02 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x30\n\x0cversion_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x42\n\x05state\x18\x06 \x01(\x0e\x32..google.spanner.admin.database.v1.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x15referencing_databases\x18\x07 \x03(\tB\'\xe0\x41\x03\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12N\n\x0f\x65ncryption_info\x18\x08 \x01(\x0b\x32\x30.google.spanner.admin.database.v1.EncryptionInfoB\x03\xe0\x41\x03\x12U\n\x16\x65ncryption_information\x18\r \x03(\x0b\x32\x30.google.spanner.admin.database.v1.EncryptionInfoB\x03\xe0\x41\x03\x12P\n\x10\x64\x61tabase_dialect\x18\n \x01(\x0e\x32\x31.google.spanner.admin.database.v1.DatabaseDialectB\x03\xe0\x41\x03\x12\x42\n\x13referencing_backups\x18\x0b \x03(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x38\n\x0fmax_expire_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1d\n\x10\x62\x61\x63kup_schedules\x18\x0e \x03(\tB\x03\xe0\x41\x03\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02:\\\xea\x41Y\n\x1dspanner.googleapis.com/Backup\x12\x38projects/{project}/instances/{instance}/backups/{backup}\"\x85\x02\n\x13\x43reateBackupRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12=\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32(.google.spanner.admin.database.v1.BackupB\x03\xe0\x41\x02\x12^\n\x11\x65ncryption_config\x18\x04 \x01(\x0b\x32>.google.spanner.admin.database.v1.CreateBackupEncryptionConfigB\x03\xe0\x41\x01\"\xf8\x01\n\x14\x43reateBackupMetadata\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x36\n\x08\x64\x61tabase\x18\x02 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x45\n\x08progress\x18\x03 \x01(\x0b\x32\x33.google.spanner.admin.database.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb6\x02\n\x11\x43opyBackupRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\rsource_backup\x18\x03 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\\\n\x11\x65ncryption_config\x18\x05 \x01(\x0b\x32<.google.spanner.admin.database.v1.CopyBackupEncryptionConfigB\x03\xe0\x41\x01\"\xf9\x01\n\x12\x43opyBackupMetadata\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x39\n\rsource_backup\x18\x02 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x45\n\x08progress\x18\x03 \x01(\x0b\x32\x33.google.spanner.admin.database.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8a\x01\n\x13UpdateBackupRequest\x12=\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32(.google.spanner.admin.database.v1.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"G\n\x10GetBackupRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\"J\n\x13\x44\x65leteBackupRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\"\x84\x01\n\x12ListBackupsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"i\n\x13ListBackupsResponse\x12\x39\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32(.google.spanner.admin.database.v1.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8d\x01\n\x1bListBackupOperationsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"j\n\x1cListBackupOperationsResponse\x12\x31\n\noperations\x18\x01 \x03(\x0b\x32\x1d.google.longrunning.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe2\x01\n\nBackupInfo\x12\x32\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x30\n\x0cversion_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x0fsource_database\x18\x03 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\"\x9f\x03\n\x1c\x43reateBackupEncryptionConfig\x12k\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32M.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionTypeB\x03\xe0\x41\x02\x12?\n\x0ckms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12@\n\rkms_key_names\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"\x8e\x01\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17USE_DATABASE_ENCRYPTION\x10\x01\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x02\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x03\"\xab\x03\n\x1a\x43opyBackupEncryptionConfig\x12i\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32K.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionTypeB\x03\xe0\x41\x02\x12?\n\x0ckms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12@\n\rkms_key_names\x18\x03 \x03(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"\x9e\x01\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12+\n\'USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION\x10\x01\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x02\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x03\"\x10\n\x0e\x46ullBackupSpecB\xfd\x01\n$com.google.spanner.admin.database.v1B\x0b\x42\x61\x63kupProtoP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/databasepb;databasepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1b\x06proto3"
16
16
 
17
17
  pool = Google::Protobuf::DescriptorPool.generated_pool
18
18
 
@@ -66,6 +66,7 @@ module Google
66
66
  CreateBackupEncryptionConfig::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType").enummodule
67
67
  CopyBackupEncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.CopyBackupEncryptionConfig").msgclass
68
68
  CopyBackupEncryptionConfig::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType").enummodule
69
+ FullBackupSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.FullBackupSpec").msgclass
69
70
  end
70
71
  end
71
72
  end
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/spanner/admin/database/v1/backup_schedule.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/protobuf/duration_pb'
10
+ require 'google/protobuf/field_mask_pb'
11
+ require 'google/protobuf/timestamp_pb'
12
+ require 'google/spanner/admin/database/v1/backup_pb'
13
+
14
+
15
+ descriptor_data = "\n6google/spanner/admin/database/v1/backup_schedule.proto\x12 google.spanner.admin.database.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-google/spanner/admin/database/v1/backup.proto\"i\n\x12\x42\x61\x63kupScheduleSpec\x12\x42\n\tcron_spec\x18\x01 \x01(\x0b\x32-.google.spanner.admin.database.v1.CrontabSpecH\x00\x42\x0f\n\rschedule_spec\"\xc8\x04\n\x0e\x42\x61\x63kupSchedule\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x04spec\x18\x06 \x01(\x0b\x32\x34.google.spanner.admin.database.v1.BackupScheduleSpecB\x03\xe0\x41\x01\x12:\n\x12retention_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12^\n\x11\x65ncryption_config\x18\x04 \x01(\x0b\x32>.google.spanner.admin.database.v1.CreateBackupEncryptionConfigB\x03\xe0\x41\x01\x12L\n\x10\x66ull_backup_spec\x18\x07 \x01(\x0b\x32\x30.google.spanner.admin.database.v1.FullBackupSpecH\x00\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\xa5\x01\xea\x41\xa1\x01\n%spanner.googleapis.com/BackupSchedule\x12Wprojects/{project}/instances/{instance}/databases/{database}/backupSchedules/{schedule}*\x0f\x62\x61\x63kupSchedules2\x0e\x62\x61\x63kupScheduleB\x12\n\x10\x62\x61\x63kup_type_spec\"q\n\x0b\x43rontabSpec\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\ttime_zone\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x37\n\x0f\x63reation_window\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\"\xc7\x01\n\x1b\x43reateBackupScheduleRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x1f\n\x12\x62\x61\x63kup_schedule_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12N\n\x0f\x62\x61\x63kup_schedule\x18\x03 \x01(\x0b\x32\x30.google.spanner.admin.database.v1.BackupScheduleB\x03\xe0\x41\x02\"W\n\x18GetBackupScheduleRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%spanner.googleapis.com/BackupSchedule\"Z\n\x1b\x44\x65leteBackupScheduleRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%spanner.googleapis.com/BackupSchedule\"\x86\x01\n\x1aListBackupSchedulesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x1bListBackupSchedulesResponse\x12J\n\x10\x62\x61\x63kup_schedules\x18\x01 \x03(\x0b\x32\x30.google.spanner.admin.database.v1.BackupSchedule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa3\x01\n\x1bUpdateBackupScheduleRequest\x12N\n\x0f\x62\x61\x63kup_schedule\x18\x01 \x01(\x0b\x32\x30.google.spanner.admin.database.v1.BackupScheduleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x42\x85\x02\n$com.google.spanner.admin.database.v1B\x13\x42\x61\x63kupScheduleProtoP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/databasepb;databasepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1b\x06proto3"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
31
+ ["google.spanner.admin.database.v1.CreateBackupEncryptionConfig", "google/spanner/admin/database/v1/backup.proto"],
32
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
33
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
34
+ ]
35
+ imports.each do |type_name, expected_filename|
36
+ import_file = pool.lookup(type_name).file_descriptor
37
+ if import_file.name != expected_filename
38
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
39
+ end
40
+ end
41
+ warn "Each proto file must use a consistent fully-qualified name."
42
+ warn "This will become an error in the next major version."
43
+ end
44
+
45
+ module Google
46
+ module Cloud
47
+ module Spanner
48
+ module Admin
49
+ module Database
50
+ module V1
51
+ BackupScheduleSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.BackupScheduleSpec").msgclass
52
+ BackupSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.BackupSchedule").msgclass
53
+ CrontabSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.CrontabSpec").msgclass
54
+ CreateBackupScheduleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.CreateBackupScheduleRequest").msgclass
55
+ GetBackupScheduleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.GetBackupScheduleRequest").msgclass
56
+ DeleteBackupScheduleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.DeleteBackupScheduleRequest").msgclass
57
+ ListBackupSchedulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.ListBackupSchedulesRequest").msgclass
58
+ ListBackupSchedulesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.ListBackupSchedulesResponse").msgclass
59
+ UpdateBackupScheduleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.UpdateBackupScheduleRequest").msgclass
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -10,7 +10,7 @@ require 'google/protobuf/timestamp_pb'
10
10
  require 'google/rpc/status_pb'
11
11
 
12
12
 
13
- descriptor_data = "\n-google/spanner/admin/database/v1/common.proto\x12 google.spanner.admin.database.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x8b\x01\n\x11OperationProgress\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"P\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"\xc2\x02\n\x0e\x45ncryptionInfo\x12S\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x35.google.spanner.admin.database.v1.EncryptionInfo.TypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\\\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02*\\\n\x0f\x44\x61tabaseDialect\x12 \n\x1c\x44\x41TABASE_DIALECT_UNSPECIFIED\x10\x00\x12\x17\n\x13GOOGLE_STANDARD_SQL\x10\x01\x12\x0e\n\nPOSTGRESQL\x10\x02\x42\xa2\x04\n$com.google.spanner.admin.database.v1B\x0b\x43ommonProtoP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/databasepb;databasepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3"
13
+ descriptor_data = "\n-google/spanner/admin/database/v1/common.proto\x12 google.spanner.admin.database.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x8b\x01\n\x11OperationProgress\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8f\x01\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12=\n\rkms_key_names\x18\x03 \x03(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"\xc2\x02\n\x0e\x45ncryptionInfo\x12S\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x35.google.spanner.admin.database.v1.EncryptionInfo.TypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\\\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02*\\\n\x0f\x44\x61tabaseDialect\x12 \n\x1c\x44\x41TABASE_DIALECT_UNSPECIFIED\x10\x00\x12\x17\n\x13GOOGLE_STANDARD_SQL\x10\x01\x12\x0e\n\nPOSTGRESQL\x10\x02\x42\xa2\x04\n$com.google.spanner.admin.database.v1B\x0b\x43ommonProtoP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/databasepb;databasepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3"
14
14
 
15
15
  pool = Google::Protobuf::DescriptorPool.generated_pool
16
16