google-cloud-spanner 1.16.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/CHANGELOG.md +23 -0
  4. data/lib/google-cloud-spanner.rb +10 -13
  5. data/lib/google/cloud/spanner.rb +6 -8
  6. data/lib/google/cloud/spanner/admin/database/credentials.rb +2 -2
  7. data/lib/google/cloud/spanner/admin/instance/credentials.rb +2 -2
  8. data/lib/google/cloud/spanner/backup.rb +1 -1
  9. data/lib/google/cloud/spanner/backup/job.rb +2 -2
  10. data/lib/google/cloud/spanner/backup/job/list.rb +2 -2
  11. data/lib/google/cloud/spanner/backup/list.rb +1 -2
  12. data/lib/google/cloud/spanner/backup/restore/job.rb +2 -2
  13. data/lib/google/cloud/spanner/batch_client.rb +2 -2
  14. data/lib/google/cloud/spanner/batch_snapshot.rb +6 -8
  15. data/lib/google/cloud/spanner/batch_update.rb +1 -1
  16. data/lib/google/cloud/spanner/client.rb +8 -8
  17. data/lib/google/cloud/spanner/commit.rb +14 -14
  18. data/lib/google/cloud/spanner/convert.rb +7 -7
  19. data/lib/google/cloud/spanner/credentials.rb +2 -2
  20. data/lib/google/cloud/spanner/data.rb +2 -2
  21. data/lib/google/cloud/spanner/database.rb +22 -22
  22. data/lib/google/cloud/spanner/database/backup_info.rb +1 -1
  23. data/lib/google/cloud/spanner/database/job.rb +3 -3
  24. data/lib/google/cloud/spanner/database/job/list.rb +2 -2
  25. data/lib/google/cloud/spanner/database/list.rb +1 -1
  26. data/lib/google/cloud/spanner/database/restore_info.rb +1 -1
  27. data/lib/google/cloud/spanner/fields.rb +8 -8
  28. data/lib/google/cloud/spanner/instance.rb +5 -12
  29. data/lib/google/cloud/spanner/instance/config.rb +1 -1
  30. data/lib/google/cloud/spanner/instance/config/list.rb +1 -1
  31. data/lib/google/cloud/spanner/instance/job.rb +2 -2
  32. data/lib/google/cloud/spanner/instance/list.rb +1 -1
  33. data/lib/google/cloud/spanner/partition.rb +4 -4
  34. data/lib/google/cloud/spanner/policy.rb +2 -2
  35. data/lib/google/cloud/spanner/service.rb +209 -297
  36. data/lib/google/cloud/spanner/session.rb +9 -9
  37. data/lib/google/cloud/spanner/snapshot.rb +2 -2
  38. data/lib/google/cloud/spanner/transaction.rb +2 -2
  39. data/lib/google/cloud/spanner/version.rb +1 -1
  40. metadata +18 -107
  41. data/lib/google/cloud/spanner/admin/database.rb +0 -149
  42. data/lib/google/cloud/spanner/admin/database/v1.rb +0 -147
  43. data/lib/google/cloud/spanner/admin/database/v1/credentials.rb +0 -46
  44. data/lib/google/cloud/spanner/admin/database/v1/database_admin_client.rb +0 -1513
  45. data/lib/google/cloud/spanner/admin/database/v1/database_admin_client_config.json +0 -111
  46. data/lib/google/cloud/spanner/admin/database/v1/doc/google/iam/v1/iam_policy.rb +0 -64
  47. data/lib/google/cloud/spanner/admin/database/v1/doc/google/iam/v1/options.rb +0 -33
  48. data/lib/google/cloud/spanner/admin/database/v1/doc/google/iam/v1/policy.rb +0 -151
  49. data/lib/google/cloud/spanner/admin/database/v1/doc/google/longrunning/operations.rb +0 -51
  50. data/lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/any.rb +0 -131
  51. data/lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/empty.rb +0 -29
  52. data/lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/field_mask.rb +0 -222
  53. data/lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/timestamp.rb +0 -113
  54. data/lib/google/cloud/spanner/admin/database/v1/doc/google/rpc/status.rb +0 -39
  55. data/lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/backup.rb +0 -325
  56. data/lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb +0 -368
  57. data/lib/google/cloud/spanner/admin/database/v1/doc/google/type/expr.rb +0 -45
  58. data/lib/google/cloud/spanner/admin/instance.rb +0 -164
  59. data/lib/google/cloud/spanner/admin/instance/v1.rb +0 -162
  60. data/lib/google/cloud/spanner/admin/instance/v1/credentials.rb +0 -46
  61. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/iam_policy.rb +0 -64
  62. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/options.rb +0 -33
  63. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/policy.rb +0 -151
  64. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/longrunning/operations.rb +0 -51
  65. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/any.rb +0 -131
  66. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/empty.rb +0 -29
  67. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/field_mask.rb +0 -222
  68. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/rpc/status.rb +0 -39
  69. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/spanner/admin/instance/v1/spanner_instance_admin.rb +0 -334
  70. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/type/expr.rb +0 -45
  71. data/lib/google/cloud/spanner/admin/instance/v1/instance_admin_client.rb +0 -975
  72. data/lib/google/cloud/spanner/admin/instance/v1/instance_admin_client_config.json +0 -76
  73. data/lib/google/cloud/spanner/v1.rb +0 -16
  74. data/lib/google/cloud/spanner/v1/credentials.rb +0 -42
  75. data/lib/google/cloud/spanner/v1/doc/google/protobuf/any.rb +0 -131
  76. data/lib/google/cloud/spanner/v1/doc/google/protobuf/duration.rb +0 -91
  77. data/lib/google/cloud/spanner/v1/doc/google/protobuf/empty.rb +0 -29
  78. data/lib/google/cloud/spanner/v1/doc/google/protobuf/struct.rb +0 -74
  79. data/lib/google/cloud/spanner/v1/doc/google/protobuf/timestamp.rb +0 -113
  80. data/lib/google/cloud/spanner/v1/doc/google/rpc/status.rb +0 -39
  81. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/keys.rb +0 -150
  82. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/mutation.rb +0 -95
  83. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/query_plan.rb +0 -121
  84. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/result_set.rb +0 -190
  85. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb +0 -570
  86. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/transaction.rb +0 -432
  87. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/type.rb +0 -112
  88. data/lib/google/cloud/spanner/v1/spanner_client.rb +0 -1485
  89. data/lib/google/cloud/spanner/v1/spanner_client_config.json +0 -121
  90. data/lib/google/spanner/admin/database/v1/backup_pb.rb +0 -98
  91. data/lib/google/spanner/admin/database/v1/common_pb.rb +0 -28
  92. data/lib/google/spanner/admin/database/v1/spanner_database_admin_pb.rb +0 -141
  93. data/lib/google/spanner/admin/database/v1/spanner_database_admin_services_pb.rb +0 -169
  94. data/lib/google/spanner/admin/instance/v1/spanner_instance_admin_pb.rb +0 -125
  95. data/lib/google/spanner/admin/instance/v1/spanner_instance_admin_services_pb.rb +0 -181
  96. data/lib/google/spanner/v1/keys_pb.rb +0 -34
  97. data/lib/google/spanner/v1/mutation_pb.rb +0 -39
  98. data/lib/google/spanner/v1/query_plan_pb.rb +0 -48
  99. data/lib/google/spanner/v1/result_set_pb.rb +0 -48
  100. data/lib/google/spanner/v1/spanner_pb.rb +0 -179
  101. data/lib/google/spanner/v1/spanner_services_pb.rb +0 -179
  102. data/lib/google/spanner/v1/transaction_pb.rb +0 -56
  103. data/lib/google/spanner/v1/type_pb.rb +0 -44
