google-cloud-spanner-admin-database-v1 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38328804718433b12c9422707c62c5a2860f6d49d9e30e2b5618386fd039967c
4
- data.tar.gz: f688ab1055a703babe7cfd2198c23c9f725380fe01773373a67b4a9c4ac3284a
3
+ metadata.gz: 71abcf8dd2d3be6ce66337af3ea8cce45352060da6f5a7cd503512bbcc8ecbde
4
+ data.tar.gz: 0d92c2b6201a29a0680875f0097b060935b2814e3505e32c7015ab9c241af10f
5
5
  SHA512:
6
- metadata.gz: ba3ec39b5f1263114c9e56734e8df0ac372909858b432d736abd5f558c2e5e6f51a61ab96c8eb110d240bd16895e3b419239916ec689b1fe40bc5ca220ee86a5
7
- data.tar.gz: 9fc030210c542c23e65bcecc9a941a906950bbf7c8295210aa4e0e6d509945a5b761fdabcf48cc200e3fb6ced559d000af3d9e21851b17a340b6bccba77a8399
6
+ metadata.gz: 0be9b4ac8c5e3937ab7a0481410fb196d836fe653398de0bcce8e558c3d1236a5ce8f596d741c8c86fe79cb49de9518de3bae87c6263c91c263c02da26807325
7
+ data.tar.gz: af453963e8a0db745601efd13473d95623028fe93b0983cb91bd8b5f056f0e55375c7058da21d6dbb6bea0a7e66a77be4cfdd6a717bc127e72f81ab57f15a11e
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesRequest.ne
37
37
  response = client.list_databases request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-spanner-admin-database-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/spanner)
@@ -31,10 +31,11 @@ module Google
31
31
  #
32
32
  # Cloud Spanner Database Admin API
33
33
  #
34
- # The Cloud Spanner Database Admin API can be used to create, drop, and
35
- # list databases. It also enables updating the schema of pre-existing
36
- # databases. It can be also used to create, delete and list backups for a
37
- # database and to restore from an existing backup.
34
+ # The Cloud Spanner Database Admin API can be used to:
35
+ # * create, drop, and list databases
36
+ # * update the schema of pre-existing databases
37
+ # * create, delete and list backups for a database
38
+ # * restore a database from an existing backup
38
39
  #
39
40
  class Client
40
41
  include Paths
@@ -354,7 +355,7 @@ module Google
354
355
  # @param options [::Gapic::CallOptions, ::Hash]
355
356
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
356
357
  #
357
- # @overload create_database(parent: nil, create_statement: nil, extra_statements: nil, encryption_config: nil)
358
+ # @overload create_database(parent: nil, create_statement: nil, extra_statements: nil, encryption_config: nil, database_dialect: nil)
358
359
  # Pass arguments to `create_database` via keyword arguments. Note that at
359
360
  # least one keyword argument is required. To specify no parameters, or to keep all
360
361
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -377,6 +378,8 @@ module Google
377
378
  # Optional. The encryption configuration for the database. If this field is not
378
379
  # specified, Cloud Spanner will encrypt/decrypt all data at rest using
379
380
  # Google default encryption.
381
+ # @param database_dialect [::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect]
382
+ # Optional. The dialect of the Cloud Spanner Database.
380
383
  #
381
384
  # @yield [response, operation] Access the result along with the RPC operation
382
385
  # @yieldparam response [::Gapic::Operation]
@@ -661,6 +664,8 @@ module Google
661
664
  # Drops (aka deletes) a Cloud Spanner database.
662
665
  # Completed backups for the database will be retained according to their
663
666
  # `expire_time`.
667
+ # Note: Cloud Spanner might continue to accept requests for a few seconds
668
+ # after the database has been deleted.
664
669
  #
665
670
  # @overload drop_database(request, options = nil)
666
671
  # Pass arguments to `drop_database` via a request object, either of type
@@ -36,10 +36,11 @@ module Google
36
36
  ##
37
37
  # Cloud Spanner Database Admin API
38
38
  #
