google-cloud-datastore-v1 0.3.2 → 0.3.3

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: 7a5538705b453f154d87bb1855fd6c353ea96311f8e6d62f2e89f0674af4925d
4
- data.tar.gz: 0bc2a44bd8fb2d88d17a9edf6a2c93fcd164853c82672c99df834f3221ac803b
3
+ metadata.gz: 8f4b1ec7e2540148ff498680ccf47d354e74f5b0fbff2d4cbfbbeba4f61d021e
4
+ data.tar.gz: 95366804163d82c3ce2371380b8b2611fdf25613ce60e9909c0cdc57a4ea74ca
5
5
  SHA512:
6
- metadata.gz: 1cf39c09d5c9b59c988d2b7851f4aefd5821bfd4c5debbd5755c96a468a70b14a8168f957a42753e617316b9966aa0586607b5565e971d27ab9785c80e982bc2
7
- data.tar.gz: bec83cdc16ec1b77ac84c32fdb24a8d720fbd8ecb20e2c77b6eca06593ea80b9d279ef342dd5e99c19888f417c30b637f45dae027a55cf04781abac90ac86474
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
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all Datastore clients:
50
- #
51
- # ::Google::Cloud::Datastore::V1::Datastore::Client.configure do |config|
52
- # config.timeout = 10.0
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
- # ## Examples
124
- #
125
- # To create a new Datastore client with the default
126
- # configuration:
122
+ # @example
127
123
  #
128
- # client = ::Google::Cloud::Datastore::V1::Datastore::Client.new
124
+ # # Create a client using the default configuration
125
+ # client = ::Google::Cloud::Datastore::V1::Datastore::Client.new
129
126
  #
130
- # To create a new Datastore client with a custom
131
- # configuration:
132
- #
133
- # client = ::Google::Cloud::Datastore::V1::Datastore::Client.new do |config|
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
706
- #
707
- # To modify the global config, setting the timeout for lookup
708
- # to 20 seconds, and all remaining timeouts to 10 seconds:
709
- #
710
- # ::Google::Cloud::Datastore::V1::Datastore::Client.configure do |config|
711
- # config.timeout = 10.0
712
- # config.rpcs.lookup.timeout = 20.0
713
- # end
714
- #
715
- # To apply the above configuration only to a new client:
716
- #
717
- # client = ::Google::Cloud::Datastore::V1::Datastore::Client.new do |config|
718
- # config.timeout = 10.0
719
- # config.rpcs.lookup.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Datastore
23
23
  module V1
24
- VERSION = "0.3.2"
24
+ VERSION = "0.3.3"
25
25
  end
26
26
  end
27
27
  end
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.2
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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a