google-cloud-datastore-admin-v1 0.8.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/client.rb +35 -45
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/operations.rb +5 -3
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/rest/client.rb +35 -45
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/rest/operations.rb +9 -7
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/rest/service_stub.rb +6 -6
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/rest.rb +19 -33
- data/lib/google/cloud/datastore/admin/v1/datastore_admin.rb +19 -33
- data/lib/google/cloud/datastore/admin/v1/version.rb +1 -1
- data/lib/google/datastore/admin/v1/datastore_admin_pb.rb +26 -93
- data/lib/google/datastore/admin/v1/datastore_admin_services_pb.rb +24 -37
- data/lib/google/datastore/admin/v1/index_pb.rb +24 -30
- data/lib/google/datastore/admin/v1/migration_pb.rb +24 -39
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/datastore/admin/v1/datastore_admin.rb +10 -6
- data/proto_docs/google/datastore/admin/v1/index.rb +8 -2
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -123,8 +123,8 @@ module Google
|
|
123
123
|
#
|
124
124
|
# The resulting files will be nested deeper than the specified URL prefix.
|
125
125
|
# The final output URL will be provided in the
|
126
|
-
# {::Google::Cloud::Datastore::Admin::V1::ExportEntitiesResponse#output_url google.datastore.admin.v1.ExportEntitiesResponse.output_url}
|
127
|
-
# value should be used for subsequent ImportEntities operations.
|
126
|
+
# {::Google::Cloud::Datastore::Admin::V1::ExportEntitiesResponse#output_url google.datastore.admin.v1.ExportEntitiesResponse.output_url}
|
127
|
+
# field. That value should be used for subsequent ImportEntities operations.
|
128
128
|
#
|
129
129
|
# By nesting the data files deeper, the same Cloud Storage bucket can be used
|
130
130
|
# in multiple ExportEntities operations without conflict.
|
@@ -152,8 +152,9 @@ module Google
|
|
152
152
|
# Client-assigned labels.
|
153
153
|
# @!attribute [rw] input_url
|
154
154
|
# @return [::String]
|
155
|
-
# Required. The full resource URL of the external storage location.
|
156
|
-
# Google Cloud Storage is supported. So input_url should be
|
155
|
+
# Required. The full resource URL of the external storage location.
|
156
|
+
# Currently, only Google Cloud Storage is supported. So input_url should be
|
157
|
+
# of the form:
|
157
158
|
# `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
|
158
159
|
# `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
|
159
160
|
# an optional Cloud Storage namespace path (this is not a Cloud Datastore
|
@@ -239,7 +240,9 @@ module Google
|
|
239
240
|
# @!attribute [rw] input_url
|
240
241
|
# @return [::String]
|
241
242
|
# The location of the import metadata file. This will be the same value as
|
242
|
-
# the
|
243
|
+
# the
|
244
|
+
# {::Google::Cloud::Datastore::Admin::V1::ExportEntitiesResponse#output_url google.datastore.admin.v1.ExportEntitiesResponse.output_url}
|
245
|
+
# field.
|
243
246
|
class ImportEntitiesMetadata
|
244
247
|
include ::Google::Protobuf::MessageExts
|
245
248
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -308,7 +311,8 @@ module Google
|
|
308
311
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
309
312
|
end
|
310
313
|
|
311
|
-
# The request for
|
314
|
+
# The request for
|
315
|
+
# {::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client#get_index google.datastore.admin.v1.DatastoreAdmin.GetIndex}.
|
312
316
|
# @!attribute [rw] project_id
|
313
317
|
# @return [::String]
|
314
318
|
# Project ID against which to make the request.
|
@@ -34,10 +34,15 @@ module Google
|
|
34
34
|
# Required. The entity kind to which this index applies.
|
35
35
|
# @!attribute [rw] ancestor
|
36
36
|
# @return [::Google::Cloud::Datastore::Admin::V1::Index::AncestorMode]
|
37
|
-
# Required. The index's ancestor mode. Must not be
|
37
|
+
# Required. The index's ancestor mode. Must not be
|
38
|
+
# ANCESTOR_MODE_UNSPECIFIED.
|
38
39
|
# @!attribute [rw] properties
|
39
40
|
# @return [::Array<::Google::Cloud::Datastore::Admin::V1::Index::IndexedProperty>]
|
40
41
|
# Required. An ordered sequence of property names and their index attributes.
|
42
|
+
#
|
43
|
+
# Requires:
|
44
|
+
#
|
45
|
+
# * A maximum of 100 properties.
|
41
46
|
# @!attribute [r] state
|
42
47
|
# @return [::Google::Cloud::Datastore::Admin::V1::Index::State]
|
43
48
|
# Output only. The state of the index.
|
@@ -51,7 +56,8 @@ module Google
|
|
51
56
|
# Required. The property name to index.
|
52
57
|
# @!attribute [rw] direction
|
53
58
|
# @return [::Google::Cloud::Datastore::Admin::V1::Index::Direction]
|
54
|
-
# Required. The indexed property's direction. Must not be
|
59
|
+
# Required. The indexed property's direction. Must not be
|
60
|
+
# DIRECTION_UNSPECIFIED.
|
55
61
|
class IndexedProperty
|
56
62
|
include ::Google::Protobuf::MessageExts
|
57
63
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastore-admin-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.1
|
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-03
|
11
|
+
date: 2023-08-03 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.19.1
|
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.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|