google-cloud-firestore-admin-v1 0.7.1 → 0.9.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.
@@ -0,0 +1,82 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/firestore/admin/v1/version"
24
+
25
+ require "google/cloud/firestore/admin/v1/firestore_admin/credentials"
26
+ require "google/cloud/firestore/admin/v1/firestore_admin/paths"
27
+ require "google/cloud/firestore/admin/v1/firestore_admin/rest/operations"
28
+ require "google/cloud/firestore/admin/v1/firestore_admin/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Firestore
33
+ module Admin
34
+ module V1
35
+ ##
36
+ # The Cloud Firestore Admin API.
37
+ #
38
+ # This API provides several administrative services for Cloud Firestore.
39
+ #
40
+ # Project, Database, Namespace, Collection, Collection Group, and Document are
41
+ # used as defined in the Google Cloud Firestore API.
42
+ #
43
+ # Operation: An Operation represents work being performed in the background.
44
+ #
45
+ # The index service manages Cloud Firestore indexes.
46
+ #
47
+ # Index creation is performed asynchronously.
48
+ # An Operation resource is created for each such asynchronous operation.
49
+ # The state of the operation (including any errors encountered)
50
+ # may be queried via the Operation resource.
51
+ #
52
+ # The Operations collection provides a record of actions performed for the
53
+ # specified Project (including any Operations in progress). Operations are not
54
+ # created directly but through calls on other collections or resources.
55
+ #
56
+ # An Operation that is done may be deleted so that it is no longer listed as
57
+ # part of the Operation collection. Operations are garbage collected after
58
+ # 30 days. By default, ListOperations will only return in progress and failed
59
+ # operations. To list completed operation, issue a ListOperations request with
60
+ # the filter `done: true`.
61
+ #
62
+ # Operations are created by service `FirestoreAdmin`, but are accessed via
63
+ # service `google.longrunning.Operations`.
64
+ #
65
+ # To load this service and instantiate a REST client:
66
+ #
67
+ # require "google/cloud/firestore/admin/v1/firestore_admin/rest"
68
+ # client = ::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
69
+ #
70
+ module FirestoreAdmin
71
+ # Client for the REST transport
72
+ module Rest
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
82
+ require "google/cloud/firestore/admin/v1/firestore_admin/rest/helpers" if ::File.file? helper_path
@@ -26,6 +26,7 @@ require "google/cloud/firestore/admin/v1/firestore_admin/credentials"
26
26
  require "google/cloud/firestore/admin/v1/firestore_admin/paths"
27
27
  require "google/cloud/firestore/admin/v1/firestore_admin/operations"
28
28
  require "google/cloud/firestore/admin/v1/firestore_admin/client"
29
+ require "google/cloud/firestore/admin/v1/firestore_admin/rest"
29
30
 
30
31
  module Google
31
32
  module Cloud
@@ -67,6 +68,11 @@ module Google
67
68
  # require "google/cloud/firestore/admin/v1/firestore_admin"
68
69
  # client = ::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
69
70
  #
71
+ # @example Load this service and instantiate a REST client
72
+ #
73
+ # require "google/cloud/firestore/admin/v1/firestore_admin/rest"
74
+ # client = ::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
75
+ #
70
76
  module FirestoreAdmin
71
77
  end
72
78
  end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/firestore/admin/v1/firestore_admin/rest"
20
+ require "google/cloud/firestore/admin/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Firestore
25
+ module Admin
26
+ ##
27
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/firestore/admin/v1/rest"
32
+ # client = ::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -22,7 +22,7 @@ module Google
22
22
  module Firestore
23
23
  module Admin
24
24
  module V1
25
- VERSION = "0.7.1"
25
+ VERSION = "0.9.0"
26
26
  end
27
27
  end
28
28
  end
@@ -31,6 +31,11 @@ module Google
31
31
  # require "google/cloud/firestore/admin/v1"
32
32
  # client = ::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
33
33
  #
34
+ # @example Load this package, including all its services, and instantiate a REST client
35
+ #
36
+ # require "google/cloud/firestore/admin/v1"
37
+ # client = ::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
38
+ #
34
39
  module V1
35
40
  end
36
41
  end
@@ -10,6 +10,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_message "google.firestore.admin.v1.Index" do
11
11
  optional :name, :string, 1
12
12
  optional :query_scope, :enum, 2, "google.firestore.admin.v1.Index.QueryScope"
13
+ optional :api_scope, :enum, 5, "google.firestore.admin.v1.Index.ApiScope"
13
14
  repeated :fields, :message, 3, "google.firestore.admin.v1.Index.IndexField"
14
15
  optional :state, :enum, 4, "google.firestore.admin.v1.Index.State"
15
16
  end
@@ -33,6 +34,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
33
34
  value :QUERY_SCOPE_UNSPECIFIED, 0
34
35
  value :COLLECTION, 1
35
36
  value :COLLECTION_GROUP, 2
