google-cloud-datastore-v1 0.3.3 → 0.4.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/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/datastore/v1/datastore/client.rb +140 -21
- data/lib/google/cloud/datastore/v1/version.rb +1 -1
- data/lib/google/cloud/datastore/v1.rb +2 -0
- data/lib/google/datastore/v1/datastore_pb.rb +2 -2
- data/lib/google/datastore/v1/datastore_services_pb.rb +2 -2
- data/lib/google/datastore/v1/entity_pb.rb +2 -3
- data/lib/google/datastore/v1/query_pb.rb +5 -4
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/datastore/v1/datastore.rb +3 -2
- data/proto_docs/google/datastore/v1/entity.rb +3 -4
- data/proto_docs/google/datastore/v1/query.rb +51 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a1eb7f6169da11cb8e4310e91c0ea832b15c16924a0fdcc3b81f00b384aa607
|
4
|
+
data.tar.gz: cec040af22221d921f632c343d0d3a2584655c427557bcb69b2370950dc69ce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25afc8ea8a53188620dd9f377875c63cd75c2b3e454d1029f07ca3d8c7735832fa27da3fb48bd4012a84250a1bd694e55929d72393c7f6c74c664b908b8c6316
|
7
|
+
data.tar.gz: 81f94bf17553db58c2ea52648299dacddadb0178fdd43d37f303f5cd06307a4929bd7e43849ed5f7a80abc99fc893078b6d450b2c3754deb3acfe9a0e4c90137
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Datastore::V1::LookupRequest.new # (request fields as
|
|
37
37
|
response = client.lookup request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-datastore-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/datastore)
|
@@ -203,6 +203,21 @@ module Google
|
|
203
203
|
#
|
204
204
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
205
205
|
#
|
206
|
+
# @example Basic example
|
207
|
+
# require "google/cloud/datastore/v1"
|
208
|
+
#
|
209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
210
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Client.new
|
211
|
+
#
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
213
|
+
# request = Google::Cloud::Datastore::V1::LookupRequest.new
|
214
|
+
#
|
215
|
+
# # Call the lookup method.
|
216
|
+
# result = client.lookup request
|
217
|
+
#
|
218
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::LookupResponse.
|
219
|
+
# p result
|
220
|
+
#
|
206
221
|
def lookup request, options = nil
|
207
222
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
208
223
|
|
@@ -220,9 +235,11 @@ module Google
|
|
220
235
|
gapic_version: ::Google::Cloud::Datastore::V1::VERSION
|
221
236
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
222
237
|
|
223
|
-
header_params = {
|
224
|
-
|
225
|
-
|
238
|
+
header_params = {}
|
239
|
+
if request.project_id
|
240
|
+
header_params["project_id"] = request.project_id
|
241
|
+
end
|
242
|
+
|
226
243
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
227
244
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
228
245
|
|
@@ -282,6 +299,21 @@ module Google
|
|
282
299
|
#
|
283
300
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
284
301
|
#
|
302
|
+
# @example Basic example
|
303
|
+
# require "google/cloud/datastore/v1"
|
304
|
+
#
|
305
|
+
# # Create a client object. The client can be reused for multiple calls.
|
306
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Client.new
|
307
|
+
#
|
308
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
309
|
+
# request = Google::Cloud::Datastore::V1::RunQueryRequest.new
|
310
|
+
#
|
311
|
+
# # Call the run_query method.
|
312
|
+
# result = client.run_query request
|
313
|
+
#
|
314
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::RunQueryResponse.
|
315
|
+
# p result
|
316
|
+
#
|
285
317
|
def run_query request, options = nil
|
286
318
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
287
319
|
|
@@ -299,9 +331,11 @@ module Google
|
|
299
331
|
gapic_version: ::Google::Cloud::Datastore::V1::VERSION
|
300
332
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
301
333
|
|
302
|
-
header_params = {
|
303
|
-
|
304
|
-
|
334
|
+
header_params = {}
|
335
|
+
if request.project_id
|
336
|
+
header_params["project_id"] = request.project_id
|
337
|
+
end
|
338
|
+
|
305
339
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
306
340
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
307
341
|
|
@@ -352,6 +386,21 @@ module Google
|
|
352
386
|
#
|
353
387
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
354
388
|
#
|
389
|
+
# @example Basic example
|
390
|
+
# require "google/cloud/datastore/v1"
|
391
|
+
#
|
392
|
+
# # Create a client object. The client can be reused for multiple calls.
|
393
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Client.new
|
394
|
+
#
|
395
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
396
|
+
# request = Google::Cloud::Datastore::V1::BeginTransactionRequest.new
|
397
|
+
#
|
398
|
+
# # Call the begin_transaction method.
|
399
|
+
# result = client.begin_transaction request
|
400
|
+
#
|
401
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::BeginTransactionResponse.
|
402
|
+
# p result
|
403
|
+
#
|
355
404
|
def begin_transaction request, options = nil
|
356
405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
357
406
|
|
@@ -369,9 +418,11 @@ module Google
|
|
369
418
|
gapic_version: ::Google::Cloud::Datastore::V1::VERSION
|
370
419
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
371
420
|
|
372
|
-
header_params = {
|
373
|
-
|
374
|
-
|
421
|
+
header_params = {}
|
422
|
+
if request.project_id
|
423
|
+
header_params["project_id"] = request.project_id
|
424
|
+
end
|
425
|
+
|
375
426
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
376
427
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
377
428
|
|
@@ -441,6 +492,21 @@ module Google
|
|
441
492
|
#
|
442
493
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
443
494
|
#
|
495
|
+
# @example Basic example
|
496
|
+
# require "google/cloud/datastore/v1"
|
497
|
+
#
|
498
|
+
# # Create a client object. The client can be reused for multiple calls.
|
499
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Client.new
|
500
|
+
#
|
501
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
502
|
+
# request = Google::Cloud::Datastore::V1::CommitRequest.new
|
503
|
+
#
|
504
|
+
# # Call the commit method.
|
505
|
+
# result = client.commit request
|
506
|
+
#
|
507
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::CommitResponse.
|
508
|
+
# p result
|
509
|
+
#
|
444
510
|
def commit request, options = nil
|
445
511
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
446
512
|
|
@@ -458,9 +524,11 @@ module Google
|
|
458
524
|
gapic_version: ::Google::Cloud::Datastore::V1::VERSION
|
459
525
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
460
526
|
|
461
|
-
header_params = {
|
462
|
-
|
463
|
-
|
527
|
+
header_params = {}
|
528
|
+
if request.project_id
|
529
|
+
header_params["project_id"] = request.project_id
|
530
|
+
end
|
531
|
+
|
464
532
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
465
533
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
466
534
|
|
@@ -512,6 +580,21 @@ module Google
|
|
512
580
|
#
|
513
581
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
514
582
|
#
|
583
|
+
# @example Basic example
|
584
|
+
# require "google/cloud/datastore/v1"
|
585
|
+
#
|
586
|
+
# # Create a client object. The client can be reused for multiple calls.
|
587
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Client.new
|
588
|
+
#
|
589
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
590
|
+
# request = Google::Cloud::Datastore::V1::RollbackRequest.new
|
591
|
+
#
|
592
|
+
# # Call the rollback method.
|
593
|
+
# result = client.rollback request
|
594
|
+
#
|
595
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::RollbackResponse.
|
596
|
+
# p result
|
597
|
+
#
|
515
598
|
def rollback request, options = nil
|
516
599
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
517
600
|
|
@@ -529,9 +612,11 @@ module Google
|
|
529
612
|
gapic_version: ::Google::Cloud::Datastore::V1::VERSION
|
530
613
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
531
614
|
|
532
|
-
header_params = {
|
533
|
-
|
534
|
-
|
615
|
+
header_params = {}
|
616
|
+
if request.project_id
|
617
|
+
header_params["project_id"] = request.project_id
|
618
|
+
end
|
619
|
+
|
535
620
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
536
621
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
537
622
|
|
@@ -584,6 +669,21 @@ module Google
|
|
584
669
|
#
|
585
670
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
586
671
|
#
|
672
|
+
# @example Basic example
|
673
|
+
# require "google/cloud/datastore/v1"
|
674
|
+
#
|
675
|
+
# # Create a client object. The client can be reused for multiple calls.
|
676
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Client.new
|
677
|
+
#
|
678
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
679
|
+
# request = Google::Cloud::Datastore::V1::AllocateIdsRequest.new
|
680
|
+
#
|
681
|
+
# # Call the allocate_ids method.
|
682
|
+
# result = client.allocate_ids request
|
683
|
+
#
|
684
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::AllocateIdsResponse.
|
685
|
+
# p result
|
686
|
+
#
|
587
687
|
def allocate_ids request, options = nil
|
588
688
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
589
689
|
|
@@ -601,9 +701,11 @@ module Google
|
|
601
701
|
gapic_version: ::Google::Cloud::Datastore::V1::VERSION
|
602
702
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
603
703
|
|
604
|
-
header_params = {
|
605
|
-
|
606
|
-
|
704
|
+
header_params = {}
|
705
|
+
if request.project_id
|
706
|
+
header_params["project_id"] = request.project_id
|
707
|
+
end
|
708
|
+
|
607
709
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
608
710
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
609
711
|
|
@@ -658,6 +760,21 @@ module Google
|
|
658
760
|
#
|
659
761
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
660
762
|
#
|
763
|
+
# @example Basic example
|
764
|
+
# require "google/cloud/datastore/v1"
|
765
|
+
#
|
766
|
+
# # Create a client object. The client can be reused for multiple calls.
|
767
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Client.new
|
768
|
+
#
|
769
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
770
|
+
# request = Google::Cloud::Datastore::V1::ReserveIdsRequest.new
|
771
|
+
#
|
772
|
+
# # Call the reserve_ids method.
|
773
|
+
# result = client.reserve_ids request
|
774
|
+
#
|
775
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::ReserveIdsResponse.
|
776
|
+
# p result
|
777
|
+
#
|
661
778
|
def reserve_ids request, options = nil
|
662
779
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
663
780
|
|
@@ -675,9 +792,11 @@ module Google
|
|
675
792
|
gapic_version: ::Google::Cloud::Datastore::V1::VERSION
|
676
793
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
677
794
|
|
678
|
-
header_params = {
|
679
|
-
|
680
|
-
|
795
|
+
header_params = {}
|
796
|
+
if request.project_id
|
797
|
+
header_params["project_id"] = request.project_id
|
798
|
+
end
|
799
|
+
|
681
800
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
682
801
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
683
802
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/datastore/v1/datastore.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/datastore/v1/entity_pb'
|
10
8
|
require 'google/datastore/v1/query_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/datastore/v1/datastore.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.datastore.v1.LookupRequest" do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/datastore/v1/datastore.proto for package 'Google.Cloud.Datastore.V1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2022 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
#
|
34
34
|
class Service
|
35
35
|
|
36
|
-
include GRPC::GenericService
|
36
|
+
include ::GRPC::GenericService
|
37
37
|
|
38
38
|
self.marshal_class_method = :encode
|
39
39
|
self.unmarshal_class_method = :decode
|
@@ -1,12 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/datastore/v1/entity.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/annotations_pb'
|
7
4
|
require 'google/protobuf/struct_pb'
|
8
5
|
require 'google/protobuf/timestamp_pb'
|
9
6
|
require 'google/type/latlng_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
10
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
10
|
add_file("google/datastore/v1/entity.proto", :syntax => :proto3) do
|
12
11
|
add_message "google.datastore.v1.PartitionId" do
|
@@ -1,12 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/datastore/v1/query.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/annotations_pb'
|
7
4
|
require 'google/datastore/v1/entity_pb'
|
8
5
|
require 'google/protobuf/wrappers_pb'
|
9
|
-
require 'google/
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
10
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
9
|
add_file("google/datastore/v1/query.proto", :syntax => :proto3) do
|
12
10
|
add_message "google.datastore.v1.EntityResult" do
|
@@ -75,7 +73,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
75
73
|
value :GREATER_THAN, 3
|
76
74
|
value :GREATER_THAN_OR_EQUAL, 4
|
77
75
|
value :EQUAL, 5
|
76
|
+
value :IN, 6
|
77
|
+
value :NOT_EQUAL, 9
|
78
78
|
value :HAS_ANCESTOR, 11
|
79
|
+
value :NOT_IN, 13
|
79
80
|
end
|
80
81
|
add_message "google.datastore.v1.GqlQuery" do
|
81
82
|
optional :query_string, :string, 1
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -258,8 +258,9 @@ module Google
|
|
258
258
|
# Must have a complete key path and must not be reserved/read-only.
|
259
259
|
# @!attribute [rw] base_version
|
260
260
|
# @return [::Integer]
|
261
|
-
# The version of the entity that this mutation is being applied
|
262
|
-
# does not match the current version on the server, the
|
261
|
+
# The version of the entity that this mutation is being applied
|
262
|
+
# to. If this does not match the current version on the server, the
|
263
|
+
# mutation conflicts.
|
263
264
|
class Mutation
|
264
265
|
include ::Google::Protobuf::MessageExts
|
265
266
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -39,8 +39,7 @@ module Google
|
|
39
39
|
#
|
40
40
|
# Foreign partition IDs (in which the project ID does
|
41
41
|
# not match the context project ID ) are discouraged.
|
42
|
-
# Reads and writes of foreign partition IDs may fail if the project is not in
|
43
|
-
# an active state.
|
42
|
+
# Reads and writes of foreign partition IDs may fail if the project is not in an active state.
|
44
43
|
# @!attribute [rw] project_id
|
45
44
|
# @return [::String]
|
46
45
|
# The ID of the project to which the entities belong.
|
@@ -146,8 +145,8 @@ module Google
|
|
146
145
|
# @!attribute [rw] string_value
|
147
146
|
# @return [::String]
|
148
147
|
# A UTF-8 encoded string value.
|
149
|
-
# When `exclude_from_indexes` is false (it is indexed), may have at most
|
150
|
-
#
|
148
|
+
# When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
|
149
|
+
# Otherwise, may be set to at most 1,000,000 bytes.
|
151
150
|
# @!attribute [rw] blob_value
|
152
151
|
# @return [::String]
|
153
152
|
# A blob value.
|
@@ -215,23 +215,68 @@ module Google
|
|
215
215
|
# Unspecified. This value must not be used.
|
216
216
|
OPERATOR_UNSPECIFIED = 0
|
217
217
|
|
218
|
-
#
|
218
|
+
# The given `property` is less than the given `value`.
|
219
|
+
#
|
220
|
+
# Requires:
|
221
|
+
#
|
222
|
+
# * That `property` comes first in `order_by`.
|
219
223
|
LESS_THAN = 1
|
220
224
|
|
221
|
-
#
|
225
|
+
# The given `property` is less than or equal to the given `value`.
|
226
|
+
#
|
227
|
+
# Requires:
|
228
|
+
#
|
229
|
+
# * That `property` comes first in `order_by`.
|
222
230
|
LESS_THAN_OR_EQUAL = 2
|
223
231
|
|
224
|
-
#
|
232
|
+
# The given `property` is greater than the given `value`.
|
233
|
+
#
|
234
|
+
# Requires:
|
235
|
+
#
|
236
|
+
# * That `property` comes first in `order_by`.
|
225
237
|
GREATER_THAN = 3
|
226
238
|
|
227
|
-
#
|
239
|
+
# The given `property` is greater than or equal to the given `value`.
|
240
|
+
#
|
241
|
+
# Requires:
|
242
|
+
#
|
243
|
+
# * That `property` comes first in `order_by`.
|
228
244
|
GREATER_THAN_OR_EQUAL = 4
|
229
245
|
|
230
|
-
#
|
246
|
+
# The given `property` is equal to the given `value`.
|
231
247
|
EQUAL = 5
|
232
248
|
|
233
|
-
#
|
249
|
+
# The given `property` is equal to at least one value in the given array.
|
250
|
+
#
|
251
|
+
# Requires:
|
252
|
+
#
|
253
|
+
# * That `value` is a non-empty `ArrayValue` with at most 10 values.
|
254
|
+
# * No other `IN` or `NOT_IN` is in the same query.
|
255
|
+
IN = 6
|
256
|
+
|
257
|
+
# The given `property` is not equal to the given `value`.
|
258
|
+
#
|
259
|
+
# Requires:
|
260
|
+
#
|
261
|
+
# * No other `NOT_EQUAL` or `NOT_IN` is in the same query.
|
262
|
+
# * That `property` comes first in the `order_by`.
|
263
|
+
NOT_EQUAL = 9
|
264
|
+
|
265
|
+
# Limit the result set to the given entity and its descendants.
|
266
|
+
#
|
267
|
+
# Requires:
|
268
|
+
#
|
269
|
+
# * That `value` is an entity key.
|
234
270
|
HAS_ANCESTOR = 11
|
271
|
+
|
272
|
+
# The value of the `property` is not in the given array.
|
273
|
+
#
|
274
|
+
# Requires:
|
275
|
+
#
|
276
|
+
# * That `value` is a non-empty `ArrayValue` with at most 10 values.
|
277
|
+
# * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
|
278
|
+
# * That `field` comes first in the `order_by`.
|
279
|
+
NOT_IN = 13
|
235
280
|
end
|
236
281
|
end
|
237
282
|
|
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.
|
4
|
+
version: 0.4.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:
|
11
|
+
date: 2022-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
|
-
rubygems_version: 3.
|
211
|
+
rubygems_version: 3.3.5
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: API Client library for the Firestore in Datastore mode V1 API
|