google-cloud-datastore-v1 0.3.2 → 0.3.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f4b1ec7e2540148ff498680ccf47d354e74f5b0fbff2d4cbfbbeba4f61d021e
|
4
|
+
data.tar.gz: 95366804163d82c3ce2371380b8b2611fdf25613ce60e9909c0cdc57a4ea74ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 685b32bb81fcf9c0cbf1f0bfbda8371ea82642091dc04f2088fcadc8d0920e142113ff4be45644a72e66d232607ddcce56f39308f8ff889d15abccf50b64b663
|
7
|
+
data.tar.gz: ac64e6e6b34535d31c17576f2b404af520486196049f3c0c52bfd735bba939aa89efcd12ea038af6fb5295d6329e6b4f9340c5f256480d199753a7fc7de116b7
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::Datastore::V1::Datastore::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all Datastore clients
|
50
|
+
# ::Google::Cloud::Datastore::V1::Datastore::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -120,19 +119,15 @@ module Google
|
|
120
119
|
##
|
121
120
|
# Create a new Datastore client object.
|
122
121
|
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
# To create a new Datastore client with the default
|
126
|
-
# configuration:
|
122
|
+
# @example
|
127
123
|
#
|
128
|
-
#
|
124
|
+
# # Create a client using the default configuration
|
125
|
+
# client = ::Google::Cloud::Datastore::V1::Datastore::Client.new
|
129
126
|
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
# config.timeout = 10.0
|
135
|
-
# end
|
127
|
+
# # Create a client using a custom configuration
|
128
|
+
# client = ::Google::Cloud::Datastore::V1::Datastore::Client.new do |config|
|
129
|
+
# config.timeout = 10.0
|
130
|
+
# end
|
136
131
|
#
|
137
132
|
# @yield [config] Configure the Datastore client.
|
138
133
|
# @yieldparam config [Client::Configuration]
|
@@ -152,10 +147,9 @@ module Google
|
|
152
147
|
|
153
148
|
# Create credentials
|
154
149
|
credentials = @config.credentials
|
155
|
-
# Use self-signed JWT if the
|
150
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
156
151
|
# but only if the default endpoint does not have a region prefix.
|
157
|
-
enable_self_signed_jwt = @config.
|
158
|
-
@config.endpoint == Client.configure.endpoint &&
|
152
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
159
153
|
!@config.endpoint.split(".").first.include?("-")
|
160
154
|
credentials ||= Credentials.default scope: @config.scope,
|
161
155
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -235,7 +229,9 @@ module Google
|
|
235
229
|
options.apply_defaults timeout: @config.rpcs.lookup.timeout,
|
236
230
|
metadata: metadata,
|
237
231
|
retry_policy: @config.rpcs.lookup.retry_policy
|
238
|
-
|
232
|
+
|
233
|
+
options.apply_defaults timeout: @config.timeout,
|
234
|
+
metadata: @config.metadata,
|
239
235
|
retry_policy: @config.retry_policy
|
240
236
|
|
241
237
|
@datastore_stub.call_rpc :lookup, request, options: options do |response, operation|
|
@@ -312,7 +308,9 @@ module Google
|
|
312
308
|
options.apply_defaults timeout: @config.rpcs.run_query.timeout,
|
313
309
|
metadata: metadata,
|
314
310
|
retry_policy: @config.rpcs.run_query.retry_policy
|
315
|
-
|
311
|
+
|
312
|
+
options.apply_defaults timeout: @config.timeout,
|
313
|
+
metadata: @config.metadata,
|
316
314
|
retry_policy: @config.retry_policy
|
317
315
|
|
318
316
|
@datastore_stub.call_rpc :run_query, request, options: options do |response, operation|
|
@@ -380,7 +378,9 @@ module Google
|
|
380
378
|
options.apply_defaults timeout: @config.rpcs.begin_transaction.timeout,
|
381
379
|
metadata: metadata,
|
382
380
|
retry_policy: @config.rpcs.begin_transaction.retry_policy
|
383
|
-
|
381
|
+
|
382
|
+
options.apply_defaults timeout: @config.timeout,
|
383
|
+
metadata: @config.metadata,
|
384
384
|
retry_policy: @config.retry_policy
|
385
385
|
|
386
386
|
@datastore_stub.call_rpc :begin_transaction, request, options: options do |response, operation|
|
@@ -467,7 +467,9 @@ module Google
|
|
467
467
|
options.apply_defaults timeout: @config.rpcs.commit.timeout,
|
468
468
|
metadata: metadata,
|
469
469
|
retry_policy: @config.rpcs.commit.retry_policy
|
470
|
-
|
470
|
+
|
471
|
+
options.apply_defaults timeout: @config.timeout,
|
472
|
+
metadata: @config.metadata,
|
471
473
|
retry_policy: @config.retry_policy
|
472
474
|
|
473
475
|
@datastore_stub.call_rpc :commit, request, options: options do |response, operation|
|
@@ -536,7 +538,9 @@ module Google
|
|
536
538
|
options.apply_defaults timeout: @config.rpcs.rollback.timeout,
|
537
539
|
metadata: metadata,
|
538
540
|
retry_policy: @config.rpcs.rollback.retry_policy
|
539
|
-
|
541
|
+
|
542
|
+
options.apply_defaults timeout: @config.timeout,
|
543
|
+
metadata: @config.metadata,
|
540
544
|
retry_policy: @config.retry_policy
|
541
545
|
|
542
546
|
@datastore_stub.call_rpc :rollback, request, options: options do |response, operation|
|
@@ -606,7 +610,9 @@ module Google
|
|
606
610
|
options.apply_defaults timeout: @config.rpcs.allocate_ids.timeout,
|
607
611
|
metadata: metadata,
|
608
612
|
retry_policy: @config.rpcs.allocate_ids.retry_policy
|
609
|
-
|
613
|
+
|
614
|
+
options.apply_defaults timeout: @config.timeout,
|
615
|
+
metadata: @config.metadata,
|
610
616
|
retry_policy: @config.retry_policy
|
611
617
|
|
612
618
|
@datastore_stub.call_rpc :allocate_ids, request, options: options do |response, operation|
|
@@ -678,7 +684,9 @@ module Google
|
|
678
684
|
options.apply_defaults timeout: @config.rpcs.reserve_ids.timeout,
|
679
685
|
metadata: metadata,
|
680
686
|
retry_policy: @config.rpcs.reserve_ids.retry_policy
|
681
|
-
|
687
|
+
|
688
|
+
options.apply_defaults timeout: @config.timeout,
|
689
|
+
metadata: @config.metadata,
|
682
690
|
retry_policy: @config.retry_policy
|
683
691
|
|
684
692
|
@datastore_stub.call_rpc :reserve_ids, request, options: options do |response, operation|
|
@@ -702,22 +710,21 @@ module Google
|
|
702
710
|
# Configuration can be applied globally to all clients, or to a single client
|
703
711
|
# on construction.
|
704
712
|
#
|
705
|
-
#
|
706
|
-
#
|
707
|
-
#
|
708
|
-
# to 20 seconds,
|
709
|
-
#
|
710
|
-
#
|
711
|
-
#
|
712
|
-
#
|
713
|
-
#
|
714
|
-
#
|
715
|
-
#
|
716
|
-
#
|
717
|
-
#
|
718
|
-
#
|
719
|
-
#
|
720
|
-
# end
|
713
|
+
# @example
|
714
|
+
#
|
715
|
+
# # Modify the global config, setting the timeout for
|
716
|
+
# # lookup to 20 seconds,
|
717
|
+
# # and all remaining timeouts to 10 seconds.
|
718
|
+
# ::Google::Cloud::Datastore::V1::Datastore::Client.configure do |config|
|
719
|
+
# config.timeout = 10.0
|
720
|
+
# config.rpcs.lookup.timeout = 20.0
|
721
|
+
# end
|
722
|
+
#
|
723
|
+
# # Apply the above configuration only to a new client.
|
724
|
+
# client = ::Google::Cloud::Datastore::V1::Datastore::Client.new do |config|
|
725
|
+
# config.timeout = 10.0
|
726
|
+
# config.rpcs.lookup.timeout = 20.0
|
727
|
+
# end
|
721
728
|
#
|
722
729
|
# @!attribute [rw] endpoint
|
723
730
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
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
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|