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