google-apis-datastore_v1 0.7.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/datastore_v1/classes.rb +125 -0
- data/lib/google/apis/datastore_v1/gem_version.rb +3 -3
- data/lib/google/apis/datastore_v1/representations.rb +70 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6292f4e8adb28d7753b2772082c3ac278035d72e90384aa391829a471d015a41
|
4
|
+
data.tar.gz: 1d276b701ee28bed4009a7417c31f09cf549227299ca552c859cedf847fa0d3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1382065d102e107b48253203395eeece7689a4e918119a2c709d54e48972851d8adb2ef82308994c75e7760e9a11a1405d01730c85f0b2ca97b79c5ca1260065
|
7
|
+
data.tar.gz: 2a93ad9265e384ce4e8dc72908a78b4bf1ba39394d08b66fd3e74e6739e8b38a276b89516449fbe9d062e6679ffce2c35527d268532150e20ad40894a6961a9c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-datastore_v1
|
2
2
|
|
3
|
+
### v0.11.0 (2022-01-21)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220110
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.10.0 (2021-12-14)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.9.0 (2021-11-11)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211029
|
15
|
+
|
16
|
+
### v0.8.0 (2021-10-20)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210901
|
19
|
+
|
3
20
|
### v0.7.0 (2021-08-26)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210816
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/datastore_v1"
|
|
51
51
|
client = Google::Apis::DatastoreV1::DatastoreService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Datastore service in particular.)
|
67
67
|
|
@@ -370,6 +370,37 @@ module Google
|
|
370
370
|
end
|
371
371
|
end
|
372
372
|
|
373
|
+
# Metadata for Datastore to Firestore migration operations. The
|
374
|
+
# DatastoreFirestoreMigration operation is not started by the end-user via an
|
375
|
+
# explicit "creation" method. This is an intentional deviation from the LRO
|
376
|
+
# design pattern. This singleton resource can be accessed at: "projects/`
|
377
|
+
# project_id`/operations/datastore-firestore-migration"
|
378
|
+
class GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata
|
379
|
+
include Google::Apis::Core::Hashable
|
380
|
+
|
381
|
+
# The current state of migration from Cloud Datastore to Cloud Firestore in
|
382
|
+
# Datastore mode.
|
383
|
+
# Corresponds to the JSON property `migrationState`
|
384
|
+
# @return [String]
|
385
|
+
attr_accessor :migration_state
|
386
|
+
|
387
|
+
# The current step of migration from Cloud Datastore to Cloud Firestore in
|
388
|
+
# Datastore mode.
|
389
|
+
# Corresponds to the JSON property `migrationStep`
|
390
|
+
# @return [String]
|
391
|
+
attr_accessor :migration_step
|
392
|
+
|
393
|
+
def initialize(**args)
|
394
|
+
update!(**args)
|
395
|
+
end
|
396
|
+
|
397
|
+
# Update properties of this object
|
398
|
+
def update!(**args)
|
399
|
+
@migration_state = args[:migration_state] if args.key?(:migration_state)
|
400
|
+
@migration_step = args[:migration_step] if args.key?(:migration_step)
|
401
|
+
end
|
402
|
+
end
|
403
|
+
|
373
404
|
# Identifies a subset of entities in a project. This is specified as
|
374
405
|
# combinations of kinds and namespaces (either or both of which may be all, as
|
375
406
|
# described in the following examples). Example usage: Entire project: kinds=[],
|
@@ -759,6 +790,81 @@ module Google
|
|
759
790
|
end
|
760
791
|
end
|
761
792
|
|
793
|
+
# An event signifying the start of a new step in a [migration from Cloud
|
794
|
+
# Datastore to Cloud Firestore in Datastore mode](https://cloud.google.com/
|
795
|
+
# datastore/docs/upgrade-to-firestore).
|
796
|
+
class GoogleDatastoreAdminV1MigrationProgressEvent
|
797
|
+
include Google::Apis::Core::Hashable
|
798
|
+
|
799
|
+
# Details for the `PREPARE` step.
|
800
|
+
# Corresponds to the JSON property `prepareStepDetails`
|
801
|
+
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1PrepareStepDetails]
|
802
|
+
attr_accessor :prepare_step_details
|
803
|
+
|
804
|
+
# Details for the `REDIRECT_WRITES` step.
|
805
|
+
# Corresponds to the JSON property `redirectWritesStepDetails`
|
806
|
+
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1RedirectWritesStepDetails]
|
807
|
+
attr_accessor :redirect_writes_step_details
|
808
|
+
|
809
|
+
# The step that is starting. An event with step set to `START` indicates that
|
810
|
+
# the migration has been reverted back to the initial pre-migration state.
|
811
|
+
# Corresponds to the JSON property `step`
|
812
|
+
# @return [String]
|
813
|
+
attr_accessor :step
|
814
|
+
|
815
|
+
def initialize(**args)
|
816
|
+
update!(**args)
|
817
|
+
end
|
818
|
+
|
819
|
+
# Update properties of this object
|
820
|
+
def update!(**args)
|
821
|
+
@prepare_step_details = args[:prepare_step_details] if args.key?(:prepare_step_details)
|
822
|
+
@redirect_writes_step_details = args[:redirect_writes_step_details] if args.key?(:redirect_writes_step_details)
|
823
|
+
@step = args[:step] if args.key?(:step)
|
824
|
+
end
|
825
|
+
end
|
826
|
+
|
827
|
+
# An event signifying a change in state of a [migration from Cloud Datastore to
|
828
|
+
# Cloud Firestore in Datastore mode](https://cloud.google.com/datastore/docs/
|
829
|
+
# upgrade-to-firestore).
|
830
|
+
class GoogleDatastoreAdminV1MigrationStateEvent
|
831
|
+
include Google::Apis::Core::Hashable
|
832
|
+
|
833
|
+
# The new state of the migration.
|
834
|
+
# Corresponds to the JSON property `state`
|
835
|
+
# @return [String]
|
836
|
+
attr_accessor :state
|
837
|
+
|
838
|
+
def initialize(**args)
|
839
|
+
update!(**args)
|
840
|
+
end
|
841
|
+
|
842
|
+
# Update properties of this object
|
843
|
+
def update!(**args)
|
844
|
+
@state = args[:state] if args.key?(:state)
|
845
|
+
end
|
846
|
+
end
|
847
|
+
|
848
|
+
# Details for the `PREPARE` step.
|
849
|
+
class GoogleDatastoreAdminV1PrepareStepDetails
|
850
|
+
include Google::Apis::Core::Hashable
|
851
|
+
|
852
|
+
# The concurrency mode this database will use when it reaches the `
|
853
|
+
# REDIRECT_WRITES` step.
|
854
|
+
# Corresponds to the JSON property `concurrencyMode`
|
855
|
+
# @return [String]
|
856
|
+
attr_accessor :concurrency_mode
|
857
|
+
|
858
|
+
def initialize(**args)
|
859
|
+
update!(**args)
|
860
|
+
end
|
861
|
+
|
862
|
+
# Update properties of this object
|
863
|
+
def update!(**args)
|
864
|
+
@concurrency_mode = args[:concurrency_mode] if args.key?(:concurrency_mode)
|
865
|
+
end
|
866
|
+
end
|
867
|
+
|
762
868
|
# Measures the progress of a particular metric.
|
763
869
|
class GoogleDatastoreAdminV1Progress
|
764
870
|
include Google::Apis::Core::Hashable
|
@@ -786,6 +892,25 @@ module Google
|
|
786
892
|
end
|
787
893
|
end
|
788
894
|
|
895
|
+
# Details for the `REDIRECT_WRITES` step.
|
896
|
+
class GoogleDatastoreAdminV1RedirectWritesStepDetails
|
897
|
+
include Google::Apis::Core::Hashable
|
898
|
+
|
899
|
+
# Ths concurrency mode for this database.
|
900
|
+
# Corresponds to the JSON property `concurrencyMode`
|
901
|
+
# @return [String]
|
902
|
+
attr_accessor :concurrency_mode
|
903
|
+
|
904
|
+
def initialize(**args)
|
905
|
+
update!(**args)
|
906
|
+
end
|
907
|
+
|
908
|
+
# Update properties of this object
|
909
|
+
def update!(**args)
|
910
|
+
@concurrency_mode = args[:concurrency_mode] if args.key?(:concurrency_mode)
|
911
|
+
end
|
912
|
+
end
|
913
|
+
|
789
914
|
# Metadata common to all Datastore Admin operations.
|
790
915
|
class GoogleDatastoreAdminV1beta1CommonMetadata
|
791
916
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DatastoreV1
|
18
18
|
# Version of the google-apis-datastore_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220110"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class GoogleDatastoreAdminV1EntityFilter
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -160,12 +166,36 @@ module Google
|
|
160
166
|
include Google::Apis::Core::JsonObjectSupport
|
161
167
|
end
|
162
168
|
|
169
|
+
class GoogleDatastoreAdminV1MigrationProgressEvent
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class GoogleDatastoreAdminV1MigrationStateEvent
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class GoogleDatastoreAdminV1PrepareStepDetails
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
163
187
|
class GoogleDatastoreAdminV1Progress
|
164
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
189
|
|
166
190
|
include Google::Apis::Core::JsonObjectSupport
|
167
191
|
end
|
168
192
|
|
193
|
+
class GoogleDatastoreAdminV1RedirectWritesStepDetails
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
169
199
|
class GoogleDatastoreAdminV1beta1CommonMetadata
|
170
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
201
|
|
@@ -502,6 +532,14 @@ module Google
|
|
502
532
|
end
|
503
533
|
end
|
504
534
|
|
535
|
+
class GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata
|
536
|
+
# @private
|
537
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
538
|
+
property :migration_state, as: 'migrationState'
|
539
|
+
property :migration_step, as: 'migrationStep'
|
540
|
+
end
|
541
|
+
end
|
542
|
+
|
505
543
|
class GoogleDatastoreAdminV1EntityFilter
|
506
544
|
# @private
|
507
545
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -608,6 +646,31 @@ module Google
|
|
608
646
|
end
|
609
647
|
end
|
610
648
|
|
649
|
+
class GoogleDatastoreAdminV1MigrationProgressEvent
|
650
|
+
# @private
|
651
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
652
|
+
property :prepare_step_details, as: 'prepareStepDetails', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1PrepareStepDetails, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1PrepareStepDetails::Representation
|
653
|
+
|
654
|
+
property :redirect_writes_step_details, as: 'redirectWritesStepDetails', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1RedirectWritesStepDetails, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1RedirectWritesStepDetails::Representation
|
655
|
+
|
656
|
+
property :step, as: 'step'
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
660
|
+
class GoogleDatastoreAdminV1MigrationStateEvent
|
661
|
+
# @private
|
662
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
663
|
+
property :state, as: 'state'
|
664
|
+
end
|
665
|
+
end
|
666
|
+
|
667
|
+
class GoogleDatastoreAdminV1PrepareStepDetails
|
668
|
+
# @private
|
669
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
670
|
+
property :concurrency_mode, as: 'concurrencyMode'
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
611
674
|
class GoogleDatastoreAdminV1Progress
|
612
675
|
# @private
|
613
676
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -616,6 +679,13 @@ module Google
|
|
616
679
|
end
|
617
680
|
end
|
618
681
|
|
682
|
+
class GoogleDatastoreAdminV1RedirectWritesStepDetails
|
683
|
+
# @private
|
684
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
685
|
+
property :concurrency_mode, as: 'concurrencyMode'
|
686
|
+
end
|
687
|
+
end
|
688
|
+
|
619
689
|
class GoogleDatastoreAdminV1beta1CommonMetadata
|
620
690
|
# @private
|
621
691
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-datastore_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.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-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.11.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Datastore API V1
|