google-cloud-firestore-admin-v1 0.5.0 → 0.7.0
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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +5 -5
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/client.rb +14 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/operations.rb +3 -0
- data/lib/google/cloud/firestore/admin/v1/version.rb +1 -1
- data/proto_docs/google/firestore/admin/v1/location.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +31 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d2b82bc7e31a94b443d3488036598da63964727af49bc0b3a470cc7363a14a6
|
4
|
+
data.tar.gz: 5a57057c552eea368c848128f84269060ac6c0808be571052f72a5cd04239a84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae3ab82b13d2d1b0a929fa80749e93e33034fb2c8f1633deeef087c2ec5ea5e9908a82ac543c823474bd3b52053d49c240bb0ceb9a889e8a9a63f1cfa79203f9
|
7
|
+
data.tar.gz: e1ed38ee364e96a8b2f7b33dd887b4a42dbac1b6d89caf855969772dbc2ded8afdaf21621edc32cf472eaac97fab58d621907ec27ec88aba9cdea00588ea5dbb
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -76,14 +76,14 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
83
|
-
in security maintenance, and not end of life.
|
84
|
-
|
85
|
-
|
86
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
87
87
|
|
88
88
|
## Which client should I use?
|
89
89
|
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/firestore/admin/v1/firestore_admin_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -200,6 +201,12 @@ module Google
|
|
200
201
|
config.endpoint = @config.endpoint
|
201
202
|
end
|
202
203
|
|
204
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
205
|
+
config.credentials = credentials
|
206
|
+
config.quota_project = @quota_project_id
|
207
|
+
config.endpoint = @config.endpoint
|
208
|
+
end
|
209
|
+
|
203
210
|
@firestore_admin_stub = ::Gapic::ServiceStub.new(
|
204
211
|
::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Stub,
|
205
212
|
credentials: credentials,
|
@@ -216,6 +223,13 @@ module Google
|
|
216
223
|
#
|
217
224
|
attr_reader :operations_client
|
218
225
|
|
226
|
+
##
|
227
|
+
# Get the associated client for mix-in of the Locations.
|
228
|
+
#
|
229
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
230
|
+
#
|
231
|
+
attr_reader :location_client
|
232
|
+
|
219
233
|
# Service calls
|
220
234
|
|
221
235
|
##
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
module Firestore
|
23
23
|
module Admin
|
24
24
|
module V1
|
25
|
-
# The metadata message for
|
25
|
+
# The metadata message for `::Google::Cloud::Location::Location#metadata`.
|
26
26
|
class LocationMetadata
|
27
27
|
include ::Google::Protobuf::MessageExts
|
28
28
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-firestore-admin-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-16 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.10'
|
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.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -44,34 +44,54 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: google-cloud-location
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.0'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.0'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
47
67
|
- !ruby/object:Gem::Dependency
|
48
68
|
name: google-style
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|
50
70
|
requirements:
|
51
71
|
- - "~>"
|
52
72
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
73
|
+
version: 1.26.1
|
54
74
|
type: :development
|
55
75
|
prerelease: false
|
56
76
|
version_requirements: !ruby/object:Gem::Requirement
|
57
77
|
requirements:
|
58
78
|
- - "~>"
|
59
79
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
80
|
+
version: 1.26.1
|
61
81
|
- !ruby/object:Gem::Dependency
|
62
82
|
name: minitest
|
63
83
|
requirement: !ruby/object:Gem::Requirement
|
64
84
|
requirements:
|
65
85
|
- - "~>"
|
66
86
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
87
|
+
version: '5.16'
|
68
88
|
type: :development
|
69
89
|
prerelease: false
|
70
90
|
version_requirements: !ruby/object:Gem::Requirement
|
71
91
|
requirements:
|
72
92
|
- - "~>"
|
73
93
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
94
|
+
version: '5.16'
|
75
95
|
- !ruby/object:Gem::Dependency
|
76
96
|
name: minitest-focus
|
77
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +126,14 @@ dependencies:
|
|
106
126
|
requirements:
|
107
127
|
- - ">="
|
108
128
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
129
|
+
version: '13.0'
|
110
130
|
type: :development
|
111
131
|
prerelease: false
|
112
132
|
version_requirements: !ruby/object:Gem::Requirement
|
113
133
|
requirements:
|
114
134
|
- - ">="
|
115
135
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
136
|
+
version: '13.0'
|
117
137
|
- !ruby/object:Gem::Dependency
|
118
138
|
name: redcarpet
|
119
139
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,7 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
232
|
requirements:
|
213
233
|
- - ">="
|
214
234
|
- !ruby/object:Gem::Version
|
215
|
-
version: '2.
|
235
|
+
version: '2.6'
|
216
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
237
|
requirements:
|
218
238
|
- - ">="
|