google-cloud-spanner-admin-database-v1 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a906c9e0249cb12fd35f80ab73c41499429ac686e3b418adbe6472c1992b7a16
4
- data.tar.gz: 9b2ec3c81f0af21a1d4b2807c77aba62b3dcdeeb1e5e8e49116abf0f593ca31b
3
+ metadata.gz: 7ced9b319e69ecc07d77b483c794383fcd5e05610ae88ffedb25d5994669bffd
4
+ data.tar.gz: 8c3edc635fcf3ca39855705bdd593b6f184149bf8f118f96ccb49b3eb8397753
5
5
  SHA512:
6
- metadata.gz: c9c57065ec0f804d5ddae7ffe98301b86450b9f6592ef353880485191066b3e18cec6a57475c932e4bca985ae85b1148937e09f5808fd317f4079934205d0b1a
7
- data.tar.gz: f4703b338abce065eee039ec97ef3984bee3f9da529bdce154660947e3f038daf09b2c5e03596ec2c780edae6f954aaac096822d913e3385eda0e977be8d629c
6
+ metadata.gz: a7a5d27c5cc695752232478c06394fb77cf17611ee4800184d6d533e838c1d05b674866cd54ecb405196fa3820c5cd84a82de94ed67664405b74a76b57bf4706
7
+ data.tar.gz: 3195e20baefcb410f0384965f39414b0322b9421911fffe4a5067eb74d7cdb49ac69d9c80e5c7d615257b671c6ecb0b17fd8a705d0aafcbdd4581948aa269704
@@ -19,7 +19,7 @@ during development.
19
19
  2. Set the [environment variable](#environment-variables).
20
20
 
21
21
  ```sh
22
- export SPANNER_DATABASE_ADMIN_CREDENTIALS=path/to/keyfile.json
22
+ export SPANNER_CREDENTIALS=path/to/keyfile.json
23
23
  ```
24
24
 
25
25
  3. Initialize the client.
@@ -66,8 +66,8 @@ The environment variables that google-cloud-spanner-admin-database-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Credentials}):
68
68
 
69
- 1. `SPANNER_DATABASE_ADMIN_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `SPANNER_DATABASE_ADMIN_KEYFILE` - Path to JSON file, or JSON contents
69
+ 1. `SPANNER_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ 2. `SPANNER_KEYFILE` - Path to JSON file, or JSON contents
71
71
  3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
72
  4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
73
  5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
@@ -75,7 +75,7 @@ checks for credentials are configured on the service Credentials class (such as
75
75
  ```ruby
76
76
  require "google/cloud/spanner/admin/database/v1"
77
77
 
78
- ENV["SPANNER_DATABASE_ADMIN_CREDENTIALS"] = "path/to/keyfile.json"
78
+ ENV["SPANNER_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
80
80
  client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.new
81
81
  ```
@@ -37,3 +37,6 @@ module Google
37
37
  end
38
38
  end
39
39
  end
40
+
41
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
42
+ require "google/cloud/spanner/admin/database/v1/_helpers" if ::File.file? helper_path
@@ -77,7 +77,7 @@ module Google
77
77
  initial_delay: 1.0,
78
78
  max_delay: 32.0,
79
79
  multiplier: 1.3,
80
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
80
+ retry_codes: [14, 4]
81
81
  }
82
82
 
83
83
  default_config.rpcs.create_database.timeout = 3600.0
@@ -87,7 +87,7 @@ module Google
87
87
  initial_delay: 1.0,
88
88
  max_delay: 32.0,
89
89
  multiplier: 1.3,
90
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
90
+ retry_codes: [14, 4]
91
91
  }
92
92
 
93
93
  default_config.rpcs.update_database_ddl.timeout = 3600.0
@@ -95,7 +95,7 @@ module Google
95
95
  initial_delay: 1.0,
96
96
  max_delay: 32.0,
97
97
  multiplier: 1.3,