39
- # The Cloud Spanner Database Admin API can be used to create, drop, and
40
- # list databases. It also enables updating the schema of pre-existing
41
- # databases. It can be also used to create, delete and list backups for a
42
- # database and to restore from an existing backup.
39
+ # The Cloud Spanner Database Admin API can be used to:
40
+ # * create, drop, and list databases
41
+ # * update the schema of pre-existing databases
42
+ # * create, delete and list backups for a database
43
+ # * restore a database from an existing backup
43
44
  #
44
45
  # To load this service and instantiate a client:
45
46
  #
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Database
25
25
  module V1
26
- VERSION = "0.7.5"
26
+ VERSION = "0.7.6"
27
27
  end
28
28
  end
29
29
  end
@@ -27,6 +27,8 @@ module Google
27
27
  ##
28
28
  # To load this package, including all its services, and instantiate a client:
29
29
  #
30
+ # @example
31
+ #
30
32
  # require "google/cloud/spanner/admin/database/v1"
31
33
  # client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.new
32
34
  #
@@ -7,7 +7,6 @@ require 'google/longrunning/operations_pb'
7
7
  require 'google/protobuf/field_mask_pb'
8
8
  require 'google/protobuf/timestamp_pb'
9
9
  require 'google/spanner/admin/database/v1/common_pb'
10
- require 'google/api/annotations_pb'
11
10
  require 'google/protobuf'
12
11
 
13
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -22,6 +21,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
21
  optional :state, :enum, 6, "google.spanner.admin.database.v1.Backup.State"
23
22
  repeated :referencing_databases, :string, 7
24
23
  optional :encryption_info, :message, 8, "google.spanner.admin.database.v1.EncryptionInfo"
24
+ optional :database_dialect, :enum, 10, "google.spanner.admin.database.v1.DatabaseDialect"
25
25
  end
26
26
  add_enum "google.spanner.admin.database.v1.Backup.State" do
27
27
  value :STATE_UNSPECIFIED, 0
@@ -5,7 +5,6 @@ require 'google/api/field_behavior_pb'
5
5
  require 'google/api/resource_pb'
6
6
  require 'google/protobuf/timestamp_pb'
7
7
  require 'google/rpc/status_pb'
8
- require 'google/api/annotations_pb'
9
8
  require 'google/protobuf'
10
9
 
11
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -28,6 +27,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
27
  value :GOOGLE_DEFAULT_ENCRYPTION, 1
29
28
  value :CUSTOMER_MANAGED_ENCRYPTION, 2
30
29
  end
30
+ add_enum "google.spanner.admin.database.v1.DatabaseDialect" do
31
+ value :DATABASE_DIALECT_UNSPECIFIED, 0
32
+ value :GOOGLE_STANDARD_SQL, 1
33
+ value :POSTGRESQL, 2
34
+ end
31
35
  end
32
36
  end
33
37
 
@@ -41,6 +45,7 @@ module Google
41
45
  EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.EncryptionConfig").msgclass
42
46
  EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.EncryptionInfo").msgclass
43
47
  EncryptionInfo::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.EncryptionInfo.Type").enummodule
48
+ DatabaseDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.DatabaseDialect").enummodule
44
49
  end
45
50
  end
46
51
  end
@@ -32,6 +32,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
32
32
  optional :version_retention_period, :string, 6
33
33
  optional :earliest_version_time, :message, 7, "google.protobuf.Timestamp"
34
34
  optional :default_leader, :string, 9
35
+ optional :database_dialect, :enum, 10, "google.spanner.admin.database.v1.DatabaseDialect"
35
36
  end
36
37
  add_enum "google.spanner.admin.database.v1.Database.State" do
37
38
  value :STATE_UNSPECIFIED, 0
@@ -53,6 +54,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
53
54
  optional :create_statement, :string, 2
54
55
  repeated :extra_statements, :string, 3
55
56
  optional :encryption_config, :message, 4, "google.spanner.admin.database.v1.EncryptionConfig"
57
+ optional :database_dialect, :enum, 5, "google.spanner.admin.database.v1.DatabaseDialect"
56
58
  end
