google-cloud-spanner-admin-instance-v1 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cbc3b9b230f8cb03bfcfa5061b6ffbb42739143205c2231912043fe2246a566
4
- data.tar.gz: a9bda15aef7e49883aa8a930d8b81a17767b56ffe3423adf55a6c8cc62c0ae04
3
+ metadata.gz: d8bc8b610343b25f69db2b5e63509accbe8b346c0bfe5b9f64563c816b75bc71
4
+ data.tar.gz: 0eb84a44b077dfa932d882a6beab741615cd0a01d24644d228f3549e459fa8a5
5
5
  SHA512:
6
- metadata.gz: c1c4b00144734df2c9dbaa1fb0ef7a2ef5e4982e929d8beb645bfefdba9970f17096b17e7471f239275ff64083c987d13349610691218f5d4f3fbc1fd006d095
7
- data.tar.gz: 8bea08695308ffd2bf078bd5d6ef43132f30d9cca18ff4c777008a1c7eb17b0a4342d3568f67d426dca21ce05c95ac72e6562cca06b06d3d9b8ddd89a12212e2
6
+ metadata.gz: 87b6106d46242c1e012f48d557326d39d8d2aac1eb9c125649f8ed9472330f2b907872d0126bb698b893fac2ae828e7ff9be5ee2be2126147d79610fcf152f7c
7
+ data.tar.gz: c27bbb793bc515e0745688952475d5f4e75af7292a5f1f3581478a756f3db1e9d340021143d4e62fff4a7abcb34c1c8ba109ef27663328151129b0f3d3b8a989
@@ -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/instance/v1/_helpers" if ::File.file? helper_path
@@ -1192,7 +1192,7 @@ module Google
1192
1192
  # Each configuration object is of type `Gapic::Config::Method` and includes
1193
1193
  # the following configuration fields:
1194
1194
  #
1195
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
1195
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1196
1196
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1197
1197
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1198
1198
  # include the following keys:
@@ -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 Instance
25
25
  module V1
26
- VERSION = "0.1.3"
26
+ VERSION = "0.1.4"
27
27
  end
28
28
  end
29
29
  end
@@ -56,13 +56,13 @@ module Google
56
56
  self.service_name = 'google.spanner.admin.instance.v1.InstanceAdmin'
57
57
 
58
58
  # Lists the supported instance configurations for a given project.
59
- rpc :ListInstanceConfigs, Google::Cloud::Spanner::Admin::Instance::V1::ListInstanceConfigsRequest, Google::Cloud::Spanner::Admin::Instance::V1::ListInstanceConfigsResponse
59
+ rpc :ListInstanceConfigs, ::Google::Cloud::Spanner::Admin::Instance::V1::ListInstanceConfigsRequest, ::Google::Cloud::Spanner::Admin::Instance::V1::ListInstanceConfigsResponse
60
60
  # Gets information about a particular instance configuration.
61
- rpc :GetInstanceConfig, Google::Cloud::Spanner::Admin::Instance::V1::GetInstanceConfigRequest, Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig
61
+ rpc :GetInstanceConfig, ::Google::Cloud::Spanner::Admin::Instance::V1::GetInstanceConfigRequest, ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig
62
62
  # Lists all instances in the given project.
63
- rpc :ListInstances, Google::Cloud::Spanner::Admin::Instance::V1::ListInstancesRequest, Google::Cloud::Spanner::Admin::Instance::V1::ListInstancesResponse
63
+ rpc :ListInstances, ::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancesRequest, ::Google::Cloud::Spanner::Admin::Instance::V1::ListInstancesResponse
64
64
  # Gets information about a particular instance.
65
- rpc :GetInstance, Google::Cloud::Spanner::Admin::Instance::V1::GetInstanceRequest, Google::Cloud::Spanner::Admin::Instance::V1::Instance
65
+ rpc :GetInstance, ::Google::Cloud::Spanner::Admin::Instance::V1::GetInstanceRequest, ::Google::Cloud::Spanner::Admin::Instance::V1::Instance
66
66
  # Creates an instance and begins preparing it to begin serving. The
67
67
  # returned [long-running operation][google.longrunning.Operation]
68
68
  # can be used to track the progress of preparing the new
@@ -97,7 +97,7 @@ module Google
97
97
  # [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
98
98
  # The [response][google.longrunning.Operation.response] field type is
99
99
  # [Instance][google.spanner.admin.instance.v1.Instance], if successful.
100
- rpc :CreateInstance, Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceRequest, Google::Longrunning::Operation
100
+ rpc :CreateInstance, ::Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceRequest, ::Google::Longrunning::Operation
101
101
  # Updates an instance, and begins allocating or releasing resources
102
102
  # as requested. The returned [long-running
103
103
  # operation][google.longrunning.Operation] can be used to track the
@@ -138,7 +138,7 @@ module Google
138
138
  #
139
139
  # Authorization requires `spanner.instances.update` permission on
140
140
  # resource [name][google.spanner.admin.instance.v1.Instance.name].
141
- rpc :UpdateInstance, Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstanceRequest, Google::Longrunning::Operation
141
+ rpc :UpdateInstance, ::Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstanceRequest, ::Google::Longrunning::Operation
142
142
  # Deletes an instance.
143
143
  #
144
144
  # Immediately upon completion of the request:
@@ -150,26 +150,26 @@ module Google
150
150
  # * The instance and *all of its databases* immediately and
151
151
  # irrevocably disappear from the API. All data in the databases
152
152
  # is permanently deleted.
153
- rpc :DeleteInstance, Google::Cloud::Spanner::Admin::Instance::V1::DeleteInstanceRequest, Google::Protobuf::Empty
153
+ rpc :DeleteInstance, ::Google::Cloud::Spanner::Admin::Instance::V1::DeleteInstanceRequest, ::Google::Protobuf::Empty
154
154
  # Sets the access control policy on an instance resource. Replaces any
155
155
  # existing policy.
156
156
  #
157
157
  # Authorization requires `spanner.instances.setIamPolicy` on
158
158
  # [resource][google.iam.v1.SetIamPolicyRequest.resource].
159
- rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
159
+ rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
160
160
  # Gets the access control policy for an instance resource. Returns an empty
161
161
  # policy if an instance exists but does not have a policy set.
162
162
  #
163
163
  # Authorization requires `spanner.instances.getIamPolicy` on
164
164
  # [resource][google.iam.v1.GetIamPolicyRequest.resource].
165
- rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
165
+ rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
166
166
  # Returns permissions that the caller has on the specified instance resource.
167
167
  #
168
168
  # Attempting this RPC on a non-existent Cloud Spanner instance resource will
169
169
  # result in a NOT_FOUND error if the user has `spanner.instances.list`
170
170
  # permission on the containing Google Cloud Project. Otherwise returns an
171
171
  # empty set of permissions.
172
- rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
172
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
173
173
  end
174
174
 
175
175
  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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner-admin-instance-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
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-08-10 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
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 3.1.3
227
+ rubygems_version: 3.2.6
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: API Client library for the Cloud Spanner Instance Admin V1 API