98
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
98
+ retry_codes: [14, 4]
99
99
  }
100
100
 
101
101
  default_config.rpcs.drop_database.timeout = 3600.0
@@ -103,7 +103,7 @@ module Google
103
103
  initial_delay: 1.0,
104
104
  max_delay: 32.0,
105
105
  multiplier: 1.3,
106
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
106
+ retry_codes: [14, 4]
107
107
  }
108
108
 
109
109
  default_config.rpcs.get_database_ddl.timeout = 3600.0
@@ -111,7 +111,7 @@ module Google
111
111
  initial_delay: 1.0,
112
112
  max_delay: 32.0,
113
113
  multiplier: 1.3,
114
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
114
+ retry_codes: [14, 4]
115
115
  }
116
116
 
117
117
  default_config.rpcs.set_iam_policy.timeout = 30.0
@@ -121,7 +121,7 @@ module Google
121
121
  initial_delay: 1.0,
122
122
  max_delay: 32.0,
123
123
  multiplier: 1.3,
124
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
124
+ retry_codes: [14, 4]
125
125
  }
126
126
 
127
127
  default_config.rpcs.test_iam_permissions.timeout = 30.0
@@ -133,17 +133,23 @@ module Google
133
133
  initial_delay: 1.0,
134
134
  max_delay: 32.0,
135
135
  multiplier: 1.3,
136
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
136
+ retry_codes: [14, 4]
137
137
  }
138
138
 
139
139
  default_config.rpcs.update_backup.timeout = 3600.0
140
+ default_config.rpcs.update_backup.retry_policy = {
141
+ initial_delay: 1.0,
142
+ max_delay: 32.0,
143
+ multiplier: 1.3,
144
+ retry_codes: [14, 4]
145
+ }
140
146
 
141
147
  default_config.rpcs.delete_backup.timeout = 3600.0
142
148
  default_config.rpcs.delete_backup.retry_policy = {
143
149
  initial_delay: 1.0,
144
150
  max_delay: 32.0,
145
151
  multiplier: 1.3,
146
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
152
+ retry_codes: [14, 4]
147
153
  }
148
154
 
149
155
  default_config.rpcs.list_backups.timeout = 3600.0
@@ -151,7 +157,7 @@ module Google
151
157
  initial_delay: 1.0,
152
158
  max_delay: 32.0,
153
159
  multiplier: 1.3,
154
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
160
+ retry_codes: [14, 4]
155
161
  }
156
162
 
157
163
  default_config.rpcs.restore_database.timeout = 3600.0
@@ -161,7 +167,7 @@ module Google
161
167
  initial_delay: 1.0,
162
168
  max_delay: 32.0,
163
169
  multiplier: 1.3,
164
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
170
+ retry_codes: [14, 4]
165
171
  }
166
172
 
167
173
  default_config.rpcs.list_backup_operations.timeout = 3600.0
@@ -169,7 +175,7 @@ module Google
169
175
  initial_delay: 1.0,
170
176
  max_delay: 32.0,
171
177
  multiplier: 1.3,
172
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
178
+ retry_codes: [14, 4]
173
179
  }
174
180
 
175
181
  default_config
@@ -1801,7 +1807,7 @@ module Google
1801
1807
 
1802
1808
  config_attr :endpoint, "spanner.googleapis.com", ::String
1803
1809
  config_attr :credentials, nil do |value|
1804
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1810
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1805
1811
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1806
1812
  allowed.any? { |klass| klass === value }
1807
1813
  end
@@ -1841,7 +1847,7 @@ module Google
1841
1847
  # Each configuration object is of type `Gapic::Config::Method` and includes
1842
1848
  # the following configuration fields:
1843
1849
  #
1844
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
1850
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1845
1851
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1846
1852
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1847
1853
  # include the following keys:
@@ -32,13 +32,13 @@ module Google
32
32
  "https://www.googleapis.com/auth/spanner.admin"
33
33
  ]
