google-api-client 0.11.1 → 0.11.2
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/CHANGELOG.md +4 -0
- data/api_names.yaml +42335 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
- data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
- data/generated/google/apis/admin_directory_v1/service.rb +61 -61
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +6 -5
- data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
- data/generated/google/apis/appengine_v1/representations.rb +331 -331
- data/generated/google/apis/appengine_v1/service.rb +173 -168
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
- data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
- data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
- data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
- data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
- data/generated/google/apis/cloudfunctions_v1.rb +1 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
- data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
- data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
- data/generated/google/apis/cloudkms_v1/service.rb +272 -272
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
- data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +194 -25
- data/generated/google/apis/compute_beta/representations.rb +42 -0
- data/generated/google/apis/compute_beta/service.rb +196 -100
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +69 -18
- data/generated/google/apis/compute_v1/representations.rb +16 -0
- data/generated/google/apis/compute_v1/service.rb +84 -26
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +794 -586
- data/generated/google/apis/container_v1/representations.rb +202 -118
- data/generated/google/apis/container_v1/service.rb +396 -167
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +4 -4
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +487 -484
- data/generated/google/apis/dataproc_v1/representations.rb +83 -83
- data/generated/google/apis/dataproc_v1/service.rb +299 -297
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +703 -703
- data/generated/google/apis/datastore_v1/representations.rb +148 -148
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
- data/generated/google/apis/dfareporting_v2_6.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
- data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
- data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
- data/generated/google/apis/dfareporting_v2_8.rb +40 -0
- data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
- data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +15 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +16 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
- data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
- data/generated/google/apis/firebaserules_v1/service.rb +118 -118
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +920 -920
- data/generated/google/apis/genomics_v1/representations.rb +202 -202
- data/generated/google/apis/genomics_v1/service.rb +1092 -1092
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +455 -435
- data/generated/google/apis/iam_v1/representations.rb +96 -93
- data/generated/google/apis/iam_v1/service.rb +157 -157
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +9 -9
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +455 -455
- data/generated/google/apis/language_v1/representations.rb +102 -102
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +216 -215
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +908 -895
- data/generated/google/apis/logging_v2/representations.rb +121 -120
- data/generated/google/apis/logging_v2/service.rb +489 -489
- data/generated/google/apis/logging_v2beta1.rb +4 -4
- data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
- data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
- data/generated/google/apis/logging_v2beta1/service.rb +249 -249
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
- data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1186 -1183
- data/generated/google/apis/ml_v1/representations.rb +177 -177
- data/generated/google/apis/ml_v1/service.rb +244 -244
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +866 -866
- data/generated/google/apis/monitoring_v3/representations.rb +163 -163
- data/generated/google/apis/monitoring_v3/service.rb +355 -316
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1499 -1499
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +512 -512
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +544 -423
- data/generated/google/apis/people_v1/representations.rb +127 -109
- data/generated/google/apis/people_v1/service.rb +8 -8
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +377 -377
- data/generated/google/apis/pubsub_v1/representations.rb +82 -82
- data/generated/google/apis/pubsub_v1/service.rb +93 -93
- data/generated/google/apis/runtimeconfig_v1.rb +6 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +113 -58
- data/generated/google/apis/script_v1/representations.rb +43 -14
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
- data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
- data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
- data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
- data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
- data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
- data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
- data/generated/google/apis/serviceuser_v1/service.rb +19 -19
- data/generated/google/apis/sheets_v4.rb +4 -1
- data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
- data/generated/google/apis/sheets_v4/representations.rb +858 -858
- data/generated/google/apis/sheets_v4/service.rb +115 -115
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2890 -2890
- data/generated/google/apis/slides_v1/representations.rb +638 -638
- data/generated/google/apis/slides_v1/service.rb +36 -36
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
- data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +466 -466
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
- data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
- data/generated/google/apis/speech_v1beta1/service.rb +49 -49
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
- data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
- data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +0 -12
- data/generated/google/apis/surveys_v2/representations.rb +0 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1301 -1302
- data/generated/google/apis/vision_v1/representations.rb +183 -183
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
- data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/datastore/
|
|
27
27
|
module DatastoreV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20170426'
|
|
30
30
|
|
|
31
31
|
# View and manage your Google Cloud Datastore data
|
|
32
32
|
AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
|
|
@@ -22,6 +22,280 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module DatastoreV1
|
|
24
24
|
|
|
25
|
+
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
26
|
+
class GqlQuery
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# A string of the format described
|
|
30
|
+
# [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
31
|
+
# Corresponds to the JSON property `queryString`
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :query_string
|
|
34
|
+
|
|
35
|
+
# When false, the query string must not contain any literals and instead must
|
|
36
|
+
# bind all values. For example,
|
|
37
|
+
# `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
|
|
38
|
+
# `SELECT * FROM Kind WHERE a = @value` is.
|
|
39
|
+
# Corresponds to the JSON property `allowLiterals`
|
|
40
|
+
# @return [Boolean]
|
|
41
|
+
attr_accessor :allow_literals
|
|
42
|
+
alias_method :allow_literals?, :allow_literals
|
|
43
|
+
|
|
44
|
+
# For each non-reserved named binding site in the query string, there must be
|
|
45
|
+
# a named parameter with that name, but not necessarily the inverse.
|
|
46
|
+
# Key must match regex `A-Za-z_$*`, must not match regex
|
|
47
|
+
# `__.*__`, and must not be `""`.
|
|
48
|
+
# Corresponds to the JSON property `namedBindings`
|
|
49
|
+
# @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
50
|
+
attr_accessor :named_bindings
|
|
51
|
+
|
|
52
|
+
# Numbered binding site @1 references the first numbered parameter,
|
|
53
|
+
# effectively using 1-based indexing, rather than the usual 0.
|
|
54
|
+
# For each binding site numbered i in `query_string`, there must be an i-th
|
|
55
|
+
# numbered parameter. The inverse must also be true.
|
|
56
|
+
# Corresponds to the JSON property `positionalBindings`
|
|
57
|
+
# @return [Array<Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
58
|
+
attr_accessor :positional_bindings
|
|
59
|
+
|
|
60
|
+
def initialize(**args)
|
|
61
|
+
update!(**args)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Update properties of this object
|
|
65
|
+
def update!(**args)
|
|
66
|
+
@query_string = args[:query_string] if args.key?(:query_string)
|
|
67
|
+
@allow_literals = args[:allow_literals] if args.key?(:allow_literals)
|
|
68
|
+
@named_bindings = args[:named_bindings] if args.key?(:named_bindings)
|
|
69
|
+
@positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# A holder for any type of filter.
|
|
74
|
+
class Filter
|
|
75
|
+
include Google::Apis::Core::Hashable
|
|
76
|
+
|
|
77
|
+
# A filter that merges multiple other filters using the given operator.
|
|
78
|
+
# Corresponds to the JSON property `compositeFilter`
|
|
79
|
+
# @return [Google::Apis::DatastoreV1::CompositeFilter]
|
|
80
|
+
attr_accessor :composite_filter
|
|
81
|
+
|
|
82
|
+
# A filter on a specific property.
|
|
83
|
+
# Corresponds to the JSON property `propertyFilter`
|
|
84
|
+
# @return [Google::Apis::DatastoreV1::PropertyFilter]
|
|
85
|
+
attr_accessor :property_filter
|
|
86
|
+
|
|
87
|
+
def initialize(**args)
|
|
88
|
+
update!(**args)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Update properties of this object
|
|
92
|
+
def update!(**args)
|
|
93
|
+
@composite_filter = args[:composite_filter] if args.key?(:composite_filter)
|
|
94
|
+
@property_filter = args[:property_filter] if args.key?(:property_filter)
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# The request for Datastore.Rollback.
|
|
99
|
+
class RollbackRequest
|
|
100
|
+
include Google::Apis::Core::Hashable
|
|
101
|
+
|
|
102
|
+
# The transaction identifier, returned by a call to
|
|
103
|
+
# Datastore.BeginTransaction.
|
|
104
|
+
# Corresponds to the JSON property `transaction`
|
|
105
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
106
|
+
# @return [String]
|
|
107
|
+
attr_accessor :transaction
|
|
108
|
+
|
|
109
|
+
def initialize(**args)
|
|
110
|
+
update!(**args)
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Update properties of this object
|
|
114
|
+
def update!(**args)
|
|
115
|
+
@transaction = args[:transaction] if args.key?(:transaction)
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# The request for Datastore.RunQuery.
|
|
120
|
+
class RunQueryRequest
|
|
121
|
+
include Google::Apis::Core::Hashable
|
|
122
|
+
|
|
123
|
+
# A partition ID identifies a grouping of entities. The grouping is always
|
|
124
|
+
# by project and namespace, however the namespace ID may be empty.
|
|
125
|
+
# A partition ID contains several dimensions:
|
|
126
|
+
# project ID and namespace ID.
|
|
127
|
+
# Partition dimensions:
|
|
128
|
+
# - May be `""`.
|
|
129
|
+
# - Must be valid UTF-8 bytes.
|
|
130
|
+
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
131
|
+
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
132
|
+
# reserved/read-only.
|
|
133
|
+
# A reserved/read-only partition ID is forbidden in certain documented
|
|
134
|
+
# contexts.
|
|
135
|
+
# Foreign partition IDs (in which the project ID does
|
|
136
|
+
# not match the context project ID ) are discouraged.
|
|
137
|
+
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
138
|
+
# active state.
|
|
139
|
+
# Corresponds to the JSON property `partitionId`
|
|
140
|
+
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
141
|
+
attr_accessor :partition_id
|
|
142
|
+
|
|
143
|
+
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
144
|
+
# Corresponds to the JSON property `gqlQuery`
|
|
145
|
+
# @return [Google::Apis::DatastoreV1::GqlQuery]
|
|
146
|
+
attr_accessor :gql_query
|
|
147
|
+
|
|
148
|
+
# The options shared by read requests.
|
|
149
|
+
# Corresponds to the JSON property `readOptions`
|
|
150
|
+
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
151
|
+
attr_accessor :read_options
|
|
152
|
+
|
|
153
|
+
# A query for entities.
|
|
154
|
+
# Corresponds to the JSON property `query`
|
|
155
|
+
# @return [Google::Apis::DatastoreV1::Query]
|
|
156
|
+
attr_accessor :query
|
|
157
|
+
|
|
158
|
+
def initialize(**args)
|
|
159
|
+
update!(**args)
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Update properties of this object
|
|
163
|
+
def update!(**args)
|
|
164
|
+
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
165
|
+
@gql_query = args[:gql_query] if args.key?(:gql_query)
|
|
166
|
+
@read_options = args[:read_options] if args.key?(:read_options)
|
|
167
|
+
@query = args[:query] if args.key?(:query)
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# A filter that merges multiple other filters using the given operator.
|
|
172
|
+
class CompositeFilter
|
|
173
|
+
include Google::Apis::Core::Hashable
|
|
174
|
+
|
|
175
|
+
# The list of filters to combine.
|
|
176
|
+
# Must contain at least one filter.
|
|
177
|
+
# Corresponds to the JSON property `filters`
|
|
178
|
+
# @return [Array<Google::Apis::DatastoreV1::Filter>]
|
|
179
|
+
attr_accessor :filters
|
|
180
|
+
|
|
181
|
+
# The operator for combining multiple filters.
|
|
182
|
+
# Corresponds to the JSON property `op`
|
|
183
|
+
# @return [String]
|
|
184
|
+
attr_accessor :op
|
|
185
|
+
|
|
186
|
+
def initialize(**args)
|
|
187
|
+
update!(**args)
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Update properties of this object
|
|
191
|
+
def update!(**args)
|
|
192
|
+
@filters = args[:filters] if args.key?(:filters)
|
|
193
|
+
@op = args[:op] if args.key?(:op)
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# The response for Datastore.AllocateIds.
|
|
198
|
+
class AllocateIdsResponse
|
|
199
|
+
include Google::Apis::Core::Hashable
|
|
200
|
+
|
|
201
|
+
# The keys specified in the request (in the same order), each with
|
|
202
|
+
# its key path completed with a newly allocated ID.
|
|
203
|
+
# Corresponds to the JSON property `keys`
|
|
204
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
205
|
+
attr_accessor :keys
|
|
206
|
+
|
|
207
|
+
def initialize(**args)
|
|
208
|
+
update!(**args)
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Update properties of this object
|
|
212
|
+
def update!(**args)
|
|
213
|
+
@keys = args[:keys] if args.key?(:keys)
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# A query for entities.
|
|
218
|
+
class Query
|
|
219
|
+
include Google::Apis::Core::Hashable
|
|
220
|
+
|
|
221
|
+
# The projection to return. Defaults to returning all properties.
|
|
222
|
+
# Corresponds to the JSON property `projection`
|
|
223
|
+
# @return [Array<Google::Apis::DatastoreV1::Projection>]
|
|
224
|
+
attr_accessor :projection
|
|
225
|
+
|
|
226
|
+
# An ending point for the query results. Query cursors are
|
|
227
|
+
# returned in query result batches and
|
|
228
|
+
# [can only be used to limit the same query](https://cloud.google.com/datastore/
|
|
229
|
+
# docs/concepts/queries#cursors_limits_and_offsets).
|
|
230
|
+
# Corresponds to the JSON property `endCursor`
|
|
231
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
232
|
+
# @return [String]
|
|
233
|
+
attr_accessor :end_cursor
|
|
234
|
+
|
|
235
|
+
# A holder for any type of filter.
|
|
236
|
+
# Corresponds to the JSON property `filter`
|
|
237
|
+
# @return [Google::Apis::DatastoreV1::Filter]
|
|
238
|
+
attr_accessor :filter
|
|
239
|
+
|
|
240
|
+
# The maximum number of results to return. Applies after all other
|
|
241
|
+
# constraints. Optional.
|
|
242
|
+
# Unspecified is interpreted as no limit.
|
|
243
|
+
# Must be >= 0 if specified.
|
|
244
|
+
# Corresponds to the JSON property `limit`
|
|
245
|
+
# @return [Fixnum]
|
|
246
|
+
attr_accessor :limit
|
|
247
|
+
|
|
248
|
+
# The number of results to skip. Applies before limit, but after all other
|
|
249
|
+
# constraints. Optional. Must be >= 0 if specified.
|
|
250
|
+
# Corresponds to the JSON property `offset`
|
|
251
|
+
# @return [Fixnum]
|
|
252
|
+
attr_accessor :offset
|
|
253
|
+
|
|
254
|
+
# A starting point for the query results. Query cursors are
|
|
255
|
+
# returned in query result batches and
|
|
256
|
+
# [can only be used to continue the same query](https://cloud.google.com/
|
|
257
|
+
# datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
|
258
|
+
# Corresponds to the JSON property `startCursor`
|
|
259
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
260
|
+
# @return [String]
|
|
261
|
+
attr_accessor :start_cursor
|
|
262
|
+
|
|
263
|
+
# The kinds to query (if empty, returns entities of all kinds).
|
|
264
|
+
# Currently at most 1 kind may be specified.
|
|
265
|
+
# Corresponds to the JSON property `kind`
|
|
266
|
+
# @return [Array<Google::Apis::DatastoreV1::KindExpression>]
|
|
267
|
+
attr_accessor :kind
|
|
268
|
+
|
|
269
|
+
# The properties to make distinct. The query results will contain the first
|
|
270
|
+
# result for each distinct combination of values for the given properties
|
|
271
|
+
# (if empty, all results are returned).
|
|
272
|
+
# Corresponds to the JSON property `distinctOn`
|
|
273
|
+
# @return [Array<Google::Apis::DatastoreV1::PropertyReference>]
|
|
274
|
+
attr_accessor :distinct_on
|
|
275
|
+
|
|
276
|
+
# The order to apply to the query results (if empty, order is unspecified).
|
|
277
|
+
# Corresponds to the JSON property `order`
|
|
278
|
+
# @return [Array<Google::Apis::DatastoreV1::PropertyOrder>]
|
|
279
|
+
attr_accessor :order
|
|
280
|
+
|
|
281
|
+
def initialize(**args)
|
|
282
|
+
update!(**args)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Update properties of this object
|
|
286
|
+
def update!(**args)
|
|
287
|
+
@projection = args[:projection] if args.key?(:projection)
|
|
288
|
+
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
289
|
+
@filter = args[:filter] if args.key?(:filter)
|
|
290
|
+
@limit = args[:limit] if args.key?(:limit)
|
|
291
|
+
@offset = args[:offset] if args.key?(:offset)
|
|
292
|
+
@start_cursor = args[:start_cursor] if args.key?(:start_cursor)
|
|
293
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
294
|
+
@distinct_on = args[:distinct_on] if args.key?(:distinct_on)
|
|
295
|
+
@order = args[:order] if args.key?(:order)
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
|
|
25
299
|
# A filter on a specific property.
|
|
26
300
|
class PropertyFilter
|
|
27
301
|
include Google::Apis::Core::Hashable
|
|
@@ -96,56 +370,11 @@ module Google
|
|
|
96
370
|
end
|
|
97
371
|
end
|
|
98
372
|
|
|
99
|
-
# The response for Datastore.Commit.
|
|
100
|
-
class CommitResponse
|
|
101
|
-
include Google::Apis::Core::Hashable
|
|
102
|
-
|
|
103
|
-
# The result of performing the mutations.
|
|
104
|
-
# The i-th mutation result corresponds to the i-th mutation in the request.
|
|
105
|
-
# Corresponds to the JSON property `mutationResults`
|
|
106
|
-
# @return [Array<Google::Apis::DatastoreV1::MutationResult>]
|
|
107
|
-
attr_accessor :mutation_results
|
|
108
|
-
|
|
109
|
-
# The number of index entries updated during the commit, or zero if none were
|
|
110
|
-
# updated.
|
|
111
|
-
# Corresponds to the JSON property `indexUpdates`
|
|
112
|
-
# @return [Fixnum]
|
|
113
|
-
attr_accessor :index_updates
|
|
114
|
-
|
|
115
|
-
def initialize(**args)
|
|
116
|
-
update!(**args)
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
# Update properties of this object
|
|
120
|
-
def update!(**args)
|
|
121
|
-
@mutation_results = args[:mutation_results] if args.key?(:mutation_results)
|
|
122
|
-
@index_updates = args[:index_updates] if args.key?(:index_updates)
|
|
123
|
-
end
|
|
124
|
-
end
|
|
125
|
-
|
|
126
373
|
# A message that can hold any of the supported value types and associated
|
|
127
374
|
# metadata.
|
|
128
375
|
class Value
|
|
129
376
|
include Google::Apis::Core::Hashable
|
|
130
377
|
|
|
131
|
-
# The `meaning` field should only be populated for backwards compatibility.
|
|
132
|
-
# Corresponds to the JSON property `meaning`
|
|
133
|
-
# @return [Fixnum]
|
|
134
|
-
attr_accessor :meaning
|
|
135
|
-
|
|
136
|
-
# An array value.
|
|
137
|
-
# Corresponds to the JSON property `arrayValue`
|
|
138
|
-
# @return [Google::Apis::DatastoreV1::ArrayValue]
|
|
139
|
-
attr_accessor :array_value
|
|
140
|
-
|
|
141
|
-
# A Datastore data object.
|
|
142
|
-
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
143
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
144
|
-
# message.
|
|
145
|
-
# Corresponds to the JSON property `entityValue`
|
|
146
|
-
# @return [Google::Apis::DatastoreV1::Entity]
|
|
147
|
-
attr_accessor :entity_value
|
|
148
|
-
|
|
149
378
|
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
150
379
|
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
151
380
|
# specified otherwise, this must conform to the
|
|
@@ -227,25 +456,81 @@ module Google
|
|
|
227
456
|
# @return [String]
|
|
228
457
|
attr_accessor :timestamp_value
|
|
229
458
|
|
|
459
|
+
# A null value.
|
|
460
|
+
# Corresponds to the JSON property `nullValue`
|
|
461
|
+
# @return [String]
|
|
462
|
+
attr_accessor :null_value
|
|
463
|
+
|
|
230
464
|
# A boolean value.
|
|
231
465
|
# Corresponds to the JSON property `booleanValue`
|
|
232
466
|
# @return [Boolean]
|
|
233
467
|
attr_accessor :boolean_value
|
|
234
468
|
alias_method :boolean_value?, :boolean_value
|
|
235
469
|
|
|
236
|
-
# A
|
|
237
|
-
#
|
|
470
|
+
# A blob value.
|
|
471
|
+
# May have at most 1,000,000 bytes.
|
|
472
|
+
# When `exclude_from_indexes` is false, may have at most 1500 bytes.
|
|
473
|
+
# In JSON requests, must be base64-encoded.
|
|
474
|
+
# Corresponds to the JSON property `blobValue`
|
|
475
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
238
476
|
# @return [String]
|
|
239
|
-
attr_accessor :
|
|
477
|
+
attr_accessor :blob_value
|
|
478
|
+
|
|
479
|
+
# The `meaning` field should only be populated for backwards compatibility.
|
|
480
|
+
# Corresponds to the JSON property `meaning`
|
|
481
|
+
# @return [Fixnum]
|
|
482
|
+
attr_accessor :meaning
|
|
483
|
+
|
|
484
|
+
# An array value.
|
|
485
|
+
# Corresponds to the JSON property `arrayValue`
|
|
486
|
+
# @return [Google::Apis::DatastoreV1::ArrayValue]
|
|
487
|
+
attr_accessor :array_value
|
|
488
|
+
|
|
489
|
+
# A Datastore data object.
|
|
490
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
491
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
492
|
+
# message.
|
|
493
|
+
# Corresponds to the JSON property `entityValue`
|
|
494
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
495
|
+
attr_accessor :entity_value
|
|
496
|
+
|
|
497
|
+
def initialize(**args)
|
|
498
|
+
update!(**args)
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
# Update properties of this object
|
|
502
|
+
def update!(**args)
|
|
503
|
+
@geo_point_value = args[:geo_point_value] if args.key?(:geo_point_value)
|
|
504
|
+
@key_value = args[:key_value] if args.key?(:key_value)
|
|
505
|
+
@integer_value = args[:integer_value] if args.key?(:integer_value)
|
|
506
|
+
@string_value = args[:string_value] if args.key?(:string_value)
|
|
507
|
+
@exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
|
|
508
|
+
@double_value = args[:double_value] if args.key?(:double_value)
|
|
509
|
+
@timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
|
|
510
|
+
@null_value = args[:null_value] if args.key?(:null_value)
|
|
511
|
+
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
|
|
512
|
+
@blob_value = args[:blob_value] if args.key?(:blob_value)
|
|
513
|
+
@meaning = args[:meaning] if args.key?(:meaning)
|
|
514
|
+
@array_value = args[:array_value] if args.key?(:array_value)
|
|
515
|
+
@entity_value = args[:entity_value] if args.key?(:entity_value)
|
|
516
|
+
end
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# The response for Datastore.Commit.
|
|
520
|
+
class CommitResponse
|
|
521
|
+
include Google::Apis::Core::Hashable
|
|
522
|
+
|
|
523
|
+
# The number of index entries updated during the commit, or zero if none were
|
|
524
|
+
# updated.
|
|
525
|
+
# Corresponds to the JSON property `indexUpdates`
|
|
526
|
+
# @return [Fixnum]
|
|
527
|
+
attr_accessor :index_updates
|
|
240
528
|
|
|
241
|
-
#
|
|
242
|
-
#
|
|
243
|
-
#
|
|
244
|
-
#
|
|
245
|
-
|
|
246
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
247
|
-
# @return [String]
|
|
248
|
-
attr_accessor :blob_value
|
|
529
|
+
# The result of performing the mutations.
|
|
530
|
+
# The i-th mutation result corresponds to the i-th mutation in the request.
|
|
531
|
+
# Corresponds to the JSON property `mutationResults`
|
|
532
|
+
# @return [Array<Google::Apis::DatastoreV1::MutationResult>]
|
|
533
|
+
attr_accessor :mutation_results
|
|
249
534
|
|
|
250
535
|
def initialize(**args)
|
|
251
536
|
update!(**args)
|
|
@@ -253,19 +538,8 @@ module Google
|
|
|
253
538
|
|
|
254
539
|
# Update properties of this object
|
|
255
540
|
def update!(**args)
|
|
256
|
-
@
|
|
257
|
-
@
|
|
258
|
-
@entity_value = args[:entity_value] if args.key?(:entity_value)
|
|
259
|
-
@geo_point_value = args[:geo_point_value] if args.key?(:geo_point_value)
|
|
260
|
-
@key_value = args[:key_value] if args.key?(:key_value)
|
|
261
|
-
@integer_value = args[:integer_value] if args.key?(:integer_value)
|
|
262
|
-
@string_value = args[:string_value] if args.key?(:string_value)
|
|
263
|
-
@exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
|
|
264
|
-
@double_value = args[:double_value] if args.key?(:double_value)
|
|
265
|
-
@timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
|
|
266
|
-
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
|
|
267
|
-
@null_value = args[:null_value] if args.key?(:null_value)
|
|
268
|
-
@blob_value = args[:blob_value] if args.key?(:blob_value)
|
|
541
|
+
@index_updates = args[:index_updates] if args.key?(:index_updates)
|
|
542
|
+
@mutation_results = args[:mutation_results] if args.key?(:mutation_results)
|
|
269
543
|
end
|
|
270
544
|
end
|
|
271
545
|
|
|
@@ -349,39 +623,22 @@ module Google
|
|
|
349
623
|
class QueryResultBatch
|
|
350
624
|
include Google::Apis::Core::Hashable
|
|
351
625
|
|
|
352
|
-
# A cursor that points to the position after the last skipped result.
|
|
353
|
-
# Will be set when `skipped_results` != 0.
|
|
354
|
-
# Corresponds to the JSON property `skippedCursor`
|
|
355
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
356
|
-
# @return [String]
|
|
357
|
-
attr_accessor :skipped_cursor
|
|
358
|
-
|
|
359
|
-
# The number of results skipped, typically because of an offset.
|
|
360
|
-
# Corresponds to the JSON property `skippedResults`
|
|
361
|
-
# @return [Fixnum]
|
|
362
|
-
attr_accessor :skipped_results
|
|
363
|
-
|
|
364
|
-
# The result type for every entity in `entity_results`.
|
|
365
|
-
# Corresponds to the JSON property `entityResultType`
|
|
366
|
-
# @return [String]
|
|
367
|
-
attr_accessor :entity_result_type
|
|
368
|
-
|
|
369
626
|
# The results for this batch.
|
|
370
627
|
# Corresponds to the JSON property `entityResults`
|
|
371
628
|
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
372
629
|
attr_accessor :entity_results
|
|
373
630
|
|
|
631
|
+
# The state of the query after the current batch.
|
|
632
|
+
# Corresponds to the JSON property `moreResults`
|
|
633
|
+
# @return [String]
|
|
634
|
+
attr_accessor :more_results
|
|
635
|
+
|
|
374
636
|
# A cursor that points to the position after the last result in the batch.
|
|
375
637
|
# Corresponds to the JSON property `endCursor`
|
|
376
638
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
377
639
|
# @return [String]
|
|
378
640
|
attr_accessor :end_cursor
|
|
379
641
|
|
|
380
|
-
# The state of the query after the current batch.
|
|
381
|
-
# Corresponds to the JSON property `moreResults`
|
|
382
|
-
# @return [String]
|
|
383
|
-
attr_accessor :more_results
|
|
384
|
-
|
|
385
642
|
# The version number of the snapshot this batch was returned from.
|
|
386
643
|
# This applies to the range of results from the query's `start_cursor` (or
|
|
387
644
|
# the beginning of the query if no cursor was given) to this batch's
|
|
@@ -394,19 +651,36 @@ module Google
|
|
|
394
651
|
# @return [Fixnum]
|
|
395
652
|
attr_accessor :snapshot_version
|
|
396
653
|
|
|
654
|
+
# A cursor that points to the position after the last skipped result.
|
|
655
|
+
# Will be set when `skipped_results` != 0.
|
|
656
|
+
# Corresponds to the JSON property `skippedCursor`
|
|
657
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
658
|
+
# @return [String]
|
|
659
|
+
attr_accessor :skipped_cursor
|
|
660
|
+
|
|
661
|
+
# The number of results skipped, typically because of an offset.
|
|
662
|
+
# Corresponds to the JSON property `skippedResults`
|
|
663
|
+
# @return [Fixnum]
|
|
664
|
+
attr_accessor :skipped_results
|
|
665
|
+
|
|
666
|
+
# The result type for every entity in `entity_results`.
|
|
667
|
+
# Corresponds to the JSON property `entityResultType`
|
|
668
|
+
# @return [String]
|
|
669
|
+
attr_accessor :entity_result_type
|
|
670
|
+
|
|
397
671
|
def initialize(**args)
|
|
398
672
|
update!(**args)
|
|
399
673
|
end
|
|
400
674
|
|
|
401
675
|
# Update properties of this object
|
|
402
676
|
def update!(**args)
|
|
403
|
-
@skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
|
|
404
|
-
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
|
|
405
|
-
@entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
|
|
406
677
|
@entity_results = args[:entity_results] if args.key?(:entity_results)
|
|
407
|
-
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
408
678
|
@more_results = args[:more_results] if args.key?(:more_results)
|
|
679
|
+
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
409
680
|
@snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
|
|
681
|
+
@skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
|
|
682
|
+
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
|
|
683
|
+
@entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
|
|
410
684
|
end
|
|
411
685
|
end
|
|
412
686
|
|
|
@@ -414,24 +688,24 @@ module Google
|
|
|
414
688
|
class LookupRequest
|
|
415
689
|
include Google::Apis::Core::Hashable
|
|
416
690
|
|
|
417
|
-
# Keys of entities to look up.
|
|
418
|
-
# Corresponds to the JSON property `keys`
|
|
419
|
-
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
420
|
-
attr_accessor :keys
|
|
421
|
-
|
|
422
691
|
# The options shared by read requests.
|
|
423
692
|
# Corresponds to the JSON property `readOptions`
|
|
424
693
|
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
425
694
|
attr_accessor :read_options
|
|
426
695
|
|
|
696
|
+
# Keys of entities to look up.
|
|
697
|
+
# Corresponds to the JSON property `keys`
|
|
698
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
699
|
+
attr_accessor :keys
|
|
700
|
+
|
|
427
701
|
def initialize(**args)
|
|
428
702
|
update!(**args)
|
|
429
703
|
end
|
|
430
704
|
|
|
431
705
|
# Update properties of this object
|
|
432
706
|
def update!(**args)
|
|
433
|
-
@keys = args[:keys] if args.key?(:keys)
|
|
434
707
|
@read_options = args[:read_options] if args.key?(:read_options)
|
|
708
|
+
@keys = args[:keys] if args.key?(:keys)
|
|
435
709
|
end
|
|
436
710
|
end
|
|
437
711
|
|
|
@@ -441,22 +715,6 @@ module Google
|
|
|
441
715
|
class PathElement
|
|
442
716
|
include Google::Apis::Core::Hashable
|
|
443
717
|
|
|
444
|
-
# The name of the entity.
|
|
445
|
-
# A name matching regex `__.*__` is reserved/read-only.
|
|
446
|
-
# A name must not be more than 1500 bytes when UTF-8 encoded.
|
|
447
|
-
# Cannot be `""`.
|
|
448
|
-
# Corresponds to the JSON property `name`
|
|
449
|
-
# @return [String]
|
|
450
|
-
attr_accessor :name
|
|
451
|
-
|
|
452
|
-
# The kind of the entity.
|
|
453
|
-
# A kind matching regex `__.*__` is reserved/read-only.
|
|
454
|
-
# A kind must not contain more than 1500 bytes when UTF-8 encoded.
|
|
455
|
-
# Cannot be `""`.
|
|
456
|
-
# Corresponds to the JSON property `kind`
|
|
457
|
-
# @return [String]
|
|
458
|
-
attr_accessor :kind
|
|
459
|
-
|
|
460
718
|
# The auto-allocated ID of the entity.
|
|
461
719
|
# Never equal to zero. Values less than zero are discouraged and may not
|
|
462
720
|
# be supported in the future.
|
|
@@ -464,151 +722,21 @@ module Google
|
|
|
464
722
|
# @return [Fixnum]
|
|
465
723
|
attr_accessor :id
|
|
466
724
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
#
|
|
472
|
-
def update!(**args)
|
|
473
|
-
@name = args[:name] if args.key?(:name)
|
|
474
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
475
|
-
@id = args[:id] if args.key?(:id)
|
|
476
|
-
end
|
|
477
|
-
end
|
|
478
|
-
|
|
479
|
-
# A binding parameter for a GQL query.
|
|
480
|
-
class GqlQueryParameter
|
|
481
|
-
include Google::Apis::Core::Hashable
|
|
482
|
-
|
|
483
|
-
# A query cursor. Query cursors are returned in query
|
|
484
|
-
# result batches.
|
|
485
|
-
# Corresponds to the JSON property `cursor`
|
|
486
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
487
|
-
# @return [String]
|
|
488
|
-
attr_accessor :cursor
|
|
489
|
-
|
|
490
|
-
# A message that can hold any of the supported value types and associated
|
|
491
|
-
# metadata.
|
|
492
|
-
# Corresponds to the JSON property `value`
|
|
493
|
-
# @return [Google::Apis::DatastoreV1::Value]
|
|
494
|
-
attr_accessor :value
|
|
495
|
-
|
|
496
|
-
def initialize(**args)
|
|
497
|
-
update!(**args)
|
|
498
|
-
end
|
|
499
|
-
|
|
500
|
-
# Update properties of this object
|
|
501
|
-
def update!(**args)
|
|
502
|
-
@cursor = args[:cursor] if args.key?(:cursor)
|
|
503
|
-
@value = args[:value] if args.key?(:value)
|
|
504
|
-
end
|
|
505
|
-
end
|
|
506
|
-
|
|
507
|
-
# The response for Datastore.BeginTransaction.
|
|
508
|
-
class BeginTransactionResponse
|
|
509
|
-
include Google::Apis::Core::Hashable
|
|
510
|
-
|
|
511
|
-
# The transaction identifier (always present).
|
|
512
|
-
# Corresponds to the JSON property `transaction`
|
|
513
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
725
|
+
# The name of the entity.
|
|
726
|
+
# A name matching regex `__.*__` is reserved/read-only.
|
|
727
|
+
# A name must not be more than 1500 bytes when UTF-8 encoded.
|
|
728
|
+
# Cannot be `""`.
|
|
729
|
+
# Corresponds to the JSON property `name`
|
|
514
730
|
# @return [String]
|
|
515
|
-
attr_accessor :
|
|
516
|
-
|
|
517
|
-
def initialize(**args)
|
|
518
|
-
update!(**args)
|
|
519
|
-
end
|
|
520
|
-
|
|
521
|
-
# Update properties of this object
|
|
522
|
-
def update!(**args)
|
|
523
|
-
@transaction = args[:transaction] if args.key?(:transaction)
|
|
524
|
-
end
|
|
525
|
-
end
|
|
526
|
-
|
|
527
|
-
# The response for Datastore.RunQuery.
|
|
528
|
-
class RunQueryResponse
|
|
529
|
-
include Google::Apis::Core::Hashable
|
|
530
|
-
|
|
531
|
-
# A query for entities.
|
|
532
|
-
# Corresponds to the JSON property `query`
|
|
533
|
-
# @return [Google::Apis::DatastoreV1::Query]
|
|
534
|
-
attr_accessor :query
|
|
535
|
-
|
|
536
|
-
# A batch of results produced by a query.
|
|
537
|
-
# Corresponds to the JSON property `batch`
|
|
538
|
-
# @return [Google::Apis::DatastoreV1::QueryResultBatch]
|
|
539
|
-
attr_accessor :batch
|
|
540
|
-
|
|
541
|
-
def initialize(**args)
|
|
542
|
-
update!(**args)
|
|
543
|
-
end
|
|
544
|
-
|
|
545
|
-
# Update properties of this object
|
|
546
|
-
def update!(**args)
|
|
547
|
-
@query = args[:query] if args.key?(:query)
|
|
548
|
-
@batch = args[:batch] if args.key?(:batch)
|
|
549
|
-
end
|
|
550
|
-
end
|
|
551
|
-
|
|
552
|
-
# The response for Datastore.Lookup.
|
|
553
|
-
class LookupResponse
|
|
554
|
-
include Google::Apis::Core::Hashable
|
|
555
|
-
|
|
556
|
-
# A list of keys that were not looked up due to resource constraints. The
|
|
557
|
-
# order of results in this field is undefined and has no relation to the
|
|
558
|
-
# order of the keys in the input.
|
|
559
|
-
# Corresponds to the JSON property `deferred`
|
|
560
|
-
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
561
|
-
attr_accessor :deferred
|
|
562
|
-
|
|
563
|
-
# Entities found as `ResultType.FULL` entities. The order of results in this
|
|
564
|
-
# field is undefined and has no relation to the order of the keys in the
|
|
565
|
-
# input.
|
|
566
|
-
# Corresponds to the JSON property `found`
|
|
567
|
-
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
568
|
-
attr_accessor :found
|
|
569
|
-
|
|
570
|
-
# Entities not found as `ResultType.KEY_ONLY` entities. The order of results
|
|
571
|
-
# in this field is undefined and has no relation to the order of the keys
|
|
572
|
-
# in the input.
|
|
573
|
-
# Corresponds to the JSON property `missing`
|
|
574
|
-
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
575
|
-
attr_accessor :missing
|
|
576
|
-
|
|
577
|
-
def initialize(**args)
|
|
578
|
-
update!(**args)
|
|
579
|
-
end
|
|
580
|
-
|
|
581
|
-
# Update properties of this object
|
|
582
|
-
def update!(**args)
|
|
583
|
-
@deferred = args[:deferred] if args.key?(:deferred)
|
|
584
|
-
@found = args[:found] if args.key?(:found)
|
|
585
|
-
@missing = args[:missing] if args.key?(:missing)
|
|
586
|
-
end
|
|
587
|
-
end
|
|
588
|
-
|
|
589
|
-
# The request for Datastore.AllocateIds.
|
|
590
|
-
class AllocateIdsRequest
|
|
591
|
-
include Google::Apis::Core::Hashable
|
|
592
|
-
|
|
593
|
-
# A list of keys with incomplete key paths for which to allocate IDs.
|
|
594
|
-
# No key may be reserved/read-only.
|
|
595
|
-
# Corresponds to the JSON property `keys`
|
|
596
|
-
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
597
|
-
attr_accessor :keys
|
|
598
|
-
|
|
599
|
-
def initialize(**args)
|
|
600
|
-
update!(**args)
|
|
601
|
-
end
|
|
602
|
-
|
|
603
|
-
# Update properties of this object
|
|
604
|
-
def update!(**args)
|
|
605
|
-
@keys = args[:keys] if args.key?(:keys)
|
|
606
|
-
end
|
|
607
|
-
end
|
|
731
|
+
attr_accessor :name
|
|
608
732
|
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
733
|
+
# The kind of the entity.
|
|
734
|
+
# A kind matching regex `__.*__` is reserved/read-only.
|
|
735
|
+
# A kind must not contain more than 1500 bytes when UTF-8 encoded.
|
|
736
|
+
# Cannot be `""`.
|
|
737
|
+
# Corresponds to the JSON property `kind`
|
|
738
|
+
# @return [String]
|
|
739
|
+
attr_accessor :kind
|
|
612
740
|
|
|
613
741
|
def initialize(**args)
|
|
614
742
|
update!(**args)
|
|
@@ -616,22 +744,28 @@ module Google
|
|
|
616
744
|
|
|
617
745
|
# Update properties of this object
|
|
618
746
|
def update!(**args)
|
|
747
|
+
@id = args[:id] if args.key?(:id)
|
|
748
|
+
@name = args[:name] if args.key?(:name)
|
|
749
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
619
750
|
end
|
|
620
751
|
end
|
|
621
752
|
|
|
622
|
-
#
|
|
623
|
-
class
|
|
753
|
+
# A binding parameter for a GQL query.
|
|
754
|
+
class GqlQueryParameter
|
|
624
755
|
include Google::Apis::Core::Hashable
|
|
625
756
|
|
|
626
|
-
# A
|
|
627
|
-
#
|
|
628
|
-
#
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
# The direction to order by. Defaults to `ASCENDING`.
|
|
632
|
-
# Corresponds to the JSON property `direction`
|
|
757
|
+
# A query cursor. Query cursors are returned in query
|
|
758
|
+
# result batches.
|
|
759
|
+
# Corresponds to the JSON property `cursor`
|
|
760
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
633
761
|
# @return [String]
|
|
634
|
-
attr_accessor :
|
|
762
|
+
attr_accessor :cursor
|
|
763
|
+
|
|
764
|
+
# A message that can hold any of the supported value types and associated
|
|
765
|
+
# metadata.
|
|
766
|
+
# Corresponds to the JSON property `value`
|
|
767
|
+
# @return [Google::Apis::DatastoreV1::Value]
|
|
768
|
+
attr_accessor :value
|
|
635
769
|
|
|
636
770
|
def initialize(**args)
|
|
637
771
|
update!(**args)
|
|
@@ -639,42 +773,21 @@ module Google
|
|
|
639
773
|
|
|
640
774
|
# Update properties of this object
|
|
641
775
|
def update!(**args)
|
|
642
|
-
@
|
|
643
|
-
@
|
|
776
|
+
@cursor = args[:cursor] if args.key?(:cursor)
|
|
777
|
+
@value = args[:value] if args.key?(:value)
|
|
644
778
|
end
|
|
645
779
|
end
|
|
646
780
|
|
|
647
|
-
# The
|
|
648
|
-
class
|
|
781
|
+
# The response for Datastore.BeginTransaction.
|
|
782
|
+
class BeginTransactionResponse
|
|
649
783
|
include Google::Apis::Core::Hashable
|
|
650
784
|
|
|
651
|
-
# The
|
|
652
|
-
# transaction identifier is returned by a call to
|
|
653
|
-
# Datastore.BeginTransaction.
|
|
785
|
+
# The transaction identifier (always present).
|
|
654
786
|
# Corresponds to the JSON property `transaction`
|
|
655
787
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
656
788
|
# @return [String]
|
|
657
789
|
attr_accessor :transaction
|
|
658
790
|
|
|
659
|
-
# The type of commit to perform. Defaults to `TRANSACTIONAL`.
|
|
660
|
-
# Corresponds to the JSON property `mode`
|
|
661
|
-
# @return [String]
|
|
662
|
-
attr_accessor :mode
|
|
663
|
-
|
|
664
|
-
# The mutations to perform.
|
|
665
|
-
# When mode is `TRANSACTIONAL`, mutations affecting a single entity are
|
|
666
|
-
# applied in order. The following sequences of mutations affecting a single
|
|
667
|
-
# entity are not permitted in a single `Commit` request:
|
|
668
|
-
# - `insert` followed by `insert`
|
|
669
|
-
# - `update` followed by `insert`
|
|
670
|
-
# - `upsert` followed by `insert`
|
|
671
|
-
# - `delete` followed by `update`
|
|
672
|
-
# When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
|
|
673
|
-
# entity.
|
|
674
|
-
# Corresponds to the JSON property `mutations`
|
|
675
|
-
# @return [Array<Google::Apis::DatastoreV1::Mutation>]
|
|
676
|
-
attr_accessor :mutations
|
|
677
|
-
|
|
678
791
|
def initialize(**args)
|
|
679
792
|
update!(**args)
|
|
680
793
|
end
|
|
@@ -682,19 +795,18 @@ module Google
|
|
|
682
795
|
# Update properties of this object
|
|
683
796
|
def update!(**args)
|
|
684
797
|
@transaction = args[:transaction] if args.key?(:transaction)
|
|
685
|
-
@mode = args[:mode] if args.key?(:mode)
|
|
686
|
-
@mutations = args[:mutations] if args.key?(:mutations)
|
|
687
798
|
end
|
|
688
799
|
end
|
|
689
800
|
|
|
690
|
-
#
|
|
691
|
-
class
|
|
801
|
+
# The request for Datastore.AllocateIds.
|
|
802
|
+
class AllocateIdsRequest
|
|
692
803
|
include Google::Apis::Core::Hashable
|
|
693
804
|
|
|
694
|
-
#
|
|
695
|
-
#
|
|
696
|
-
#
|
|
697
|
-
|
|
805
|
+
# A list of keys with incomplete key paths for which to allocate IDs.
|
|
806
|
+
# No key may be reserved/read-only.
|
|
807
|
+
# Corresponds to the JSON property `keys`
|
|
808
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
809
|
+
attr_accessor :keys
|
|
698
810
|
|
|
699
811
|
def initialize(**args)
|
|
700
812
|
update!(**args)
|
|
@@ -702,54 +814,34 @@ module Google
|
|
|
702
814
|
|
|
703
815
|
# Update properties of this object
|
|
704
816
|
def update!(**args)
|
|
705
|
-
@
|
|
817
|
+
@keys = args[:keys] if args.key?(:keys)
|
|
706
818
|
end
|
|
707
819
|
end
|
|
708
820
|
|
|
709
|
-
#
|
|
710
|
-
|
|
711
|
-
# reserved/read-only, the key is reserved/read-only.
|
|
712
|
-
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
713
|
-
class Key
|
|
821
|
+
# The response for Datastore.Lookup.
|
|
822
|
+
class LookupResponse
|
|
714
823
|
include Google::Apis::Core::Hashable
|
|
715
824
|
|
|
716
|
-
#
|
|
717
|
-
#
|
|
718
|
-
#
|
|
719
|
-
#
|
|
720
|
-
#
|
|
721
|
-
|
|
722
|
-
# the path are called the element's _ancestors_.
|
|
723
|
-
# An entity path is always fully complete: *all* of the entity's ancestors
|
|
724
|
-
# are required to be in the path along with the entity identifier itself.
|
|
725
|
-
# The only exception is that in some documented cases, the identifier in the
|
|
726
|
-
# last path element (for the entity) itself may be omitted. For example,
|
|
727
|
-
# the last path element of the key of `Mutation.insert` may have no
|
|
728
|
-
# identifier.
|
|
729
|
-
# A path can never be empty, and a path can have at most 100 elements.
|
|
730
|
-
# Corresponds to the JSON property `path`
|
|
731
|
-
# @return [Array<Google::Apis::DatastoreV1::PathElement>]
|
|
732
|
-
attr_accessor :path
|
|
825
|
+
# A list of keys that were not looked up due to resource constraints. The
|
|
826
|
+
# order of results in this field is undefined and has no relation to the
|
|
827
|
+
# order of the keys in the input.
|
|
828
|
+
# Corresponds to the JSON property `deferred`
|
|
829
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
830
|
+
attr_accessor :deferred
|
|
733
831
|
|
|
734
|
-
#
|
|
735
|
-
#
|
|
736
|
-
#
|
|
737
|
-
#
|
|
738
|
-
#
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
#
|
|
742
|
-
#
|
|
743
|
-
#
|
|
744
|
-
#
|
|
745
|
-
#
|
|
746
|
-
|
|
747
|
-
# not match the context project ID ) are discouraged.
|
|
748
|
-
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
749
|
-
# active state.
|
|
750
|
-
# Corresponds to the JSON property `partitionId`
|
|
751
|
-
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
752
|
-
attr_accessor :partition_id
|
|
832
|
+
# Entities found as `ResultType.FULL` entities. The order of results in this
|
|
833
|
+
# field is undefined and has no relation to the order of the keys in the
|
|
834
|
+
# input.
|
|
835
|
+
# Corresponds to the JSON property `found`
|
|
836
|
+
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
837
|
+
attr_accessor :found
|
|
838
|
+
|
|
839
|
+
# Entities not found as `ResultType.KEY_ONLY` entities. The order of results
|
|
840
|
+
# in this field is undefined and has no relation to the order of the keys
|
|
841
|
+
# in the input.
|
|
842
|
+
# Corresponds to the JSON property `missing`
|
|
843
|
+
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
844
|
+
attr_accessor :missing
|
|
753
845
|
|
|
754
846
|
def initialize(**args)
|
|
755
847
|
update!(**args)
|
|
@@ -757,60 +849,25 @@ module Google
|
|
|
757
849
|
|
|
758
850
|
# Update properties of this object
|
|
759
851
|
def update!(**args)
|
|
760
|
-
@
|
|
761
|
-
@
|
|
852
|
+
@deferred = args[:deferred] if args.key?(:deferred)
|
|
853
|
+
@found = args[:found] if args.key?(:found)
|
|
854
|
+
@missing = args[:missing] if args.key?(:missing)
|
|
762
855
|
end
|
|
763
856
|
end
|
|
764
857
|
|
|
765
|
-
#
|
|
766
|
-
|
|
767
|
-
# specified otherwise, this must conform to the
|
|
768
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
769
|
-
# standard</a>. Values must be within normalized ranges.
|
|
770
|
-
# Example of normalization code in Python:
|
|
771
|
-
# def NormalizeLongitude(longitude):
|
|
772
|
-
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
773
|
-
# q, r = divmod(longitude, 360.0)
|
|
774
|
-
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
775
|
-
# return r - 360.0
|
|
776
|
-
# return r
|
|
777
|
-
# def NormalizeLatLng(latitude, longitude):
|
|
778
|
-
# """Wraps decimal degrees latitude and longitude to
|
|
779
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
780
|
-
# r = latitude % 360.0
|
|
781
|
-
# if r <= 90.0:
|
|
782
|
-
# return r, NormalizeLongitude(longitude)
|
|
783
|
-
# elif r >= 270.0:
|
|
784
|
-
# return r - 360, NormalizeLongitude(longitude)
|
|
785
|
-
# else:
|
|
786
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
787
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
|
788
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
789
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
|
790
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
791
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
792
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
793
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
794
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
795
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
796
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
797
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
798
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
799
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
800
|
-
# The code in logs/storage/validator/logs_validator_traits.cc treats this type
|
|
801
|
-
# as if it were annotated as ST_LOCATION.
|
|
802
|
-
class LatLng
|
|
858
|
+
# The response for Datastore.RunQuery.
|
|
859
|
+
class RunQueryResponse
|
|
803
860
|
include Google::Apis::Core::Hashable
|
|
804
861
|
|
|
805
|
-
#
|
|
806
|
-
# Corresponds to the JSON property `
|
|
807
|
-
# @return [
|
|
808
|
-
attr_accessor :
|
|
862
|
+
# A query for entities.
|
|
863
|
+
# Corresponds to the JSON property `query`
|
|
864
|
+
# @return [Google::Apis::DatastoreV1::Query]
|
|
865
|
+
attr_accessor :query
|
|
809
866
|
|
|
810
|
-
#
|
|
811
|
-
# Corresponds to the JSON property `
|
|
812
|
-
# @return [
|
|
813
|
-
attr_accessor :
|
|
867
|
+
# A batch of results produced by a query.
|
|
868
|
+
# Corresponds to the JSON property `batch`
|
|
869
|
+
# @return [Google::Apis::DatastoreV1::QueryResultBatch]
|
|
870
|
+
attr_accessor :batch
|
|
814
871
|
|
|
815
872
|
def initialize(**args)
|
|
816
873
|
update!(**args)
|
|
@@ -818,41 +875,41 @@ module Google
|
|
|
818
875
|
|
|
819
876
|
# Update properties of this object
|
|
820
877
|
def update!(**args)
|
|
821
|
-
@
|
|
822
|
-
@
|
|
878
|
+
@query = args[:query] if args.key?(:query)
|
|
879
|
+
@batch = args[:batch] if args.key?(:batch)
|
|
823
880
|
end
|
|
824
881
|
end
|
|
825
882
|
|
|
826
|
-
#
|
|
827
|
-
class
|
|
883
|
+
# The request for Datastore.Commit.
|
|
884
|
+
class CommitRequest
|
|
828
885
|
include Google::Apis::Core::Hashable
|
|
829
886
|
|
|
830
|
-
# The
|
|
831
|
-
#
|
|
832
|
-
#
|
|
833
|
-
#
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
#
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
end
|
|
844
|
-
end
|
|
845
|
-
|
|
846
|
-
# An array value.
|
|
847
|
-
class ArrayValue
|
|
848
|
-
include Google::Apis::Core::Hashable
|
|
887
|
+
# The mutations to perform.
|
|
888
|
+
# When mode is `TRANSACTIONAL`, mutations affecting a single entity are
|
|
889
|
+
# applied in order. The following sequences of mutations affecting a single
|
|
890
|
+
# entity are not permitted in a single `Commit` request:
|
|
891
|
+
# - `insert` followed by `insert`
|
|
892
|
+
# - `update` followed by `insert`
|
|
893
|
+
# - `upsert` followed by `insert`
|
|
894
|
+
# - `delete` followed by `update`
|
|
895
|
+
# When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
|
|
896
|
+
# entity.
|
|
897
|
+
# Corresponds to the JSON property `mutations`
|
|
898
|
+
# @return [Array<Google::Apis::DatastoreV1::Mutation>]
|
|
899
|
+
attr_accessor :mutations
|
|
849
900
|
|
|
850
|
-
#
|
|
851
|
-
#
|
|
852
|
-
#
|
|
853
|
-
# Corresponds to the JSON property `
|
|
854
|
-
#
|
|
855
|
-
|
|
901
|
+
# The identifier of the transaction associated with the commit. A
|
|
902
|
+
# transaction identifier is returned by a call to
|
|
903
|
+
# Datastore.BeginTransaction.
|
|
904
|
+
# Corresponds to the JSON property `transaction`
|
|
905
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
906
|
+
# @return [String]
|
|
907
|
+
attr_accessor :transaction
|
|
908
|
+
|
|
909
|
+
# The type of commit to perform. Defaults to `TRANSACTIONAL`.
|
|
910
|
+
# Corresponds to the JSON property `mode`
|
|
911
|
+
# @return [String]
|
|
912
|
+
attr_accessor :mode
|
|
856
913
|
|
|
857
914
|
def initialize(**args)
|
|
858
915
|
update!(**args)
|
|
@@ -860,70 +917,38 @@ module Google
|
|
|
860
917
|
|
|
861
918
|
# Update properties of this object
|
|
862
919
|
def update!(**args)
|
|
863
|
-
@
|
|
920
|
+
@mutations = args[:mutations] if args.key?(:mutations)
|
|
921
|
+
@transaction = args[:transaction] if args.key?(:transaction)
|
|
922
|
+
@mode = args[:mode] if args.key?(:mode)
|
|
864
923
|
end
|
|
865
924
|
end
|
|
866
925
|
|
|
867
|
-
#
|
|
868
|
-
class
|
|
926
|
+
# The request for Datastore.BeginTransaction.
|
|
927
|
+
class BeginTransactionRequest
|
|
869
928
|
include Google::Apis::Core::Hashable
|
|
870
929
|
|
|
871
|
-
# A reference to a property relative to the kind expressions.
|
|
872
|
-
# Corresponds to the JSON property `property`
|
|
873
|
-
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
874
|
-
attr_accessor :property
|
|
875
|
-
|
|
876
930
|
def initialize(**args)
|
|
877
931
|
update!(**args)
|
|
878
932
|
end
|
|
879
933
|
|
|
880
934
|
# Update properties of this object
|
|
881
935
|
def update!(**args)
|
|
882
|
-
@property = args[:property] if args.key?(:property)
|
|
883
936
|
end
|
|
884
937
|
end
|
|
885
938
|
|
|
886
|
-
#
|
|
887
|
-
class
|
|
939
|
+
# The desired order for a specific property.
|
|
940
|
+
class PropertyOrder
|
|
888
941
|
include Google::Apis::Core::Hashable
|
|
889
942
|
|
|
890
|
-
# A
|
|
891
|
-
#
|
|
892
|
-
#
|
|
893
|
-
|
|
894
|
-
# Corresponds to the JSON property `delete`
|
|
895
|
-
# @return [Google::Apis::DatastoreV1::Key]
|
|
896
|
-
attr_accessor :delete
|
|
897
|
-
|
|
898
|
-
# A Datastore data object.
|
|
899
|
-
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
900
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
901
|
-
# message.
|
|
902
|
-
# Corresponds to the JSON property `insert`
|
|
903
|
-
# @return [Google::Apis::DatastoreV1::Entity]
|
|
904
|
-
attr_accessor :insert
|
|
905
|
-
|
|
906
|
-
# The version of the entity that this mutation is being applied to. If this
|
|
907
|
-
# does not match the current version on the server, the mutation conflicts.
|
|
908
|
-
# Corresponds to the JSON property `baseVersion`
|
|
909
|
-
# @return [Fixnum]
|
|
910
|
-
attr_accessor :base_version
|
|
911
|
-
|
|
912
|
-
# A Datastore data object.
|
|
913
|
-
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
914
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
915
|
-
# message.
|
|
916
|
-
# Corresponds to the JSON property `update`
|
|
917
|
-
# @return [Google::Apis::DatastoreV1::Entity]
|
|
918
|
-
attr_accessor :update
|
|
943
|
+
# A reference to a property relative to the kind expressions.
|
|
944
|
+
# Corresponds to the JSON property `property`
|
|
945
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
946
|
+
attr_accessor :property
|
|
919
947
|
|
|
920
|
-
#
|
|
921
|
-
#
|
|
922
|
-
#
|
|
923
|
-
|
|
924
|
-
# Corresponds to the JSON property `upsert`
|
|
925
|
-
# @return [Google::Apis::DatastoreV1::Entity]
|
|
926
|
-
attr_accessor :upsert
|
|
948
|
+
# The direction to order by. Defaults to `ASCENDING`.
|
|
949
|
+
# Corresponds to the JSON property `direction`
|
|
950
|
+
# @return [String]
|
|
951
|
+
attr_accessor :direction
|
|
927
952
|
|
|
928
953
|
def initialize(**args)
|
|
929
954
|
update!(**args)
|
|
@@ -931,31 +956,19 @@ module Google
|
|
|
931
956
|
|
|
932
957
|
# Update properties of this object
|
|
933
958
|
def update!(**args)
|
|
934
|
-
@
|
|
935
|
-
@
|
|
936
|
-
@base_version = args[:base_version] if args.key?(:base_version)
|
|
937
|
-
@update = args[:update] if args.key?(:update)
|
|
938
|
-
@upsert = args[:upsert] if args.key?(:upsert)
|
|
959
|
+
@property = args[:property] if args.key?(:property)
|
|
960
|
+
@direction = args[:direction] if args.key?(:direction)
|
|
939
961
|
end
|
|
940
962
|
end
|
|
941
963
|
|
|
942
|
-
#
|
|
943
|
-
class
|
|
964
|
+
# A representation of a kind.
|
|
965
|
+
class KindExpression
|
|
944
966
|
include Google::Apis::Core::Hashable
|
|
945
967
|
|
|
946
|
-
# The
|
|
947
|
-
#
|
|
948
|
-
# Corresponds to the JSON property `readConsistency`
|
|
949
|
-
# @return [String]
|
|
950
|
-
attr_accessor :read_consistency
|
|
951
|
-
|
|
952
|
-
# The identifier of the transaction in which to read. A
|
|
953
|
-
# transaction identifier is returned by a call to
|
|
954
|
-
# Datastore.BeginTransaction.
|
|
955
|
-
# Corresponds to the JSON property `transaction`
|
|
956
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
968
|
+
# The name of the kind.
|
|
969
|
+
# Corresponds to the JSON property `name`
|
|
957
970
|
# @return [String]
|
|
958
|
-
attr_accessor :
|
|
971
|
+
attr_accessor :name
|
|
959
972
|
|
|
960
973
|
def initialize(**args)
|
|
961
974
|
update!(**args)
|
|
@@ -963,52 +976,115 @@ module Google
|
|
|
963
976
|
|
|
964
977
|
# Update properties of this object
|
|
965
978
|
def update!(**args)
|
|
966
|
-
@
|
|
967
|
-
@transaction = args[:transaction] if args.key?(:transaction)
|
|
979
|
+
@name = args[:name] if args.key?(:name)
|
|
968
980
|
end
|
|
969
981
|
end
|
|
970
982
|
|
|
971
|
-
#
|
|
972
|
-
#
|
|
973
|
-
|
|
983
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
984
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
985
|
+
# specified otherwise, this must conform to the
|
|
986
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
987
|
+
# standard</a>. Values must be within normalized ranges.
|
|
988
|
+
# Example of normalization code in Python:
|
|
989
|
+
# def NormalizeLongitude(longitude):
|
|
990
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
991
|
+
# q, r = divmod(longitude, 360.0)
|
|
992
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
993
|
+
# return r - 360.0
|
|
994
|
+
# return r
|
|
995
|
+
# def NormalizeLatLng(latitude, longitude):
|
|
996
|
+
# """Wraps decimal degrees latitude and longitude to
|
|
997
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
998
|
+
# r = latitude % 360.0
|
|
999
|
+
# if r <= 90.0:
|
|
1000
|
+
# return r, NormalizeLongitude(longitude)
|
|
1001
|
+
# elif r >= 270.0:
|
|
1002
|
+
# return r - 360, NormalizeLongitude(longitude)
|
|
1003
|
+
# else:
|
|
1004
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
1005
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
|
1006
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
1007
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
|
1008
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
1009
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
1010
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
1011
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
1012
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
1013
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
1014
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
1015
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
1016
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
1017
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
1018
|
+
# The code in logs/storage/validator/logs_validator_traits.cc treats this type
|
|
1019
|
+
# as if it were annotated as ST_LOCATION.
|
|
1020
|
+
class LatLng
|
|
974
1021
|
include Google::Apis::Core::Hashable
|
|
975
1022
|
|
|
1023
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
1024
|
+
# Corresponds to the JSON property `longitude`
|
|
1025
|
+
# @return [Float]
|
|
1026
|
+
attr_accessor :longitude
|
|
1027
|
+
|
|
1028
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
|
1029
|
+
# Corresponds to the JSON property `latitude`
|
|
1030
|
+
# @return [Float]
|
|
1031
|
+
attr_accessor :latitude
|
|
1032
|
+
|
|
976
1033
|
def initialize(**args)
|
|
977
1034
|
update!(**args)
|
|
978
1035
|
end
|
|
979
1036
|
|
|
980
1037
|
# Update properties of this object
|
|
981
1038
|
def update!(**args)
|
|
1039
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
|
1040
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
|
982
1041
|
end
|
|
983
1042
|
end
|
|
984
1043
|
|
|
985
|
-
#
|
|
986
|
-
|
|
1044
|
+
# A unique identifier for an entity.
|
|
1045
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
1046
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
1047
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1048
|
+
class Key
|
|
987
1049
|
include Google::Apis::Core::Hashable
|
|
988
1050
|
|
|
989
|
-
#
|
|
990
|
-
#
|
|
991
|
-
#
|
|
992
|
-
#
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
#
|
|
997
|
-
#
|
|
998
|
-
#
|
|
999
|
-
#
|
|
1000
|
-
#
|
|
1001
|
-
#
|
|
1002
|
-
|
|
1051
|
+
# The entity path.
|
|
1052
|
+
# An entity path consists of one or more elements composed of a kind and a
|
|
1053
|
+
# string or numerical identifier, which identify entities. The first
|
|
1054
|
+
# element identifies a _root entity_, the second element identifies
|
|
1055
|
+
# a _child_ of the root entity, the third element identifies a child of the
|
|
1056
|
+
# second entity, and so forth. The entities identified by all prefixes of
|
|
1057
|
+
# the path are called the element's _ancestors_.
|
|
1058
|
+
# An entity path is always fully complete: *all* of the entity's ancestors
|
|
1059
|
+
# are required to be in the path along with the entity identifier itself.
|
|
1060
|
+
# The only exception is that in some documented cases, the identifier in the
|
|
1061
|
+
# last path element (for the entity) itself may be omitted. For example,
|
|
1062
|
+
# the last path element of the key of `Mutation.insert` may have no
|
|
1063
|
+
# identifier.
|
|
1064
|
+
# A path can never be empty, and a path can have at most 100 elements.
|
|
1065
|
+
# Corresponds to the JSON property `path`
|
|
1066
|
+
# @return [Array<Google::Apis::DatastoreV1::PathElement>]
|
|
1067
|
+
attr_accessor :path
|
|
1003
1068
|
|
|
1004
|
-
#
|
|
1005
|
-
#
|
|
1006
|
-
#
|
|
1007
|
-
#
|
|
1008
|
-
#
|
|
1009
|
-
#
|
|
1010
|
-
#
|
|
1011
|
-
|
|
1069
|
+
# A partition ID identifies a grouping of entities. The grouping is always
|
|
1070
|
+
# by project and namespace, however the namespace ID may be empty.
|
|
1071
|
+
# A partition ID contains several dimensions:
|
|
1072
|
+
# project ID and namespace ID.
|
|
1073
|
+
# Partition dimensions:
|
|
1074
|
+
# - May be `""`.
|
|
1075
|
+
# - Must be valid UTF-8 bytes.
|
|
1076
|
+
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
1077
|
+
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
1078
|
+
# reserved/read-only.
|
|
1079
|
+
# A reserved/read-only partition ID is forbidden in certain documented
|
|
1080
|
+
# contexts.
|
|
1081
|
+
# Foreign partition IDs (in which the project ID does
|
|
1082
|
+
# not match the context project ID ) are discouraged.
|
|
1083
|
+
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
1084
|
+
# active state.
|
|
1085
|
+
# Corresponds to the JSON property `partitionId`
|
|
1086
|
+
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
1087
|
+
attr_accessor :partition_id
|
|
1012
1088
|
|
|
1013
1089
|
def initialize(**args)
|
|
1014
1090
|
update!(**args)
|
|
@@ -1016,46 +1092,20 @@ module Google
|
|
|
1016
1092
|
|
|
1017
1093
|
# Update properties of this object
|
|
1018
1094
|
def update!(**args)
|
|
1019
|
-
@
|
|
1020
|
-
@
|
|
1021
|
-
@version = args[:version] if args.key?(:version)
|
|
1095
|
+
@path = args[:path] if args.key?(:path)
|
|
1096
|
+
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
1022
1097
|
end
|
|
1023
1098
|
end
|
|
1024
1099
|
|
|
1025
|
-
# A
|
|
1026
|
-
class
|
|
1100
|
+
# A reference to a property relative to the kind expressions.
|
|
1101
|
+
class PropertyReference
|
|
1027
1102
|
include Google::Apis::Core::Hashable
|
|
1028
1103
|
|
|
1029
|
-
#
|
|
1030
|
-
#
|
|
1031
|
-
#
|
|
1032
|
-
# `SELECT * FROM Kind WHERE a = @value` is.
|
|
1033
|
-
# Corresponds to the JSON property `allowLiterals`
|
|
1034
|
-
# @return [Boolean]
|
|
1035
|
-
attr_accessor :allow_literals
|
|
1036
|
-
alias_method :allow_literals?, :allow_literals
|
|
1037
|
-
|
|
1038
|
-
# For each non-reserved named binding site in the query string, there must be
|
|
1039
|
-
# a named parameter with that name, but not necessarily the inverse.
|
|
1040
|
-
# Key must match regex `A-Za-z_$*`, must not match regex
|
|
1041
|
-
# `__.*__`, and must not be `""`.
|
|
1042
|
-
# Corresponds to the JSON property `namedBindings`
|
|
1043
|
-
# @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
1044
|
-
attr_accessor :named_bindings
|
|
1045
|
-
|
|
1046
|
-
# Numbered binding site @1 references the first numbered parameter,
|
|
1047
|
-
# effectively using 1-based indexing, rather than the usual 0.
|
|
1048
|
-
# For each binding site numbered i in `query_string`, there must be an i-th
|
|
1049
|
-
# numbered parameter. The inverse must also be true.
|
|
1050
|
-
# Corresponds to the JSON property `positionalBindings`
|
|
1051
|
-
# @return [Array<Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
1052
|
-
attr_accessor :positional_bindings
|
|
1053
|
-
|
|
1054
|
-
# A string of the format described
|
|
1055
|
-
# [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
1056
|
-
# Corresponds to the JSON property `queryString`
|
|
1104
|
+
# The name of the property.
|
|
1105
|
+
# If name includes "."s, it may be interpreted as a property name path.
|
|
1106
|
+
# Corresponds to the JSON property `name`
|
|
1057
1107
|
# @return [String]
|
|
1058
|
-
attr_accessor :
|
|
1108
|
+
attr_accessor :name
|
|
1059
1109
|
|
|
1060
1110
|
def initialize(**args)
|
|
1061
1111
|
update!(**args)
|
|
@@ -1063,26 +1113,20 @@ module Google
|
|
|
1063
1113
|
|
|
1064
1114
|
# Update properties of this object
|
|
1065
1115
|
def update!(**args)
|
|
1066
|
-
@
|
|
1067
|
-
@named_bindings = args[:named_bindings] if args.key?(:named_bindings)
|
|
1068
|
-
@positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
|
|
1069
|
-
@query_string = args[:query_string] if args.key?(:query_string)
|
|
1116
|
+
@name = args[:name] if args.key?(:name)
|
|
1070
1117
|
end
|
|
1071
1118
|
end
|
|
1072
1119
|
|
|
1073
|
-
#
|
|
1074
|
-
class
|
|
1120
|
+
# An array value.
|
|
1121
|
+
class ArrayValue
|
|
1075
1122
|
include Google::Apis::Core::Hashable
|
|
1076
1123
|
|
|
1077
|
-
#
|
|
1078
|
-
#
|
|
1079
|
-
#
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
# Corresponds to the JSON property `compositeFilter`
|
|
1084
|
-
# @return [Google::Apis::DatastoreV1::CompositeFilter]
|
|
1085
|
-
attr_accessor :composite_filter
|
|
1124
|
+
# Values in the array.
|
|
1125
|
+
# The order of this array may not be preserved if it contains a mix of
|
|
1126
|
+
# indexed and unindexed values.
|
|
1127
|
+
# Corresponds to the JSON property `values`
|
|
1128
|
+
# @return [Array<Google::Apis::DatastoreV1::Value>]
|
|
1129
|
+
attr_accessor :values
|
|
1086
1130
|
|
|
1087
1131
|
def initialize(**args)
|
|
1088
1132
|
update!(**args)
|
|
@@ -1090,21 +1134,18 @@ module Google
|
|
|
1090
1134
|
|
|
1091
1135
|
# Update properties of this object
|
|
1092
1136
|
def update!(**args)
|
|
1093
|
-
@
|
|
1094
|
-
@composite_filter = args[:composite_filter] if args.key?(:composite_filter)
|
|
1137
|
+
@values = args[:values] if args.key?(:values)
|
|
1095
1138
|
end
|
|
1096
1139
|
end
|
|
1097
1140
|
|
|
1098
|
-
#
|
|
1099
|
-
class
|
|
1141
|
+
# A representation of a property in a projection.
|
|
1142
|
+
class Projection
|
|
1100
1143
|
include Google::Apis::Core::Hashable
|
|
1101
1144
|
|
|
1102
|
-
#
|
|
1103
|
-
#
|
|
1104
|
-
#
|
|
1105
|
-
|
|
1106
|
-
# @return [String]
|
|
1107
|
-
attr_accessor :transaction
|
|
1145
|
+
# A reference to a property relative to the kind expressions.
|
|
1146
|
+
# Corresponds to the JSON property `property`
|
|
1147
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
1148
|
+
attr_accessor :property
|
|
1108
1149
|
|
|
1109
1150
|
def initialize(**args)
|
|
1110
1151
|
update!(**args)
|
|
@@ -1112,48 +1153,51 @@ module Google
|
|
|
1112
1153
|
|
|
1113
1154
|
# Update properties of this object
|
|
1114
1155
|
def update!(**args)
|
|
1115
|
-
@
|
|
1156
|
+
@property = args[:property] if args.key?(:property)
|
|
1116
1157
|
end
|
|
1117
1158
|
end
|
|
1118
1159
|
|
|
1119
|
-
#
|
|
1120
|
-
class
|
|
1160
|
+
# A mutation to apply to an entity.
|
|
1161
|
+
class Mutation
|
|
1121
1162
|
include Google::Apis::Core::Hashable
|
|
1122
1163
|
|
|
1123
|
-
# A
|
|
1124
|
-
#
|
|
1125
|
-
#
|
|
1126
|
-
|
|
1164
|
+
# A unique identifier for an entity.
|
|
1165
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
1166
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
1167
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1168
|
+
# Corresponds to the JSON property `delete`
|
|
1169
|
+
# @return [Google::Apis::DatastoreV1::Key]
|
|
1170
|
+
attr_accessor :delete
|
|
1127
1171
|
|
|
1128
|
-
# A
|
|
1129
|
-
#
|
|
1130
|
-
#
|
|
1131
|
-
#
|
|
1132
|
-
#
|
|
1133
|
-
#
|
|
1134
|
-
|
|
1135
|
-
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
1136
|
-
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
1137
|
-
# reserved/read-only.
|
|
1138
|
-
# A reserved/read-only partition ID is forbidden in certain documented
|
|
1139
|
-
# contexts.
|
|
1140
|
-
# Foreign partition IDs (in which the project ID does
|
|
1141
|
-
# not match the context project ID ) are discouraged.
|
|
1142
|
-
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
1143
|
-
# active state.
|
|
1144
|
-
# Corresponds to the JSON property `partitionId`
|
|
1145
|
-
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
1146
|
-
attr_accessor :partition_id
|
|
1172
|
+
# A Datastore data object.
|
|
1173
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1174
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1175
|
+
# message.
|
|
1176
|
+
# Corresponds to the JSON property `insert`
|
|
1177
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1178
|
+
attr_accessor :insert
|
|
1147
1179
|
|
|
1148
|
-
#
|
|
1149
|
-
#
|
|
1150
|
-
#
|
|
1151
|
-
|
|
1180
|
+
# The version of the entity that this mutation is being applied to. If this
|
|
1181
|
+
# does not match the current version on the server, the mutation conflicts.
|
|
1182
|
+
# Corresponds to the JSON property `baseVersion`
|
|
1183
|
+
# @return [Fixnum]
|
|
1184
|
+
attr_accessor :base_version
|
|
1152
1185
|
|
|
1153
|
-
#
|
|
1154
|
-
#
|
|
1155
|
-
#
|
|
1156
|
-
|
|
1186
|
+
# A Datastore data object.
|
|
1187
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1188
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1189
|
+
# message.
|
|
1190
|
+
# Corresponds to the JSON property `update`
|
|
1191
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1192
|
+
attr_accessor :update
|
|
1193
|
+
|
|
1194
|
+
# A Datastore data object.
|
|
1195
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1196
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1197
|
+
# message.
|
|
1198
|
+
# Corresponds to the JSON property `upsert`
|
|
1199
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1200
|
+
attr_accessor :upsert
|
|
1157
1201
|
|
|
1158
1202
|
def initialize(**args)
|
|
1159
1203
|
update!(**args)
|
|
@@ -1161,27 +1205,31 @@ module Google
|
|
|
1161
1205
|
|
|
1162
1206
|
# Update properties of this object
|
|
1163
1207
|
def update!(**args)
|
|
1164
|
-
@
|
|
1165
|
-
@
|
|
1166
|
-
@
|
|
1167
|
-
@
|
|
1208
|
+
@delete = args[:delete] if args.key?(:delete)
|
|
1209
|
+
@insert = args[:insert] if args.key?(:insert)
|
|
1210
|
+
@base_version = args[:base_version] if args.key?(:base_version)
|
|
1211
|
+
@update = args[:update] if args.key?(:update)
|
|
1212
|
+
@upsert = args[:upsert] if args.key?(:upsert)
|
|
1168
1213
|
end
|
|
1169
1214
|
end
|
|
1170
1215
|
|
|
1171
|
-
#
|
|
1172
|
-
class
|
|
1216
|
+
# The options shared by read requests.
|
|
1217
|
+
class ReadOptions
|
|
1173
1218
|
include Google::Apis::Core::Hashable
|
|
1174
1219
|
|
|
1175
|
-
# The
|
|
1176
|
-
#
|
|
1177
|
-
# Corresponds to the JSON property `
|
|
1178
|
-
# @return [
|
|
1179
|
-
attr_accessor :
|
|
1220
|
+
# The non-transactional read consistency to use.
|
|
1221
|
+
# Cannot be set to `STRONG` for global queries.
|
|
1222
|
+
# Corresponds to the JSON property `readConsistency`
|
|
1223
|
+
# @return [String]
|
|
1224
|
+
attr_accessor :read_consistency
|
|
1180
1225
|
|
|
1181
|
-
# The
|
|
1182
|
-
#
|
|
1226
|
+
# The identifier of the transaction in which to read. A
|
|
1227
|
+
# transaction identifier is returned by a call to
|
|
1228
|
+
# Datastore.BeginTransaction.
|
|
1229
|
+
# Corresponds to the JSON property `transaction`
|
|
1230
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1183
1231
|
# @return [String]
|
|
1184
|
-
attr_accessor :
|
|
1232
|
+
attr_accessor :transaction
|
|
1185
1233
|
|
|
1186
1234
|
def initialize(**args)
|
|
1187
1235
|
update!(**args)
|
|
@@ -1189,94 +1237,52 @@ module Google
|
|
|
1189
1237
|
|
|
1190
1238
|
# Update properties of this object
|
|
1191
1239
|
def update!(**args)
|
|
1192
|
-
@
|
|
1193
|
-
@
|
|
1240
|
+
@read_consistency = args[:read_consistency] if args.key?(:read_consistency)
|
|
1241
|
+
@transaction = args[:transaction] if args.key?(:transaction)
|
|
1194
1242
|
end
|
|
1195
1243
|
end
|
|
1196
1244
|
|
|
1197
|
-
# The response for Datastore.
|
|
1198
|
-
|
|
1245
|
+
# The response for Datastore.Rollback.
|
|
1246
|
+
# (an empty message).
|
|
1247
|
+
class RollbackResponse
|
|
1199
1248
|
include Google::Apis::Core::Hashable
|
|
1200
1249
|
|
|
1201
|
-
# The keys specified in the request (in the same order), each with
|
|
1202
|
-
# its key path completed with a newly allocated ID.
|
|
1203
|
-
# Corresponds to the JSON property `keys`
|
|
1204
|
-
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
1205
|
-
attr_accessor :keys
|
|
1206
|
-
|
|
1207
1250
|
def initialize(**args)
|
|
1208
1251
|
update!(**args)
|
|
1209
1252
|
end
|
|
1210
1253
|
|
|
1211
1254
|
# Update properties of this object
|
|
1212
1255
|
def update!(**args)
|
|
1213
|
-
@keys = args[:keys] if args.key?(:keys)
|
|
1214
1256
|
end
|
|
1215
1257
|
end
|
|
1216
1258
|
|
|
1217
|
-
#
|
|
1218
|
-
class
|
|
1259
|
+
# The result of applying a mutation.
|
|
1260
|
+
class MutationResult
|
|
1219
1261
|
include Google::Apis::Core::Hashable
|
|
1220
1262
|
|
|
1221
|
-
# The
|
|
1222
|
-
#
|
|
1223
|
-
#
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
#
|
|
1227
|
-
# returned in query result batches and
|
|
1228
|
-
# [can only be used to limit the same query](https://cloud.google.com/datastore/
|
|
1229
|
-
# docs/concepts/queries#cursors_limits_and_offsets).
|
|
1230
|
-
# Corresponds to the JSON property `endCursor`
|
|
1231
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1232
|
-
# @return [String]
|
|
1233
|
-
attr_accessor :end_cursor
|
|
1234
|
-
|
|
1235
|
-
# The maximum number of results to return. Applies after all other
|
|
1236
|
-
# constraints. Optional.
|
|
1237
|
-
# Unspecified is interpreted as no limit.
|
|
1238
|
-
# Must be >= 0 if specified.
|
|
1239
|
-
# Corresponds to the JSON property `limit`
|
|
1240
|
-
# @return [Fixnum]
|
|
1241
|
-
attr_accessor :limit
|
|
1242
|
-
|
|
1243
|
-
# A holder for any type of filter.
|
|
1244
|
-
# Corresponds to the JSON property `filter`
|
|
1245
|
-
# @return [Google::Apis::DatastoreV1::Filter]
|
|
1246
|
-
attr_accessor :filter
|
|
1247
|
-
|
|
1248
|
-
# The number of results to skip. Applies before limit, but after all other
|
|
1249
|
-
# constraints. Optional. Must be >= 0 if specified.
|
|
1250
|
-
# Corresponds to the JSON property `offset`
|
|
1263
|
+
# The version of the entity on the server after processing the mutation. If
|
|
1264
|
+
# the mutation doesn't change anything on the server, then the version will
|
|
1265
|
+
# be the version of the current entity or, if no entity is present, a version
|
|
1266
|
+
# that is strictly greater than the version of any previous entity and less
|
|
1267
|
+
# than the version of any possible future entity.
|
|
1268
|
+
# Corresponds to the JSON property `version`
|
|
1251
1269
|
# @return [Fixnum]
|
|
1252
|
-
attr_accessor :
|
|
1253
|
-
|
|
1254
|
-
# A starting point for the query results. Query cursors are
|
|
1255
|
-
# returned in query result batches and
|
|
1256
|
-
# [can only be used to continue the same query](https://cloud.google.com/
|
|
1257
|
-
# datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
|
1258
|
-
# Corresponds to the JSON property `startCursor`
|
|
1259
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1260
|
-
# @return [String]
|
|
1261
|
-
attr_accessor :start_cursor
|
|
1262
|
-
|
|
1263
|
-
# The kinds to query (if empty, returns entities of all kinds).
|
|
1264
|
-
# Currently at most 1 kind may be specified.
|
|
1265
|
-
# Corresponds to the JSON property `kind`
|
|
1266
|
-
# @return [Array<Google::Apis::DatastoreV1::KindExpression>]
|
|
1267
|
-
attr_accessor :kind
|
|
1270
|
+
attr_accessor :version
|
|
1268
1271
|
|
|
1269
|
-
#
|
|
1270
|
-
#
|
|
1271
|
-
#
|
|
1272
|
-
#
|
|
1273
|
-
|
|
1274
|
-
|
|
1272
|
+
# Whether a conflict was detected for this mutation. Always false when a
|
|
1273
|
+
# conflict detection strategy field is not set in the mutation.
|
|
1274
|
+
# Corresponds to the JSON property `conflictDetected`
|
|
1275
|
+
# @return [Boolean]
|
|
1276
|
+
attr_accessor :conflict_detected
|
|
1277
|
+
alias_method :conflict_detected?, :conflict_detected
|
|
1275
1278
|
|
|
1276
|
-
#
|
|
1277
|
-
#
|
|
1278
|
-
#
|
|
1279
|
-
|
|
1279
|
+
# A unique identifier for an entity.
|
|
1280
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
1281
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
1282
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1283
|
+
# Corresponds to the JSON property `key`
|
|
1284
|
+
# @return [Google::Apis::DatastoreV1::Key]
|
|
1285
|
+
attr_accessor :key
|
|
1280
1286
|
|
|
1281
1287
|
def initialize(**args)
|
|
1282
1288
|
update!(**args)
|
|
@@ -1284,15 +1290,9 @@ module Google
|
|
|
1284
1290
|
|
|
1285
1291
|
# Update properties of this object
|
|
1286
1292
|
def update!(**args)
|
|
1287
|
-
@
|
|
1288
|
-
@
|
|
1289
|
-
@
|
|
1290
|
-
@filter = args[:filter] if args.key?(:filter)
|
|
1291
|
-
@offset = args[:offset] if args.key?(:offset)
|
|
1292
|
-
@start_cursor = args[:start_cursor] if args.key?(:start_cursor)
|
|
1293
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1294
|
-
@distinct_on = args[:distinct_on] if args.key?(:distinct_on)
|
|
1295
|
-
@order = args[:order] if args.key?(:order)
|
|
1293
|
+
@version = args[:version] if args.key?(:version)
|
|
1294
|
+
@conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
|
|
1295
|
+
@key = args[:key] if args.key?(:key)
|
|
1296
1296
|
end
|
|
1297
1297
|
end
|
|
1298
1298
|
end
|