37
+ value :COLLECTION_RECURSIVE, 3
38
+ end
39
+ add_enum "google.firestore.admin.v1.Index.ApiScope" do
40
+ value :ANY_API, 0
41
+ value :DATASTORE_MODE_API, 1
36
42
  end
37
43
  add_enum "google.firestore.admin.v1.Index.State" do
38
44
  value :STATE_UNSPECIFIED, 0
@@ -53,6 +59,7 @@ module Google
53
59
  Index::IndexField::Order = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.Order").enummodule
54
60
  Index::IndexField::ArrayConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.ArrayConfig").enummodule
55
61
  Index::QueryScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.QueryScope").enummodule
62
+ Index::ApiScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.ApiScope").enummodule
56
63
  Index::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.State").enummodule
57
64
  end
58
65
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -39,16 +39,19 @@ module Google
39
39
  # Indexes with a collection group query scope specified allow queries against
40
40
  # all collections descended from a specific document, specified at query
41
41
  # time, and that have the same collection id as this index.
42
+ # @!attribute [rw] api_scope
43
+ # @return [::Google::Cloud::Firestore::Admin::V1::Index::ApiScope]
44
+ # The API scope supported by this index.
42
45
  # @!attribute [rw] fields
43
46
  # @return [::Array<::Google::Cloud::Firestore::Admin::V1::Index::IndexField>]
44
47
  # The fields supported by this index.
45
48
  #
46
- # For composite indexes, this is always 2 or more fields.
47
- # The last field entry is always for the field path `__name__`. If, on
48
- # creation, `__name__` was not specified as the last field, it will be added
49
- # automatically with the same direction as that of the last field defined. If
50
- # the final field in a composite index is not directional, the `__name__`
51
- # will be ordered ASCENDING (unless explicitly specified).
49
+ # For composite indexes, this requires a minimum of 2 and a maximum of 100
50
+ # fields. The last field entry is always for the field path `__name__`. If,
51
+ # on creation, `__name__` was not specified as the last field, it will be
52
+ # added automatically with the same direction as that of the last field
53
+ # defined. If the final field in a composite index is not directional, the
54
+ # `__name__` will be ordered ASCENDING (unless explicitly specified).
52
55
  #
53
56
  # For single field indexes, this will always be exactly one entry with a
54
57
  # field path equal to the field path of the associated field.
@@ -115,6 +118,21 @@ module Google
115
118
  # against all collections that has the collection id specified by the
116
119
  # index.
117
120
  COLLECTION_GROUP = 2
121
+
122
+ # Include all the collections's ancestor in the index. Only available for
123
+ # Datastore Mode databases.
124
+ COLLECTION_RECURSIVE = 3
125
+ end
126
+
127
+ # API Scope defines the APIs (Firestore Native, or Firestore in
128
+ # Datastore Mode) that are supported for queries.
129
+ module ApiScope
130
+ # The index can only be used by the Firestore Native query API.
131
+ # This is the default.
132
+ ANY_API = 0
133
+
134
+ # The index can only be used by the Firestore in Datastore Mode query API.
135
+ DATASTORE_MODE_API = 1
118
136
  end
119
137
 
120
138
  # The state of an index. During index creation, an index will be in the
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.7.1
4
+ version: 0.9.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: 2023-01-16 00:00:00.000000000 Z
11
+ date: 2023-05-19 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.16.0
19
+ version: 0.18.0
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.16.0
29
+ version: 0.18.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '0.0'
53
+ version: '0.4'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.a
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '0.0'
63
+ version: '0.4'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a
@@ -70,14 +70,14 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: 1.26.1
73
+ version: 1.26.3
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: 1.26.1
80
+ version: 1.26.3
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: minitest
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -197,6 +197,11 @@ files:
197
197
  - lib/google/cloud/firestore/admin/v1/firestore_admin/credentials.rb
198
198
  - lib/google/cloud/firestore/admin/v1/firestore_admin/operations.rb
199
199
  - lib/google/cloud/firestore/admin/v1/firestore_admin/paths.rb
200
+ - lib/google/cloud/firestore/admin/v1/firestore_admin/rest.rb
201
+ - lib/google/cloud/firestore/admin/v1/firestore_admin/rest/client.rb
202
+ - lib/google/cloud/firestore/admin/v1/firestore_admin/rest/operations.rb
203
+ - lib/google/cloud/firestore/admin/v1/firestore_admin/rest/service_stub.rb
204
+ - lib/google/cloud/firestore/admin/v1/rest.rb
200
205
  - lib/google/cloud/firestore/admin/v1/version.rb
201
206
  - lib/google/firestore/admin/v1/database_pb.rb
202
207
  - lib/google/firestore/admin/v1/field_pb.rb
@@ -245,5 +250,6 @@ requirements: []
245
250
  rubygems_version: 3.4.2
246
251
  signing_key:
247
252
  specification_version: 4
248
- summary: API Client library for the Cloud Firestore Admin V1 API
253
+ summary: Accesses the NoSQL document database built for automatic scaling, high performance,
254
+ and ease of application development.
249
255
  test_files: []