@@ -1,125 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/spanner/admin/instance/v1/spanner_instance_admin.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/resource_pb'
11
- require 'google/iam/v1/iam_policy_pb'
12
- require 'google/iam/v1/policy_pb'
13
- require 'google/longrunning/operations_pb'
14
- require 'google/protobuf/empty_pb'
15
- require 'google/protobuf/field_mask_pb'
16
- require 'google/protobuf/timestamp_pb'
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_message "google.spanner.admin.instance.v1.ReplicaInfo" do
19
- optional :location, :string, 1
20
- optional :type, :enum, 2, "google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType"
21
- optional :default_leader_location, :bool, 3
22
- end
23
- add_enum "google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType" do
24
- value :TYPE_UNSPECIFIED, 0
25
- value :READ_WRITE, 1
26
- value :READ_ONLY, 2
27
- value :WITNESS, 3
28
- end
29
- add_message "google.spanner.admin.instance.v1.InstanceConfig" do
30
- optional :name, :string, 1
31
- optional :display_name, :string, 2
32
- repeated :replicas, :message, 3, "google.spanner.admin.instance.v1.ReplicaInfo"
33
- end
34
- add_message "google.spanner.admin.instance.v1.Instance" do
35
- optional :name, :string, 1
36
- optional :config, :string, 2
37
- optional :display_name, :string, 3
38
- optional :node_count, :int32, 5
39
- optional :state, :enum, 6, "google.spanner.admin.instance.v1.Instance.State"
40
- map :labels, :string, :string, 7
41
- repeated :endpoint_uris, :string, 8
42
- end
43
- add_enum "google.spanner.admin.instance.v1.Instance.State" do
44
- value :STATE_UNSPECIFIED, 0
45
- value :CREATING, 1
46
- value :READY, 2
47
- end
48
- add_message "google.spanner.admin.instance.v1.ListInstanceConfigsRequest" do
49
- optional :parent, :string, 1
50
- optional :page_size, :int32, 2
51
- optional :page_token, :string, 3
52
- end
53
- add_message "google.spanner.admin.instance.v1.ListInstanceConfigsResponse" do
54
- repeated :instance_configs, :message, 1, "google.spanner.admin.instance.v1.InstanceConfig"
55
- optional :next_page_token, :string, 2
56
- end
57
- add_message "google.spanner.admin.instance.v1.GetInstanceConfigRequest" do
58
- optional :name, :string, 1
59
- end
60
- add_message "google.spanner.admin.instance.v1.GetInstanceRequest" do
61
- optional :name, :string, 1
62
- optional :field_mask, :message, 2, "google.protobuf.FieldMask"
63
- end
64
- add_message "google.spanner.admin.instance.v1.CreateInstanceRequest" do
65
- optional :parent, :string, 1
66
- optional :instance_id, :string, 2
67
- optional :instance, :message, 3, "google.spanner.admin.instance.v1.Instance"
68
- end
69
- add_message "google.spanner.admin.instance.v1.ListInstancesRequest" do
70
- optional :parent, :string, 1
71
- optional :page_size, :int32, 2
72
- optional :page_token, :string, 3
73
- optional :filter, :string, 4
74
- end
75
- add_message "google.spanner.admin.instance.v1.ListInstancesResponse" do
76
- repeated :instances, :message, 1, "google.spanner.admin.instance.v1.Instance"
77
- optional :next_page_token, :string, 2
78
- end
79
- add_message "google.spanner.admin.instance.v1.UpdateInstanceRequest" do
80
- optional :instance, :message, 1, "google.spanner.admin.instance.v1.Instance"
81
- optional :field_mask, :message, 2, "google.protobuf.FieldMask"
82
- end
83
- add_message "google.spanner.admin.instance.v1.DeleteInstanceRequest" do
84
- optional :name, :string, 1
85
- end
86
- add_message "google.spanner.admin.instance.v1.CreateInstanceMetadata" do
87
- optional :instance, :message, 1, "google.spanner.admin.instance.v1.Instance"
88
- optional :start_time, :message, 2, "google.protobuf.Timestamp"
89
- optional :cancel_time, :message, 3, "google.protobuf.Timestamp"
90
- optional :end_time, :message, 4, "google.protobuf.Timestamp"
91
- end
92
- add_message "google.spanner.admin.instance.v1.UpdateInstanceMetadata" do
93
- optional :instance, :message, 1, "google.spanner.admin.instance.v1.Instance"
94
- optional :start_time, :message, 2, "google.protobuf.Timestamp"
95
- optional :cancel_time, :message, 3, "google.protobuf.Timestamp"
96
- optional :end_time, :message, 4, "google.protobuf.Timestamp"
97
- end
98
- end
99
-
100
- module Google
101
- module Spanner
102
- module Admin
103
- module Instance
104
- module V1
105
- ReplicaInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.ReplicaInfo").msgclass
106
- ReplicaInfo::ReplicaType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType").enummodule
107
- InstanceConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.InstanceConfig").msgclass
108
- Instance = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.Instance").msgclass
109
- Instance::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.Instance.State").enummodule
110
- ListInstanceConfigsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.ListInstanceConfigsRequest").msgclass
111
- ListInstanceConfigsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.ListInstanceConfigsResponse").msgclass
112
- GetInstanceConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.GetInstanceConfigRequest").msgclass
113
- GetInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.GetInstanceRequest").msgclass
114
- CreateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.CreateInstanceRequest").msgclass
115
- ListInstancesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.ListInstancesRequest").msgclass
116
- ListInstancesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.ListInstancesResponse").msgclass
117
- UpdateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.UpdateInstanceRequest").msgclass
118
- DeleteInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.DeleteInstanceRequest").msgclass
119
- CreateInstanceMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.CreateInstanceMetadata").msgclass
120
- UpdateInstanceMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.UpdateInstanceMetadata").msgclass
121
- end
122
- end
123
- end
124
- end
125
- end
@@ -1,181 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/spanner/admin/instance/v1/spanner_instance_admin.proto for package 'google.spanner.admin.instance.v1'
3
- # Original file comments:
4
- # Copyright 2020 Google LLC
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
-
20
- require 'grpc'
21
- require 'google/spanner/admin/instance/v1/spanner_instance_admin_pb'
22
-
23
- module Google
24
- module Spanner
25
- module Admin
26
- module Instance
27
- module V1
28
- module InstanceAdmin
29
- # Cloud Spanner Instance Admin API
30
- #
31
- # The Cloud Spanner Instance Admin API can be used to create, delete,
32
- # modify and list instances. Instances are dedicated Cloud Spanner serving
33
- # and storage resources to be used by Cloud Spanner databases.
34
- #
35
- # Each instance has a "configuration", which dictates where the
36
- # serving resources for the Cloud Spanner instance are located (e.g.,
37
- # US-central, Europe). Configurations are created by Google based on
38
- # resource availability.
39
- #
40
- # Cloud Spanner billing is based on the instances that exist and their
41
- # sizes. After an instance exists, there are no additional
42
- # per-database or per-operation charges for use of the instance
43
- # (though there may be additional network bandwidth charges).
44
- # Instances offer isolation: problems with databases in one instance
45
- # will not affect other instances. However, within an instance
46
- # databases can affect each other. For example, if one database in an
47
- # instance receives a lot of requests and consumes most of the
48
- # instance resources, fewer resources are available for other
49
- # databases in that instance, and their performance may suffer.
50
- class Service
51
-
52
- include GRPC::GenericService
53
-
54
- self.marshal_class_method = :encode
55
- self.unmarshal_class_method = :decode
56
- self.service_name = 'google.spanner.admin.instance.v1.InstanceAdmin'
57
-
58
- # Lists the supported instance configurations for a given project.
59
- rpc :ListInstanceConfigs, ListInstanceConfigsRequest, ListInstanceConfigsResponse
60
- # Gets information about a particular instance configuration.
61
- rpc :GetInstanceConfig, GetInstanceConfigRequest, InstanceConfig
62
- # Lists all instances in the given project.
63
- rpc :ListInstances, ListInstancesRequest, ListInstancesResponse
64
- # Gets information about a particular instance.
65
- rpc :GetInstance, GetInstanceRequest, Instance
66
- # Creates an instance and begins preparing it to begin serving. The
67
- # returned [long-running operation][google.longrunning.Operation]
68
- # can be used to track the progress of preparing the new
69
- # instance. The instance name is assigned by the caller. If the
70
- # named instance already exists, `CreateInstance` returns
71
- # `ALREADY_EXISTS`.
72
- #
73
- # Immediately upon completion of this request:
74
- #
75
- # * The instance is readable via the API, with all requested attributes
76
- # but no allocated resources. Its state is `CREATING`.
77
- #
78
- # Until completion of the returned operation:
79
- #
80
- # * Cancelling the operation renders the instance immediately unreadable
81
- # via the API.
82
- # * The instance can be deleted.
83
- # * All other attempts to modify the instance are rejected.
84
- #
85
- # Upon completion of the returned operation:
86
- #
87
- # * Billing for all successfully-allocated resources begins (some types
88
- # may have lower than the requested levels).
89
- # * Databases can be created in the instance.
90
- # * The instance's allocated resource levels are readable via the API.
91
- # * The instance's state becomes `READY`.
92
- #
93
- # The returned [long-running operation][google.longrunning.Operation] will
94
- # have a name of the format `<instance_name>/operations/<operation_id>` and
95
- # can be used to track creation of the instance. The
96
- # [metadata][google.longrunning.Operation.metadata] field type is
97
- # [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
98
- # The [response][google.longrunning.Operation.response] field type is
99
- # [Instance][google.spanner.admin.instance.v1.Instance], if successful.
100
- rpc :CreateInstance, CreateInstanceRequest, Google::Longrunning::Operation
101
- # Updates an instance, and begins allocating or releasing resources
102
- # as requested. The returned [long-running
103
- # operation][google.longrunning.Operation] can be used to track the
104
- # progress of updating the instance. If the named instance does not
105
- # exist, returns `NOT_FOUND`.
106
- #
107
- # Immediately upon completion of this request:
108
- #
109
- # * For resource types for which a decrease in the instance's allocation
110
- # has been requested, billing is based on the newly-requested level.
111
- #
112
- # Until completion of the returned operation:
113
- #
114
- # * Cancelling the operation sets its metadata's
115
- # [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time], and begins
116
- # restoring resources to their pre-request values. The operation
117
- # is guaranteed to succeed at undoing all resource changes,
118
- # after which point it terminates with a `CANCELLED` status.
119
- # * All other attempts to modify the instance are rejected.
120
- # * Reading the instance via the API continues to give the pre-request
121
- # resource levels.
122
- #
123
- # Upon completion of the returned operation:
124
- #
125
- # * Billing begins for all successfully-allocated resources (some types
126
- # may have lower than the requested levels).
127
- # * All newly-reserved resources are available for serving the instance's
128
- # tables.
129
- # * The instance's new resource levels are readable via the API.
130
- #
131
- # The returned [long-running operation][google.longrunning.Operation] will
132
- # have a name of the format `<instance_name>/operations/<operation_id>` and
133
- # can be used to track the instance modification. The
134
- # [metadata][google.longrunning.Operation.metadata] field type is
135
- # [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
136
- # The [response][google.longrunning.Operation.response] field type is
137
- # [Instance][google.spanner.admin.instance.v1.Instance], if successful.
138
- #
139
- # Authorization requires `spanner.instances.update` permission on
140
- # resource [name][google.spanner.admin.instance.v1.Instance.name].
141
- rpc :UpdateInstance, UpdateInstanceRequest, Google::Longrunning::Operation
142
- # Deletes an instance.
143
- #
144
- # Immediately upon completion of the request:
145
- #
146
- # * Billing ceases for all of the instance's reserved resources.
147
- #
148
- # Soon afterward:
149
- #
150
- # * The instance and *all of its databases* immediately and
151
- # irrevocably disappear from the API. All data in the databases
152
- # is permanently deleted.
153
- rpc :DeleteInstance, DeleteInstanceRequest, Google::Protobuf::Empty
154
- # Sets the access control policy on an instance resource. Replaces any
155
- # existing policy.
156
- #
157
- # Authorization requires `spanner.instances.setIamPolicy` on
158
- # [resource][google.iam.v1.SetIamPolicyRequest.resource].
159
- rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
160
- # Gets the access control policy for an instance resource. Returns an empty
161
- # policy if an instance exists but does not have a policy set.
162
- #
163
- # Authorization requires `spanner.instances.getIamPolicy` on
164
- # [resource][google.iam.v1.GetIamPolicyRequest.resource].
165
- rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
166
- # Returns permissions that the caller has on the specified instance resource.
167
- #
168
- # Attempting this RPC on a non-existent Cloud Spanner instance resource will
169
- # result in a NOT_FOUND error if the user has `spanner.instances.list`
170
- # permission on the containing Google Cloud Project. Otherwise returns an
171
- # empty set of permissions.
172
- rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
173
- end
174
-
175
- Stub = Service.rpc_stub_class
176
- end
177
- end
178
- end
179
- end
180
- end
181
- end
@@ -1,34 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/spanner/v1/keys.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/protobuf/struct_pb'
8
- require 'google/api/annotations_pb'
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_message "google.spanner.v1.KeyRange" do
11
- oneof :start_key_type do
12
- optional :start_closed, :message, 1, "google.protobuf.ListValue"
13
- optional :start_open, :message, 2, "google.protobuf.ListValue"
14
- end
15
- oneof :end_key_type do
16
- optional :end_closed, :message, 3, "google.protobuf.ListValue"
17
- optional :end_open, :message, 4, "google.protobuf.ListValue"
18
- end
19
- end
20
- add_message "google.spanner.v1.KeySet" do
21
- repeated :keys, :message, 1, "google.protobuf.ListValue"
22
- repeated :ranges, :message, 2, "google.spanner.v1.KeyRange"
23
- optional :all, :bool, 3
24
- end
25
- end
26
-
27
- module Google
28
- module Spanner
29
- module V1
30
- KeyRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.KeyRange").msgclass
31
- KeySet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.KeySet").msgclass
32
- end
33
- end
34
- end
@@ -1,39 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/spanner/v1/mutation.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/protobuf/struct_pb'
8
- require 'google/spanner/v1/keys_pb'
9
- require 'google/api/annotations_pb'
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_message "google.spanner.v1.Mutation" do
12
- oneof :operation do
13
- optional :insert, :message, 1, "google.spanner.v1.Mutation.Write"
14
- optional :update, :message, 2, "google.spanner.v1.Mutation.Write"
15
- optional :insert_or_update, :message, 3, "google.spanner.v1.Mutation.Write"
16
- optional :replace, :message, 4, "google.spanner.v1.Mutation.Write"
17
- optional :delete, :message, 5, "google.spanner.v1.Mutation.Delete"
18
- end
19
- end
20
- add_message "google.spanner.v1.Mutation.Write" do
21
- optional :table, :string, 1
22
- repeated :columns, :string, 2
23
- repeated :values, :message, 3, "google.protobuf.ListValue"
24
- end
25
- add_message "google.spanner.v1.Mutation.Delete" do
26
- optional :table, :string, 1
27
- optional :key_set, :message, 2, "google.spanner.v1.KeySet"
28
- end
29
- end
30
-
31
- module Google
32
- module Spanner
33
- module V1
34
- Mutation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Mutation").msgclass
35
- Mutation::Write = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Mutation.Write").msgclass
36
- Mutation::Delete = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Mutation.Delete").msgclass
37
- end
38
- end
39
- end
@@ -1,48 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/spanner/v1/query_plan.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/protobuf/struct_pb'
8
- require 'google/api/annotations_pb'
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_message "google.spanner.v1.PlanNode" do
11
- optional :index, :int32, 1
12
- optional :kind, :enum, 2, "google.spanner.v1.PlanNode.Kind"
13
- optional :display_name, :string, 3
14
- repeated :child_links, :message, 4, "google.spanner.v1.PlanNode.ChildLink"
15
- optional :short_representation, :message, 5, "google.spanner.v1.PlanNode.ShortRepresentation"
16
- optional :metadata, :message, 6, "google.protobuf.Struct"
17
- optional :execution_stats, :message, 7, "google.protobuf.Struct"
18
- end
19
- add_message "google.spanner.v1.PlanNode.ChildLink" do
20
- optional :child_index, :int32, 1
21
- optional :type, :string, 2
22
- optional :variable, :string, 3
23
- end
24
- add_message "google.spanner.v1.PlanNode.ShortRepresentation" do
25
- optional :description, :string, 1
26
- map :subqueries, :string, :int32, 2
27
- end
28
- add_enum "google.spanner.v1.PlanNode.Kind" do
29
- value :KIND_UNSPECIFIED, 0
30
- value :RELATIONAL, 1
31
- value :SCALAR, 2
32
- end
33
- add_message "google.spanner.v1.QueryPlan" do
34
- repeated :plan_nodes, :message, 1, "google.spanner.v1.PlanNode"
35
- end
36
- end
37
-
38
- module Google
39
- module Spanner
40
- module V1
41
- PlanNode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PlanNode").msgclass
42
- PlanNode::ChildLink = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PlanNode.ChildLink").msgclass
43
- PlanNode::ShortRepresentation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PlanNode.ShortRepresentation").msgclass
44
- PlanNode::Kind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PlanNode.Kind").enummodule
45
- QueryPlan = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.QueryPlan").msgclass
46
- end
47
- end
48
- end
@@ -1,48 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/spanner/v1/result_set.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/protobuf/struct_pb'
8
- require 'google/spanner/v1/query_plan_pb'
9
- require 'google/spanner/v1/transaction_pb'
10
- require 'google/spanner/v1/type_pb'
11
- require 'google/api/annotations_pb'
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_message "google.spanner.v1.ResultSet" do
14
- optional :metadata, :message, 1, "google.spanner.v1.ResultSetMetadata"
15
- repeated :rows, :message, 2, "google.protobuf.ListValue"
16
- optional :stats, :message, 3, "google.spanner.v1.ResultSetStats"
17
- end
18
- add_message "google.spanner.v1.PartialResultSet" do
19
- optional :metadata, :message, 1, "google.spanner.v1.ResultSetMetadata"
20
- repeated :values, :message, 2, "google.protobuf.Value"
21
- optional :chunked_value, :bool, 3
22
- optional :resume_token, :bytes, 4
23
- optional :stats, :message, 5, "google.spanner.v1.ResultSetStats"
24
- end
25
- add_message "google.spanner.v1.ResultSetMetadata" do
26
- optional :row_type, :message, 1, "google.spanner.v1.StructType"
27
- optional :transaction, :message, 2, "google.spanner.v1.Transaction"
28
- end
29
- add_message "google.spanner.v1.ResultSetStats" do
30
- optional :query_plan, :message, 1, "google.spanner.v1.QueryPlan"
31
- optional :query_stats, :message, 2, "google.protobuf.Struct"
32
- oneof :row_count do
33
- optional :row_count_exact, :int64, 3
34
- optional :row_count_lower_bound, :int64, 4
35
- end
36
- end
37
- end
38
-
39
- module Google
40
- module Spanner
41
- module V1
42
- ResultSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ResultSet").msgclass
43
- PartialResultSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.PartialResultSet").msgclass
44
- ResultSetMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ResultSetMetadata").msgclass
45
- ResultSetStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ResultSetStats").msgclass
46
- end
47
- end
48
- end