google-cloud-datastore 0.24.0 → 0.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/datastore/service.rb +2 -2
- data/lib/google/cloud/datastore/v1/datastore_client.rb +15 -11
- data/lib/google/cloud/datastore/v1/datastore_client_config.json +5 -5
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb +2 -2
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb +2 -2
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb +3 -2
- data/lib/google/cloud/datastore/v1/doc/google/protobuf/wrappers.rb +2 -2
- data/lib/google/cloud/datastore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab9a90731d47005eba0b51713a5fbd875c06299a
|
4
|
+
data.tar.gz: 5503a6a3bc7f84a84155d1cfc814a6f829183c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d562c8fb1762b907cef3ba069d2310b4f1f36a8c3d0688cced29e0333235ca0483c75a487e64a9e8bf0c58c52e0db7f3e91f59cf6249144d24da037d7e905977
|
7
|
+
data.tar.gz: 3896700d5fbe2226c99b42a39ab6921f7a30f4ba729021e6ffb2fb20d0be20f98c8fa782bb13831e9c58428c377ee22ce4785717e35c7edc9066179c5f87b111
|
@@ -58,8 +58,8 @@ module Google
|
|
58
58
|
channel: channel,
|
59
59
|
timeout: timeout,
|
60
60
|
client_config: client_config,
|
61
|
-
|
62
|
-
|
61
|
+
lib_name: "gccl",
|
62
|
+
lib_version: Google::Cloud::Datastore::VERSION)
|
63
63
|
end
|
64
64
|
attr_accessor :mocked_service
|
65
65
|
|
@@ -50,8 +50,6 @@ module Google
|
|
50
50
|
# The default port of the service.
|
51
51
|
DEFAULT_SERVICE_PORT = 443
|
52
52
|
|
53
|
-
CODE_GEN_NAME_VERSION = "gapic/0.1.0".freeze
|
54
|
-
|
55
53
|
DEFAULT_TIMEOUT = 30
|
56
54
|
|
57
55
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
@@ -76,10 +74,6 @@ module Google
|
|
76
74
|
# or the specified config is missing data points.
|
77
75
|
# @param timeout [Numeric]
|
78
76
|
# The default timeout, in seconds, for calls made through this client.
|
79
|
-
# @param app_name [String]
|
80
|
-
# The codename of the calling service.
|
81
|
-
# @param app_version [String]
|
82
|
-
# The version of the calling service.
|
83
77
|
def initialize \
|
84
78
|
service_path: SERVICE_ADDRESS,
|
85
79
|
port: DEFAULT_SERVICE_PORT,
|
@@ -88,17 +82,27 @@ module Google
|
|
88
82
|
scopes: ALL_SCOPES,
|
89
83
|
client_config: {},
|
90
84
|
timeout: DEFAULT_TIMEOUT,
|
91
|
-
app_name:
|
92
|
-
app_version:
|
85
|
+
app_name: nil,
|
86
|
+
app_version: nil,
|
87
|
+
lib_name: nil,
|
88
|
+
lib_version: ""
|
93
89
|
# These require statements are intentionally placed here to initialize
|
94
90
|
# the gRPC module only when it's required.
|
95
91
|
# See https://github.com/googleapis/toolkit/issues/446
|
96
92
|
require "google/gax/grpc"
|
97
93
|
require "google/datastore/v1/datastore_services_pb"
|
98
94
|
|
99
|
-
|
100
|
-
|
101
|
-
"
|
95
|
+
|
96
|
+
if app_name || app_version
|
97
|
+
warn "`app_name` and `app_version` are no longer being used in the request headers."
|
98
|
+
end
|
99
|
+
|
100
|
+
google_api_client = "gl-ruby/#{RUBY_VERSION}"
|
101
|
+
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
|
102
|
+
google_api_client << " gapic/ gax/#{Google::Gax::VERSION}"
|
103
|
+
google_api_client << " grpc/#{GRPC::VERSION}"
|
104
|
+
google_api_client.freeze
|
105
|
+
|
102
106
|
headers = { :"x-goog-api-client" => google_api_client }
|
103
107
|
client_config_file = Pathname.new(__dir__).join(
|
104
108
|
"datastore_client_config.json"
|
@@ -2,11 +2,11 @@
|
|
2
2
|
"interfaces": {
|
3
3
|
"google.datastore.v1.Datastore": {
|
4
4
|
"retry_codes": {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
"idempotent": [
|
6
|
+
"DEADLINE_EXCEEDED",
|
7
|
+
"UNAVAILABLE"
|
8
|
+
],
|
9
|
+
"non_idempotent": []
|
10
10
|
},
|
11
11
|
"retry_params": {
|
12
12
|
"default": {
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2017, Google Inc. All rights reserved.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
8
|
#
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2017, Google Inc. All rights reserved.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
8
|
#
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2017, Google Inc. All rights reserved.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
8
|
#
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -267,6 +267,7 @@ module Google
|
|
267
267
|
# In a single transaction, subsequent query result batches for the same query
|
268
268
|
# can have a greater snapshot version number. Each batch's snapshot version
|
269
269
|
# is valid for all preceding batches.
|
270
|
+
# The value will be zero for eventually consistent queries.
|
270
271
|
class QueryResultBatch
|
271
272
|
# The possible values for the +more_results+ field.
|
272
273
|
module MoreResultsType
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2017, Google Inc. All rights reserved.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
8
|
#
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.24.
|
4
|
+
version: 0.24.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|