57
59
  add_message "google.spanner.admin.database.v1.CreateDatabaseMetadata" do
58
60
  optional :database, :string, 1
@@ -28,10 +28,11 @@ module Google
28
28
  module DatabaseAdmin
29
29
  # Cloud Spanner Database Admin API
30
30
  #
31
- # The Cloud Spanner Database Admin API can be used to create, drop, and
32
- # list databases. It also enables updating the schema of pre-existing
33
- # databases. It can be also used to create, delete and list backups for a
34
- # database and to restore from an existing backup.
31
+ # The Cloud Spanner Database Admin API can be used to:
32
+ # * create, drop, and list databases
33
+ # * update the schema of pre-existing databases
34
+ # * create, delete and list backups for a database
35
+ # * restore a database from an existing backup
35
36
  class Service
36
37
 
37
38
  include ::GRPC::GenericService
@@ -64,6 +65,8 @@ module Google
64
65
  # Drops (aka deletes) a Cloud Spanner database.
65
66
  # Completed backups for the database will be retained according to their
66
67
  # `expire_time`.
68
+ # Note: Cloud Spanner might continue to accept requests for a few seconds
69
+ # after the database has been deleted.
67
70
  rpc :DropDatabase, ::Google::Cloud::Spanner::Admin::Database::V1::DropDatabaseRequest, ::Google::Protobuf::Empty
68
71
  # Returns the schema of a Cloud Spanner database as a list of formatted
69
72
  # DDL statements. This method does not show pending schema updates, those may
@@ -83,6 +83,9 @@ module Google
83
83
  # @!attribute [r] encryption_info
84
84
  # @return [::Google::Cloud::Spanner::Admin::Database::V1::EncryptionInfo]
85
85
  # Output only. The encryption information for the backup.
86
+ # @!attribute [r] database_dialect
87
+ # @return [::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect]
88
+ # Output only. The database dialect information for the backup.
86
89
  class Backup
87
90
  include ::Google::Protobuf::MessageExts
88
91
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -85,6 +85,19 @@ module Google
85
85
  CUSTOMER_MANAGED_ENCRYPTION = 2
86
86
  end
87
87
  end
88
+
89
+ # Indicates the dialect type of a database.
90
+ module DatabaseDialect
91
+ # Default value. This value will create a database with the
92
+ # GOOGLE_STANDARD_SQL dialect.
93
+ DATABASE_DIALECT_UNSPECIFIED = 0
94
+
95
+ # Google standard SQL.
96
+ GOOGLE_STANDARD_SQL = 1
97
+
98
+ # PostgreSQL supported SQL.
99
+ POSTGRESQL = 2
100
+ end
88
101
  end
89
102
  end
90
103
  end
@@ -93,6 +93,9 @@ module Google
93
93
  # This is the same as the value of default_leader
94
94
  # database option set using DatabaseAdmin.CreateDatabase or
95
95
  # DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty.
96
+ # @!attribute [r] database_dialect
97
+ # @return [::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect]
98
+ # Output only. The dialect of the Cloud Spanner Database.
96
99
  class Database
97
100
  include ::Google::Protobuf::MessageExts
98
101
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -177,6 +180,9 @@ module Google
177
180
  # Optional. The encryption configuration for the database. If this field is not
178
181
  # specified, Cloud Spanner will encrypt/decrypt all data at rest using
179
182
  # Google default encryption.
183
+ # @!attribute [rw] database_dialect
184
+ # @return [::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect]
185
+ # Optional. The dialect of the Cloud Spanner Database.
180
186
  class CreateDatabaseRequest
181
187
  include ::Google::Protobuf::MessageExts
182
188
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner-admin-database-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  - !ruby/object:Gem::Version
238
238
  version: '0'
239
239
  requirements: []
240
- rubygems_version: 3.3.4
240
+ rubygems_version: 3.3.5
241
241
  signing_key:
242
242
  specification_version: 4
243
243
  summary: API Client library for the Cloud Spanner Database Admin V1 API