google-api-client 0.13.2 → 0.13.3
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 +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
|
@@ -26,13 +26,13 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/datastore/
|
|
27
27
|
module DatastoreV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
30
|
-
|
|
31
|
-
# View and manage your Google Cloud Datastore data
|
|
32
|
-
AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
|
|
29
|
+
REVISION = '20170811'
|
|
33
30
|
|
|
34
31
|
# View and manage your data across Google Cloud Platform services
|
|
35
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
33
|
+
|
|
34
|
+
# View and manage your Google Cloud Datastore data
|
|
35
|
+
AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
end
|
|
@@ -22,33 +22,15 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module DatastoreV1
|
|
24
24
|
|
|
25
|
-
# The
|
|
26
|
-
class
|
|
25
|
+
# The request for Datastore.AllocateIds.
|
|
26
|
+
class AllocateIdsRequest
|
|
27
27
|
include Google::Apis::Core::Hashable
|
|
28
28
|
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
|
|
34
|
-
# Corresponds to the JSON property `version`
|
|
35
|
-
# @return [Fixnum]
|
|
36
|
-
attr_accessor :version
|
|
37
|
-
|
|
38
|
-
# Whether a conflict was detected for this mutation. Always false when a
|
|
39
|
-
# conflict detection strategy field is not set in the mutation.
|
|
40
|
-
# Corresponds to the JSON property `conflictDetected`
|
|
41
|
-
# @return [Boolean]
|
|
42
|
-
attr_accessor :conflict_detected
|
|
43
|
-
alias_method :conflict_detected?, :conflict_detected
|
|
44
|
-
|
|
45
|
-
# A unique identifier for an entity.
|
|
46
|
-
# If a key's partition ID or any of its path kinds or names are
|
|
47
|
-
# reserved/read-only, the key is reserved/read-only.
|
|
48
|
-
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
49
|
-
# Corresponds to the JSON property `key`
|
|
50
|
-
# @return [Google::Apis::DatastoreV1::Key]
|
|
51
|
-
attr_accessor :key
|
|
29
|
+
# A list of keys with incomplete key paths for which to allocate IDs.
|
|
30
|
+
# No key may be reserved/read-only.
|
|
31
|
+
# Corresponds to the JSON property `keys`
|
|
32
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
33
|
+
attr_accessor :keys
|
|
52
34
|
|
|
53
35
|
def initialize(**args)
|
|
54
36
|
update!(**args)
|
|
@@ -56,46 +38,19 @@ module Google
|
|
|
56
38
|
|
|
57
39
|
# Update properties of this object
|
|
58
40
|
def update!(**args)
|
|
59
|
-
@
|
|
60
|
-
@conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
|
|
61
|
-
@key = args[:key] if args.key?(:key)
|
|
41
|
+
@keys = args[:keys] if args.key?(:keys)
|
|
62
42
|
end
|
|
63
43
|
end
|
|
64
44
|
|
|
65
|
-
#
|
|
66
|
-
class
|
|
45
|
+
# The response for Datastore.AllocateIds.
|
|
46
|
+
class AllocateIdsResponse
|
|
67
47
|
include Google::Apis::Core::Hashable
|
|
68
48
|
|
|
69
|
-
#
|
|
70
|
-
#
|
|
71
|
-
#
|
|
72
|
-
#
|
|
73
|
-
|
|
74
|
-
# @return [Array<Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
75
|
-
attr_accessor :positional_bindings
|
|
76
|
-
|
|
77
|
-
# For each non-reserved named binding site in the query string, there must be
|
|
78
|
-
# a named parameter with that name, but not necessarily the inverse.
|
|
79
|
-
# Key must match regex `A-Za-z_$*`, must not match regex
|
|
80
|
-
# `__.*__`, and must not be `""`.
|
|
81
|
-
# Corresponds to the JSON property `namedBindings`
|
|
82
|
-
# @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
83
|
-
attr_accessor :named_bindings
|
|
84
|
-
|
|
85
|
-
# When false, the query string must not contain any literals and instead must
|
|
86
|
-
# bind all values. For example,
|
|
87
|
-
# `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
|
|
88
|
-
# `SELECT * FROM Kind WHERE a = @value` is.
|
|
89
|
-
# Corresponds to the JSON property `allowLiterals`
|
|
90
|
-
# @return [Boolean]
|
|
91
|
-
attr_accessor :allow_literals
|
|
92
|
-
alias_method :allow_literals?, :allow_literals
|
|
93
|
-
|
|
94
|
-
# A string of the format described
|
|
95
|
-
# [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
96
|
-
# Corresponds to the JSON property `queryString`
|
|
97
|
-
# @return [String]
|
|
98
|
-
attr_accessor :query_string
|
|
49
|
+
# The keys specified in the request (in the same order), each with
|
|
50
|
+
# its key path completed with a newly allocated ID.
|
|
51
|
+
# Corresponds to the JSON property `keys`
|
|
52
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
53
|
+
attr_accessor :keys
|
|
99
54
|
|
|
100
55
|
def initialize(**args)
|
|
101
56
|
update!(**args)
|
|
@@ -103,26 +58,20 @@ module Google
|
|
|
103
58
|
|
|
104
59
|
# Update properties of this object
|
|
105
60
|
def update!(**args)
|
|
106
|
-
@
|
|
107
|
-
@named_bindings = args[:named_bindings] if args.key?(:named_bindings)
|
|
108
|
-
@allow_literals = args[:allow_literals] if args.key?(:allow_literals)
|
|
109
|
-
@query_string = args[:query_string] if args.key?(:query_string)
|
|
61
|
+
@keys = args[:keys] if args.key?(:keys)
|
|
110
62
|
end
|
|
111
63
|
end
|
|
112
64
|
|
|
113
|
-
#
|
|
114
|
-
class
|
|
65
|
+
# An array value.
|
|
66
|
+
class ArrayValue
|
|
115
67
|
include Google::Apis::Core::Hashable
|
|
116
68
|
|
|
117
|
-
#
|
|
118
|
-
#
|
|
119
|
-
#
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
# Corresponds to the JSON property `compositeFilter`
|
|
124
|
-
# @return [Google::Apis::DatastoreV1::CompositeFilter]
|
|
125
|
-
attr_accessor :composite_filter
|
|
69
|
+
# Values in the array.
|
|
70
|
+
# The order of this array may not be preserved if it contains a mix of
|
|
71
|
+
# indexed and unindexed values.
|
|
72
|
+
# Corresponds to the JSON property `values`
|
|
73
|
+
# @return [Array<Google::Apis::DatastoreV1::Value>]
|
|
74
|
+
attr_accessor :values
|
|
126
75
|
|
|
127
76
|
def initialize(**args)
|
|
128
77
|
update!(**args)
|
|
@@ -130,49 +79,41 @@ module Google
|
|
|
130
79
|
|
|
131
80
|
# Update properties of this object
|
|
132
81
|
def update!(**args)
|
|
133
|
-
@
|
|
134
|
-
@composite_filter = args[:composite_filter] if args.key?(:composite_filter)
|
|
82
|
+
@values = args[:values] if args.key?(:values)
|
|
135
83
|
end
|
|
136
84
|
end
|
|
137
85
|
|
|
138
|
-
# The request for Datastore.
|
|
139
|
-
class
|
|
86
|
+
# The request for Datastore.BeginTransaction.
|
|
87
|
+
class BeginTransactionRequest
|
|
140
88
|
include Google::Apis::Core::Hashable
|
|
141
89
|
|
|
142
|
-
#
|
|
143
|
-
#
|
|
144
|
-
#
|
|
145
|
-
|
|
90
|
+
# Options for beginning a new transaction.
|
|
91
|
+
# Transactions can be created explicitly with calls to
|
|
92
|
+
# Datastore.BeginTransaction or implicitly by setting
|
|
93
|
+
# ReadOptions.new_transaction in read requests.
|
|
94
|
+
# Corresponds to the JSON property `transactionOptions`
|
|
95
|
+
# @return [Google::Apis::DatastoreV1::TransactionOptions]
|
|
96
|
+
attr_accessor :transaction_options
|
|
146
97
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
# project ID and namespace ID.
|
|
151
|
-
# Partition dimensions:
|
|
152
|
-
# - May be `""`.
|
|
153
|
-
# - Must be valid UTF-8 bytes.
|
|
154
|
-
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
155
|
-
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
156
|
-
# reserved/read-only.
|
|
157
|
-
# A reserved/read-only partition ID is forbidden in certain documented
|
|
158
|
-
# contexts.
|
|
159
|
-
# Foreign partition IDs (in which the project ID does
|
|
160
|
-
# not match the context project ID ) are discouraged.
|
|
161
|
-
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
162
|
-
# active state.
|
|
163
|
-
# Corresponds to the JSON property `partitionId`
|
|
164
|
-
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
165
|
-
attr_accessor :partition_id
|
|
98
|
+
def initialize(**args)
|
|
99
|
+
update!(**args)
|
|
100
|
+
end
|
|
166
101
|
|
|
167
|
-
#
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
102
|
+
# Update properties of this object
|
|
103
|
+
def update!(**args)
|
|
104
|
+
@transaction_options = args[:transaction_options] if args.key?(:transaction_options)
|
|
105
|
+
end
|
|
106
|
+
end
|
|
171
107
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
108
|
+
# The response for Datastore.BeginTransaction.
|
|
109
|
+
class BeginTransactionResponse
|
|
110
|
+
include Google::Apis::Core::Hashable
|
|
111
|
+
|
|
112
|
+
# The transaction identifier (always present).
|
|
113
|
+
# Corresponds to the JSON property `transaction`
|
|
114
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
115
|
+
# @return [String]
|
|
116
|
+
attr_accessor :transaction
|
|
176
117
|
|
|
177
118
|
def initialize(**args)
|
|
178
119
|
update!(**args)
|
|
@@ -180,18 +121,35 @@ module Google
|
|
|
180
121
|
|
|
181
122
|
# Update properties of this object
|
|
182
123
|
def update!(**args)
|
|
183
|
-
@
|
|
184
|
-
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
185
|
-
@read_options = args[:read_options] if args.key?(:read_options)
|
|
186
|
-
@query = args[:query] if args.key?(:query)
|
|
124
|
+
@transaction = args[:transaction] if args.key?(:transaction)
|
|
187
125
|
end
|
|
188
126
|
end
|
|
189
127
|
|
|
190
|
-
# The request for Datastore.
|
|
191
|
-
class
|
|
128
|
+
# The request for Datastore.Commit.
|
|
129
|
+
class CommitRequest
|
|
192
130
|
include Google::Apis::Core::Hashable
|
|
193
131
|
|
|
194
|
-
# The
|
|
132
|
+
# The type of commit to perform. Defaults to `TRANSACTIONAL`.
|
|
133
|
+
# Corresponds to the JSON property `mode`
|
|
134
|
+
# @return [String]
|
|
135
|
+
attr_accessor :mode
|
|
136
|
+
|
|
137
|
+
# The mutations to perform.
|
|
138
|
+
# When mode is `TRANSACTIONAL`, mutations affecting a single entity are
|
|
139
|
+
# applied in order. The following sequences of mutations affecting a single
|
|
140
|
+
# entity are not permitted in a single `Commit` request:
|
|
141
|
+
# - `insert` followed by `insert`
|
|
142
|
+
# - `update` followed by `insert`
|
|
143
|
+
# - `upsert` followed by `insert`
|
|
144
|
+
# - `delete` followed by `update`
|
|
145
|
+
# When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
|
|
146
|
+
# entity.
|
|
147
|
+
# Corresponds to the JSON property `mutations`
|
|
148
|
+
# @return [Array<Google::Apis::DatastoreV1::Mutation>]
|
|
149
|
+
attr_accessor :mutations
|
|
150
|
+
|
|
151
|
+
# The identifier of the transaction associated with the commit. A
|
|
152
|
+
# transaction identifier is returned by a call to
|
|
195
153
|
# Datastore.BeginTransaction.
|
|
196
154
|
# Corresponds to the JSON property `transaction`
|
|
197
155
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
@@ -204,10 +162,39 @@ module Google
|
|
|
204
162
|
|
|
205
163
|
# Update properties of this object
|
|
206
164
|
def update!(**args)
|
|
165
|
+
@mode = args[:mode] if args.key?(:mode)
|
|
166
|
+
@mutations = args[:mutations] if args.key?(:mutations)
|
|
207
167
|
@transaction = args[:transaction] if args.key?(:transaction)
|
|
208
168
|
end
|
|
209
169
|
end
|
|
210
170
|
|
|
171
|
+
# The response for Datastore.Commit.
|
|
172
|
+
class CommitResponse
|
|
173
|
+
include Google::Apis::Core::Hashable
|
|
174
|
+
|
|
175
|
+
# The number of index entries updated during the commit, or zero if none were
|
|
176
|
+
# updated.
|
|
177
|
+
# Corresponds to the JSON property `indexUpdates`
|
|
178
|
+
# @return [Fixnum]
|
|
179
|
+
attr_accessor :index_updates
|
|
180
|
+
|
|
181
|
+
# The result of performing the mutations.
|
|
182
|
+
# The i-th mutation result corresponds to the i-th mutation in the request.
|
|
183
|
+
# Corresponds to the JSON property `mutationResults`
|
|
184
|
+
# @return [Array<Google::Apis::DatastoreV1::MutationResult>]
|
|
185
|
+
attr_accessor :mutation_results
|
|
186
|
+
|
|
187
|
+
def initialize(**args)
|
|
188
|
+
update!(**args)
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Update properties of this object
|
|
192
|
+
def update!(**args)
|
|
193
|
+
@index_updates = args[:index_updates] if args.key?(:index_updates)
|
|
194
|
+
@mutation_results = args[:mutation_results] if args.key?(:mutation_results)
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
211
198
|
# A filter that merges multiple other filters using the given operator.
|
|
212
199
|
class CompositeFilter
|
|
213
200
|
include Google::Apis::Core::Hashable
|
|
@@ -234,127 +221,49 @@ module Google
|
|
|
234
221
|
end
|
|
235
222
|
end
|
|
236
223
|
|
|
237
|
-
#
|
|
238
|
-
|
|
224
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
225
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
226
|
+
# or the response type of an API method. For instance:
|
|
227
|
+
# service Foo `
|
|
228
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
229
|
+
# `
|
|
230
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
|
231
|
+
class Empty
|
|
239
232
|
include Google::Apis::Core::Hashable
|
|
240
233
|
|
|
241
|
-
# The keys specified in the request (in the same order), each with
|
|
242
|
-
# its key path completed with a newly allocated ID.
|
|
243
|
-
# Corresponds to the JSON property `keys`
|
|
244
|
-
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
245
|
-
attr_accessor :keys
|
|
246
|
-
|
|
247
234
|
def initialize(**args)
|
|
248
235
|
update!(**args)
|
|
249
236
|
end
|
|
250
237
|
|
|
251
238
|
# Update properties of this object
|
|
252
239
|
def update!(**args)
|
|
253
|
-
@keys = args[:keys] if args.key?(:keys)
|
|
254
240
|
end
|
|
255
241
|
end
|
|
256
242
|
|
|
257
|
-
# A
|
|
258
|
-
|
|
243
|
+
# A Datastore data object.
|
|
244
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
245
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
246
|
+
# message.
|
|
247
|
+
class Entity
|
|
259
248
|
include Google::Apis::Core::Hashable
|
|
260
249
|
|
|
261
|
-
#
|
|
262
|
-
#
|
|
263
|
-
#
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
#
|
|
267
|
-
|
|
268
|
-
# [can only be used to limit the same query](https://cloud.google.com/datastore/
|
|
269
|
-
# docs/concepts/queries#cursors_limits_and_offsets).
|
|
270
|
-
# Corresponds to the JSON property `endCursor`
|
|
271
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
272
|
-
# @return [String]
|
|
273
|
-
attr_accessor :end_cursor
|
|
274
|
-
|
|
275
|
-
# A holder for any type of filter.
|
|
276
|
-
# Corresponds to the JSON property `filter`
|
|
277
|
-
# @return [Google::Apis::DatastoreV1::Filter]
|
|
278
|
-
attr_accessor :filter
|
|
250
|
+
# A unique identifier for an entity.
|
|
251
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
252
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
253
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
254
|
+
# Corresponds to the JSON property `key`
|
|
255
|
+
# @return [Google::Apis::DatastoreV1::Key]
|
|
256
|
+
attr_accessor :key
|
|
279
257
|
|
|
280
|
-
# The
|
|
281
|
-
#
|
|
282
|
-
#
|
|
283
|
-
#
|
|
284
|
-
#
|
|
285
|
-
#
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
# returned in query result batches and
|
|
290
|
-
# [can only be used to continue the same query](https://cloud.google.com/
|
|
291
|
-
# datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
|
292
|
-
# Corresponds to the JSON property `startCursor`
|
|
293
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
294
|
-
# @return [String]
|
|
295
|
-
attr_accessor :start_cursor
|
|
296
|
-
|
|
297
|
-
# The number of results to skip. Applies before limit, but after all other
|
|
298
|
-
# constraints. Optional. Must be >= 0 if specified.
|
|
299
|
-
# Corresponds to the JSON property `offset`
|
|
300
|
-
# @return [Fixnum]
|
|
301
|
-
attr_accessor :offset
|
|
302
|
-
|
|
303
|
-
# The kinds to query (if empty, returns entities of all kinds).
|
|
304
|
-
# Currently at most 1 kind may be specified.
|
|
305
|
-
# Corresponds to the JSON property `kind`
|
|
306
|
-
# @return [Array<Google::Apis::DatastoreV1::KindExpression>]
|
|
307
|
-
attr_accessor :kind
|
|
308
|
-
|
|
309
|
-
# The properties to make distinct. The query results will contain the first
|
|
310
|
-
# result for each distinct combination of values for the given properties
|
|
311
|
-
# (if empty, all results are returned).
|
|
312
|
-
# Corresponds to the JSON property `distinctOn`
|
|
313
|
-
# @return [Array<Google::Apis::DatastoreV1::PropertyReference>]
|
|
314
|
-
attr_accessor :distinct_on
|
|
315
|
-
|
|
316
|
-
# The order to apply to the query results (if empty, order is unspecified).
|
|
317
|
-
# Corresponds to the JSON property `order`
|
|
318
|
-
# @return [Array<Google::Apis::DatastoreV1::PropertyOrder>]
|
|
319
|
-
attr_accessor :order
|
|
320
|
-
|
|
321
|
-
def initialize(**args)
|
|
322
|
-
update!(**args)
|
|
323
|
-
end
|
|
324
|
-
|
|
325
|
-
# Update properties of this object
|
|
326
|
-
def update!(**args)
|
|
327
|
-
@projection = args[:projection] if args.key?(:projection)
|
|
328
|
-
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
329
|
-
@filter = args[:filter] if args.key?(:filter)
|
|
330
|
-
@limit = args[:limit] if args.key?(:limit)
|
|
331
|
-
@start_cursor = args[:start_cursor] if args.key?(:start_cursor)
|
|
332
|
-
@offset = args[:offset] if args.key?(:offset)
|
|
333
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
334
|
-
@distinct_on = args[:distinct_on] if args.key?(:distinct_on)
|
|
335
|
-
@order = args[:order] if args.key?(:order)
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
# A filter on a specific property.
|
|
340
|
-
class PropertyFilter
|
|
341
|
-
include Google::Apis::Core::Hashable
|
|
342
|
-
|
|
343
|
-
# A message that can hold any of the supported value types and associated
|
|
344
|
-
# metadata.
|
|
345
|
-
# Corresponds to the JSON property `value`
|
|
346
|
-
# @return [Google::Apis::DatastoreV1::Value]
|
|
347
|
-
attr_accessor :value
|
|
348
|
-
|
|
349
|
-
# A reference to a property relative to the kind expressions.
|
|
350
|
-
# Corresponds to the JSON property `property`
|
|
351
|
-
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
352
|
-
attr_accessor :property
|
|
353
|
-
|
|
354
|
-
# The operator to filter by.
|
|
355
|
-
# Corresponds to the JSON property `op`
|
|
356
|
-
# @return [String]
|
|
357
|
-
attr_accessor :op
|
|
258
|
+
# The entity's properties.
|
|
259
|
+
# The map's keys are property names.
|
|
260
|
+
# A property name matching regex `__.*__` is reserved.
|
|
261
|
+
# A reserved property name is forbidden in certain documented contexts.
|
|
262
|
+
# The name must not contain more than 500 characters.
|
|
263
|
+
# The name cannot be `""`.
|
|
264
|
+
# Corresponds to the JSON property `properties`
|
|
265
|
+
# @return [Hash<String,Google::Apis::DatastoreV1::Value>]
|
|
266
|
+
attr_accessor :properties
|
|
358
267
|
|
|
359
268
|
def initialize(**args)
|
|
360
269
|
update!(**args)
|
|
@@ -362,9 +271,8 @@ module Google
|
|
|
362
271
|
|
|
363
272
|
# Update properties of this object
|
|
364
273
|
def update!(**args)
|
|
365
|
-
@
|
|
366
|
-
@
|
|
367
|
-
@op = args[:op] if args.key?(:op)
|
|
274
|
+
@key = args[:key] if args.key?(:key)
|
|
275
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
368
276
|
end
|
|
369
277
|
end
|
|
370
278
|
|
|
@@ -372,6 +280,13 @@ module Google
|
|
|
372
280
|
class EntityResult
|
|
373
281
|
include Google::Apis::Core::Hashable
|
|
374
282
|
|
|
283
|
+
# A cursor that points to the position after the result entity.
|
|
284
|
+
# Set only when the `EntityResult` is part of a `QueryResultBatch` message.
|
|
285
|
+
# Corresponds to the JSON property `cursor`
|
|
286
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
287
|
+
# @return [String]
|
|
288
|
+
attr_accessor :cursor
|
|
289
|
+
|
|
375
290
|
# A Datastore data object.
|
|
376
291
|
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
377
292
|
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
@@ -380,13 +295,6 @@ module Google
|
|
|
380
295
|
# @return [Google::Apis::DatastoreV1::Entity]
|
|
381
296
|
attr_accessor :entity
|
|
382
297
|
|
|
383
|
-
# A cursor that points to the position after the result entity.
|
|
384
|
-
# Set only when the `EntityResult` is part of a `QueryResultBatch` message.
|
|
385
|
-
# Corresponds to the JSON property `cursor`
|
|
386
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
387
|
-
# @return [String]
|
|
388
|
-
attr_accessor :cursor
|
|
389
|
-
|
|
390
298
|
# The version of the entity, a strictly positive number that monotonically
|
|
391
299
|
# increases with changes to the entity.
|
|
392
300
|
# This field is set for `FULL` entity
|
|
@@ -404,133 +312,170 @@ module Google
|
|
|
404
312
|
|
|
405
313
|
# Update properties of this object
|
|
406
314
|
def update!(**args)
|
|
407
|
-
@entity = args[:entity] if args.key?(:entity)
|
|
408
315
|
@cursor = args[:cursor] if args.key?(:cursor)
|
|
316
|
+
@entity = args[:entity] if args.key?(:entity)
|
|
409
317
|
@version = args[:version] if args.key?(:version)
|
|
410
318
|
end
|
|
411
319
|
end
|
|
412
320
|
|
|
413
|
-
# A
|
|
414
|
-
|
|
415
|
-
class Value
|
|
321
|
+
# A holder for any type of filter.
|
|
322
|
+
class Filter
|
|
416
323
|
include Google::Apis::Core::Hashable
|
|
417
324
|
|
|
418
|
-
# A
|
|
419
|
-
# Corresponds to the JSON property `
|
|
420
|
-
# @return [
|
|
421
|
-
attr_accessor :
|
|
325
|
+
# A filter that merges multiple other filters using the given operator.
|
|
326
|
+
# Corresponds to the JSON property `compositeFilter`
|
|
327
|
+
# @return [Google::Apis::DatastoreV1::CompositeFilter]
|
|
328
|
+
attr_accessor :composite_filter
|
|
422
329
|
|
|
423
|
-
# A
|
|
424
|
-
#
|
|
425
|
-
#
|
|
426
|
-
|
|
330
|
+
# A filter on a specific property.
|
|
331
|
+
# Corresponds to the JSON property `propertyFilter`
|
|
332
|
+
# @return [Google::Apis::DatastoreV1::PropertyFilter]
|
|
333
|
+
attr_accessor :property_filter
|
|
334
|
+
|
|
335
|
+
def initialize(**args)
|
|
336
|
+
update!(**args)
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Update properties of this object
|
|
340
|
+
def update!(**args)
|
|
341
|
+
@composite_filter = args[:composite_filter] if args.key?(:composite_filter)
|
|
342
|
+
@property_filter = args[:property_filter] if args.key?(:property_filter)
|
|
343
|
+
end
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# Metadata common to all Datastore Admin operations.
|
|
347
|
+
class GoogleDatastoreAdminV1beta1CommonMetadata
|
|
348
|
+
include Google::Apis::Core::Hashable
|
|
349
|
+
|
|
350
|
+
# The time the operation ended, either successfully or otherwise.
|
|
351
|
+
# Corresponds to the JSON property `endTime`
|
|
427
352
|
# @return [String]
|
|
428
|
-
attr_accessor :
|
|
353
|
+
attr_accessor :end_time
|
|
429
354
|
|
|
430
|
-
#
|
|
431
|
-
#
|
|
355
|
+
# The client-assigned labels which were provided when the operation was
|
|
356
|
+
# created. May also include additional labels.
|
|
357
|
+
# Corresponds to the JSON property `labels`
|
|
358
|
+
# @return [Hash<String,String>]
|
|
359
|
+
attr_accessor :labels
|
|
360
|
+
|
|
361
|
+
# The type of the operation. Can be used as a filter in
|
|
362
|
+
# ListOperationsRequest.
|
|
363
|
+
# Corresponds to the JSON property `operationType`
|
|
432
364
|
# @return [String]
|
|
433
|
-
attr_accessor :
|
|
365
|
+
attr_accessor :operation_type
|
|
434
366
|
|
|
435
|
-
#
|
|
436
|
-
# Corresponds to the JSON property `
|
|
437
|
-
# @return [
|
|
438
|
-
attr_accessor :
|
|
439
|
-
alias_method :boolean_value?, :boolean_value
|
|
367
|
+
# The time that work began on the operation.
|
|
368
|
+
# Corresponds to the JSON property `startTime`
|
|
369
|
+
# @return [String]
|
|
370
|
+
attr_accessor :start_time
|
|
440
371
|
|
|
441
|
-
#
|
|
442
|
-
#
|
|
443
|
-
# When `exclude_from_indexes` is false, may have at most 1500 bytes.
|
|
444
|
-
# In JSON requests, must be base64-encoded.
|
|
445
|
-
# Corresponds to the JSON property `blobValue`
|
|
446
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
372
|
+
# The current state of the Operation.
|
|
373
|
+
# Corresponds to the JSON property `state`
|
|
447
374
|
# @return [String]
|
|
448
|
-
attr_accessor :
|
|
375
|
+
attr_accessor :state
|
|
449
376
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
attr_accessor :meaning
|
|
377
|
+
def initialize(**args)
|
|
378
|
+
update!(**args)
|
|
379
|
+
end
|
|
454
380
|
|
|
455
|
-
#
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
381
|
+
# Update properties of this object
|
|
382
|
+
def update!(**args)
|
|
383
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
384
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
385
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
386
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
387
|
+
@state = args[:state] if args.key?(:state)
|
|
388
|
+
end
|
|
389
|
+
end
|
|
459
390
|
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
391
|
+
# Identifies a subset of entities in a project. This is specified as
|
|
392
|
+
# combinations of kind + namespace (either or both of which may be all, as
|
|
393
|
+
# described in the following examples).
|
|
394
|
+
# Example usage:
|
|
395
|
+
# Entire project:
|
|
396
|
+
# kinds=[], namespace_ids=[]
|
|
397
|
+
# Kinds Foo and Bar in all namespaces:
|
|
398
|
+
# kinds=['Foo', 'Bar'], namespace_ids=[]
|
|
399
|
+
# Kinds Foo and Bar only in the default namespace:
|
|
400
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['']
|
|
401
|
+
# Kinds Foo and Bar in both the default and Baz namespaces:
|
|
402
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
|
|
403
|
+
# The entire Baz namespace:
|
|
404
|
+
# kinds=[], namespace_ids=['Baz']
|
|
405
|
+
class GoogleDatastoreAdminV1beta1EntityFilter
|
|
406
|
+
include Google::Apis::Core::Hashable
|
|
467
407
|
|
|
468
|
-
#
|
|
469
|
-
#
|
|
470
|
-
#
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
#
|
|
474
|
-
#
|
|
475
|
-
#
|
|
476
|
-
#
|
|
477
|
-
#
|
|
478
|
-
#
|
|
479
|
-
#
|
|
480
|
-
#
|
|
481
|
-
|
|
482
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
483
|
-
# r = latitude % 360.0
|
|
484
|
-
# if r <= 90.0:
|
|
485
|
-
# return r, NormalizeLongitude(longitude)
|
|
486
|
-
# elif r >= 270.0:
|
|
487
|
-
# return r - 360, NormalizeLongitude(longitude)
|
|
488
|
-
# else:
|
|
489
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
490
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
|
491
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
492
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
|
493
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
494
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
495
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
496
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
497
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
498
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
499
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
500
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
501
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
502
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
503
|
-
# Corresponds to the JSON property `geoPointValue`
|
|
504
|
-
# @return [Google::Apis::DatastoreV1::LatLng]
|
|
505
|
-
attr_accessor :geo_point_value
|
|
408
|
+
# If empty, then this represents all kinds.
|
|
409
|
+
# Corresponds to the JSON property `kinds`
|
|
410
|
+
# @return [Array<String>]
|
|
411
|
+
attr_accessor :kinds
|
|
412
|
+
|
|
413
|
+
# An empty list represents all namespaces. This is the preferred
|
|
414
|
+
# usage for projects that don't use namespaces.
|
|
415
|
+
# An empty string element represents the default namespace. This should be
|
|
416
|
+
# used if the project has data in non-default namespaces, but doesn't want to
|
|
417
|
+
# include them.
|
|
418
|
+
# Each namespace in this list must be unique.
|
|
419
|
+
# Corresponds to the JSON property `namespaceIds`
|
|
420
|
+
# @return [Array<String>]
|
|
421
|
+
attr_accessor :namespace_ids
|
|
506
422
|
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
511
|
-
# Corresponds to the JSON property `keyValue`
|
|
512
|
-
# @return [Google::Apis::DatastoreV1::Key]
|
|
513
|
-
attr_accessor :key_value
|
|
423
|
+
def initialize(**args)
|
|
424
|
+
update!(**args)
|
|
425
|
+
end
|
|
514
426
|
|
|
515
|
-
#
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
427
|
+
# Update properties of this object
|
|
428
|
+
def update!(**args)
|
|
429
|
+
@kinds = args[:kinds] if args.key?(:kinds)
|
|
430
|
+
@namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids)
|
|
431
|
+
end
|
|
432
|
+
end
|
|
519
433
|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
#
|
|
434
|
+
# Metadata for ExportEntities operations.
|
|
435
|
+
class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata
|
|
436
|
+
include Google::Apis::Core::Hashable
|
|
437
|
+
|
|
438
|
+
# Metadata common to all Datastore Admin operations.
|
|
439
|
+
# Corresponds to the JSON property `common`
|
|
440
|
+
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1CommonMetadata]
|
|
441
|
+
attr_accessor :common
|
|
442
|
+
|
|
443
|
+
# Identifies a subset of entities in a project. This is specified as
|
|
444
|
+
# combinations of kind + namespace (either or both of which may be all, as
|
|
445
|
+
# described in the following examples).
|
|
446
|
+
# Example usage:
|
|
447
|
+
# Entire project:
|
|
448
|
+
# kinds=[], namespace_ids=[]
|
|
449
|
+
# Kinds Foo and Bar in all namespaces:
|
|
450
|
+
# kinds=['Foo', 'Bar'], namespace_ids=[]
|
|
451
|
+
# Kinds Foo and Bar only in the default namespace:
|
|
452
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['']
|
|
453
|
+
# Kinds Foo and Bar in both the default and Baz namespaces:
|
|
454
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
|
|
455
|
+
# The entire Baz namespace:
|
|
456
|
+
# kinds=[], namespace_ids=['Baz']
|
|
457
|
+
# Corresponds to the JSON property `entityFilter`
|
|
458
|
+
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1EntityFilter]
|
|
459
|
+
attr_accessor :entity_filter
|
|
460
|
+
|
|
461
|
+
# Location for the export metadata and data files. This will be the same
|
|
462
|
+
# value as the
|
|
463
|
+
# google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix
|
|
464
|
+
# field. The final output location is provided in
|
|
465
|
+
# google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.
|
|
466
|
+
# Corresponds to the JSON property `outputUrlPrefix`
|
|
525
467
|
# @return [String]
|
|
526
|
-
attr_accessor :
|
|
468
|
+
attr_accessor :output_url_prefix
|
|
527
469
|
|
|
528
|
-
#
|
|
529
|
-
#
|
|
530
|
-
#
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
470
|
+
# Measures the progress of a particular metric.
|
|
471
|
+
# Corresponds to the JSON property `progressBytes`
|
|
472
|
+
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1Progress]
|
|
473
|
+
attr_accessor :progress_bytes
|
|
474
|
+
|
|
475
|
+
# Measures the progress of a particular metric.
|
|
476
|
+
# Corresponds to the JSON property `progressEntities`
|
|
477
|
+
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1Progress]
|
|
478
|
+
attr_accessor :progress_entities
|
|
534
479
|
|
|
535
480
|
def initialize(**args)
|
|
536
481
|
update!(**args)
|
|
@@ -538,37 +483,109 @@ module Google
|
|
|
538
483
|
|
|
539
484
|
# Update properties of this object
|
|
540
485
|
def update!(**args)
|
|
541
|
-
@
|
|
542
|
-
@
|
|
543
|
-
@
|
|
544
|
-
@
|
|
545
|
-
@
|
|
546
|
-
@meaning = args[:meaning] if args.key?(:meaning)
|
|
547
|
-
@array_value = args[:array_value] if args.key?(:array_value)
|
|
548
|
-
@entity_value = args[:entity_value] if args.key?(:entity_value)
|
|
549
|
-
@geo_point_value = args[:geo_point_value] if args.key?(:geo_point_value)
|
|
550
|
-
@key_value = args[:key_value] if args.key?(:key_value)
|
|
551
|
-
@integer_value = args[:integer_value] if args.key?(:integer_value)
|
|
552
|
-
@string_value = args[:string_value] if args.key?(:string_value)
|
|
553
|
-
@exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
|
|
486
|
+
@common = args[:common] if args.key?(:common)
|
|
487
|
+
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
488
|
+
@output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix)
|
|
489
|
+
@progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
|
|
490
|
+
@progress_entities = args[:progress_entities] if args.key?(:progress_entities)
|
|
554
491
|
end
|
|
555
492
|
end
|
|
556
493
|
|
|
557
|
-
# The response for
|
|
558
|
-
|
|
494
|
+
# The response for
|
|
495
|
+
# google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.
|
|
496
|
+
class GoogleDatastoreAdminV1beta1ExportEntitiesResponse
|
|
559
497
|
include Google::Apis::Core::Hashable
|
|
560
498
|
|
|
561
|
-
#
|
|
562
|
-
#
|
|
563
|
-
#
|
|
499
|
+
# Location of the output metadata file. This can be used to begin an import
|
|
500
|
+
# into Cloud Datastore (this project or another project). See
|
|
501
|
+
# google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url.
|
|
502
|
+
# Only present if the operation completed successfully.
|
|
503
|
+
# Corresponds to the JSON property `outputUrl`
|
|
504
|
+
# @return [String]
|
|
505
|
+
attr_accessor :output_url
|
|
506
|
+
|
|
507
|
+
def initialize(**args)
|
|
508
|
+
update!(**args)
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
# Update properties of this object
|
|
512
|
+
def update!(**args)
|
|
513
|
+
@output_url = args[:output_url] if args.key?(:output_url)
|
|
514
|
+
end
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
# Metadata for ImportEntities operations.
|
|
518
|
+
class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata
|
|
519
|
+
include Google::Apis::Core::Hashable
|
|
520
|
+
|
|
521
|
+
# Metadata common to all Datastore Admin operations.
|
|
522
|
+
# Corresponds to the JSON property `common`
|
|
523
|
+
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1CommonMetadata]
|
|
524
|
+
attr_accessor :common
|
|
525
|
+
|
|
526
|
+
# Identifies a subset of entities in a project. This is specified as
|
|
527
|
+
# combinations of kind + namespace (either or both of which may be all, as
|
|
528
|
+
# described in the following examples).
|
|
529
|
+
# Example usage:
|
|
530
|
+
# Entire project:
|
|
531
|
+
# kinds=[], namespace_ids=[]
|
|
532
|
+
# Kinds Foo and Bar in all namespaces:
|
|
533
|
+
# kinds=['Foo', 'Bar'], namespace_ids=[]
|
|
534
|
+
# Kinds Foo and Bar only in the default namespace:
|
|
535
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['']
|
|
536
|
+
# Kinds Foo and Bar in both the default and Baz namespaces:
|
|
537
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
|
|
538
|
+
# The entire Baz namespace:
|
|
539
|
+
# kinds=[], namespace_ids=['Baz']
|
|
540
|
+
# Corresponds to the JSON property `entityFilter`
|
|
541
|
+
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1EntityFilter]
|
|
542
|
+
attr_accessor :entity_filter
|
|
543
|
+
|
|
544
|
+
# The location of the import metadata file. This will be the same value as
|
|
545
|
+
# the google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url
|
|
546
|
+
# field.
|
|
547
|
+
# Corresponds to the JSON property `inputUrl`
|
|
548
|
+
# @return [String]
|
|
549
|
+
attr_accessor :input_url
|
|
550
|
+
|
|
551
|
+
# Measures the progress of a particular metric.
|
|
552
|
+
# Corresponds to the JSON property `progressBytes`
|
|
553
|
+
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1Progress]
|
|
554
|
+
attr_accessor :progress_bytes
|
|
555
|
+
|
|
556
|
+
# Measures the progress of a particular metric.
|
|
557
|
+
# Corresponds to the JSON property `progressEntities`
|
|
558
|
+
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1Progress]
|
|
559
|
+
attr_accessor :progress_entities
|
|
560
|
+
|
|
561
|
+
def initialize(**args)
|
|
562
|
+
update!(**args)
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
# Update properties of this object
|
|
566
|
+
def update!(**args)
|
|
567
|
+
@common = args[:common] if args.key?(:common)
|
|
568
|
+
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
569
|
+
@input_url = args[:input_url] if args.key?(:input_url)
|
|
570
|
+
@progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
|
|
571
|
+
@progress_entities = args[:progress_entities] if args.key?(:progress_entities)
|
|
572
|
+
end
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
# Measures the progress of a particular metric.
|
|
576
|
+
class GoogleDatastoreAdminV1beta1Progress
|
|
577
|
+
include Google::Apis::Core::Hashable
|
|
578
|
+
|
|
579
|
+
# Note that this may be greater than work_estimated.
|
|
580
|
+
# Corresponds to the JSON property `workCompleted`
|
|
564
581
|
# @return [Fixnum]
|
|
565
|
-
attr_accessor :
|
|
582
|
+
attr_accessor :work_completed
|
|
566
583
|
|
|
567
|
-
#
|
|
568
|
-
#
|
|
569
|
-
# Corresponds to the JSON property `
|
|
570
|
-
# @return [
|
|
571
|
-
attr_accessor :
|
|
584
|
+
# An estimate of how much work needs to be performed. May be zero if the
|
|
585
|
+
# work estimate is unavailable.
|
|
586
|
+
# Corresponds to the JSON property `workEstimated`
|
|
587
|
+
# @return [Fixnum]
|
|
588
|
+
attr_accessor :work_estimated
|
|
572
589
|
|
|
573
590
|
def initialize(**args)
|
|
574
591
|
update!(**args)
|
|
@@ -576,39 +593,118 @@ module Google
|
|
|
576
593
|
|
|
577
594
|
# Update properties of this object
|
|
578
595
|
def update!(**args)
|
|
579
|
-
@
|
|
580
|
-
@
|
|
596
|
+
@work_completed = args[:work_completed] if args.key?(:work_completed)
|
|
597
|
+
@work_estimated = args[:work_estimated] if args.key?(:work_estimated)
|
|
581
598
|
end
|
|
582
599
|
end
|
|
583
600
|
|
|
584
|
-
#
|
|
585
|
-
|
|
586
|
-
# A partition ID contains several dimensions:
|
|
587
|
-
# project ID and namespace ID.
|
|
588
|
-
# Partition dimensions:
|
|
589
|
-
# - May be `""`.
|
|
590
|
-
# - Must be valid UTF-8 bytes.
|
|
591
|
-
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
592
|
-
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
593
|
-
# reserved/read-only.
|
|
594
|
-
# A reserved/read-only partition ID is forbidden in certain documented
|
|
595
|
-
# contexts.
|
|
596
|
-
# Foreign partition IDs (in which the project ID does
|
|
597
|
-
# not match the context project ID ) are discouraged.
|
|
598
|
-
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
599
|
-
# active state.
|
|
600
|
-
class PartitionId
|
|
601
|
+
# The response message for Operations.ListOperations.
|
|
602
|
+
class GoogleLongrunningListOperationsResponse
|
|
601
603
|
include Google::Apis::Core::Hashable
|
|
602
604
|
|
|
603
|
-
# The
|
|
604
|
-
# Corresponds to the JSON property `
|
|
605
|
+
# The standard List next-page token.
|
|
606
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
605
607
|
# @return [String]
|
|
606
|
-
attr_accessor :
|
|
608
|
+
attr_accessor :next_page_token
|
|
607
609
|
|
|
608
|
-
#
|
|
609
|
-
# Corresponds to the JSON property `
|
|
610
|
+
# A list of operations that matches the specified filter in the request.
|
|
611
|
+
# Corresponds to the JSON property `operations`
|
|
612
|
+
# @return [Array<Google::Apis::DatastoreV1::GoogleLongrunningOperation>]
|
|
613
|
+
attr_accessor :operations
|
|
614
|
+
|
|
615
|
+
def initialize(**args)
|
|
616
|
+
update!(**args)
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
# Update properties of this object
|
|
620
|
+
def update!(**args)
|
|
621
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
622
|
+
@operations = args[:operations] if args.key?(:operations)
|
|
623
|
+
end
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
# This resource represents a long-running operation that is the result of a
|
|
627
|
+
# network API call.
|
|
628
|
+
class GoogleLongrunningOperation
|
|
629
|
+
include Google::Apis::Core::Hashable
|
|
630
|
+
|
|
631
|
+
# If the value is `false`, it means the operation is still in progress.
|
|
632
|
+
# If true, the operation is completed, and either `error` or `response` is
|
|
633
|
+
# available.
|
|
634
|
+
# Corresponds to the JSON property `done`
|
|
635
|
+
# @return [Boolean]
|
|
636
|
+
attr_accessor :done
|
|
637
|
+
alias_method :done?, :done
|
|
638
|
+
|
|
639
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
640
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
641
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
642
|
+
# - Simple to use and understand for most users
|
|
643
|
+
# - Flexible enough to meet unexpected needs
|
|
644
|
+
# # Overview
|
|
645
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
|
646
|
+
# and error details. The error code should be an enum value of
|
|
647
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
648
|
+
# error message should be a developer-facing English message that helps
|
|
649
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
650
|
+
# error message is needed, put the localized message in the error details or
|
|
651
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
652
|
+
# information about the error. There is a predefined set of error detail types
|
|
653
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
654
|
+
# # Language mapping
|
|
655
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
656
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
657
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
658
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
659
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
660
|
+
# # Other uses
|
|
661
|
+
# The error model and the `Status` message can be used in a variety of
|
|
662
|
+
# environments, either with or without APIs, to provide a
|
|
663
|
+
# consistent developer experience across different environments.
|
|
664
|
+
# Example uses of this error model include:
|
|
665
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
666
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
667
|
+
# errors.
|
|
668
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
669
|
+
# have a `Status` message for error reporting.
|
|
670
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
671
|
+
# `Status` message should be used directly inside batch response, one for
|
|
672
|
+
# each error sub-response.
|
|
673
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
674
|
+
# results in its response, the status of those operations should be
|
|
675
|
+
# represented directly using the `Status` message.
|
|
676
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
677
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
678
|
+
# Corresponds to the JSON property `error`
|
|
679
|
+
# @return [Google::Apis::DatastoreV1::Status]
|
|
680
|
+
attr_accessor :error
|
|
681
|
+
|
|
682
|
+
# Service-specific metadata associated with the operation. It typically
|
|
683
|
+
# contains progress information and common metadata such as create time.
|
|
684
|
+
# Some services might not provide such metadata. Any method that returns a
|
|
685
|
+
# long-running operation should document the metadata type, if any.
|
|
686
|
+
# Corresponds to the JSON property `metadata`
|
|
687
|
+
# @return [Hash<String,Object>]
|
|
688
|
+
attr_accessor :metadata
|
|
689
|
+
|
|
690
|
+
# The server-assigned name, which is only unique within the same service that
|
|
691
|
+
# originally returns it. If you use the default HTTP mapping, the
|
|
692
|
+
# `name` should have the format of `operations/some/unique/name`.
|
|
693
|
+
# Corresponds to the JSON property `name`
|
|
610
694
|
# @return [String]
|
|
611
|
-
attr_accessor :
|
|
695
|
+
attr_accessor :name
|
|
696
|
+
|
|
697
|
+
# The normal response of the operation in case of success. If the original
|
|
698
|
+
# method returns no data on success, such as `Delete`, the response is
|
|
699
|
+
# `google.protobuf.Empty`. If the original method is standard
|
|
700
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
|
701
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
|
702
|
+
# is the original method name. For example, if the original method name
|
|
703
|
+
# is `TakeSnapshot()`, the inferred response type is
|
|
704
|
+
# `TakeSnapshotResponse`.
|
|
705
|
+
# Corresponds to the JSON property `response`
|
|
706
|
+
# @return [Hash<String,Object>]
|
|
707
|
+
attr_accessor :response
|
|
612
708
|
|
|
613
709
|
def initialize(**args)
|
|
614
710
|
update!(**args)
|
|
@@ -616,35 +712,48 @@ module Google
|
|
|
616
712
|
|
|
617
713
|
# Update properties of this object
|
|
618
714
|
def update!(**args)
|
|
619
|
-
@
|
|
620
|
-
@
|
|
715
|
+
@done = args[:done] if args.key?(:done)
|
|
716
|
+
@error = args[:error] if args.key?(:error)
|
|
717
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
718
|
+
@name = args[:name] if args.key?(:name)
|
|
719
|
+
@response = args[:response] if args.key?(:response)
|
|
621
720
|
end
|
|
622
721
|
end
|
|
623
722
|
|
|
624
|
-
# A
|
|
625
|
-
|
|
626
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
627
|
-
# message.
|
|
628
|
-
class Entity
|
|
723
|
+
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
724
|
+
class GqlQuery
|
|
629
725
|
include Google::Apis::Core::Hashable
|
|
630
726
|
|
|
631
|
-
#
|
|
632
|
-
#
|
|
633
|
-
#
|
|
634
|
-
#
|
|
635
|
-
#
|
|
636
|
-
#
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
attr_accessor :properties
|
|
727
|
+
# When false, the query string must not contain any literals and instead must
|
|
728
|
+
# bind all values. For example,
|
|
729
|
+
# `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
|
|
730
|
+
# `SELECT * FROM Kind WHERE a = @value` is.
|
|
731
|
+
# Corresponds to the JSON property `allowLiterals`
|
|
732
|
+
# @return [Boolean]
|
|
733
|
+
attr_accessor :allow_literals
|
|
734
|
+
alias_method :allow_literals?, :allow_literals
|
|
640
735
|
|
|
641
|
-
#
|
|
642
|
-
#
|
|
643
|
-
#
|
|
644
|
-
#
|
|
645
|
-
# Corresponds to the JSON property `
|
|
646
|
-
# @return [Google::Apis::DatastoreV1::
|
|
647
|
-
attr_accessor :
|
|
736
|
+
# For each non-reserved named binding site in the query string, there must be
|
|
737
|
+
# a named parameter with that name, but not necessarily the inverse.
|
|
738
|
+
# Key must match regex `A-Za-z_$*`, must not match regex
|
|
739
|
+
# `__.*__`, and must not be `""`.
|
|
740
|
+
# Corresponds to the JSON property `namedBindings`
|
|
741
|
+
# @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
742
|
+
attr_accessor :named_bindings
|
|
743
|
+
|
|
744
|
+
# Numbered binding site @1 references the first numbered parameter,
|
|
745
|
+
# effectively using 1-based indexing, rather than the usual 0.
|
|
746
|
+
# For each binding site numbered i in `query_string`, there must be an i-th
|
|
747
|
+
# numbered parameter. The inverse must also be true.
|
|
748
|
+
# Corresponds to the JSON property `positionalBindings`
|
|
749
|
+
# @return [Array<Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
750
|
+
attr_accessor :positional_bindings
|
|
751
|
+
|
|
752
|
+
# A string of the format described
|
|
753
|
+
# [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
754
|
+
# Corresponds to the JSON property `queryString`
|
|
755
|
+
# @return [String]
|
|
756
|
+
attr_accessor :query_string
|
|
648
757
|
|
|
649
758
|
def initialize(**args)
|
|
650
759
|
update!(**args)
|
|
@@ -652,8 +761,172 @@ module Google
|
|
|
652
761
|
|
|
653
762
|
# Update properties of this object
|
|
654
763
|
def update!(**args)
|
|
655
|
-
@
|
|
656
|
-
@
|
|
764
|
+
@allow_literals = args[:allow_literals] if args.key?(:allow_literals)
|
|
765
|
+
@named_bindings = args[:named_bindings] if args.key?(:named_bindings)
|
|
766
|
+
@positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
|
|
767
|
+
@query_string = args[:query_string] if args.key?(:query_string)
|
|
768
|
+
end
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# A binding parameter for a GQL query.
|
|
772
|
+
class GqlQueryParameter
|
|
773
|
+
include Google::Apis::Core::Hashable
|
|
774
|
+
|
|
775
|
+
# A query cursor. Query cursors are returned in query
|
|
776
|
+
# result batches.
|
|
777
|
+
# Corresponds to the JSON property `cursor`
|
|
778
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
779
|
+
# @return [String]
|
|
780
|
+
attr_accessor :cursor
|
|
781
|
+
|
|
782
|
+
# A message that can hold any of the supported value types and associated
|
|
783
|
+
# metadata.
|
|
784
|
+
# Corresponds to the JSON property `value`
|
|
785
|
+
# @return [Google::Apis::DatastoreV1::Value]
|
|
786
|
+
attr_accessor :value
|
|
787
|
+
|
|
788
|
+
def initialize(**args)
|
|
789
|
+
update!(**args)
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
# Update properties of this object
|
|
793
|
+
def update!(**args)
|
|
794
|
+
@cursor = args[:cursor] if args.key?(:cursor)
|
|
795
|
+
@value = args[:value] if args.key?(:value)
|
|
796
|
+
end
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
# A unique identifier for an entity.
|
|
800
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
801
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
802
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
803
|
+
class Key
|
|
804
|
+
include Google::Apis::Core::Hashable
|
|
805
|
+
|
|
806
|
+
# A partition ID identifies a grouping of entities. The grouping is always
|
|
807
|
+
# by project and namespace, however the namespace ID may be empty.
|
|
808
|
+
# A partition ID contains several dimensions:
|
|
809
|
+
# project ID and namespace ID.
|
|
810
|
+
# Partition dimensions:
|
|
811
|
+
# - May be `""`.
|
|
812
|
+
# - Must be valid UTF-8 bytes.
|
|
813
|
+
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
814
|
+
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
815
|
+
# reserved/read-only.
|
|
816
|
+
# A reserved/read-only partition ID is forbidden in certain documented
|
|
817
|
+
# contexts.
|
|
818
|
+
# Foreign partition IDs (in which the project ID does
|
|
819
|
+
# not match the context project ID ) are discouraged.
|
|
820
|
+
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
821
|
+
# active state.
|
|
822
|
+
# Corresponds to the JSON property `partitionId`
|
|
823
|
+
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
824
|
+
attr_accessor :partition_id
|
|
825
|
+
|
|
826
|
+
# The entity path.
|
|
827
|
+
# An entity path consists of one or more elements composed of a kind and a
|
|
828
|
+
# string or numerical identifier, which identify entities. The first
|
|
829
|
+
# element identifies a _root entity_, the second element identifies
|
|
830
|
+
# a _child_ of the root entity, the third element identifies a child of the
|
|
831
|
+
# second entity, and so forth. The entities identified by all prefixes of
|
|
832
|
+
# the path are called the element's _ancestors_.
|
|
833
|
+
# An entity path is always fully complete: *all* of the entity's ancestors
|
|
834
|
+
# are required to be in the path along with the entity identifier itself.
|
|
835
|
+
# The only exception is that in some documented cases, the identifier in the
|
|
836
|
+
# last path element (for the entity) itself may be omitted. For example,
|
|
837
|
+
# the last path element of the key of `Mutation.insert` may have no
|
|
838
|
+
# identifier.
|
|
839
|
+
# A path can never be empty, and a path can have at most 100 elements.
|
|
840
|
+
# Corresponds to the JSON property `path`
|
|
841
|
+
# @return [Array<Google::Apis::DatastoreV1::PathElement>]
|
|
842
|
+
attr_accessor :path
|
|
843
|
+
|
|
844
|
+
def initialize(**args)
|
|
845
|
+
update!(**args)
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
# Update properties of this object
|
|
849
|
+
def update!(**args)
|
|
850
|
+
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
851
|
+
@path = args[:path] if args.key?(:path)
|
|
852
|
+
end
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
# A representation of a kind.
|
|
856
|
+
class KindExpression
|
|
857
|
+
include Google::Apis::Core::Hashable
|
|
858
|
+
|
|
859
|
+
# The name of the kind.
|
|
860
|
+
# Corresponds to the JSON property `name`
|
|
861
|
+
# @return [String]
|
|
862
|
+
attr_accessor :name
|
|
863
|
+
|
|
864
|
+
def initialize(**args)
|
|
865
|
+
update!(**args)
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
# Update properties of this object
|
|
869
|
+
def update!(**args)
|
|
870
|
+
@name = args[:name] if args.key?(:name)
|
|
871
|
+
end
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
875
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
876
|
+
# specified otherwise, this must conform to the
|
|
877
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
878
|
+
# standard</a>. Values must be within normalized ranges.
|
|
879
|
+
# Example of normalization code in Python:
|
|
880
|
+
# def NormalizeLongitude(longitude):
|
|
881
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
882
|
+
# q, r = divmod(longitude, 360.0)
|
|
883
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
884
|
+
# return r - 360.0
|
|
885
|
+
# return r
|
|
886
|
+
# def NormalizeLatLng(latitude, longitude):
|
|
887
|
+
# """Wraps decimal degrees latitude and longitude to
|
|
888
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
889
|
+
# r = latitude % 360.0
|
|
890
|
+
# if r <= 90.0:
|
|
891
|
+
# return r, NormalizeLongitude(longitude)
|
|
892
|
+
# elif r >= 270.0:
|
|
893
|
+
# return r - 360, NormalizeLongitude(longitude)
|
|
894
|
+
# else:
|
|
895
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
896
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
|
897
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
898
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
|
899
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
900
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
901
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
902
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
903
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
904
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
905
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
906
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
907
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
908
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
909
|
+
class LatLng
|
|
910
|
+
include Google::Apis::Core::Hashable
|
|
911
|
+
|
|
912
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
|
913
|
+
# Corresponds to the JSON property `latitude`
|
|
914
|
+
# @return [Float]
|
|
915
|
+
attr_accessor :latitude
|
|
916
|
+
|
|
917
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
918
|
+
# Corresponds to the JSON property `longitude`
|
|
919
|
+
# @return [Float]
|
|
920
|
+
attr_accessor :longitude
|
|
921
|
+
|
|
922
|
+
def initialize(**args)
|
|
923
|
+
update!(**args)
|
|
924
|
+
end
|
|
925
|
+
|
|
926
|
+
# Update properties of this object
|
|
927
|
+
def update!(**args)
|
|
928
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
|
929
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
|
657
930
|
end
|
|
658
931
|
end
|
|
659
932
|
|
|
@@ -661,15 +934,147 @@ module Google
|
|
|
661
934
|
class LookupRequest
|
|
662
935
|
include Google::Apis::Core::Hashable
|
|
663
936
|
|
|
937
|
+
# Keys of entities to look up.
|
|
938
|
+
# Corresponds to the JSON property `keys`
|
|
939
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
940
|
+
attr_accessor :keys
|
|
941
|
+
|
|
664
942
|
# The options shared by read requests.
|
|
665
943
|
# Corresponds to the JSON property `readOptions`
|
|
666
944
|
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
667
945
|
attr_accessor :read_options
|
|
668
946
|
|
|
669
|
-
|
|
670
|
-
|
|
947
|
+
def initialize(**args)
|
|
948
|
+
update!(**args)
|
|
949
|
+
end
|
|
950
|
+
|
|
951
|
+
# Update properties of this object
|
|
952
|
+
def update!(**args)
|
|
953
|
+
@keys = args[:keys] if args.key?(:keys)
|
|
954
|
+
@read_options = args[:read_options] if args.key?(:read_options)
|
|
955
|
+
end
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
# The response for Datastore.Lookup.
|
|
959
|
+
class LookupResponse
|
|
960
|
+
include Google::Apis::Core::Hashable
|
|
961
|
+
|
|
962
|
+
# A list of keys that were not looked up due to resource constraints. The
|
|
963
|
+
# order of results in this field is undefined and has no relation to the
|
|
964
|
+
# order of the keys in the input.
|
|
965
|
+
# Corresponds to the JSON property `deferred`
|
|
671
966
|
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
672
|
-
attr_accessor :
|
|
967
|
+
attr_accessor :deferred
|
|
968
|
+
|
|
969
|
+
# Entities found as `ResultType.FULL` entities. The order of results in this
|
|
970
|
+
# field is undefined and has no relation to the order of the keys in the
|
|
971
|
+
# input.
|
|
972
|
+
# Corresponds to the JSON property `found`
|
|
973
|
+
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
974
|
+
attr_accessor :found
|
|
975
|
+
|
|
976
|
+
# Entities not found as `ResultType.KEY_ONLY` entities. The order of results
|
|
977
|
+
# in this field is undefined and has no relation to the order of the keys
|
|
978
|
+
# in the input.
|
|
979
|
+
# Corresponds to the JSON property `missing`
|
|
980
|
+
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
981
|
+
attr_accessor :missing
|
|
982
|
+
|
|
983
|
+
def initialize(**args)
|
|
984
|
+
update!(**args)
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
# Update properties of this object
|
|
988
|
+
def update!(**args)
|
|
989
|
+
@deferred = args[:deferred] if args.key?(:deferred)
|
|
990
|
+
@found = args[:found] if args.key?(:found)
|
|
991
|
+
@missing = args[:missing] if args.key?(:missing)
|
|
992
|
+
end
|
|
993
|
+
end
|
|
994
|
+
|
|
995
|
+
# A mutation to apply to an entity.
|
|
996
|
+
class Mutation
|
|
997
|
+
include Google::Apis::Core::Hashable
|
|
998
|
+
|
|
999
|
+
# The version of the entity that this mutation is being applied to. If this
|
|
1000
|
+
# does not match the current version on the server, the mutation conflicts.
|
|
1001
|
+
# Corresponds to the JSON property `baseVersion`
|
|
1002
|
+
# @return [Fixnum]
|
|
1003
|
+
attr_accessor :base_version
|
|
1004
|
+
|
|
1005
|
+
# A unique identifier for an entity.
|
|
1006
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
1007
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
1008
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1009
|
+
# Corresponds to the JSON property `delete`
|
|
1010
|
+
# @return [Google::Apis::DatastoreV1::Key]
|
|
1011
|
+
attr_accessor :delete
|
|
1012
|
+
|
|
1013
|
+
# A Datastore data object.
|
|
1014
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1015
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1016
|
+
# message.
|
|
1017
|
+
# Corresponds to the JSON property `insert`
|
|
1018
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1019
|
+
attr_accessor :insert
|
|
1020
|
+
|
|
1021
|
+
# A Datastore data object.
|
|
1022
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1023
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1024
|
+
# message.
|
|
1025
|
+
# Corresponds to the JSON property `update`
|
|
1026
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1027
|
+
attr_accessor :update
|
|
1028
|
+
|
|
1029
|
+
# A Datastore data object.
|
|
1030
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1031
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1032
|
+
# message.
|
|
1033
|
+
# Corresponds to the JSON property `upsert`
|
|
1034
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1035
|
+
attr_accessor :upsert
|
|
1036
|
+
|
|
1037
|
+
def initialize(**args)
|
|
1038
|
+
update!(**args)
|
|
1039
|
+
end
|
|
1040
|
+
|
|
1041
|
+
# Update properties of this object
|
|
1042
|
+
def update!(**args)
|
|
1043
|
+
@base_version = args[:base_version] if args.key?(:base_version)
|
|
1044
|
+
@delete = args[:delete] if args.key?(:delete)
|
|
1045
|
+
@insert = args[:insert] if args.key?(:insert)
|
|
1046
|
+
@update = args[:update] if args.key?(:update)
|
|
1047
|
+
@upsert = args[:upsert] if args.key?(:upsert)
|
|
1048
|
+
end
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
# The result of applying a mutation.
|
|
1052
|
+
class MutationResult
|
|
1053
|
+
include Google::Apis::Core::Hashable
|
|
1054
|
+
|
|
1055
|
+
# Whether a conflict was detected for this mutation. Always false when a
|
|
1056
|
+
# conflict detection strategy field is not set in the mutation.
|
|
1057
|
+
# Corresponds to the JSON property `conflictDetected`
|
|
1058
|
+
# @return [Boolean]
|
|
1059
|
+
attr_accessor :conflict_detected
|
|
1060
|
+
alias_method :conflict_detected?, :conflict_detected
|
|
1061
|
+
|
|
1062
|
+
# A unique identifier for an entity.
|
|
1063
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
1064
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
1065
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1066
|
+
# Corresponds to the JSON property `key`
|
|
1067
|
+
# @return [Google::Apis::DatastoreV1::Key]
|
|
1068
|
+
attr_accessor :key
|
|
1069
|
+
|
|
1070
|
+
# The version of the entity on the server after processing the mutation. If
|
|
1071
|
+
# the mutation doesn't change anything on the server, then the version will
|
|
1072
|
+
# be the version of the current entity or, if no entity is present, a version
|
|
1073
|
+
# that is strictly greater than the version of any previous entity and less
|
|
1074
|
+
# than the version of any possible future entity.
|
|
1075
|
+
# Corresponds to the JSON property `version`
|
|
1076
|
+
# @return [Fixnum]
|
|
1077
|
+
attr_accessor :version
|
|
673
1078
|
|
|
674
1079
|
def initialize(**args)
|
|
675
1080
|
update!(**args)
|
|
@@ -677,59 +1082,40 @@ module Google
|
|
|
677
1082
|
|
|
678
1083
|
# Update properties of this object
|
|
679
1084
|
def update!(**args)
|
|
680
|
-
@
|
|
681
|
-
@
|
|
1085
|
+
@conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
|
|
1086
|
+
@key = args[:key] if args.key?(:key)
|
|
1087
|
+
@version = args[:version] if args.key?(:version)
|
|
682
1088
|
end
|
|
683
1089
|
end
|
|
684
1090
|
|
|
685
|
-
# A
|
|
686
|
-
|
|
1091
|
+
# A partition ID identifies a grouping of entities. The grouping is always
|
|
1092
|
+
# by project and namespace, however the namespace ID may be empty.
|
|
1093
|
+
# A partition ID contains several dimensions:
|
|
1094
|
+
# project ID and namespace ID.
|
|
1095
|
+
# Partition dimensions:
|
|
1096
|
+
# - May be `""`.
|
|
1097
|
+
# - Must be valid UTF-8 bytes.
|
|
1098
|
+
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
1099
|
+
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
1100
|
+
# reserved/read-only.
|
|
1101
|
+
# A reserved/read-only partition ID is forbidden in certain documented
|
|
1102
|
+
# contexts.
|
|
1103
|
+
# Foreign partition IDs (in which the project ID does
|
|
1104
|
+
# not match the context project ID ) are discouraged.
|
|
1105
|
+
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
1106
|
+
# active state.
|
|
1107
|
+
class PartitionId
|
|
687
1108
|
include Google::Apis::Core::Hashable
|
|
688
1109
|
|
|
689
|
-
#
|
|
690
|
-
#
|
|
691
|
-
# Corresponds to the JSON property `skippedCursor`
|
|
692
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
693
|
-
# @return [String]
|
|
694
|
-
attr_accessor :skipped_cursor
|
|
695
|
-
|
|
696
|
-
# The number of results skipped, typically because of an offset.
|
|
697
|
-
# Corresponds to the JSON property `skippedResults`
|
|
698
|
-
# @return [Fixnum]
|
|
699
|
-
attr_accessor :skipped_results
|
|
700
|
-
|
|
701
|
-
# The result type for every entity in `entity_results`.
|
|
702
|
-
# Corresponds to the JSON property `entityResultType`
|
|
703
|
-
# @return [String]
|
|
704
|
-
attr_accessor :entity_result_type
|
|
705
|
-
|
|
706
|
-
# The results for this batch.
|
|
707
|
-
# Corresponds to the JSON property `entityResults`
|
|
708
|
-
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
709
|
-
attr_accessor :entity_results
|
|
710
|
-
|
|
711
|
-
# The state of the query after the current batch.
|
|
712
|
-
# Corresponds to the JSON property `moreResults`
|
|
1110
|
+
# If not empty, the ID of the namespace to which the entities belong.
|
|
1111
|
+
# Corresponds to the JSON property `namespaceId`
|
|
713
1112
|
# @return [String]
|
|
714
|
-
attr_accessor :
|
|
1113
|
+
attr_accessor :namespace_id
|
|
715
1114
|
|
|
716
|
-
#
|
|
717
|
-
# Corresponds to the JSON property `
|
|
718
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1115
|
+
# The ID of the project to which the entities belong.
|
|
1116
|
+
# Corresponds to the JSON property `projectId`
|
|
719
1117
|
# @return [String]
|
|
720
|
-
attr_accessor :
|
|
721
|
-
|
|
722
|
-
# The version number of the snapshot this batch was returned from.
|
|
723
|
-
# This applies to the range of results from the query's `start_cursor` (or
|
|
724
|
-
# the beginning of the query if no cursor was given) to this batch's
|
|
725
|
-
# `end_cursor` (not the query's `end_cursor`).
|
|
726
|
-
# In a single transaction, subsequent query result batches for the same query
|
|
727
|
-
# can have a greater snapshot version number. Each batch's snapshot version
|
|
728
|
-
# is valid for all preceding batches.
|
|
729
|
-
# The value will be zero for eventually consistent queries.
|
|
730
|
-
# Corresponds to the JSON property `snapshotVersion`
|
|
731
|
-
# @return [Fixnum]
|
|
732
|
-
attr_accessor :snapshot_version
|
|
1118
|
+
attr_accessor :project_id
|
|
733
1119
|
|
|
734
1120
|
def initialize(**args)
|
|
735
1121
|
update!(**args)
|
|
@@ -737,13 +1123,8 @@ module Google
|
|
|
737
1123
|
|
|
738
1124
|
# Update properties of this object
|
|
739
1125
|
def update!(**args)
|
|
740
|
-
@
|
|
741
|
-
@
|
|
742
|
-
@entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
|
|
743
|
-
@entity_results = args[:entity_results] if args.key?(:entity_results)
|
|
744
|
-
@more_results = args[:more_results] if args.key?(:more_results)
|
|
745
|
-
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
746
|
-
@snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
|
|
1126
|
+
@namespace_id = args[:namespace_id] if args.key?(:namespace_id)
|
|
1127
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
|
747
1128
|
end
|
|
748
1129
|
end
|
|
749
1130
|
|
|
@@ -753,13 +1134,12 @@ module Google
|
|
|
753
1134
|
class PathElement
|
|
754
1135
|
include Google::Apis::Core::Hashable
|
|
755
1136
|
|
|
756
|
-
# The
|
|
757
|
-
#
|
|
758
|
-
#
|
|
759
|
-
#
|
|
760
|
-
#
|
|
761
|
-
|
|
762
|
-
attr_accessor :name
|
|
1137
|
+
# The auto-allocated ID of the entity.
|
|
1138
|
+
# Never equal to zero. Values less than zero are discouraged and may not
|
|
1139
|
+
# be supported in the future.
|
|
1140
|
+
# Corresponds to the JSON property `id`
|
|
1141
|
+
# @return [Fixnum]
|
|
1142
|
+
attr_accessor :id
|
|
763
1143
|
|
|
764
1144
|
# The kind of the entity.
|
|
765
1145
|
# A kind matching regex `__.*__` is reserved/read-only.
|
|
@@ -769,12 +1149,13 @@ module Google
|
|
|
769
1149
|
# @return [String]
|
|
770
1150
|
attr_accessor :kind
|
|
771
1151
|
|
|
772
|
-
# The
|
|
773
|
-
#
|
|
774
|
-
# be
|
|
775
|
-
#
|
|
776
|
-
#
|
|
777
|
-
|
|
1152
|
+
# The name of the entity.
|
|
1153
|
+
# A name matching regex `__.*__` is reserved/read-only.
|
|
1154
|
+
# A name must not be more than 1500 bytes when UTF-8 encoded.
|
|
1155
|
+
# Cannot be `""`.
|
|
1156
|
+
# Corresponds to the JSON property `name`
|
|
1157
|
+
# @return [String]
|
|
1158
|
+
attr_accessor :name
|
|
778
1159
|
|
|
779
1160
|
def initialize(**args)
|
|
780
1161
|
update!(**args)
|
|
@@ -782,22 +1163,44 @@ module Google
|
|
|
782
1163
|
|
|
783
1164
|
# Update properties of this object
|
|
784
1165
|
def update!(**args)
|
|
785
|
-
@name = args[:name] if args.key?(:name)
|
|
786
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
787
1166
|
@id = args[:id] if args.key?(:id)
|
|
1167
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
1168
|
+
@name = args[:name] if args.key?(:name)
|
|
788
1169
|
end
|
|
789
1170
|
end
|
|
790
1171
|
|
|
791
|
-
# A
|
|
792
|
-
class
|
|
1172
|
+
# A representation of a property in a projection.
|
|
1173
|
+
class Projection
|
|
793
1174
|
include Google::Apis::Core::Hashable
|
|
794
1175
|
|
|
795
|
-
# A
|
|
796
|
-
#
|
|
797
|
-
#
|
|
798
|
-
|
|
1176
|
+
# A reference to a property relative to the kind expressions.
|
|
1177
|
+
# Corresponds to the JSON property `property`
|
|
1178
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
1179
|
+
attr_accessor :property
|
|
1180
|
+
|
|
1181
|
+
def initialize(**args)
|
|
1182
|
+
update!(**args)
|
|
1183
|
+
end
|
|
1184
|
+
|
|
1185
|
+
# Update properties of this object
|
|
1186
|
+
def update!(**args)
|
|
1187
|
+
@property = args[:property] if args.key?(:property)
|
|
1188
|
+
end
|
|
1189
|
+
end
|
|
1190
|
+
|
|
1191
|
+
# A filter on a specific property.
|
|
1192
|
+
class PropertyFilter
|
|
1193
|
+
include Google::Apis::Core::Hashable
|
|
1194
|
+
|
|
1195
|
+
# The operator to filter by.
|
|
1196
|
+
# Corresponds to the JSON property `op`
|
|
799
1197
|
# @return [String]
|
|
800
|
-
attr_accessor :
|
|
1198
|
+
attr_accessor :op
|
|
1199
|
+
|
|
1200
|
+
# A reference to a property relative to the kind expressions.
|
|
1201
|
+
# Corresponds to the JSON property `property`
|
|
1202
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
1203
|
+
attr_accessor :property
|
|
801
1204
|
|
|
802
1205
|
# A message that can hold any of the supported value types and associated
|
|
803
1206
|
# metadata.
|
|
@@ -811,20 +1214,25 @@ module Google
|
|
|
811
1214
|
|
|
812
1215
|
# Update properties of this object
|
|
813
1216
|
def update!(**args)
|
|
814
|
-
@
|
|
1217
|
+
@op = args[:op] if args.key?(:op)
|
|
1218
|
+
@property = args[:property] if args.key?(:property)
|
|
815
1219
|
@value = args[:value] if args.key?(:value)
|
|
816
1220
|
end
|
|
817
1221
|
end
|
|
818
1222
|
|
|
819
|
-
# The
|
|
820
|
-
class
|
|
1223
|
+
# The desired order for a specific property.
|
|
1224
|
+
class PropertyOrder
|
|
821
1225
|
include Google::Apis::Core::Hashable
|
|
822
1226
|
|
|
823
|
-
# The
|
|
824
|
-
# Corresponds to the JSON property `
|
|
825
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1227
|
+
# The direction to order by. Defaults to `ASCENDING`.
|
|
1228
|
+
# Corresponds to the JSON property `direction`
|
|
826
1229
|
# @return [String]
|
|
827
|
-
attr_accessor :
|
|
1230
|
+
attr_accessor :direction
|
|
1231
|
+
|
|
1232
|
+
# A reference to a property relative to the kind expressions.
|
|
1233
|
+
# Corresponds to the JSON property `property`
|
|
1234
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
1235
|
+
attr_accessor :property
|
|
828
1236
|
|
|
829
1237
|
def initialize(**args)
|
|
830
1238
|
update!(**args)
|
|
@@ -832,19 +1240,94 @@ module Google
|
|
|
832
1240
|
|
|
833
1241
|
# Update properties of this object
|
|
834
1242
|
def update!(**args)
|
|
835
|
-
@
|
|
1243
|
+
@direction = args[:direction] if args.key?(:direction)
|
|
1244
|
+
@property = args[:property] if args.key?(:property)
|
|
836
1245
|
end
|
|
837
1246
|
end
|
|
838
1247
|
|
|
839
|
-
#
|
|
840
|
-
class
|
|
1248
|
+
# A reference to a property relative to the kind expressions.
|
|
1249
|
+
class PropertyReference
|
|
841
1250
|
include Google::Apis::Core::Hashable
|
|
842
1251
|
|
|
843
|
-
#
|
|
844
|
-
#
|
|
845
|
-
# Corresponds to the JSON property `
|
|
846
|
-
# @return [
|
|
847
|
-
attr_accessor :
|
|
1252
|
+
# The name of the property.
|
|
1253
|
+
# If name includes "."s, it may be interpreted as a property name path.
|
|
1254
|
+
# Corresponds to the JSON property `name`
|
|
1255
|
+
# @return [String]
|
|
1256
|
+
attr_accessor :name
|
|
1257
|
+
|
|
1258
|
+
def initialize(**args)
|
|
1259
|
+
update!(**args)
|
|
1260
|
+
end
|
|
1261
|
+
|
|
1262
|
+
# Update properties of this object
|
|
1263
|
+
def update!(**args)
|
|
1264
|
+
@name = args[:name] if args.key?(:name)
|
|
1265
|
+
end
|
|
1266
|
+
end
|
|
1267
|
+
|
|
1268
|
+
# A query for entities.
|
|
1269
|
+
class Query
|
|
1270
|
+
include Google::Apis::Core::Hashable
|
|
1271
|
+
|
|
1272
|
+
# The properties to make distinct. The query results will contain the first
|
|
1273
|
+
# result for each distinct combination of values for the given properties
|
|
1274
|
+
# (if empty, all results are returned).
|
|
1275
|
+
# Corresponds to the JSON property `distinctOn`
|
|
1276
|
+
# @return [Array<Google::Apis::DatastoreV1::PropertyReference>]
|
|
1277
|
+
attr_accessor :distinct_on
|
|
1278
|
+
|
|
1279
|
+
# An ending point for the query results. Query cursors are
|
|
1280
|
+
# returned in query result batches and
|
|
1281
|
+
# [can only be used to limit the same query](https://cloud.google.com/datastore/
|
|
1282
|
+
# docs/concepts/queries#cursors_limits_and_offsets).
|
|
1283
|
+
# Corresponds to the JSON property `endCursor`
|
|
1284
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1285
|
+
# @return [String]
|
|
1286
|
+
attr_accessor :end_cursor
|
|
1287
|
+
|
|
1288
|
+
# A holder for any type of filter.
|
|
1289
|
+
# Corresponds to the JSON property `filter`
|
|
1290
|
+
# @return [Google::Apis::DatastoreV1::Filter]
|
|
1291
|
+
attr_accessor :filter
|
|
1292
|
+
|
|
1293
|
+
# The kinds to query (if empty, returns entities of all kinds).
|
|
1294
|
+
# Currently at most 1 kind may be specified.
|
|
1295
|
+
# Corresponds to the JSON property `kind`
|
|
1296
|
+
# @return [Array<Google::Apis::DatastoreV1::KindExpression>]
|
|
1297
|
+
attr_accessor :kind
|
|
1298
|
+
|
|
1299
|
+
# The maximum number of results to return. Applies after all other
|
|
1300
|
+
# constraints. Optional.
|
|
1301
|
+
# Unspecified is interpreted as no limit.
|
|
1302
|
+
# Must be >= 0 if specified.
|
|
1303
|
+
# Corresponds to the JSON property `limit`
|
|
1304
|
+
# @return [Fixnum]
|
|
1305
|
+
attr_accessor :limit
|
|
1306
|
+
|
|
1307
|
+
# The number of results to skip. Applies before limit, but after all other
|
|
1308
|
+
# constraints. Optional. Must be >= 0 if specified.
|
|
1309
|
+
# Corresponds to the JSON property `offset`
|
|
1310
|
+
# @return [Fixnum]
|
|
1311
|
+
attr_accessor :offset
|
|
1312
|
+
|
|
1313
|
+
# The order to apply to the query results (if empty, order is unspecified).
|
|
1314
|
+
# Corresponds to the JSON property `order`
|
|
1315
|
+
# @return [Array<Google::Apis::DatastoreV1::PropertyOrder>]
|
|
1316
|
+
attr_accessor :order
|
|
1317
|
+
|
|
1318
|
+
# The projection to return. Defaults to returning all properties.
|
|
1319
|
+
# Corresponds to the JSON property `projection`
|
|
1320
|
+
# @return [Array<Google::Apis::DatastoreV1::Projection>]
|
|
1321
|
+
attr_accessor :projection
|
|
1322
|
+
|
|
1323
|
+
# A starting point for the query results. Query cursors are
|
|
1324
|
+
# returned in query result batches and
|
|
1325
|
+
# [can only be used to continue the same query](https://cloud.google.com/
|
|
1326
|
+
# datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
|
1327
|
+
# Corresponds to the JSON property `startCursor`
|
|
1328
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1329
|
+
# @return [String]
|
|
1330
|
+
attr_accessor :start_cursor
|
|
848
1331
|
|
|
849
1332
|
def initialize(**args)
|
|
850
1333
|
update!(**args)
|
|
@@ -852,34 +1335,66 @@ module Google
|
|
|
852
1335
|
|
|
853
1336
|
# Update properties of this object
|
|
854
1337
|
def update!(**args)
|
|
855
|
-
@
|
|
1338
|
+
@distinct_on = args[:distinct_on] if args.key?(:distinct_on)
|
|
1339
|
+
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
1340
|
+
@filter = args[:filter] if args.key?(:filter)
|
|
1341
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
1342
|
+
@limit = args[:limit] if args.key?(:limit)
|
|
1343
|
+
@offset = args[:offset] if args.key?(:offset)
|
|
1344
|
+
@order = args[:order] if args.key?(:order)
|
|
1345
|
+
@projection = args[:projection] if args.key?(:projection)
|
|
1346
|
+
@start_cursor = args[:start_cursor] if args.key?(:start_cursor)
|
|
856
1347
|
end
|
|
857
1348
|
end
|
|
858
1349
|
|
|
859
|
-
#
|
|
860
|
-
class
|
|
1350
|
+
# A batch of results produced by a query.
|
|
1351
|
+
class QueryResultBatch
|
|
861
1352
|
include Google::Apis::Core::Hashable
|
|
862
1353
|
|
|
863
|
-
#
|
|
864
|
-
#
|
|
865
|
-
# in the
|
|
866
|
-
#
|
|
867
|
-
|
|
868
|
-
attr_accessor :missing
|
|
1354
|
+
# A cursor that points to the position after the last result in the batch.
|
|
1355
|
+
# Corresponds to the JSON property `endCursor`
|
|
1356
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1357
|
+
# @return [String]
|
|
1358
|
+
attr_accessor :end_cursor
|
|
869
1359
|
|
|
870
|
-
#
|
|
871
|
-
#
|
|
872
|
-
#
|
|
873
|
-
|
|
1360
|
+
# The result type for every entity in `entity_results`.
|
|
1361
|
+
# Corresponds to the JSON property `entityResultType`
|
|
1362
|
+
# @return [String]
|
|
1363
|
+
attr_accessor :entity_result_type
|
|
1364
|
+
|
|
1365
|
+
# The results for this batch.
|
|
1366
|
+
# Corresponds to the JSON property `entityResults`
|
|
874
1367
|
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
875
|
-
attr_accessor :
|
|
1368
|
+
attr_accessor :entity_results
|
|
876
1369
|
|
|
877
|
-
#
|
|
878
|
-
#
|
|
879
|
-
#
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
1370
|
+
# The state of the query after the current batch.
|
|
1371
|
+
# Corresponds to the JSON property `moreResults`
|
|
1372
|
+
# @return [String]
|
|
1373
|
+
attr_accessor :more_results
|
|
1374
|
+
|
|
1375
|
+
# A cursor that points to the position after the last skipped result.
|
|
1376
|
+
# Will be set when `skipped_results` != 0.
|
|
1377
|
+
# Corresponds to the JSON property `skippedCursor`
|
|
1378
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1379
|
+
# @return [String]
|
|
1380
|
+
attr_accessor :skipped_cursor
|
|
1381
|
+
|
|
1382
|
+
# The number of results skipped, typically because of an offset.
|
|
1383
|
+
# Corresponds to the JSON property `skippedResults`
|
|
1384
|
+
# @return [Fixnum]
|
|
1385
|
+
attr_accessor :skipped_results
|
|
1386
|
+
|
|
1387
|
+
# The version number of the snapshot this batch was returned from.
|
|
1388
|
+
# This applies to the range of results from the query's `start_cursor` (or
|
|
1389
|
+
# the beginning of the query if no cursor was given) to this batch's
|
|
1390
|
+
# `end_cursor` (not the query's `end_cursor`).
|
|
1391
|
+
# In a single transaction, subsequent query result batches for the same query
|
|
1392
|
+
# can have a greater snapshot version number. Each batch's snapshot version
|
|
1393
|
+
# is valid for all preceding batches.
|
|
1394
|
+
# The value will be zero for eventually consistent queries.
|
|
1395
|
+
# Corresponds to the JSON property `snapshotVersion`
|
|
1396
|
+
# @return [Fixnum]
|
|
1397
|
+
attr_accessor :snapshot_version
|
|
883
1398
|
|
|
884
1399
|
def initialize(**args)
|
|
885
1400
|
update!(**args)
|
|
@@ -887,61 +1402,40 @@ module Google
|
|
|
887
1402
|
|
|
888
1403
|
# Update properties of this object
|
|
889
1404
|
def update!(**args)
|
|
890
|
-
@
|
|
891
|
-
@
|
|
892
|
-
@
|
|
1405
|
+
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
1406
|
+
@entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
|
|
1407
|
+
@entity_results = args[:entity_results] if args.key?(:entity_results)
|
|
1408
|
+
@more_results = args[:more_results] if args.key?(:more_results)
|
|
1409
|
+
@skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
|
|
1410
|
+
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
|
|
1411
|
+
@snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
|
|
893
1412
|
end
|
|
894
1413
|
end
|
|
895
1414
|
|
|
896
|
-
#
|
|
897
|
-
class
|
|
1415
|
+
# Options specific to read-only transactions.
|
|
1416
|
+
class ReadOnly
|
|
898
1417
|
include Google::Apis::Core::Hashable
|
|
899
1418
|
|
|
900
|
-
# A query for entities.
|
|
901
|
-
# Corresponds to the JSON property `query`
|
|
902
|
-
# @return [Google::Apis::DatastoreV1::Query]
|
|
903
|
-
attr_accessor :query
|
|
904
|
-
|
|
905
|
-
# A batch of results produced by a query.
|
|
906
|
-
# Corresponds to the JSON property `batch`
|
|
907
|
-
# @return [Google::Apis::DatastoreV1::QueryResultBatch]
|
|
908
|
-
attr_accessor :batch
|
|
909
|
-
|
|
910
1419
|
def initialize(**args)
|
|
911
1420
|
update!(**args)
|
|
912
1421
|
end
|
|
913
1422
|
|
|
914
1423
|
# Update properties of this object
|
|
915
1424
|
def update!(**args)
|
|
916
|
-
@query = args[:query] if args.key?(:query)
|
|
917
|
-
@batch = args[:batch] if args.key?(:batch)
|
|
918
1425
|
end
|
|
919
1426
|
end
|
|
920
1427
|
|
|
921
|
-
# The
|
|
922
|
-
class
|
|
1428
|
+
# The options shared by read requests.
|
|
1429
|
+
class ReadOptions
|
|
923
1430
|
include Google::Apis::Core::Hashable
|
|
924
1431
|
|
|
925
|
-
# The
|
|
926
|
-
#
|
|
1432
|
+
# The non-transactional read consistency to use.
|
|
1433
|
+
# Cannot be set to `STRONG` for global queries.
|
|
1434
|
+
# Corresponds to the JSON property `readConsistency`
|
|
927
1435
|
# @return [String]
|
|
928
|
-
attr_accessor :
|
|
929
|
-
|
|
930
|
-
# The mutations to perform.
|
|
931
|
-
# When mode is `TRANSACTIONAL`, mutations affecting a single entity are
|
|
932
|
-
# applied in order. The following sequences of mutations affecting a single
|
|
933
|
-
# entity are not permitted in a single `Commit` request:
|
|
934
|
-
# - `insert` followed by `insert`
|
|
935
|
-
# - `update` followed by `insert`
|
|
936
|
-
# - `upsert` followed by `insert`
|
|
937
|
-
# - `delete` followed by `update`
|
|
938
|
-
# When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
|
|
939
|
-
# entity.
|
|
940
|
-
# Corresponds to the JSON property `mutations`
|
|
941
|
-
# @return [Array<Google::Apis::DatastoreV1::Mutation>]
|
|
942
|
-
attr_accessor :mutations
|
|
1436
|
+
attr_accessor :read_consistency
|
|
943
1437
|
|
|
944
|
-
# The identifier of the transaction
|
|
1438
|
+
# The identifier of the transaction in which to read. A
|
|
945
1439
|
# transaction identifier is returned by a call to
|
|
946
1440
|
# Datastore.BeginTransaction.
|
|
947
1441
|
# Corresponds to the JSON property `transaction`
|
|
@@ -955,38 +1449,41 @@ module Google
|
|
|
955
1449
|
|
|
956
1450
|
# Update properties of this object
|
|
957
1451
|
def update!(**args)
|
|
958
|
-
@
|
|
959
|
-
@mutations = args[:mutations] if args.key?(:mutations)
|
|
1452
|
+
@read_consistency = args[:read_consistency] if args.key?(:read_consistency)
|
|
960
1453
|
@transaction = args[:transaction] if args.key?(:transaction)
|
|
961
1454
|
end
|
|
962
1455
|
end
|
|
963
1456
|
|
|
964
|
-
#
|
|
965
|
-
class
|
|
1457
|
+
# Options specific to read / write transactions.
|
|
1458
|
+
class ReadWrite
|
|
966
1459
|
include Google::Apis::Core::Hashable
|
|
967
1460
|
|
|
1461
|
+
# The transaction identifier of the transaction being retried.
|
|
1462
|
+
# Corresponds to the JSON property `previousTransaction`
|
|
1463
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1464
|
+
# @return [String]
|
|
1465
|
+
attr_accessor :previous_transaction
|
|
1466
|
+
|
|
968
1467
|
def initialize(**args)
|
|
969
1468
|
update!(**args)
|
|
970
1469
|
end
|
|
971
1470
|
|
|
972
1471
|
# Update properties of this object
|
|
973
1472
|
def update!(**args)
|
|
1473
|
+
@previous_transaction = args[:previous_transaction] if args.key?(:previous_transaction)
|
|
974
1474
|
end
|
|
975
1475
|
end
|
|
976
1476
|
|
|
977
|
-
# The
|
|
978
|
-
class
|
|
1477
|
+
# The request for Datastore.Rollback.
|
|
1478
|
+
class RollbackRequest
|
|
979
1479
|
include Google::Apis::Core::Hashable
|
|
980
1480
|
|
|
981
|
-
# The
|
|
982
|
-
#
|
|
1481
|
+
# The transaction identifier, returned by a call to
|
|
1482
|
+
# Datastore.BeginTransaction.
|
|
1483
|
+
# Corresponds to the JSON property `transaction`
|
|
1484
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
983
1485
|
# @return [String]
|
|
984
|
-
attr_accessor :
|
|
985
|
-
|
|
986
|
-
# A reference to a property relative to the kind expressions.
|
|
987
|
-
# Corresponds to the JSON property `property`
|
|
988
|
-
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
989
|
-
attr_accessor :property
|
|
1486
|
+
attr_accessor :transaction
|
|
990
1487
|
|
|
991
1488
|
def initialize(**args)
|
|
992
1489
|
update!(**args)
|
|
@@ -994,133 +1491,62 @@ module Google
|
|
|
994
1491
|
|
|
995
1492
|
# Update properties of this object
|
|
996
1493
|
def update!(**args)
|
|
997
|
-
@
|
|
998
|
-
@property = args[:property] if args.key?(:property)
|
|
1494
|
+
@transaction = args[:transaction] if args.key?(:transaction)
|
|
999
1495
|
end
|
|
1000
1496
|
end
|
|
1001
1497
|
|
|
1002
|
-
#
|
|
1003
|
-
|
|
1498
|
+
# The response for Datastore.Rollback.
|
|
1499
|
+
# (an empty message).
|
|
1500
|
+
class RollbackResponse
|
|
1004
1501
|
include Google::Apis::Core::Hashable
|
|
1005
1502
|
|
|
1006
|
-
# The name of the kind.
|
|
1007
|
-
# Corresponds to the JSON property `name`
|
|
1008
|
-
# @return [String]
|
|
1009
|
-
attr_accessor :name
|
|
1010
|
-
|
|
1011
1503
|
def initialize(**args)
|
|
1012
1504
|
update!(**args)
|
|
1013
1505
|
end
|
|
1014
1506
|
|
|
1015
1507
|
# Update properties of this object
|
|
1016
1508
|
def update!(**args)
|
|
1017
|
-
@name = args[:name] if args.key?(:name)
|
|
1018
1509
|
end
|
|
1019
1510
|
end
|
|
1020
1511
|
|
|
1021
|
-
#
|
|
1022
|
-
|
|
1023
|
-
# reserved/read-only, the key is reserved/read-only.
|
|
1024
|
-
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1025
|
-
class Key
|
|
1512
|
+
# The request for Datastore.RunQuery.
|
|
1513
|
+
class RunQueryRequest
|
|
1026
1514
|
include Google::Apis::Core::Hashable
|
|
1027
1515
|
|
|
1516
|
+
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
|
1517
|
+
# Corresponds to the JSON property `gqlQuery`
|
|
1518
|
+
# @return [Google::Apis::DatastoreV1::GqlQuery]
|
|
1519
|
+
attr_accessor :gql_query
|
|
1520
|
+
|
|
1028
1521
|
# A partition ID identifies a grouping of entities. The grouping is always
|
|
1029
1522
|
# by project and namespace, however the namespace ID may be empty.
|
|
1030
1523
|
# A partition ID contains several dimensions:
|
|
1031
1524
|
# project ID and namespace ID.
|
|
1032
|
-
# Partition dimensions:
|
|
1033
|
-
# - May be `""`.
|
|
1034
|
-
# - Must be valid UTF-8 bytes.
|
|
1035
|
-
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
1036
|
-
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
1037
|
-
# reserved/read-only.
|
|
1038
|
-
# A reserved/read-only partition ID is forbidden in certain documented
|
|
1039
|
-
# contexts.
|
|
1040
|
-
# Foreign partition IDs (in which the project ID does
|
|
1041
|
-
# not match the context project ID ) are discouraged.
|
|
1042
|
-
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
1043
|
-
# active state.
|
|
1044
|
-
# Corresponds to the JSON property `partitionId`
|
|
1045
|
-
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
1046
|
-
attr_accessor :partition_id
|
|
1047
|
-
|
|
1048
|
-
# The entity path.
|
|
1049
|
-
# An entity path consists of one or more elements composed of a kind and a
|
|
1050
|
-
# string or numerical identifier, which identify entities. The first
|
|
1051
|
-
# element identifies a _root entity_, the second element identifies
|
|
1052
|
-
# a _child_ of the root entity, the third element identifies a child of the
|
|
1053
|
-
# second entity, and so forth. The entities identified by all prefixes of
|
|
1054
|
-
# the path are called the element's _ancestors_.
|
|
1055
|
-
# An entity path is always fully complete: *all* of the entity's ancestors
|
|
1056
|
-
# are required to be in the path along with the entity identifier itself.
|
|
1057
|
-
# The only exception is that in some documented cases, the identifier in the
|
|
1058
|
-
# last path element (for the entity) itself may be omitted. For example,
|
|
1059
|
-
# the last path element of the key of `Mutation.insert` may have no
|
|
1060
|
-
# identifier.
|
|
1061
|
-
# A path can never be empty, and a path can have at most 100 elements.
|
|
1062
|
-
# Corresponds to the JSON property `path`
|
|
1063
|
-
# @return [Array<Google::Apis::DatastoreV1::PathElement>]
|
|
1064
|
-
attr_accessor :path
|
|
1065
|
-
|
|
1066
|
-
def initialize(**args)
|
|
1067
|
-
update!(**args)
|
|
1068
|
-
end
|
|
1069
|
-
|
|
1070
|
-
# Update properties of this object
|
|
1071
|
-
def update!(**args)
|
|
1072
|
-
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
1073
|
-
@path = args[:path] if args.key?(:path)
|
|
1074
|
-
end
|
|
1075
|
-
end
|
|
1076
|
-
|
|
1077
|
-
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
1078
|
-
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
1079
|
-
# specified otherwise, this must conform to the
|
|
1080
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
1081
|
-
# standard</a>. Values must be within normalized ranges.
|
|
1082
|
-
# Example of normalization code in Python:
|
|
1083
|
-
# def NormalizeLongitude(longitude):
|
|
1084
|
-
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
1085
|
-
# q, r = divmod(longitude, 360.0)
|
|
1086
|
-
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
1087
|
-
# return r - 360.0
|
|
1088
|
-
# return r
|
|
1089
|
-
# def NormalizeLatLng(latitude, longitude):
|
|
1090
|
-
# """Wraps decimal degrees latitude and longitude to
|
|
1091
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
1092
|
-
# r = latitude % 360.0
|
|
1093
|
-
# if r <= 90.0:
|
|
1094
|
-
# return r, NormalizeLongitude(longitude)
|
|
1095
|
-
# elif r >= 270.0:
|
|
1096
|
-
# return r - 360, NormalizeLongitude(longitude)
|
|
1097
|
-
# else:
|
|
1098
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
1099
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
|
1100
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
1101
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
|
1102
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
1103
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
1104
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
1105
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
1106
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
1107
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
1108
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
1109
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
1110
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
1111
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
1112
|
-
class LatLng
|
|
1113
|
-
include Google::Apis::Core::Hashable
|
|
1525
|
+
# Partition dimensions:
|
|
1526
|
+
# - May be `""`.
|
|
1527
|
+
# - Must be valid UTF-8 bytes.
|
|
1528
|
+
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
1529
|
+
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
1530
|
+
# reserved/read-only.
|
|
1531
|
+
# A reserved/read-only partition ID is forbidden in certain documented
|
|
1532
|
+
# contexts.
|
|
1533
|
+
# Foreign partition IDs (in which the project ID does
|
|
1534
|
+
# not match the context project ID ) are discouraged.
|
|
1535
|
+
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
1536
|
+
# active state.
|
|
1537
|
+
# Corresponds to the JSON property `partitionId`
|
|
1538
|
+
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
1539
|
+
attr_accessor :partition_id
|
|
1114
1540
|
|
|
1115
|
-
#
|
|
1116
|
-
# Corresponds to the JSON property `
|
|
1117
|
-
# @return [
|
|
1118
|
-
attr_accessor :
|
|
1541
|
+
# A query for entities.
|
|
1542
|
+
# Corresponds to the JSON property `query`
|
|
1543
|
+
# @return [Google::Apis::DatastoreV1::Query]
|
|
1544
|
+
attr_accessor :query
|
|
1119
1545
|
|
|
1120
|
-
# The
|
|
1121
|
-
# Corresponds to the JSON property `
|
|
1122
|
-
# @return [
|
|
1123
|
-
attr_accessor :
|
|
1546
|
+
# The options shared by read requests.
|
|
1547
|
+
# Corresponds to the JSON property `readOptions`
|
|
1548
|
+
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
1549
|
+
attr_accessor :read_options
|
|
1124
1550
|
|
|
1125
1551
|
def initialize(**args)
|
|
1126
1552
|
update!(**args)
|
|
@@ -1128,20 +1554,26 @@ module Google
|
|
|
1128
1554
|
|
|
1129
1555
|
# Update properties of this object
|
|
1130
1556
|
def update!(**args)
|
|
1131
|
-
@
|
|
1132
|
-
@
|
|
1557
|
+
@gql_query = args[:gql_query] if args.key?(:gql_query)
|
|
1558
|
+
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
1559
|
+
@query = args[:query] if args.key?(:query)
|
|
1560
|
+
@read_options = args[:read_options] if args.key?(:read_options)
|
|
1133
1561
|
end
|
|
1134
1562
|
end
|
|
1135
1563
|
|
|
1136
|
-
#
|
|
1137
|
-
class
|
|
1564
|
+
# The response for Datastore.RunQuery.
|
|
1565
|
+
class RunQueryResponse
|
|
1138
1566
|
include Google::Apis::Core::Hashable
|
|
1139
1567
|
|
|
1140
|
-
#
|
|
1141
|
-
#
|
|
1142
|
-
#
|
|
1143
|
-
|
|
1144
|
-
|
|
1568
|
+
# A batch of results produced by a query.
|
|
1569
|
+
# Corresponds to the JSON property `batch`
|
|
1570
|
+
# @return [Google::Apis::DatastoreV1::QueryResultBatch]
|
|
1571
|
+
attr_accessor :batch
|
|
1572
|
+
|
|
1573
|
+
# A query for entities.
|
|
1574
|
+
# Corresponds to the JSON property `query`
|
|
1575
|
+
# @return [Google::Apis::DatastoreV1::Query]
|
|
1576
|
+
attr_accessor :query
|
|
1145
1577
|
|
|
1146
1578
|
def initialize(**args)
|
|
1147
1579
|
update!(**args)
|
|
@@ -1149,18 +1581,70 @@ module Google
|
|
|
1149
1581
|
|
|
1150
1582
|
# Update properties of this object
|
|
1151
1583
|
def update!(**args)
|
|
1152
|
-
@
|
|
1584
|
+
@batch = args[:batch] if args.key?(:batch)
|
|
1585
|
+
@query = args[:query] if args.key?(:query)
|
|
1153
1586
|
end
|
|
1154
1587
|
end
|
|
1155
1588
|
|
|
1156
|
-
#
|
|
1157
|
-
|
|
1589
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
1590
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
1591
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
1592
|
+
# - Simple to use and understand for most users
|
|
1593
|
+
# - Flexible enough to meet unexpected needs
|
|
1594
|
+
# # Overview
|
|
1595
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
|
1596
|
+
# and error details. The error code should be an enum value of
|
|
1597
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
1598
|
+
# error message should be a developer-facing English message that helps
|
|
1599
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
1600
|
+
# error message is needed, put the localized message in the error details or
|
|
1601
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
1602
|
+
# information about the error. There is a predefined set of error detail types
|
|
1603
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
1604
|
+
# # Language mapping
|
|
1605
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
1606
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
1607
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
1608
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
1609
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
1610
|
+
# # Other uses
|
|
1611
|
+
# The error model and the `Status` message can be used in a variety of
|
|
1612
|
+
# environments, either with or without APIs, to provide a
|
|
1613
|
+
# consistent developer experience across different environments.
|
|
1614
|
+
# Example uses of this error model include:
|
|
1615
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
1616
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
1617
|
+
# errors.
|
|
1618
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
1619
|
+
# have a `Status` message for error reporting.
|
|
1620
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
1621
|
+
# `Status` message should be used directly inside batch response, one for
|
|
1622
|
+
# each error sub-response.
|
|
1623
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
1624
|
+
# results in its response, the status of those operations should be
|
|
1625
|
+
# represented directly using the `Status` message.
|
|
1626
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
1627
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
1628
|
+
class Status
|
|
1158
1629
|
include Google::Apis::Core::Hashable
|
|
1159
1630
|
|
|
1160
|
-
#
|
|
1161
|
-
# Corresponds to the JSON property `
|
|
1162
|
-
# @return [
|
|
1163
|
-
attr_accessor :
|
|
1631
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
1632
|
+
# Corresponds to the JSON property `code`
|
|
1633
|
+
# @return [Fixnum]
|
|
1634
|
+
attr_accessor :code
|
|
1635
|
+
|
|
1636
|
+
# A list of messages that carry the error details. There is a common set of
|
|
1637
|
+
# message types for APIs to use.
|
|
1638
|
+
# Corresponds to the JSON property `details`
|
|
1639
|
+
# @return [Array<Hash<String,Object>>]
|
|
1640
|
+
attr_accessor :details
|
|
1641
|
+
|
|
1642
|
+
# A developer-facing error message, which should be in English. Any
|
|
1643
|
+
# user-facing error message should be localized and sent in the
|
|
1644
|
+
# google.rpc.Status.details field, or localized by the client.
|
|
1645
|
+
# Corresponds to the JSON property `message`
|
|
1646
|
+
# @return [String]
|
|
1647
|
+
attr_accessor :message
|
|
1164
1648
|
|
|
1165
1649
|
def initialize(**args)
|
|
1166
1650
|
update!(**args)
|
|
@@ -1168,20 +1652,28 @@ module Google
|
|
|
1168
1652
|
|
|
1169
1653
|
# Update properties of this object
|
|
1170
1654
|
def update!(**args)
|
|
1171
|
-
@
|
|
1655
|
+
@code = args[:code] if args.key?(:code)
|
|
1656
|
+
@details = args[:details] if args.key?(:details)
|
|
1657
|
+
@message = args[:message] if args.key?(:message)
|
|
1172
1658
|
end
|
|
1173
1659
|
end
|
|
1174
1660
|
|
|
1175
|
-
#
|
|
1176
|
-
|
|
1661
|
+
# Options for beginning a new transaction.
|
|
1662
|
+
# Transactions can be created explicitly with calls to
|
|
1663
|
+
# Datastore.BeginTransaction or implicitly by setting
|
|
1664
|
+
# ReadOptions.new_transaction in read requests.
|
|
1665
|
+
class TransactionOptions
|
|
1177
1666
|
include Google::Apis::Core::Hashable
|
|
1178
1667
|
|
|
1179
|
-
#
|
|
1180
|
-
#
|
|
1181
|
-
#
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1668
|
+
# Options specific to read-only transactions.
|
|
1669
|
+
# Corresponds to the JSON property `readOnly`
|
|
1670
|
+
# @return [Google::Apis::DatastoreV1::ReadOnly]
|
|
1671
|
+
attr_accessor :read_only
|
|
1672
|
+
|
|
1673
|
+
# Options specific to read / write transactions.
|
|
1674
|
+
# Corresponds to the JSON property `readWrite`
|
|
1675
|
+
# @return [Google::Apis::DatastoreV1::ReadWrite]
|
|
1676
|
+
attr_accessor :read_write
|
|
1185
1677
|
|
|
1186
1678
|
def initialize(**args)
|
|
1187
1679
|
update!(**args)
|
|
@@ -1189,99 +1681,132 @@ module Google
|
|
|
1189
1681
|
|
|
1190
1682
|
# Update properties of this object
|
|
1191
1683
|
def update!(**args)
|
|
1192
|
-
@
|
|
1684
|
+
@read_only = args[:read_only] if args.key?(:read_only)
|
|
1685
|
+
@read_write = args[:read_write] if args.key?(:read_write)
|
|
1193
1686
|
end
|
|
1194
1687
|
end
|
|
1195
1688
|
|
|
1196
|
-
# A
|
|
1197
|
-
|
|
1689
|
+
# A message that can hold any of the supported value types and associated
|
|
1690
|
+
# metadata.
|
|
1691
|
+
class Value
|
|
1198
1692
|
include Google::Apis::Core::Hashable
|
|
1199
1693
|
|
|
1200
|
-
#
|
|
1201
|
-
#
|
|
1202
|
-
#
|
|
1203
|
-
|
|
1204
|
-
attr_accessor :base_version
|
|
1694
|
+
# An array value.
|
|
1695
|
+
# Corresponds to the JSON property `arrayValue`
|
|
1696
|
+
# @return [Google::Apis::DatastoreV1::ArrayValue]
|
|
1697
|
+
attr_accessor :array_value
|
|
1205
1698
|
|
|
1206
|
-
# A
|
|
1207
|
-
#
|
|
1208
|
-
#
|
|
1209
|
-
#
|
|
1210
|
-
# Corresponds to the JSON property `
|
|
1211
|
-
#
|
|
1212
|
-
|
|
1699
|
+
# A blob value.
|
|
1700
|
+
# May have at most 1,000,000 bytes.
|
|
1701
|
+
# When `exclude_from_indexes` is false, may have at most 1500 bytes.
|
|
1702
|
+
# In JSON requests, must be base64-encoded.
|
|
1703
|
+
# Corresponds to the JSON property `blobValue`
|
|
1704
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1705
|
+
# @return [String]
|
|
1706
|
+
attr_accessor :blob_value
|
|
1213
1707
|
|
|
1214
|
-
# A
|
|
1215
|
-
#
|
|
1216
|
-
#
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1708
|
+
# A boolean value.
|
|
1709
|
+
# Corresponds to the JSON property `booleanValue`
|
|
1710
|
+
# @return [Boolean]
|
|
1711
|
+
attr_accessor :boolean_value
|
|
1712
|
+
alias_method :boolean_value?, :boolean_value
|
|
1713
|
+
|
|
1714
|
+
# A double value.
|
|
1715
|
+
# Corresponds to the JSON property `doubleValue`
|
|
1716
|
+
# @return [Float]
|
|
1717
|
+
attr_accessor :double_value
|
|
1221
1718
|
|
|
1222
1719
|
# A Datastore data object.
|
|
1223
1720
|
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1224
1721
|
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1225
1722
|
# message.
|
|
1226
|
-
# Corresponds to the JSON property `
|
|
1723
|
+
# Corresponds to the JSON property `entityValue`
|
|
1227
1724
|
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1228
|
-
attr_accessor :
|
|
1725
|
+
attr_accessor :entity_value
|
|
1726
|
+
|
|
1727
|
+
# If the value should be excluded from all indexes including those defined
|
|
1728
|
+
# explicitly.
|
|
1729
|
+
# Corresponds to the JSON property `excludeFromIndexes`
|
|
1730
|
+
# @return [Boolean]
|
|
1731
|
+
attr_accessor :exclude_from_indexes
|
|
1732
|
+
alias_method :exclude_from_indexes?, :exclude_from_indexes
|
|
1733
|
+
|
|
1734
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
1735
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
1736
|
+
# specified otherwise, this must conform to the
|
|
1737
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
1738
|
+
# standard</a>. Values must be within normalized ranges.
|
|
1739
|
+
# Example of normalization code in Python:
|
|
1740
|
+
# def NormalizeLongitude(longitude):
|
|
1741
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
1742
|
+
# q, r = divmod(longitude, 360.0)
|
|
1743
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
1744
|
+
# return r - 360.0
|
|
1745
|
+
# return r
|
|
1746
|
+
# def NormalizeLatLng(latitude, longitude):
|
|
1747
|
+
# """Wraps decimal degrees latitude and longitude to
|
|
1748
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
1749
|
+
# r = latitude % 360.0
|
|
1750
|
+
# if r <= 90.0:
|
|
1751
|
+
# return r, NormalizeLongitude(longitude)
|
|
1752
|
+
# elif r >= 270.0:
|
|
1753
|
+
# return r - 360, NormalizeLongitude(longitude)
|
|
1754
|
+
# else:
|
|
1755
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
1756
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
|
1757
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
1758
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
|
1759
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
1760
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
1761
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
1762
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
1763
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
1764
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
1765
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
1766
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
1767
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
1768
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
1769
|
+
# Corresponds to the JSON property `geoPointValue`
|
|
1770
|
+
# @return [Google::Apis::DatastoreV1::LatLng]
|
|
1771
|
+
attr_accessor :geo_point_value
|
|
1772
|
+
|
|
1773
|
+
# An integer value.
|
|
1774
|
+
# Corresponds to the JSON property `integerValue`
|
|
1775
|
+
# @return [Fixnum]
|
|
1776
|
+
attr_accessor :integer_value
|
|
1229
1777
|
|
|
1230
1778
|
# A unique identifier for an entity.
|
|
1231
1779
|
# If a key's partition ID or any of its path kinds or names are
|
|
1232
1780
|
# reserved/read-only, the key is reserved/read-only.
|
|
1233
1781
|
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1234
|
-
# Corresponds to the JSON property `
|
|
1782
|
+
# Corresponds to the JSON property `keyValue`
|
|
1235
1783
|
# @return [Google::Apis::DatastoreV1::Key]
|
|
1236
|
-
attr_accessor :
|
|
1237
|
-
|
|
1238
|
-
def initialize(**args)
|
|
1239
|
-
update!(**args)
|
|
1240
|
-
end
|
|
1241
|
-
|
|
1242
|
-
# Update properties of this object
|
|
1243
|
-
def update!(**args)
|
|
1244
|
-
@base_version = args[:base_version] if args.key?(:base_version)
|
|
1245
|
-
@insert = args[:insert] if args.key?(:insert)
|
|
1246
|
-
@update = args[:update] if args.key?(:update)
|
|
1247
|
-
@upsert = args[:upsert] if args.key?(:upsert)
|
|
1248
|
-
@delete = args[:delete] if args.key?(:delete)
|
|
1249
|
-
end
|
|
1250
|
-
end
|
|
1784
|
+
attr_accessor :key_value
|
|
1251
1785
|
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1786
|
+
# The `meaning` field should only be populated for backwards compatibility.
|
|
1787
|
+
# Corresponds to the JSON property `meaning`
|
|
1788
|
+
# @return [Fixnum]
|
|
1789
|
+
attr_accessor :meaning
|
|
1255
1790
|
|
|
1256
|
-
#
|
|
1257
|
-
#
|
|
1258
|
-
# Datastore.BeginTransaction.
|
|
1259
|
-
# Corresponds to the JSON property `transaction`
|
|
1260
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1791
|
+
# A null value.
|
|
1792
|
+
# Corresponds to the JSON property `nullValue`
|
|
1261
1793
|
# @return [String]
|
|
1262
|
-
attr_accessor :
|
|
1794
|
+
attr_accessor :null_value
|
|
1263
1795
|
|
|
1264
|
-
#
|
|
1265
|
-
#
|
|
1266
|
-
#
|
|
1796
|
+
# A UTF-8 encoded string value.
|
|
1797
|
+
# When `exclude_from_indexes` is false (it is indexed) , may have at most 1500
|
|
1798
|
+
# bytes.
|
|
1799
|
+
# Otherwise, may be set to at least 1,000,000 bytes.
|
|
1800
|
+
# Corresponds to the JSON property `stringValue`
|
|
1267
1801
|
# @return [String]
|
|
1268
|
-
attr_accessor :
|
|
1269
|
-
|
|
1270
|
-
def initialize(**args)
|
|
1271
|
-
update!(**args)
|
|
1272
|
-
end
|
|
1273
|
-
|
|
1274
|
-
# Update properties of this object
|
|
1275
|
-
def update!(**args)
|
|
1276
|
-
@transaction = args[:transaction] if args.key?(:transaction)
|
|
1277
|
-
@read_consistency = args[:read_consistency] if args.key?(:read_consistency)
|
|
1278
|
-
end
|
|
1279
|
-
end
|
|
1802
|
+
attr_accessor :string_value
|
|
1280
1803
|
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1804
|
+
# A timestamp value.
|
|
1805
|
+
# When stored in the Datastore, precise only to microseconds;
|
|
1806
|
+
# any additional precision is rounded down.
|
|
1807
|
+
# Corresponds to the JSON property `timestampValue`
|
|
1808
|
+
# @return [String]
|
|
1809
|
+
attr_accessor :timestamp_value
|
|
1285
1810
|
|
|
1286
1811
|
def initialize(**args)
|
|
1287
1812
|
update!(**args)
|
|
@@ -1289,6 +1814,19 @@ module Google
|
|
|
1289
1814
|
|
|
1290
1815
|
# Update properties of this object
|
|
1291
1816
|
def update!(**args)
|
|
1817
|
+
@array_value = args[:array_value] if args.key?(:array_value)
|
|
1818
|
+
@blob_value = args[:blob_value] if args.key?(:blob_value)
|
|
1819
|
+
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
|
|
1820
|
+
@double_value = args[:double_value] if args.key?(:double_value)
|
|
1821
|
+
@entity_value = args[:entity_value] if args.key?(:entity_value)
|
|
1822
|
+
@exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
|
|
1823
|
+
@geo_point_value = args[:geo_point_value] if args.key?(:geo_point_value)
|
|
1824
|
+
@integer_value = args[:integer_value] if args.key?(:integer_value)
|
|
1825
|
+
@key_value = args[:key_value] if args.key?(:key_value)
|
|
1826
|
+
@meaning = args[:meaning] if args.key?(:meaning)
|
|
1827
|
+
@null_value = args[:null_value] if args.key?(:null_value)
|
|
1828
|
+
@string_value = args[:string_value] if args.key?(:string_value)
|
|
1829
|
+
@timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
|
|
1292
1830
|
end
|
|
1293
1831
|
end
|
|
1294
1832
|
end
|