34
34
  self.env_vars = [
35
- "SPANNER_DATABASE_ADMIN_CREDENTIALS",
36
- "SPANNER_DATABASE_ADMIN_KEYFILE",
35
+ "SPANNER_CREDENTIALS",
36
+ "SPANNER_KEYFILE",
37
37
  "GOOGLE_CLOUD_CREDENTIALS",
38
38
  "GOOGLE_CLOUD_KEYFILE",
39
39
  "GCLOUD_KEYFILE",
40
- "SPANNER_DATABASE_ADMIN_CREDENTIALS_JSON",
41
- "SPANNER_DATABASE_ADMIN_KEYFILE_JSON",
40
+ "SPANNER_CREDENTIALS_JSON",
41
+ "SPANNER_KEYFILE_JSON",
42
42
  "GOOGLE_CLOUD_CREDENTIALS_JSON",
43
43
  "GOOGLE_CLOUD_KEYFILE_JSON",
44
44
  "GCLOUD_KEYFILE_JSON"
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  config_attr :endpoint, "spanner.googleapis.com", ::String
479
479
  config_attr :credentials, nil do |value|
480
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
480
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
481
481
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
482
482
  allowed.any? { |klass| klass === value }
483
483
  end
@@ -517,7 +517,7 @@ module Google
517
517
  # Each configuration object is of type `Gapic::Config::Method` and includes
518
518
  # the following configuration fields:
519
519
  #
520
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
520
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
521
521
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
522
522
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
523
523
  # include the following keys:
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Database
25
25
  module V1
26
- VERSION = "0.1.0"
26
+ VERSION = "0.2.1"
27
27
  end
28
28
  end
29
29
  end
@@ -63,6 +63,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
63
63
  optional :database, :string, 1
64
64
  repeated :statements, :string, 2
65
65
  repeated :commit_timestamps, :message, 3, "google.protobuf.Timestamp"
66
+ optional :throttled, :bool, 4
66
67
  end
67
68
  add_message "google.spanner.admin.database.v1.DropDatabaseRequest" do
68
69
  optional :database, :string, 1
@@ -41,7 +41,7 @@ module Google
41
41
  self.service_name = 'google.spanner.admin.database.v1.DatabaseAdmin'
42
42
 
43
43
  # Lists Cloud Spanner databases.
44
- rpc :ListDatabases, Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesRequest, Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesResponse
44
+ rpc :ListDatabases, ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesRequest, ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesResponse
45
45
  # Creates a new Cloud Spanner database and starts to prepare it for serving.
46
46
  # The returned [long-running operation][google.longrunning.Operation] will
47
47
  # have a name of the format `<database_name>/operations/<operation_id>` and
@@ -50,9 +50,9 @@ module Google
50
50
  # [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The
51
51
  # [response][google.longrunning.Operation.response] field type is
52
52
  # [Database][google.spanner.admin.database.v1.Database], if successful.
53
- rpc :CreateDatabase, Google::Cloud::Spanner::Admin::Database::V1::CreateDatabaseRequest, Google::Longrunning::Operation
53
+ rpc :CreateDatabase, ::Google::Cloud::Spanner::Admin::Database::V1::CreateDatabaseRequest, ::Google::Longrunning::Operation
54
54
  # Gets the state of a Cloud Spanner database.
55
- rpc :GetDatabase, Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseRequest, Google::Cloud::Spanner::Admin::Database::V1::Database
55
+ rpc :GetDatabase, ::Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseRequest, ::Google::Cloud::Spanner::Admin::Database::V1::Database
56
56
  # Updates the schema of a Cloud Spanner database by
57
57
  # creating/altering/dropping tables, columns, indexes, etc. The returned
58
58
  # [long-running operation][google.longrunning.Operation] will have a name of
@@ -60,15 +60,15 @@ module Google
60
60
  # track execution of the schema change(s). The
61
61
  # [metadata][google.longrunning.Operation.metadata] field type is
62
62
  # [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
63
- rpc :UpdateDatabaseDdl, Google::Cloud::Spanner::Admin::Database::V1::UpdateDatabaseDdlRequest, Google::Longrunning::Operation
63
+ rpc :UpdateDatabaseDdl, ::Google::Cloud::Spanner::Admin::Database::V1::UpdateDatabaseDdlRequest, ::Google::Longrunning::Operation
64
64
  # Drops (aka deletes) a Cloud Spanner database.
65
65
  # Completed backups for the database will be retained according to their
66
66
  # `expire_time`.
67
- rpc :DropDatabase, Google::Cloud::Spanner::Admin::Database::V1::DropDatabaseRequest, Google::Protobuf::Empty
67
+ rpc :DropDatabase, ::Google::Cloud::Spanner::Admin::Database::V1::DropDatabaseRequest, ::Google::Protobuf::Empty
68
68
  # Returns the schema of a Cloud Spanner database as a list of formatted
69
69
  # DDL statements. This method does not show pending schema updates, those may
70
70
  # be queried using the [Operations][google.longrunning.Operations] API.
71
- rpc :GetDatabaseDdl, Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseDdlRequest, Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseDdlResponse
71
+ rpc :GetDatabaseDdl, ::Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseDdlRequest, ::Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseDdlResponse
72
72
  # Sets the access control policy on a database or backup resource.
73
73
  # Replaces any existing policy.
74
74
  #
@@ -76,7 +76,7 @@ module Google
76
76
  # permission on [resource][google.iam.v1.SetIamPolicyRequest.resource].
77
77
  # For backups, authorization requires `spanner.backups.setIamPolicy`
78
78
  # permission on [resource][google.iam.v1.SetIamPolicyRequest.resource].
79
- rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
79
+ rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
80
80
  # Gets the access control policy for a database or backup resource.
81
81
  # Returns an empty policy if a database or backup exists but does not have a
82
82
  # policy set.
@@ -85,7 +85,7 @@ module Google
85
85
  # [resource][google.iam.v1.GetIamPolicyRequest.resource].
86
86
  # For backups, authorization requires `spanner.backups.getIamPolicy`
87
87
  # permission on [resource][google.iam.v1.GetIamPolicyRequest.resource].
88
- rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
88
+ rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
89
89
  # Returns permissions that the caller has on the specified database or backup
90
90
  # resource.
91
91
  #
@@ -96,7 +96,7 @@ module Google
96
96
  # Calling this method on a backup that does not exist will
97
97
  # result in a NOT_FOUND error if the user has
98
98
  # `spanner.backups.list` permission on the containing instance.
99
- rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
99
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
100
100
  # Starts creating a new Cloud Spanner Backup.
101
101
  # The returned backup [long-running operation][google.longrunning.Operation]
102
102
  # will have a name of the format
@@ -109,17 +109,17 @@ module Google
109
109
  # creation and delete the backup.
110
110
  # There can be only one pending backup creation per database. Backup creation
111
111
  # of different databases can run concurrently.
112
- rpc :CreateBackup, Google::Cloud::Spanner::Admin::Database::V1::CreateBackupRequest, Google::Longrunning::Operation
112
+ rpc :CreateBackup, ::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupRequest, ::Google::Longrunning::Operation
113
113
  # Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
114
- rpc :GetBackup, Google::Cloud::Spanner::Admin::Database::V1::GetBackupRequest, Google::Cloud::Spanner::Admin::Database::V1::Backup
114
+ rpc :GetBackup, ::Google::Cloud::Spanner::Admin::Database::V1::GetBackupRequest, ::Google::Cloud::Spanner::Admin::Database::V1::Backup
115
115
  # Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
116
- rpc :UpdateBackup, Google::Cloud::Spanner::Admin::Database::V1::UpdateBackupRequest, Google::Cloud::Spanner::Admin::Database::V1::Backup
116
+ rpc :UpdateBackup, ::Google::Cloud::Spanner::Admin::Database::V1::UpdateBackupRequest, ::Google::Cloud::Spanner::Admin::Database::V1::Backup
117
117
  # Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
118
- rpc :DeleteBackup, Google::Cloud::Spanner::Admin::Database::V1::DeleteBackupRequest, Google::Protobuf::Empty
118
+ rpc :DeleteBackup, ::Google::Cloud::Spanner::Admin::Database::V1::DeleteBackupRequest, ::Google::Protobuf::Empty
119
119
  # Lists completed and pending backups.
120
120
  # Backups returned are ordered by `create_time` in descending order,
121
121
  # starting from the most recent `create_time`.
122
- rpc :ListBackups, Google::Cloud::Spanner::Admin::Database::V1::ListBackupsRequest, Google::Cloud::Spanner::Admin::Database::V1::ListBackupsResponse
122
+ rpc :ListBackups, ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupsRequest, ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupsResponse
123
123
  # Create a new database by restoring from a completed backup. The new
124
124
  # database must be in the same project and in an instance with the same
125
125
  # instance configuration as the instance containing
@@ -137,7 +137,7 @@ module Google
137
137
  # Once the restore operation completes, a new restore operation can be
138
138
  # initiated, without waiting for the optimize operation associated with the
139
139
  # first restore to complete.
140
- rpc :RestoreDatabase, Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseRequest, Google::Longrunning::Operation
140
+ rpc :RestoreDatabase, ::Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseRequest, ::Google::Longrunning::Operation
141
141
  # Lists database [longrunning-operations][google.longrunning.Operation].
142
142
  # A database operation has a name of the form
143
143
  # `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`.
@@ -146,7 +146,7 @@ module Google
146
146
  # `metadata.type_url` describes the type of the metadata. Operations returned
147
147
  # include those that have completed/failed/canceled within the last 7 days,
148
148
  # and pending operations.
149
- rpc :ListDatabaseOperations, Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseOperationsRequest, Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseOperationsResponse
149
+ rpc :ListDatabaseOperations, ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseOperationsRequest, ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseOperationsResponse
150
150
  # Lists the backup [long-running operations][google.longrunning.Operation] in
151
151
  # the given instance. A backup operation has a name of the form
152
152
  # `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation>`.
@@ -157,7 +157,7 @@ module Google
157
157
  # and pending operations. Operations returned are ordered by
158
158
  # `operation.metadata.value.progress.start_time` in descending order starting
159
159
  # from the most recently started operation.
160
- rpc :ListBackupOperations, Google::Cloud::Spanner::Admin::Database::V1::ListBackupOperationsRequest, Google::Cloud::Spanner::Admin::Database::V1::ListBackupOperationsResponse
160
+ rpc :ListBackupOperations, ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupOperationsRequest, ::Google::Cloud::Spanner::Admin::Database::V1::ListBackupOperationsResponse
161
161
  end
162
162
 
163
163
  Stub = Service.rpc_stub_class
@@ -43,12 +43,12 @@ module Google
43
43
  #
44
44
  # The ResourceDescriptor Yaml config will look like:
45
45
  #
46
- # resources:
47
- # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/\\{project}/topics/\\{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/\\{project}"
46
+ # resources:
47
+ # - type: "pubsub.googleapis.com/Topic"
48
+ # name_descriptor:
49
+ # - pattern: "projects/{project}/topics/{topic}"
50
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
+ # parent_name_extractor: "projects/{project}"
52
52
  #
53
53
  # Sometimes, resources have multiple patterns, typically because they can
54
54
  # live under multiple parents.
@@ -183,15 +183,24 @@ module Google
183
183
  # }
184
184
  # @!attribute [rw] plural
185
185
  # @return [::String]
186
- # The plural name used in the resource name, such as 'projects' for
187
- # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
- # field in k8s CRD spec
186
+ # The plural name used in the resource name and permission names, such as
187
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
188
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
189
+ # concept of the `plural` field in k8s CRD spec
189
190
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
191
+ #
192
+ # Note: The plural form is required even for singleton resources. See
193
+ # https://aip.dev/156
190
194
  # @!attribute [rw] singular
191
195
  # @return [::String]
192
196
  # The same concept of the `singular` field in k8s CRD spec
193
197
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
198
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
199
+ # @!attribute [rw] style
200
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
201
+ # Style flag(s) for this resource.
202
+ # These indicate that a resource is expected to conform to a given
203
+ # style. See the specific style flags for additional information.
195
204
  class ResourceDescriptor
196
205
  include ::Google::Protobuf::MessageExts
197
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -211,6 +220,22 @@ module Google
211
220
  # that from being necessary once there are multiple patterns.)
212
221
  FUTURE_MULTI_PATTERN = 2
213
222
  end
223
+
224
+ # A flag representing a specific style that a resource claims to conform to.
225
+ module Style
226
+ # The unspecified value. Do not use.
227
+ STYLE_UNSPECIFIED = 0
228
+
229
+ # This resource is intended to be "declarative-friendly".
230
+ #
231
+ # Declarative-friendly resources must be more strictly consistent, and
232
+ # setting this to true communicates to tools that this resource should
233
+ # adhere to declarative-friendly expectations.
234
+ #
235
+ # Note: This is used by the API linter (linter.aip.dev) to enable
236
+ # additional checks.
237
+ DECLARATIVE_FRIENDLY = 1
238
+ end
214
239
  end
215
240
 
216
241
  # Defines a proto annotation that describes a string field that refers to
@@ -226,6 +251,17 @@ module Google
226
251
  # type: "pubsub.googleapis.com/Topic"
227
252
  # }];
228
253
  # }
254
+ #
255
+ # Occasionally, a field may reference an arbitrary resource. In this case,
256
+ # APIs use the special value * in their resource reference.
257
+ #
258
+ # Example:
259
+ #
260
+ # message GetIamPolicyRequest {
261
+ # string resource = 2 [(google.api.resource_reference) = {
262
+ # type: "*"
263
+ # }];
264
+ # }
229
265
  # @!attribute [rw] child_type
230
266
  # @return [::String]
231
267
  # The resource type of a child collection that the annotated field
@@ -234,11 +270,11 @@ module Google
234
270
  #
235
271
  # Example:
236
272
  #
237
- # message ListLogEntriesRequest {
238
- # string parent = 1 [(google.api.resource_reference) = {
239
- # child_type: "logging.googleapis.com/LogEntry"
240
- # };
241
- # }
273
+ # message ListLogEntriesRequest {
274
+ # string parent = 1 [(google.api.resource_reference) = {
275
+ # child_type: "logging.googleapis.com/LogEntry"
276
+ # };
277
+ # }
242
278
  class ResourceReference
243
279
  include ::Google::Protobuf::MessageExts
244
280
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -220,6 +220,11 @@ module Google
220
220
  # Reports the commit timestamps of all statements that have
221
221
  # succeeded so far, where `commit_timestamps[i]` is the commit
222
222
  # timestamp for the statement `statements[i]`.
223
+ # @!attribute [r] throttled
224
+ # @return [::Boolean]
225
+ # Output only. When true, indicates that the operation is throttled e.g
226
+ # due to resource constraints. When resources become available the operation
227
+ # will resume and this field will be false again.
223
228
  class UpdateDatabaseDdlMetadata
224
229
  include ::Google::Protobuf::MessageExts
225
230
  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.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-06 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
228
  - !ruby/object:Gem::Version
229
229
  version: '0'
230
230
  requirements: []
231
- rubygems_version: 3.1.3
231
+ rubygems_version: 3.2.6
232
232
  signing_key:
233
233
  specification_version: 4
234
234
  summary: API Client library for the Cloud Spanner Database Admin V1 API