google-cloud-bigquery-connection-v1 0.4.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/bigquery/connection/v1/connection_pb.rb +12 -0
- data/lib/google/cloud/bigquery/connection/v1/connection_service/client.rb +57 -57
- data/lib/google/cloud/bigquery/connection/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/bigquery/connection/v1/connection.rb +34 -0
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f974959ff00f1b2d16bd6069d509214eb2ae80fe9c08496ea68b0df4517900
|
4
|
+
data.tar.gz: 2333219c4b472e93c639a1807a6b942e7533385d4b7bbb6d59f92ba701ab32c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eb8669f8e38c45da9149b4be2091af27c721fb698b1320b24c2d5a2fa26b1403ced670eec4b7667c1800067a134eef30955cf2ef3546943b11129f0d876b202
|
7
|
+
data.tar.gz: 5f85ce3e139489908ee1dae7ee8fcf0920c47b9c36390e902724eb9538df96ad6f4118477c04c185ea168795e665be2461c513dc7ade022252afc85f3321c6b6
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-bigquery-connection-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `BIGQUERY_CONNECTION_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `BIGQUERY_CONNECTION_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/bigquery/connection/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.ne
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/bigquery/connection/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.ne
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/bigquery/connection/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/bigquery/connection/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Bigquery::Connection::V1::CreateConnectionRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_connection request
|
38
38
|
```
|
39
39
|
|
@@ -49,6 +49,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
49
49
|
oneof :properties do
|
50
50
|
optional :cloud_sql, :message, 4, "google.cloud.bigquery.connection.v1.CloudSqlProperties"
|
51
51
|
optional :aws, :message, 8, "google.cloud.bigquery.connection.v1.AwsProperties"
|
52
|
+
optional :cloud_spanner, :message, 21, "google.cloud.bigquery.connection.v1.CloudSpannerProperties"
|
52
53
|
end
|
53
54
|
end
|
54
55
|
add_message "google.cloud.bigquery.connection.v1.CloudSqlProperties" do
|
@@ -66,9 +67,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
66
67
|
optional :username, :string, 1
|
67
68
|
optional :password, :string, 2
|
68
69
|
end
|
70
|
+
add_message "google.cloud.bigquery.connection.v1.CloudSpannerProperties" do
|
71
|
+
optional :database, :string, 1
|
72
|
+
optional :use_parallelism, :bool, 2
|
73
|
+
end
|
69
74
|
add_message "google.cloud.bigquery.connection.v1.AwsProperties" do
|
70
75
|
oneof :authentication_method do
|
71
76
|
optional :cross_account_role, :message, 2, "google.cloud.bigquery.connection.v1.AwsCrossAccountRole"
|
77
|
+
optional :access_role, :message, 3, "google.cloud.bigquery.connection.v1.AwsAccessRole"
|
72
78
|
end
|
73
79
|
end
|
74
80
|
add_message "google.cloud.bigquery.connection.v1.AwsCrossAccountRole" do
|
@@ -76,6 +82,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
76
82
|
optional :iam_user_id, :string, 2
|
77
83
|
optional :external_id, :string, 3
|
78
84
|
end
|
85
|
+
add_message "google.cloud.bigquery.connection.v1.AwsAccessRole" do
|
86
|
+
optional :iam_role_id, :string, 1
|
87
|
+
optional :identity, :string, 2
|
88
|
+
end
|
79
89
|
end
|
80
90
|
end
|
81
91
|
|
@@ -94,8 +104,10 @@ module Google
|
|
94
104
|
CloudSqlProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.CloudSqlProperties").msgclass
|
95
105
|
CloudSqlProperties::DatabaseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType").enummodule
|
96
106
|
CloudSqlCredential = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.CloudSqlCredential").msgclass
|
107
|
+
CloudSpannerProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.CloudSpannerProperties").msgclass
|
97
108
|
AwsProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.AwsProperties").msgclass
|
98
109
|
AwsCrossAccountRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.AwsCrossAccountRole").msgclass
|
110
|
+
AwsAccessRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.AwsAccessRole").msgclass
|
99
111
|
end
|
100
112
|
end
|
101
113
|
end
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all ConnectionService clients
|
48
|
+
# ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -70,28 +69,19 @@ module Google
|
|
70
69
|
|
71
70
|
default_config.rpcs.get_connection.timeout = 60.0
|
72
71
|
default_config.rpcs.get_connection.retry_policy = {
|
73
|
-
initial_delay: 0.1,
|
74
|
-
max_delay: 60.0,
|
75
|
-
multiplier: 1.3,
|
76
|
-
retry_codes: [4, 14]
|
72
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
77
73
|
}
|
78
74
|
|
79
75
|
default_config.rpcs.list_connections.timeout = 60.0
|
80
76
|
default_config.rpcs.list_connections.retry_policy = {
|
81
|
-
initial_delay: 0.1,
|
82
|
-
max_delay: 60.0,
|
83
|
-
multiplier: 1.3,
|
84
|
-
retry_codes: [4, 14]
|
77
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
85
78
|
}
|
86
79
|
|
87
80
|
default_config.rpcs.update_connection.timeout = 60.0
|
88
81
|
|
89
82
|
default_config.rpcs.delete_connection.timeout = 60.0
|
90
83
|
default_config.rpcs.delete_connection.retry_policy = {
|
91
|
-
initial_delay: 0.1,
|
92
|
-
max_delay: 60.0,
|
93
|
-
multiplier: 1.3,
|
94
|
-
retry_codes: [4, 14]
|
84
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
95
85
|
}
|
96
86
|
|
97
87
|
default_config.rpcs.get_iam_policy.timeout = 60.0
|
@@ -129,19 +119,15 @@ module Google
|
|
129
119
|
##
|
130
120
|
# Create a new ConnectionService client object.
|
131
121
|
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
# To create a new ConnectionService client with the default
|
135
|
-
# configuration:
|
122
|
+
# @example
|
136
123
|
#
|
137
|
-
#
|
124
|
+
# # Create a client using the default configuration
|
125
|
+
# client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
|
138
126
|
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
# config.timeout = 10.0
|
144
|
-
# end
|
127
|
+
# # Create a client using a custom configuration
|
128
|
+
# client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new do |config|
|
129
|
+
# config.timeout = 10.0
|
130
|
+
# end
|
145
131
|
#
|
146
132
|
# @yield [config] Configure the ConnectionService client.
|
147
133
|
# @yieldparam config [Client::Configuration]
|
@@ -161,14 +147,13 @@ module Google
|
|
161
147
|
|
162
148
|
# Create credentials
|
163
149
|
credentials = @config.credentials
|
164
|
-
# Use self-signed JWT if the
|
150
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
165
151
|
# but only if the default endpoint does not have a region prefix.
|
166
|
-
enable_self_signed_jwt = @config.
|
167
|
-
@config.endpoint == Client.configure.endpoint &&
|
152
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
168
153
|
!@config.endpoint.split(".").first.include?("-")
|
169
154
|
credentials ||= Credentials.default scope: @config.scope,
|
170
155
|
enable_self_signed_jwt: enable_self_signed_jwt
|
171
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
156
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
172
157
|
credentials = Credentials.new credentials, scope: @config.scope
|
173
158
|
end
|
174
159
|
@quota_project_id = @config.quota_project
|
@@ -245,7 +230,9 @@ module Google
|
|
245
230
|
options.apply_defaults timeout: @config.rpcs.create_connection.timeout,
|
246
231
|
metadata: metadata,
|
247
232
|
retry_policy: @config.rpcs.create_connection.retry_policy
|
248
|
-
|
233
|
+
|
234
|
+
options.apply_defaults timeout: @config.timeout,
|
235
|
+
metadata: @config.metadata,
|
249
236
|
retry_policy: @config.retry_policy
|
250
237
|
|
251
238
|
@connection_service_stub.call_rpc :create_connection, request, options: options do |response, operation|
|
@@ -312,7 +299,9 @@ module Google
|
|
312
299
|
options.apply_defaults timeout: @config.rpcs.get_connection.timeout,
|
313
300
|
metadata: metadata,
|
314
301
|
retry_policy: @config.rpcs.get_connection.retry_policy
|
315
|
-
|
302
|
+
|
303
|
+
options.apply_defaults timeout: @config.timeout,
|
304
|
+
metadata: @config.metadata,
|
316
305
|
retry_policy: @config.retry_policy
|
317
306
|
|
318
307
|
@connection_service_stub.call_rpc :get_connection, request, options: options do |response, operation|
|
@@ -383,7 +372,9 @@ module Google
|
|
383
372
|
options.apply_defaults timeout: @config.rpcs.list_connections.timeout,
|
384
373
|
metadata: metadata,
|
385
374
|
retry_policy: @config.rpcs.list_connections.retry_policy
|
386
|
-
|
375
|
+
|
376
|
+
options.apply_defaults timeout: @config.timeout,
|
377
|
+
metadata: @config.metadata,
|
387
378
|
retry_policy: @config.retry_policy
|
388
379
|
|
389
380
|
@connection_service_stub.call_rpc :list_connections, request, options: options do |response, operation|
|
@@ -456,7 +447,9 @@ module Google
|
|
456
447
|
options.apply_defaults timeout: @config.rpcs.update_connection.timeout,
|
457
448
|
metadata: metadata,
|
458
449
|
retry_policy: @config.rpcs.update_connection.retry_policy
|
459
|
-
|
450
|
+
|
451
|
+
options.apply_defaults timeout: @config.timeout,
|
452
|
+
metadata: @config.metadata,
|
460
453
|
retry_policy: @config.retry_policy
|
461
454
|
|
462
455
|
@connection_service_stub.call_rpc :update_connection, request, options: options do |response, operation|
|
@@ -523,7 +516,9 @@ module Google
|
|
523
516
|
options.apply_defaults timeout: @config.rpcs.delete_connection.timeout,
|
524
517
|
metadata: metadata,
|
525
518
|
retry_policy: @config.rpcs.delete_connection.retry_policy
|
526
|
-
|
519
|
+
|
520
|
+
options.apply_defaults timeout: @config.timeout,
|
521
|
+
metadata: @config.metadata,
|
527
522
|
retry_policy: @config.retry_policy
|
528
523
|
|
529
524
|
@connection_service_stub.call_rpc :delete_connection, request, options: options do |response, operation|
|
@@ -595,7 +590,9 @@ module Google
|
|
595
590
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
596
591
|
metadata: metadata,
|
597
592
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
598
|
-
|
593
|
+
|
594
|
+
options.apply_defaults timeout: @config.timeout,
|
595
|
+
metadata: @config.metadata,
|
599
596
|
retry_policy: @config.retry_policy
|
600
597
|
|
601
598
|
@connection_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -670,7 +667,9 @@ module Google
|
|
670
667
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
671
668
|
metadata: metadata,
|
672
669
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
673
|
-
|
670
|
+
|
671
|
+
options.apply_defaults timeout: @config.timeout,
|
672
|
+
metadata: @config.metadata,
|
674
673
|
retry_policy: @config.retry_policy
|
675
674
|
|
676
675
|
@connection_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -748,7 +747,9 @@ module Google
|
|
748
747
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
749
748
|
metadata: metadata,
|
750
749
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
751
|
-
|
750
|
+
|
751
|
+
options.apply_defaults timeout: @config.timeout,
|
752
|
+
metadata: @config.metadata,
|
752
753
|
retry_policy: @config.retry_policy
|
753
754
|
|
754
755
|
@connection_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -772,22 +773,21 @@ module Google
|
|
772
773
|
# Configuration can be applied globally to all clients, or to a single client
|
773
774
|
# on construction.
|
774
775
|
#
|
775
|
-
#
|
776
|
-
#
|
777
|
-
#
|
778
|
-
# to 20 seconds,
|
779
|
-
#
|
780
|
-
#
|
781
|
-
#
|
782
|
-
#
|
783
|
-
#
|
784
|
-
#
|
785
|
-
#
|
786
|
-
#
|
787
|
-
#
|
788
|
-
#
|
789
|
-
#
|
790
|
-
# end
|
776
|
+
# @example
|
777
|
+
#
|
778
|
+
# # Modify the global config, setting the timeout for
|
779
|
+
# # create_connection to 20 seconds,
|
780
|
+
# # and all remaining timeouts to 10 seconds.
|
781
|
+
# ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.configure do |config|
|
782
|
+
# config.timeout = 10.0
|
783
|
+
# config.rpcs.create_connection.timeout = 20.0
|
784
|
+
# end
|
785
|
+
#
|
786
|
+
# # Apply the above configuration only to a new client.
|
787
|
+
# client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new do |config|
|
788
|
+
# config.timeout = 10.0
|
789
|
+
# config.rpcs.create_connection.timeout = 20.0
|
790
|
+
# end
|
791
791
|
#
|
792
792
|
# @!attribute [rw] endpoint
|
793
793
|
# The hostname or hostname:port of the service endpoint.
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -120,6 +120,9 @@ module Google
|
|
120
120
|
# @!attribute [rw] aws
|
121
121
|
# @return [::Google::Cloud::Bigquery::Connection::V1::AwsProperties]
|
122
122
|
# Amazon Web Services (AWS) properties.
|
123
|
+
# @!attribute [rw] cloud_spanner
|
124
|
+
# @return [::Google::Cloud::Bigquery::Connection::V1::CloudSpannerProperties]
|
125
|
+
# Cloud Spanner properties.
|
123
126
|
# @!attribute [r] creation_time
|
124
127
|
# @return [::Integer]
|
125
128
|
# Output only. The creation timestamp of the connection.
|
@@ -176,11 +179,27 @@ module Google
|
|
176
179
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
177
180
|
end
|
178
181
|
|
182
|
+
# Connection properties specific to Cloud Spanner.
|
183
|
+
# @!attribute [rw] database
|
184
|
+
# @return [::String]
|
185
|
+
# Cloud Spanner database in the form `project/instance/database'
|
186
|
+
# @!attribute [rw] use_parallelism
|
187
|
+
# @return [::Boolean]
|
188
|
+
# If parallelism should be used when reading from Cloud Spanner
|
189
|
+
class CloudSpannerProperties
|
190
|
+
include ::Google::Protobuf::MessageExts
|
191
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
192
|
+
end
|
193
|
+
|
179
194
|
# Connection properties specific to Amazon Web Services (AWS).
|
180
195
|
# @!attribute [rw] cross_account_role
|
181
196
|
# @return [::Google::Cloud::Bigquery::Connection::V1::AwsCrossAccountRole]
|
182
197
|
# Authentication using Google owned AWS IAM user's access key to assume
|
183
198
|
# into customer's AWS IAM Role.
|
199
|
+
# @!attribute [rw] access_role
|
200
|
+
# @return [::Google::Cloud::Bigquery::Connection::V1::AwsAccessRole]
|
201
|
+
# Authentication using Google owned service account to assume into
|
202
|
+
# customer's AWS IAM Role.
|
184
203
|
class AwsProperties
|
185
204
|
include ::Google::Protobuf::MessageExts
|
186
205
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -204,6 +223,21 @@ module Google
|
|
204
223
|
include ::Google::Protobuf::MessageExts
|
205
224
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
206
225
|
end
|
226
|
+
|
227
|
+
# Authentication method for Amazon Web Services (AWS) that uses Google owned
|
228
|
+
# Google service account to assume into customer's AWS IAM Role.
|
229
|
+
# @!attribute [rw] iam_role_id
|
230
|
+
# @return [::String]
|
231
|
+
# The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
|
232
|
+
# Connection.
|
233
|
+
# @!attribute [rw] identity
|
234
|
+
# @return [::String]
|
235
|
+
# A unique Google-owned and Google-generated identity for the Connection.
|
236
|
+
# This identity will be used to access the user's AWS IAM Role.
|
237
|
+
class AwsAccessRole
|
238
|
+
include ::Google::Protobuf::MessageExts
|
239
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
240
|
+
end
|
207
241
|
end
|
208
242
|
end
|
209
243
|
end
|
@@ -19,30 +19,53 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents
|
22
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
23
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
24
|
+
# are documented at https://github.com/google/cel-spec.
|
23
25
|
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
26
|
+
# Example (Comparison):
|
27
|
+
#
|
28
|
+
# title: "Summary size limit"
|
29
|
+
# description: "Determines if a summary is less than 100 chars"
|
30
|
+
# expression: "document.summary.size() < 100"
|
31
|
+
#
|
32
|
+
# Example (Equality):
|
33
|
+
#
|
34
|
+
# title: "Requestor is owner"
|
35
|
+
# description: "Determines if requestor is the document owner"
|
36
|
+
# expression: "document.owner == request.auth.claims.email"
|
37
|
+
#
|
38
|
+
# Example (Logic):
|
39
|
+
#
|
40
|
+
# title: "Public documents"
|
41
|
+
# description: "Determine whether the document should be publicly visible"
|
42
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
43
|
+
#
|
44
|
+
# Example (Data Manipulation):
|
45
|
+
#
|
46
|
+
# title: "Notification string"
|
47
|
+
# description: "Create a notification string with a timestamp."
|
48
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
49
|
+
#
|
50
|
+
# The exact variables and functions that may be referenced within an expression
|
51
|
+
# are determined by the service that evaluates it. See the service
|
52
|
+
# documentation for additional information.
|
27
53
|
# @!attribute [rw] expression
|
28
54
|
# @return [::String]
|
29
|
-
# Textual representation of an expression in
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# The application context of the containing message determines which
|
33
|
-
# well-known feature set of CEL is supported.
|
55
|
+
# Textual representation of an expression in Common Expression Language
|
56
|
+
# syntax.
|
34
57
|
# @!attribute [rw] title
|
35
58
|
# @return [::String]
|
36
|
-
#
|
59
|
+
# Optional. Title for the expression, i.e. a short string describing
|
37
60
|
# its purpose. This can be used e.g. in UIs which allow to enter the
|
38
61
|
# expression.
|
39
62
|
# @!attribute [rw] description
|
40
63
|
# @return [::String]
|
41
|
-
#
|
64
|
+
# Optional. Description of the expression. This is a longer text which
|
42
65
|
# describes the expression, e.g. when hovered over it in a UI.
|
43
66
|
# @!attribute [rw] location
|
44
67
|
# @return [::String]
|
45
|
-
#
|
68
|
+
# Optional. String indicating the location of the expression for error
|
46
69
|
# reporting, e.g. a file name and a position in the file.
|
47
70
|
class Expr
|
48
71
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-connection-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,7 +53,7 @@ dependencies:
|
|
47
53
|
version: 0.6.10
|
48
54
|
- - "<"
|
49
55
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
56
|
+
version: 2.a
|
51
57
|
type: :runtime
|
52
58
|
prerelease: false
|
53
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +63,7 @@ dependencies:
|
|
57
63
|
version: 0.6.10
|
58
64
|
- - "<"
|
59
65
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
66
|
+
version: 2.a
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: google-style
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -222,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
228
|
- !ruby/object:Gem::Version
|
223
229
|
version: '0'
|
224
230
|
requirements: []
|
225
|
-
rubygems_version: 3.2.
|
231
|
+
rubygems_version: 3.2.17
|
226
232
|
signing_key:
|
227
233
|
specification_version: 4
|
228
234
|
summary: API Client library for the BigQuery Connection V1 API
|