google-api-client 0.13.0 → 0.13.1
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 +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- 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 +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- 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 +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- 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 +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- 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 +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- 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 +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- 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 +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- 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 +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
|
@@ -26,13 +26,13 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/datastore/
|
|
27
27
|
module DatastoreV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
30
|
-
|
|
31
|
-
# View and manage your data across Google Cloud Platform services
|
|
32
|
-
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
29
|
+
REVISION = '20170626'
|
|
33
30
|
|
|
34
31
|
# View and manage your Google Cloud Datastore data
|
|
35
32
|
AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
|
|
33
|
+
|
|
34
|
+
# View and manage your data across Google Cloud Platform services
|
|
35
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
end
|
|
@@ -22,10 +22,128 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module DatastoreV1
|
|
24
24
|
|
|
25
|
+
# The result of applying a mutation.
|
|
26
|
+
class MutationResult
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# The version of the entity on the server after processing the mutation. If
|
|
30
|
+
# the mutation doesn't change anything on the server, then the version will
|
|
31
|
+
# be the version of the current entity or, if no entity is present, a version
|
|
32
|
+
# that is strictly greater than the version of any previous entity and less
|
|
33
|
+
# than the version of any possible future entity.
|
|
34
|
+
# Corresponds to the JSON property `version`
|
|
35
|
+
# @return [Fixnum]
|
|
36
|
+
attr_accessor :version
|
|
37
|
+
|
|
38
|
+
# Whether a conflict was detected for this mutation. Always false when a
|
|
39
|
+
# conflict detection strategy field is not set in the mutation.
|
|
40
|
+
# Corresponds to the JSON property `conflictDetected`
|
|
41
|
+
# @return [Boolean]
|
|
42
|
+
attr_accessor :conflict_detected
|
|
43
|
+
alias_method :conflict_detected?, :conflict_detected
|
|
44
|
+
|
|
45
|
+
# A unique identifier for an entity.
|
|
46
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
47
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
48
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
49
|
+
# Corresponds to the JSON property `key`
|
|
50
|
+
# @return [Google::Apis::DatastoreV1::Key]
|
|
51
|
+
attr_accessor :key
|
|
52
|
+
|
|
53
|
+
def initialize(**args)
|
|
54
|
+
update!(**args)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Update properties of this object
|
|
58
|
+
def update!(**args)
|
|
59
|
+
@version = args[:version] if args.key?(:version)
|
|
60
|
+
@conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
|
|
61
|
+
@key = args[:key] if args.key?(:key)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
66
|
+
class GqlQuery
|
|
67
|
+
include Google::Apis::Core::Hashable
|
|
68
|
+
|
|
69
|
+
# Numbered binding site @1 references the first numbered parameter,
|
|
70
|
+
# effectively using 1-based indexing, rather than the usual 0.
|
|
71
|
+
# For each binding site numbered i in `query_string`, there must be an i-th
|
|
72
|
+
# numbered parameter. The inverse must also be true.
|
|
73
|
+
# Corresponds to the JSON property `positionalBindings`
|
|
74
|
+
# @return [Array<Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
75
|
+
attr_accessor :positional_bindings
|
|
76
|
+
|
|
77
|
+
# For each non-reserved named binding site in the query string, there must be
|
|
78
|
+
# a named parameter with that name, but not necessarily the inverse.
|
|
79
|
+
# Key must match regex `A-Za-z_$*`, must not match regex
|
|
80
|
+
# `__.*__`, and must not be `""`.
|
|
81
|
+
# Corresponds to the JSON property `namedBindings`
|
|
82
|
+
# @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
83
|
+
attr_accessor :named_bindings
|
|
84
|
+
|
|
85
|
+
# When false, the query string must not contain any literals and instead must
|
|
86
|
+
# bind all values. For example,
|
|
87
|
+
# `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
|
|
88
|
+
# `SELECT * FROM Kind WHERE a = @value` is.
|
|
89
|
+
# Corresponds to the JSON property `allowLiterals`
|
|
90
|
+
# @return [Boolean]
|
|
91
|
+
attr_accessor :allow_literals
|
|
92
|
+
alias_method :allow_literals?, :allow_literals
|
|
93
|
+
|
|
94
|
+
# A string of the format described
|
|
95
|
+
# [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
96
|
+
# Corresponds to the JSON property `queryString`
|
|
97
|
+
# @return [String]
|
|
98
|
+
attr_accessor :query_string
|
|
99
|
+
|
|
100
|
+
def initialize(**args)
|
|
101
|
+
update!(**args)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Update properties of this object
|
|
105
|
+
def update!(**args)
|
|
106
|
+
@positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
|
|
107
|
+
@named_bindings = args[:named_bindings] if args.key?(:named_bindings)
|
|
108
|
+
@allow_literals = args[:allow_literals] if args.key?(:allow_literals)
|
|
109
|
+
@query_string = args[:query_string] if args.key?(:query_string)
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# A holder for any type of filter.
|
|
114
|
+
class Filter
|
|
115
|
+
include Google::Apis::Core::Hashable
|
|
116
|
+
|
|
117
|
+
# A filter on a specific property.
|
|
118
|
+
# Corresponds to the JSON property `propertyFilter`
|
|
119
|
+
# @return [Google::Apis::DatastoreV1::PropertyFilter]
|
|
120
|
+
attr_accessor :property_filter
|
|
121
|
+
|
|
122
|
+
# A filter that merges multiple other filters using the given operator.
|
|
123
|
+
# Corresponds to the JSON property `compositeFilter`
|
|
124
|
+
# @return [Google::Apis::DatastoreV1::CompositeFilter]
|
|
125
|
+
attr_accessor :composite_filter
|
|
126
|
+
|
|
127
|
+
def initialize(**args)
|
|
128
|
+
update!(**args)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Update properties of this object
|
|
132
|
+
def update!(**args)
|
|
133
|
+
@property_filter = args[:property_filter] if args.key?(:property_filter)
|
|
134
|
+
@composite_filter = args[:composite_filter] if args.key?(:composite_filter)
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
25
138
|
# The request for Datastore.RunQuery.
|
|
26
139
|
class RunQueryRequest
|
|
27
140
|
include Google::Apis::Core::Hashable
|
|
28
141
|
|
|
142
|
+
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
143
|
+
# Corresponds to the JSON property `gqlQuery`
|
|
144
|
+
# @return [Google::Apis::DatastoreV1::GqlQuery]
|
|
145
|
+
attr_accessor :gql_query
|
|
146
|
+
|
|
29
147
|
# A partition ID identifies a grouping of entities. The grouping is always
|
|
30
148
|
# by project and namespace, however the namespace ID may be empty.
|
|
31
149
|
# A partition ID contains several dimensions:
|
|
@@ -46,11 +164,6 @@ module Google
|
|
|
46
164
|
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
47
165
|
attr_accessor :partition_id
|
|
48
166
|
|
|
49
|
-
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
50
|
-
# Corresponds to the JSON property `gqlQuery`
|
|
51
|
-
# @return [Google::Apis::DatastoreV1::GqlQuery]
|
|
52
|
-
attr_accessor :gql_query
|
|
53
|
-
|
|
54
167
|
# The options shared by read requests.
|
|
55
168
|
# Corresponds to the JSON property `readOptions`
|
|
56
169
|
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
@@ -67,8 +180,8 @@ module Google
|
|
|
67
180
|
|
|
68
181
|
# Update properties of this object
|
|
69
182
|
def update!(**args)
|
|
70
|
-
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
71
183
|
@gql_query = args[:gql_query] if args.key?(:gql_query)
|
|
184
|
+
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
72
185
|
@read_options = args[:read_options] if args.key?(:read_options)
|
|
73
186
|
@query = args[:query] if args.key?(:query)
|
|
74
187
|
end
|
|
@@ -159,6 +272,11 @@ module Google
|
|
|
159
272
|
# @return [String]
|
|
160
273
|
attr_accessor :end_cursor
|
|
161
274
|
|
|
275
|
+
# A holder for any type of filter.
|
|
276
|
+
# Corresponds to the JSON property `filter`
|
|
277
|
+
# @return [Google::Apis::DatastoreV1::Filter]
|
|
278
|
+
attr_accessor :filter
|
|
279
|
+
|
|
162
280
|
# The maximum number of results to return. Applies after all other
|
|
163
281
|
# constraints. Optional.
|
|
164
282
|
# Unspecified is interpreted as no limit.
|
|
@@ -167,11 +285,6 @@ module Google
|
|
|
167
285
|
# @return [Fixnum]
|
|
168
286
|
attr_accessor :limit
|
|
169
287
|
|
|
170
|
-
# A holder for any type of filter.
|
|
171
|
-
# Corresponds to the JSON property `filter`
|
|
172
|
-
# @return [Google::Apis::DatastoreV1::Filter]
|
|
173
|
-
attr_accessor :filter
|
|
174
|
-
|
|
175
288
|
# A starting point for the query results. Query cursors are
|
|
176
289
|
# returned in query result batches and
|
|
177
290
|
# [can only be used to continue the same query](https://cloud.google.com/
|
|
@@ -213,8 +326,8 @@ module Google
|
|
|
213
326
|
def update!(**args)
|
|
214
327
|
@projection = args[:projection] if args.key?(:projection)
|
|
215
328
|
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
216
|
-
@limit = args[:limit] if args.key?(:limit)
|
|
217
329
|
@filter = args[:filter] if args.key?(:filter)
|
|
330
|
+
@limit = args[:limit] if args.key?(:limit)
|
|
218
331
|
@start_cursor = args[:start_cursor] if args.key?(:start_cursor)
|
|
219
332
|
@offset = args[:offset] if args.key?(:offset)
|
|
220
333
|
@kind = args[:kind] if args.key?(:kind)
|
|
@@ -227,11 +340,6 @@ module Google
|
|
|
227
340
|
class PropertyFilter
|
|
228
341
|
include Google::Apis::Core::Hashable
|
|
229
342
|
|
|
230
|
-
# The operator to filter by.
|
|
231
|
-
# Corresponds to the JSON property `op`
|
|
232
|
-
# @return [String]
|
|
233
|
-
attr_accessor :op
|
|
234
|
-
|
|
235
343
|
# A message that can hold any of the supported value types and associated
|
|
236
344
|
# metadata.
|
|
237
345
|
# Corresponds to the JSON property `value`
|
|
@@ -243,15 +351,20 @@ module Google
|
|
|
243
351
|
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
244
352
|
attr_accessor :property
|
|
245
353
|
|
|
354
|
+
# The operator to filter by.
|
|
355
|
+
# Corresponds to the JSON property `op`
|
|
356
|
+
# @return [String]
|
|
357
|
+
attr_accessor :op
|
|
358
|
+
|
|
246
359
|
def initialize(**args)
|
|
247
360
|
update!(**args)
|
|
248
361
|
end
|
|
249
362
|
|
|
250
363
|
# Update properties of this object
|
|
251
364
|
def update!(**args)
|
|
252
|
-
@op = args[:op] if args.key?(:op)
|
|
253
365
|
@value = args[:value] if args.key?(:value)
|
|
254
366
|
@property = args[:property] if args.key?(:property)
|
|
367
|
+
@op = args[:op] if args.key?(:op)
|
|
255
368
|
end
|
|
256
369
|
end
|
|
257
370
|
|
|
@@ -259,6 +372,14 @@ module Google
|
|
|
259
372
|
class EntityResult
|
|
260
373
|
include Google::Apis::Core::Hashable
|
|
261
374
|
|
|
375
|
+
# A Datastore data object.
|
|
376
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
377
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
378
|
+
# message.
|
|
379
|
+
# Corresponds to the JSON property `entity`
|
|
380
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
381
|
+
attr_accessor :entity
|
|
382
|
+
|
|
262
383
|
# A cursor that points to the position after the result entity.
|
|
263
384
|
# Set only when the `EntityResult` is part of a `QueryResultBatch` message.
|
|
264
385
|
# Corresponds to the JSON property `cursor`
|
|
@@ -277,50 +398,15 @@ module Google
|
|
|
277
398
|
# @return [Fixnum]
|
|
278
399
|
attr_accessor :version
|
|
279
400
|
|
|
280
|
-
# A Datastore data object.
|
|
281
|
-
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
282
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
283
|
-
# message.
|
|
284
|
-
# Corresponds to the JSON property `entity`
|
|
285
|
-
# @return [Google::Apis::DatastoreV1::Entity]
|
|
286
|
-
attr_accessor :entity
|
|
287
|
-
|
|
288
401
|
def initialize(**args)
|
|
289
402
|
update!(**args)
|
|
290
403
|
end
|
|
291
404
|
|
|
292
405
|
# Update properties of this object
|
|
293
406
|
def update!(**args)
|
|
407
|
+
@entity = args[:entity] if args.key?(:entity)
|
|
294
408
|
@cursor = args[:cursor] if args.key?(:cursor)
|
|
295
409
|
@version = args[:version] if args.key?(:version)
|
|
296
|
-
@entity = args[:entity] if args.key?(:entity)
|
|
297
|
-
end
|
|
298
|
-
end
|
|
299
|
-
|
|
300
|
-
# The response for Datastore.Commit.
|
|
301
|
-
class CommitResponse
|
|
302
|
-
include Google::Apis::Core::Hashable
|
|
303
|
-
|
|
304
|
-
# The result of performing the mutations.
|
|
305
|
-
# The i-th mutation result corresponds to the i-th mutation in the request.
|
|
306
|
-
# Corresponds to the JSON property `mutationResults`
|
|
307
|
-
# @return [Array<Google::Apis::DatastoreV1::MutationResult>]
|
|
308
|
-
attr_accessor :mutation_results
|
|
309
|
-
|
|
310
|
-
# The number of index entries updated during the commit, or zero if none were
|
|
311
|
-
# updated.
|
|
312
|
-
# Corresponds to the JSON property `indexUpdates`
|
|
313
|
-
# @return [Fixnum]
|
|
314
|
-
attr_accessor :index_updates
|
|
315
|
-
|
|
316
|
-
def initialize(**args)
|
|
317
|
-
update!(**args)
|
|
318
|
-
end
|
|
319
|
-
|
|
320
|
-
# Update properties of this object
|
|
321
|
-
def update!(**args)
|
|
322
|
-
@mutation_results = args[:mutation_results] if args.key?(:mutation_results)
|
|
323
|
-
@index_updates = args[:index_updates] if args.key?(:index_updates)
|
|
324
410
|
end
|
|
325
411
|
end
|
|
326
412
|
|
|
@@ -329,17 +415,29 @@ module Google
|
|
|
329
415
|
class Value
|
|
330
416
|
include Google::Apis::Core::Hashable
|
|
331
417
|
|
|
332
|
-
# A
|
|
333
|
-
# Corresponds to the JSON property `
|
|
334
|
-
# @return [
|
|
335
|
-
attr_accessor :
|
|
336
|
-
|
|
418
|
+
# A double value.
|
|
419
|
+
# Corresponds to the JSON property `doubleValue`
|
|
420
|
+
# @return [Float]
|
|
421
|
+
attr_accessor :double_value
|
|
422
|
+
|
|
423
|
+
# A timestamp value.
|
|
424
|
+
# When stored in the Datastore, precise only to microseconds;
|
|
425
|
+
# any additional precision is rounded down.
|
|
426
|
+
# Corresponds to the JSON property `timestampValue`
|
|
427
|
+
# @return [String]
|
|
428
|
+
attr_accessor :timestamp_value
|
|
337
429
|
|
|
338
430
|
# A null value.
|
|
339
431
|
# Corresponds to the JSON property `nullValue`
|
|
340
432
|
# @return [String]
|
|
341
433
|
attr_accessor :null_value
|
|
342
434
|
|
|
435
|
+
# A boolean value.
|
|
436
|
+
# Corresponds to the JSON property `booleanValue`
|
|
437
|
+
# @return [Boolean]
|
|
438
|
+
attr_accessor :boolean_value
|
|
439
|
+
alias_method :boolean_value?, :boolean_value
|
|
440
|
+
|
|
343
441
|
# A blob value.
|
|
344
442
|
# May have at most 1,000,000 bytes.
|
|
345
443
|
# When `exclude_from_indexes` is false, may have at most 1500 bytes.
|
|
@@ -434,26 +532,16 @@ module Google
|
|
|
434
532
|
attr_accessor :exclude_from_indexes
|
|
435
533
|
alias_method :exclude_from_indexes?, :exclude_from_indexes
|
|
436
534
|
|
|
437
|
-
# A double value.
|
|
438
|
-
# Corresponds to the JSON property `doubleValue`
|
|
439
|
-
# @return [Float]
|
|
440
|
-
attr_accessor :double_value
|
|
441
|
-
|
|
442
|
-
# A timestamp value.
|
|
443
|
-
# When stored in the Datastore, precise only to microseconds;
|
|
444
|
-
# any additional precision is rounded down.
|
|
445
|
-
# Corresponds to the JSON property `timestampValue`
|
|
446
|
-
# @return [String]
|
|
447
|
-
attr_accessor :timestamp_value
|
|
448
|
-
|
|
449
535
|
def initialize(**args)
|
|
450
536
|
update!(**args)
|
|
451
537
|
end
|
|
452
538
|
|
|
453
539
|
# Update properties of this object
|
|
454
540
|
def update!(**args)
|
|
455
|
-
@
|
|
541
|
+
@double_value = args[:double_value] if args.key?(:double_value)
|
|
542
|
+
@timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
|
|
456
543
|
@null_value = args[:null_value] if args.key?(:null_value)
|
|
544
|
+
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
|
|
457
545
|
@blob_value = args[:blob_value] if args.key?(:blob_value)
|
|
458
546
|
@meaning = args[:meaning] if args.key?(:meaning)
|
|
459
547
|
@array_value = args[:array_value] if args.key?(:array_value)
|
|
@@ -463,33 +551,58 @@ module Google
|
|
|
463
551
|
@integer_value = args[:integer_value] if args.key?(:integer_value)
|
|
464
552
|
@string_value = args[:string_value] if args.key?(:string_value)
|
|
465
553
|
@exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
|
|
466
|
-
@double_value = args[:double_value] if args.key?(:double_value)
|
|
467
|
-
@timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
|
|
468
554
|
end
|
|
469
555
|
end
|
|
470
556
|
|
|
471
|
-
#
|
|
472
|
-
|
|
473
|
-
# A partition ID contains several dimensions:
|
|
474
|
-
# project ID and namespace ID.
|
|
475
|
-
# Partition dimensions:
|
|
476
|
-
# - May be `""`.
|
|
477
|
-
# - Must be valid UTF-8 bytes.
|
|
478
|
-
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
479
|
-
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
480
|
-
# reserved/read-only.
|
|
481
|
-
# A reserved/read-only partition ID is forbidden in certain documented
|
|
482
|
-
# contexts.
|
|
483
|
-
# Foreign partition IDs (in which the project ID does
|
|
484
|
-
# not match the context project ID ) are discouraged.
|
|
485
|
-
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
486
|
-
# active state.
|
|
487
|
-
class PartitionId
|
|
557
|
+
# The response for Datastore.Commit.
|
|
558
|
+
class CommitResponse
|
|
488
559
|
include Google::Apis::Core::Hashable
|
|
489
560
|
|
|
490
|
-
# The
|
|
491
|
-
#
|
|
492
|
-
#
|
|
561
|
+
# The number of index entries updated during the commit, or zero if none were
|
|
562
|
+
# updated.
|
|
563
|
+
# Corresponds to the JSON property `indexUpdates`
|
|
564
|
+
# @return [Fixnum]
|
|
565
|
+
attr_accessor :index_updates
|
|
566
|
+
|
|
567
|
+
# The result of performing the mutations.
|
|
568
|
+
# The i-th mutation result corresponds to the i-th mutation in the request.
|
|
569
|
+
# Corresponds to the JSON property `mutationResults`
|
|
570
|
+
# @return [Array<Google::Apis::DatastoreV1::MutationResult>]
|
|
571
|
+
attr_accessor :mutation_results
|
|
572
|
+
|
|
573
|
+
def initialize(**args)
|
|
574
|
+
update!(**args)
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# Update properties of this object
|
|
578
|
+
def update!(**args)
|
|
579
|
+
@index_updates = args[:index_updates] if args.key?(:index_updates)
|
|
580
|
+
@mutation_results = args[:mutation_results] if args.key?(:mutation_results)
|
|
581
|
+
end
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
# A partition ID identifies a grouping of entities. The grouping is always
|
|
585
|
+
# by project and namespace, however the namespace ID may be empty.
|
|
586
|
+
# A partition ID contains several dimensions:
|
|
587
|
+
# project ID and namespace ID.
|
|
588
|
+
# Partition dimensions:
|
|
589
|
+
# - May be `""`.
|
|
590
|
+
# - Must be valid UTF-8 bytes.
|
|
591
|
+
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
592
|
+
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
593
|
+
# reserved/read-only.
|
|
594
|
+
# A reserved/read-only partition ID is forbidden in certain documented
|
|
595
|
+
# contexts.
|
|
596
|
+
# Foreign partition IDs (in which the project ID does
|
|
597
|
+
# not match the context project ID ) are discouraged.
|
|
598
|
+
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
599
|
+
# active state.
|
|
600
|
+
class PartitionId
|
|
601
|
+
include Google::Apis::Core::Hashable
|
|
602
|
+
|
|
603
|
+
# The ID of the project to which the entities belong.
|
|
604
|
+
# Corresponds to the JSON property `projectId`
|
|
605
|
+
# @return [String]
|
|
493
606
|
attr_accessor :project_id
|
|
494
607
|
|
|
495
608
|
# If not empty, the ID of the namespace to which the entities belong.
|
|
@@ -544,26 +657,68 @@ module Google
|
|
|
544
657
|
end
|
|
545
658
|
end
|
|
546
659
|
|
|
660
|
+
# The request for Datastore.Lookup.
|
|
661
|
+
class LookupRequest
|
|
662
|
+
include Google::Apis::Core::Hashable
|
|
663
|
+
|
|
664
|
+
# The options shared by read requests.
|
|
665
|
+
# Corresponds to the JSON property `readOptions`
|
|
666
|
+
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
667
|
+
attr_accessor :read_options
|
|
668
|
+
|
|
669
|
+
# Keys of entities to look up.
|
|
670
|
+
# Corresponds to the JSON property `keys`
|
|
671
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
672
|
+
attr_accessor :keys
|
|
673
|
+
|
|
674
|
+
def initialize(**args)
|
|
675
|
+
update!(**args)
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
# Update properties of this object
|
|
679
|
+
def update!(**args)
|
|
680
|
+
@read_options = args[:read_options] if args.key?(:read_options)
|
|
681
|
+
@keys = args[:keys] if args.key?(:keys)
|
|
682
|
+
end
|
|
683
|
+
end
|
|
684
|
+
|
|
547
685
|
# A batch of results produced by a query.
|
|
548
686
|
class QueryResultBatch
|
|
549
687
|
include Google::Apis::Core::Hashable
|
|
550
688
|
|
|
689
|
+
# A cursor that points to the position after the last skipped result.
|
|
690
|
+
# Will be set when `skipped_results` != 0.
|
|
691
|
+
# Corresponds to the JSON property `skippedCursor`
|
|
692
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
693
|
+
# @return [String]
|
|
694
|
+
attr_accessor :skipped_cursor
|
|
695
|
+
|
|
696
|
+
# The number of results skipped, typically because of an offset.
|
|
697
|
+
# Corresponds to the JSON property `skippedResults`
|
|
698
|
+
# @return [Fixnum]
|
|
699
|
+
attr_accessor :skipped_results
|
|
700
|
+
|
|
701
|
+
# The result type for every entity in `entity_results`.
|
|
702
|
+
# Corresponds to the JSON property `entityResultType`
|
|
703
|
+
# @return [String]
|
|
704
|
+
attr_accessor :entity_result_type
|
|
705
|
+
|
|
551
706
|
# The results for this batch.
|
|
552
707
|
# Corresponds to the JSON property `entityResults`
|
|
553
708
|
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
554
709
|
attr_accessor :entity_results
|
|
555
710
|
|
|
711
|
+
# The state of the query after the current batch.
|
|
712
|
+
# Corresponds to the JSON property `moreResults`
|
|
713
|
+
# @return [String]
|
|
714
|
+
attr_accessor :more_results
|
|
715
|
+
|
|
556
716
|
# A cursor that points to the position after the last result in the batch.
|
|
557
717
|
# Corresponds to the JSON property `endCursor`
|
|
558
718
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
559
719
|
# @return [String]
|
|
560
720
|
attr_accessor :end_cursor
|
|
561
721
|
|
|
562
|
-
# The state of the query after the current batch.
|
|
563
|
-
# Corresponds to the JSON property `moreResults`
|
|
564
|
-
# @return [String]
|
|
565
|
-
attr_accessor :more_results
|
|
566
|
-
|
|
567
722
|
# The version number of the snapshot this batch was returned from.
|
|
568
723
|
# This applies to the range of results from the query's `start_cursor` (or
|
|
569
724
|
# the beginning of the query if no cursor was given) to this batch's
|
|
@@ -576,61 +731,19 @@ module Google
|
|
|
576
731
|
# @return [Fixnum]
|
|
577
732
|
attr_accessor :snapshot_version
|
|
578
733
|
|
|
579
|
-
# A cursor that points to the position after the last skipped result.
|
|
580
|
-
# Will be set when `skipped_results` != 0.
|
|
581
|
-
# Corresponds to the JSON property `skippedCursor`
|
|
582
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
583
|
-
# @return [String]
|
|
584
|
-
attr_accessor :skipped_cursor
|
|
585
|
-
|
|
586
|
-
# The number of results skipped, typically because of an offset.
|
|
587
|
-
# Corresponds to the JSON property `skippedResults`
|
|
588
|
-
# @return [Fixnum]
|
|
589
|
-
attr_accessor :skipped_results
|
|
590
|
-
|
|
591
|
-
# The result type for every entity in `entity_results`.
|
|
592
|
-
# Corresponds to the JSON property `entityResultType`
|
|
593
|
-
# @return [String]
|
|
594
|
-
attr_accessor :entity_result_type
|
|
595
|
-
|
|
596
734
|
def initialize(**args)
|
|
597
735
|
update!(**args)
|
|
598
736
|
end
|
|
599
737
|
|
|
600
738
|
# Update properties of this object
|
|
601
739
|
def update!(**args)
|
|
602
|
-
@entity_results = args[:entity_results] if args.key?(:entity_results)
|
|
603
|
-
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
604
|
-
@more_results = args[:more_results] if args.key?(:more_results)
|
|
605
|
-
@snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
|
|
606
740
|
@skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
|
|
607
741
|
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
|
|
608
742
|
@entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
class LookupRequest
|
|
614
|
-
include Google::Apis::Core::Hashable
|
|
615
|
-
|
|
616
|
-
# Keys of entities to look up.
|
|
617
|
-
# Corresponds to the JSON property `keys`
|
|
618
|
-
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
619
|
-
attr_accessor :keys
|
|
620
|
-
|
|
621
|
-
# The options shared by read requests.
|
|
622
|
-
# Corresponds to the JSON property `readOptions`
|
|
623
|
-
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
624
|
-
attr_accessor :read_options
|
|
625
|
-
|
|
626
|
-
def initialize(**args)
|
|
627
|
-
update!(**args)
|
|
628
|
-
end
|
|
629
|
-
|
|
630
|
-
# Update properties of this object
|
|
631
|
-
def update!(**args)
|
|
632
|
-
@keys = args[:keys] if args.key?(:keys)
|
|
633
|
-
@read_options = args[:read_options] if args.key?(:read_options)
|
|
743
|
+
@entity_results = args[:entity_results] if args.key?(:entity_results)
|
|
744
|
+
@more_results = args[:more_results] if args.key?(:more_results)
|
|
745
|
+
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
746
|
+
@snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
|
|
634
747
|
end
|
|
635
748
|
end
|
|
636
749
|
|
|
@@ -679,12 +792,6 @@ module Google
|
|
|
679
792
|
class GqlQueryParameter
|
|
680
793
|
include Google::Apis::Core::Hashable
|
|
681
794
|
|
|
682
|
-
# A message that can hold any of the supported value types and associated
|
|
683
|
-
# metadata.
|
|
684
|
-
# Corresponds to the JSON property `value`
|
|
685
|
-
# @return [Google::Apis::DatastoreV1::Value]
|
|
686
|
-
attr_accessor :value
|
|
687
|
-
|
|
688
795
|
# A query cursor. Query cursors are returned in query
|
|
689
796
|
# result batches.
|
|
690
797
|
# Corresponds to the JSON property `cursor`
|
|
@@ -692,14 +799,20 @@ module Google
|
|
|
692
799
|
# @return [String]
|
|
693
800
|
attr_accessor :cursor
|
|
694
801
|
|
|
802
|
+
# A message that can hold any of the supported value types and associated
|
|
803
|
+
# metadata.
|
|
804
|
+
# Corresponds to the JSON property `value`
|
|
805
|
+
# @return [Google::Apis::DatastoreV1::Value]
|
|
806
|
+
attr_accessor :value
|
|
807
|
+
|
|
695
808
|
def initialize(**args)
|
|
696
809
|
update!(**args)
|
|
697
810
|
end
|
|
698
811
|
|
|
699
812
|
# Update properties of this object
|
|
700
813
|
def update!(**args)
|
|
701
|
-
@value = args[:value] if args.key?(:value)
|
|
702
814
|
@cursor = args[:cursor] if args.key?(:cursor)
|
|
815
|
+
@value = args[:value] if args.key?(:value)
|
|
703
816
|
end
|
|
704
817
|
end
|
|
705
818
|
|
|
@@ -747,13 +860,6 @@ module Google
|
|
|
747
860
|
class LookupResponse
|
|
748
861
|
include Google::Apis::Core::Hashable
|
|
749
862
|
|
|
750
|
-
# Entities found as `ResultType.FULL` entities. The order of results in this
|
|
751
|
-
# field is undefined and has no relation to the order of the keys in the
|
|
752
|
-
# input.
|
|
753
|
-
# Corresponds to the JSON property `found`
|
|
754
|
-
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
755
|
-
attr_accessor :found
|
|
756
|
-
|
|
757
863
|
# Entities not found as `ResultType.KEY_ONLY` entities. The order of results
|
|
758
864
|
# in this field is undefined and has no relation to the order of the keys
|
|
759
865
|
# in the input.
|
|
@@ -761,6 +867,13 @@ module Google
|
|
|
761
867
|
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
762
868
|
attr_accessor :missing
|
|
763
869
|
|
|
870
|
+
# Entities found as `ResultType.FULL` entities. The order of results in this
|
|
871
|
+
# field is undefined and has no relation to the order of the keys in the
|
|
872
|
+
# input.
|
|
873
|
+
# Corresponds to the JSON property `found`
|
|
874
|
+
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
875
|
+
attr_accessor :found
|
|
876
|
+
|
|
764
877
|
# A list of keys that were not looked up due to resource constraints. The
|
|
765
878
|
# order of results in this field is undefined and has no relation to the
|
|
766
879
|
# order of the keys in the input.
|
|
@@ -774,8 +887,8 @@ module Google
|
|
|
774
887
|
|
|
775
888
|
# Update properties of this object
|
|
776
889
|
def update!(**args)
|
|
777
|
-
@found = args[:found] if args.key?(:found)
|
|
778
890
|
@missing = args[:missing] if args.key?(:missing)
|
|
891
|
+
@found = args[:found] if args.key?(:found)
|
|
779
892
|
@deferred = args[:deferred] if args.key?(:deferred)
|
|
780
893
|
end
|
|
781
894
|
end
|
|
@@ -805,43 +918,10 @@ module Google
|
|
|
805
918
|
end
|
|
806
919
|
end
|
|
807
920
|
|
|
808
|
-
# The desired order for a specific property.
|
|
809
|
-
class PropertyOrder
|
|
810
|
-
include Google::Apis::Core::Hashable
|
|
811
|
-
|
|
812
|
-
# A reference to a property relative to the kind expressions.
|
|
813
|
-
# Corresponds to the JSON property `property`
|
|
814
|
-
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
815
|
-
attr_accessor :property
|
|
816
|
-
|
|
817
|
-
# The direction to order by. Defaults to `ASCENDING`.
|
|
818
|
-
# Corresponds to the JSON property `direction`
|
|
819
|
-
# @return [String]
|
|
820
|
-
attr_accessor :direction
|
|
821
|
-
|
|
822
|
-
def initialize(**args)
|
|
823
|
-
update!(**args)
|
|
824
|
-
end
|
|
825
|
-
|
|
826
|
-
# Update properties of this object
|
|
827
|
-
def update!(**args)
|
|
828
|
-
@property = args[:property] if args.key?(:property)
|
|
829
|
-
@direction = args[:direction] if args.key?(:direction)
|
|
830
|
-
end
|
|
831
|
-
end
|
|
832
|
-
|
|
833
921
|
# The request for Datastore.Commit.
|
|
834
922
|
class CommitRequest
|
|
835
923
|
include Google::Apis::Core::Hashable
|
|
836
924
|
|
|
837
|
-
# The identifier of the transaction associated with the commit. A
|
|
838
|
-
# transaction identifier is returned by a call to
|
|
839
|
-
# Datastore.BeginTransaction.
|
|
840
|
-
# Corresponds to the JSON property `transaction`
|
|
841
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
842
|
-
# @return [String]
|
|
843
|
-
attr_accessor :transaction
|
|
844
|
-
|
|
845
925
|
# The type of commit to perform. Defaults to `TRANSACTIONAL`.
|
|
846
926
|
# Corresponds to the JSON property `mode`
|
|
847
927
|
# @return [String]
|
|
@@ -861,15 +941,23 @@ module Google
|
|
|
861
941
|
# @return [Array<Google::Apis::DatastoreV1::Mutation>]
|
|
862
942
|
attr_accessor :mutations
|
|
863
943
|
|
|
944
|
+
# The identifier of the transaction associated with the commit. A
|
|
945
|
+
# transaction identifier is returned by a call to
|
|
946
|
+
# Datastore.BeginTransaction.
|
|
947
|
+
# Corresponds to the JSON property `transaction`
|
|
948
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
949
|
+
# @return [String]
|
|
950
|
+
attr_accessor :transaction
|
|
951
|
+
|
|
864
952
|
def initialize(**args)
|
|
865
953
|
update!(**args)
|
|
866
954
|
end
|
|
867
955
|
|
|
868
956
|
# Update properties of this object
|
|
869
957
|
def update!(**args)
|
|
870
|
-
@transaction = args[:transaction] if args.key?(:transaction)
|
|
871
958
|
@mode = args[:mode] if args.key?(:mode)
|
|
872
959
|
@mutations = args[:mutations] if args.key?(:mutations)
|
|
960
|
+
@transaction = args[:transaction] if args.key?(:transaction)
|
|
873
961
|
end
|
|
874
962
|
end
|
|
875
963
|
|
|
@@ -886,6 +974,31 @@ module Google
|
|
|
886
974
|
end
|
|
887
975
|
end
|
|
888
976
|
|
|
977
|
+
# The desired order for a specific property.
|
|
978
|
+
class PropertyOrder
|
|
979
|
+
include Google::Apis::Core::Hashable
|
|
980
|
+
|
|
981
|
+
# The direction to order by. Defaults to `ASCENDING`.
|
|
982
|
+
# Corresponds to the JSON property `direction`
|
|
983
|
+
# @return [String]
|
|
984
|
+
attr_accessor :direction
|
|
985
|
+
|
|
986
|
+
# A reference to a property relative to the kind expressions.
|
|
987
|
+
# Corresponds to the JSON property `property`
|
|
988
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
989
|
+
attr_accessor :property
|
|
990
|
+
|
|
991
|
+
def initialize(**args)
|
|
992
|
+
update!(**args)
|
|
993
|
+
end
|
|
994
|
+
|
|
995
|
+
# Update properties of this object
|
|
996
|
+
def update!(**args)
|
|
997
|
+
@direction = args[:direction] if args.key?(:direction)
|
|
998
|
+
@property = args[:property] if args.key?(:property)
|
|
999
|
+
end
|
|
1000
|
+
end
|
|
1001
|
+
|
|
889
1002
|
# A representation of a kind.
|
|
890
1003
|
class KindExpression
|
|
891
1004
|
include Google::Apis::Core::Hashable
|
|
@@ -905,17 +1018,73 @@ module Google
|
|
|
905
1018
|
end
|
|
906
1019
|
end
|
|
907
1020
|
|
|
908
|
-
#
|
|
909
|
-
#
|
|
910
|
-
#
|
|
911
|
-
#
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
1021
|
+
# A unique identifier for an entity.
|
|
1022
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
1023
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
1024
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1025
|
+
class Key
|
|
1026
|
+
include Google::Apis::Core::Hashable
|
|
1027
|
+
|
|
1028
|
+
# A partition ID identifies a grouping of entities. The grouping is always
|
|
1029
|
+
# by project and namespace, however the namespace ID may be empty.
|
|
1030
|
+
# A partition ID contains several dimensions:
|
|
1031
|
+
# project ID and namespace ID.
|
|
1032
|
+
# Partition dimensions:
|
|
1033
|
+
# - May be `""`.
|
|
1034
|
+
# - Must be valid UTF-8 bytes.
|
|
1035
|
+
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
1036
|
+
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
1037
|
+
# reserved/read-only.
|
|
1038
|
+
# A reserved/read-only partition ID is forbidden in certain documented
|
|
1039
|
+
# contexts.
|
|
1040
|
+
# Foreign partition IDs (in which the project ID does
|
|
1041
|
+
# not match the context project ID ) are discouraged.
|
|
1042
|
+
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
1043
|
+
# active state.
|
|
1044
|
+
# Corresponds to the JSON property `partitionId`
|
|
1045
|
+
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
1046
|
+
attr_accessor :partition_id
|
|
1047
|
+
|
|
1048
|
+
# The entity path.
|
|
1049
|
+
# An entity path consists of one or more elements composed of a kind and a
|
|
1050
|
+
# string or numerical identifier, which identify entities. The first
|
|
1051
|
+
# element identifies a _root entity_, the second element identifies
|
|
1052
|
+
# a _child_ of the root entity, the third element identifies a child of the
|
|
1053
|
+
# second entity, and so forth. The entities identified by all prefixes of
|
|
1054
|
+
# the path are called the element's _ancestors_.
|
|
1055
|
+
# An entity path is always fully complete: *all* of the entity's ancestors
|
|
1056
|
+
# are required to be in the path along with the entity identifier itself.
|
|
1057
|
+
# The only exception is that in some documented cases, the identifier in the
|
|
1058
|
+
# last path element (for the entity) itself may be omitted. For example,
|
|
1059
|
+
# the last path element of the key of `Mutation.insert` may have no
|
|
1060
|
+
# identifier.
|
|
1061
|
+
# A path can never be empty, and a path can have at most 100 elements.
|
|
1062
|
+
# Corresponds to the JSON property `path`
|
|
1063
|
+
# @return [Array<Google::Apis::DatastoreV1::PathElement>]
|
|
1064
|
+
attr_accessor :path
|
|
1065
|
+
|
|
1066
|
+
def initialize(**args)
|
|
1067
|
+
update!(**args)
|
|
1068
|
+
end
|
|
1069
|
+
|
|
1070
|
+
# Update properties of this object
|
|
1071
|
+
def update!(**args)
|
|
1072
|
+
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
1073
|
+
@path = args[:path] if args.key?(:path)
|
|
1074
|
+
end
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1077
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
1078
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
1079
|
+
# specified otherwise, this must conform to the
|
|
1080
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
1081
|
+
# standard</a>. Values must be within normalized ranges.
|
|
1082
|
+
# Example of normalization code in Python:
|
|
1083
|
+
# def NormalizeLongitude(longitude):
|
|
1084
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
1085
|
+
# q, r = divmod(longitude, 360.0)
|
|
1086
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
1087
|
+
# return r - 360.0
|
|
919
1088
|
# return r
|
|
920
1089
|
# def NormalizeLatLng(latitude, longitude):
|
|
921
1090
|
# """Wraps decimal degrees latitude and longitude to
|
|
@@ -964,62 +1133,6 @@ module Google
|
|
|
964
1133
|
end
|
|
965
1134
|
end
|
|
966
1135
|
|
|
967
|
-
# A unique identifier for an entity.
|
|
968
|
-
# If a key's partition ID or any of its path kinds or names are
|
|
969
|
-
# reserved/read-only, the key is reserved/read-only.
|
|
970
|
-
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
971
|
-
class Key
|
|
972
|
-
include Google::Apis::Core::Hashable
|
|
973
|
-
|
|
974
|
-
# The entity path.
|
|
975
|
-
# An entity path consists of one or more elements composed of a kind and a
|
|
976
|
-
# string or numerical identifier, which identify entities. The first
|
|
977
|
-
# element identifies a _root entity_, the second element identifies
|
|
978
|
-
# a _child_ of the root entity, the third element identifies a child of the
|
|
979
|
-
# second entity, and so forth. The entities identified by all prefixes of
|
|
980
|
-
# the path are called the element's _ancestors_.
|
|
981
|
-
# An entity path is always fully complete: *all* of the entity's ancestors
|
|
982
|
-
# are required to be in the path along with the entity identifier itself.
|
|
983
|
-
# The only exception is that in some documented cases, the identifier in the
|
|
984
|
-
# last path element (for the entity) itself may be omitted. For example,
|
|
985
|
-
# the last path element of the key of `Mutation.insert` may have no
|
|
986
|
-
# identifier.
|
|
987
|
-
# A path can never be empty, and a path can have at most 100 elements.
|
|
988
|
-
# Corresponds to the JSON property `path`
|
|
989
|
-
# @return [Array<Google::Apis::DatastoreV1::PathElement>]
|
|
990
|
-
attr_accessor :path
|
|
991
|
-
|
|
992
|
-
# A partition ID identifies a grouping of entities. The grouping is always
|
|
993
|
-
# by project and namespace, however the namespace ID may be empty.
|
|
994
|
-
# A partition ID contains several dimensions:
|
|
995
|
-
# project ID and namespace ID.
|
|
996
|
-
# Partition dimensions:
|
|
997
|
-
# - May be `""`.
|
|
998
|
-
# - Must be valid UTF-8 bytes.
|
|
999
|
-
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
1000
|
-
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
1001
|
-
# reserved/read-only.
|
|
1002
|
-
# A reserved/read-only partition ID is forbidden in certain documented
|
|
1003
|
-
# contexts.
|
|
1004
|
-
# Foreign partition IDs (in which the project ID does
|
|
1005
|
-
# not match the context project ID ) are discouraged.
|
|
1006
|
-
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
1007
|
-
# active state.
|
|
1008
|
-
# Corresponds to the JSON property `partitionId`
|
|
1009
|
-
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
1010
|
-
attr_accessor :partition_id
|
|
1011
|
-
|
|
1012
|
-
def initialize(**args)
|
|
1013
|
-
update!(**args)
|
|
1014
|
-
end
|
|
1015
|
-
|
|
1016
|
-
# Update properties of this object
|
|
1017
|
-
def update!(**args)
|
|
1018
|
-
@path = args[:path] if args.key?(:path)
|
|
1019
|
-
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
1020
|
-
end
|
|
1021
|
-
end
|
|
1022
|
-
|
|
1023
1136
|
# A reference to a property relative to the kind expressions.
|
|
1024
1137
|
class PropertyReference
|
|
1025
1138
|
include Google::Apis::Core::Hashable
|
|
@@ -1084,6 +1197,20 @@ module Google
|
|
|
1084
1197
|
class Mutation
|
|
1085
1198
|
include Google::Apis::Core::Hashable
|
|
1086
1199
|
|
|
1200
|
+
# The version of the entity that this mutation is being applied to. If this
|
|
1201
|
+
# does not match the current version on the server, the mutation conflicts.
|
|
1202
|
+
# Corresponds to the JSON property `baseVersion`
|
|
1203
|
+
# @return [Fixnum]
|
|
1204
|
+
attr_accessor :base_version
|
|
1205
|
+
|
|
1206
|
+
# A Datastore data object.
|
|
1207
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1208
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1209
|
+
# message.
|
|
1210
|
+
# Corresponds to the JSON property `insert`
|
|
1211
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1212
|
+
attr_accessor :insert
|
|
1213
|
+
|
|
1087
1214
|
# A Datastore data object.
|
|
1088
1215
|
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1089
1216
|
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
@@ -1108,31 +1235,17 @@ module Google
|
|
|
1108
1235
|
# @return [Google::Apis::DatastoreV1::Key]
|
|
1109
1236
|
attr_accessor :delete
|
|
1110
1237
|
|
|
1111
|
-
# A Datastore data object.
|
|
1112
|
-
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1113
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1114
|
-
# message.
|
|
1115
|
-
# Corresponds to the JSON property `insert`
|
|
1116
|
-
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1117
|
-
attr_accessor :insert
|
|
1118
|
-
|
|
1119
|
-
# The version of the entity that this mutation is being applied to. If this
|
|
1120
|
-
# does not match the current version on the server, the mutation conflicts.
|
|
1121
|
-
# Corresponds to the JSON property `baseVersion`
|
|
1122
|
-
# @return [Fixnum]
|
|
1123
|
-
attr_accessor :base_version
|
|
1124
|
-
|
|
1125
1238
|
def initialize(**args)
|
|
1126
1239
|
update!(**args)
|
|
1127
1240
|
end
|
|
1128
1241
|
|
|
1129
1242
|
# Update properties of this object
|
|
1130
1243
|
def update!(**args)
|
|
1244
|
+
@base_version = args[:base_version] if args.key?(:base_version)
|
|
1245
|
+
@insert = args[:insert] if args.key?(:insert)
|
|
1131
1246
|
@update = args[:update] if args.key?(:update)
|
|
1132
1247
|
@upsert = args[:upsert] if args.key?(:upsert)
|
|
1133
1248
|
@delete = args[:delete] if args.key?(:delete)
|
|
1134
|
-
@insert = args[:insert] if args.key?(:insert)
|
|
1135
|
-
@base_version = args[:base_version] if args.key?(:base_version)
|
|
1136
1249
|
end
|
|
1137
1250
|
end
|
|
1138
1251
|
|
|
@@ -1140,12 +1253,6 @@ module Google
|
|
|
1140
1253
|
class ReadOptions
|
|
1141
1254
|
include Google::Apis::Core::Hashable
|
|
1142
1255
|
|
|
1143
|
-
# The non-transactional read consistency to use.
|
|
1144
|
-
# Cannot be set to `STRONG` for global queries.
|
|
1145
|
-
# Corresponds to the JSON property `readConsistency`
|
|
1146
|
-
# @return [String]
|
|
1147
|
-
attr_accessor :read_consistency
|
|
1148
|
-
|
|
1149
1256
|
# The identifier of the transaction in which to read. A
|
|
1150
1257
|
# transaction identifier is returned by a call to
|
|
1151
1258
|
# Datastore.BeginTransaction.
|
|
@@ -1154,14 +1261,20 @@ module Google
|
|
|
1154
1261
|
# @return [String]
|
|
1155
1262
|
attr_accessor :transaction
|
|
1156
1263
|
|
|
1264
|
+
# The non-transactional read consistency to use.
|
|
1265
|
+
# Cannot be set to `STRONG` for global queries.
|
|
1266
|
+
# Corresponds to the JSON property `readConsistency`
|
|
1267
|
+
# @return [String]
|
|
1268
|
+
attr_accessor :read_consistency
|
|
1269
|
+
|
|
1157
1270
|
def initialize(**args)
|
|
1158
1271
|
update!(**args)
|
|
1159
1272
|
end
|
|
1160
1273
|
|
|
1161
1274
|
# Update properties of this object
|
|
1162
1275
|
def update!(**args)
|
|
1163
|
-
@read_consistency = args[:read_consistency] if args.key?(:read_consistency)
|
|
1164
1276
|
@transaction = args[:transaction] if args.key?(:transaction)
|
|
1277
|
+
@read_consistency = args[:read_consistency] if args.key?(:read_consistency)
|
|
1165
1278
|
end
|
|
1166
1279
|
end
|
|
1167
1280
|
|
|
@@ -1178,119 +1291,6 @@ module Google
|
|
|
1178
1291
|
def update!(**args)
|
|
1179
1292
|
end
|
|
1180
1293
|
end
|
|
1181
|
-
|
|
1182
|
-
# The result of applying a mutation.
|
|
1183
|
-
class MutationResult
|
|
1184
|
-
include Google::Apis::Core::Hashable
|
|
1185
|
-
|
|
1186
|
-
# A unique identifier for an entity.
|
|
1187
|
-
# If a key's partition ID or any of its path kinds or names are
|
|
1188
|
-
# reserved/read-only, the key is reserved/read-only.
|
|
1189
|
-
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1190
|
-
# Corresponds to the JSON property `key`
|
|
1191
|
-
# @return [Google::Apis::DatastoreV1::Key]
|
|
1192
|
-
attr_accessor :key
|
|
1193
|
-
|
|
1194
|
-
# The version of the entity on the server after processing the mutation. If
|
|
1195
|
-
# the mutation doesn't change anything on the server, then the version will
|
|
1196
|
-
# be the version of the current entity or, if no entity is present, a version
|
|
1197
|
-
# that is strictly greater than the version of any previous entity and less
|
|
1198
|
-
# than the version of any possible future entity.
|
|
1199
|
-
# Corresponds to the JSON property `version`
|
|
1200
|
-
# @return [Fixnum]
|
|
1201
|
-
attr_accessor :version
|
|
1202
|
-
|
|
1203
|
-
# Whether a conflict was detected for this mutation. Always false when a
|
|
1204
|
-
# conflict detection strategy field is not set in the mutation.
|
|
1205
|
-
# Corresponds to the JSON property `conflictDetected`
|
|
1206
|
-
# @return [Boolean]
|
|
1207
|
-
attr_accessor :conflict_detected
|
|
1208
|
-
alias_method :conflict_detected?, :conflict_detected
|
|
1209
|
-
|
|
1210
|
-
def initialize(**args)
|
|
1211
|
-
update!(**args)
|
|
1212
|
-
end
|
|
1213
|
-
|
|
1214
|
-
# Update properties of this object
|
|
1215
|
-
def update!(**args)
|
|
1216
|
-
@key = args[:key] if args.key?(:key)
|
|
1217
|
-
@version = args[:version] if args.key?(:version)
|
|
1218
|
-
@conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
|
|
1219
|
-
end
|
|
1220
|
-
end
|
|
1221
|
-
|
|
1222
|
-
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
1223
|
-
class GqlQuery
|
|
1224
|
-
include Google::Apis::Core::Hashable
|
|
1225
|
-
|
|
1226
|
-
# A string of the format described
|
|
1227
|
-
# [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
1228
|
-
# Corresponds to the JSON property `queryString`
|
|
1229
|
-
# @return [String]
|
|
1230
|
-
attr_accessor :query_string
|
|
1231
|
-
|
|
1232
|
-
# When false, the query string must not contain any literals and instead must
|
|
1233
|
-
# bind all values. For example,
|
|
1234
|
-
# `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
|
|
1235
|
-
# `SELECT * FROM Kind WHERE a = @value` is.
|
|
1236
|
-
# Corresponds to the JSON property `allowLiterals`
|
|
1237
|
-
# @return [Boolean]
|
|
1238
|
-
attr_accessor :allow_literals
|
|
1239
|
-
alias_method :allow_literals?, :allow_literals
|
|
1240
|
-
|
|
1241
|
-
# For each non-reserved named binding site in the query string, there must be
|
|
1242
|
-
# a named parameter with that name, but not necessarily the inverse.
|
|
1243
|
-
# Key must match regex `A-Za-z_$*`, must not match regex
|
|
1244
|
-
# `__.*__`, and must not be `""`.
|
|
1245
|
-
# Corresponds to the JSON property `namedBindings`
|
|
1246
|
-
# @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
1247
|
-
attr_accessor :named_bindings
|
|
1248
|
-
|
|
1249
|
-
# Numbered binding site @1 references the first numbered parameter,
|
|
1250
|
-
# effectively using 1-based indexing, rather than the usual 0.
|
|
1251
|
-
# For each binding site numbered i in `query_string`, there must be an i-th
|
|
1252
|
-
# numbered parameter. The inverse must also be true.
|
|
1253
|
-
# Corresponds to the JSON property `positionalBindings`
|
|
1254
|
-
# @return [Array<Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
1255
|
-
attr_accessor :positional_bindings
|
|
1256
|
-
|
|
1257
|
-
def initialize(**args)
|
|
1258
|
-
update!(**args)
|
|
1259
|
-
end
|
|
1260
|
-
|
|
1261
|
-
# Update properties of this object
|
|
1262
|
-
def update!(**args)
|
|
1263
|
-
@query_string = args[:query_string] if args.key?(:query_string)
|
|
1264
|
-
@allow_literals = args[:allow_literals] if args.key?(:allow_literals)
|
|
1265
|
-
@named_bindings = args[:named_bindings] if args.key?(:named_bindings)
|
|
1266
|
-
@positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
|
|
1267
|
-
end
|
|
1268
|
-
end
|
|
1269
|
-
|
|
1270
|
-
# A holder for any type of filter.
|
|
1271
|
-
class Filter
|
|
1272
|
-
include Google::Apis::Core::Hashable
|
|
1273
|
-
|
|
1274
|
-
# A filter that merges multiple other filters using the given operator.
|
|
1275
|
-
# Corresponds to the JSON property `compositeFilter`
|
|
1276
|
-
# @return [Google::Apis::DatastoreV1::CompositeFilter]
|
|
1277
|
-
attr_accessor :composite_filter
|
|
1278
|
-
|
|
1279
|
-
# A filter on a specific property.
|
|
1280
|
-
# Corresponds to the JSON property `propertyFilter`
|
|
1281
|
-
# @return [Google::Apis::DatastoreV1::PropertyFilter]
|
|
1282
|
-
attr_accessor :property_filter
|
|
1283
|
-
|
|
1284
|
-
def initialize(**args)
|
|
1285
|
-
update!(**args)
|
|
1286
|
-
end
|
|
1287
|
-
|
|
1288
|
-
# Update properties of this object
|
|
1289
|
-
def update!(**args)
|
|
1290
|
-
@composite_filter = args[:composite_filter] if args.key?(:composite_filter)
|
|
1291
|
-
@property_filter = args[:property_filter] if args.key?(:property_filter)
|
|
1292
|
-
end
|
|
1293
|
-
end
|
|
1294
1294
|
end
|
|
1295
1295
|
end
|
|
1296
1296
|
end
|