google-api-client 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/beacons/proximity/
|
26
26
|
module ProximitybeaconV1beta1
|
27
27
|
VERSION = 'V1beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170815'
|
29
29
|
|
30
30
|
# View and modify your beacons
|
31
31
|
AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
|
@@ -22,14 +22,26 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ProximitybeaconV1beta1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
25
|
+
# Defines a unique identifier of a beacon as broadcast by the device.
|
26
|
+
class AdvertisedId
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# The
|
30
|
-
#
|
31
|
-
#
|
32
|
-
|
29
|
+
# The actual beacon identifier, as broadcast by the beacon hardware. Must be
|
30
|
+
# [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
|
31
|
+
# requests, and will be so encoded (with padding) in responses. The base64
|
32
|
+
# encoding should be of the binary byte-stream and not any textual (such as
|
33
|
+
# hex) representation thereof.
|
34
|
+
# Required.
|
35
|
+
# Corresponds to the JSON property `id`
|
36
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :id
|
39
|
+
|
40
|
+
# Specifies the identifier type.
|
41
|
+
# Required.
|
42
|
+
# Corresponds to the JSON property `type`
|
43
|
+
# @return [String]
|
44
|
+
attr_accessor :type
|
33
45
|
|
34
46
|
def initialize(**args)
|
35
47
|
update!(**args)
|
@@ -37,35 +49,29 @@ module Google
|
|
37
49
|
|
38
50
|
# Update properties of this object
|
39
51
|
def update!(**args)
|
40
|
-
@
|
52
|
+
@id = args[:id] if args.key?(:id)
|
53
|
+
@type = args[:type] if args.key?(:type)
|
41
54
|
end
|
42
55
|
end
|
43
56
|
|
44
|
-
#
|
45
|
-
|
57
|
+
# A subset of attachment information served via the
|
58
|
+
# `beaconinfo.getforobserved` method, used when your users encounter your
|
59
|
+
# beacons.
|
60
|
+
class AttachmentInfo
|
46
61
|
include Google::Apis::Core::Hashable
|
47
62
|
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# represent a year and month where the day is not significant, e.g. credit card
|
52
|
-
# expiration date. The year may be 0 to represent a month and day independent
|
53
|
-
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
54
|
-
# and `google.protobuf.Timestamp`.
|
55
|
-
# Corresponds to the JSON property `estimatedLowBatteryDate`
|
56
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::Date]
|
57
|
-
attr_accessor :estimated_low_battery_date
|
58
|
-
|
59
|
-
# Resource name of the beacon. For Eddystone-EID beacons, this may
|
60
|
-
# be the beacon's current EID, or the beacon's "stable" Eddystone-UID.
|
61
|
-
# Corresponds to the JSON property `beaconName`
|
63
|
+
# An opaque data container for client-provided data.
|
64
|
+
# Corresponds to the JSON property `data`
|
65
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
62
66
|
# @return [String]
|
63
|
-
attr_accessor :
|
67
|
+
attr_accessor :data
|
64
68
|
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
|
69
|
+
# Specifies what kind of attachment this is. Tells a client how to
|
70
|
+
# interpret the `data` field. Format is <var>namespace/type</var>, for
|
71
|
+
# example <code>scrupulous-wombat-12345/welcome-message</code>
|
72
|
+
# Corresponds to the JSON property `namespacedType`
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :namespaced_type
|
69
75
|
|
70
76
|
def initialize(**args)
|
71
77
|
update!(**args)
|
@@ -73,86 +79,146 @@ module Google
|
|
73
79
|
|
74
80
|
# Update properties of this object
|
75
81
|
def update!(**args)
|
76
|
-
@
|
77
|
-
@
|
78
|
-
@alerts = args[:alerts] if args.key?(:alerts)
|
82
|
+
@data = args[:data] if args.key?(:data)
|
83
|
+
@namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
|
79
84
|
end
|
80
85
|
end
|
81
86
|
|
82
|
-
#
|
83
|
-
class
|
87
|
+
# Details of a beacon device.
|
88
|
+
class Beacon
|
84
89
|
include Google::Apis::Core::Hashable
|
85
90
|
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
|
90
|
-
attr_accessor :next_page_token
|
91
|
+
# Defines a unique identifier of a beacon as broadcast by the device.
|
92
|
+
# Corresponds to the JSON property `advertisedId`
|
93
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
94
|
+
attr_accessor :advertised_id
|
91
95
|
|
92
|
-
#
|
93
|
-
#
|
94
|
-
#
|
95
|
-
#
|
96
|
-
|
96
|
+
# Resource name of this beacon. A beacon name has the format
|
97
|
+
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
98
|
+
# the beacon and N is a code for the beacon's type. Possible values are
|
99
|
+
# `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
|
100
|
+
# This field must be left empty when registering. After reading a beacon,
|
101
|
+
# clients can use the name for future operations.
|
102
|
+
# Corresponds to the JSON property `beaconName`
|
103
|
+
# @return [String]
|
104
|
+
attr_accessor :beacon_name
|
97
105
|
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
|
106
|
+
# Free text used to identify and describe the beacon. Maximum length 140
|
107
|
+
# characters.
|
108
|
+
# Optional.
|
109
|
+
# Corresponds to the JSON property `description`
|
110
|
+
# @return [String]
|
111
|
+
attr_accessor :description
|
102
112
|
|
103
|
-
|
104
|
-
|
105
|
-
|
113
|
+
# Write-only registration parameters for beacons using Eddystone-EID format.
|
114
|
+
# Two ways of securely registering an Eddystone-EID beacon with the service
|
115
|
+
# are supported:
|
116
|
+
# 1. Perform an ECDH key exchange via this API, including a previous call
|
117
|
+
# to `GET /v1beta1/eidparams`. In this case the fields
|
118
|
+
# `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
|
119
|
+
# populated and `beacon_identity_key` should not be populated. This
|
120
|
+
# method ensures that only the two parties in the ECDH key exchange can
|
121
|
+
# compute the identity key, which becomes a secret between them.
|
122
|
+
# 2. Derive or obtain the beacon's identity key via other secure means
|
123
|
+
# (perhaps an ECDH key exchange between the beacon and a mobile device
|
124
|
+
# or any other secure method), and then submit the resulting identity key
|
125
|
+
# to the service. In this case `beacon_identity_key` field should be
|
126
|
+
# populated, and neither of `beacon_ecdh_public_key` nor
|
127
|
+
# `service_ecdh_public_key` fields should be. The security of this method
|
128
|
+
# depends on how securely the parties involved (in particular the
|
129
|
+
# bluetooth client) handle the identity key, and obviously on how
|
130
|
+
# securely the identity key was generated.
|
131
|
+
# See [the Eddystone specification](https://github.com/google/eddystone/tree/
|
132
|
+
# master/eddystone-eid) at GitHub.
|
133
|
+
# Corresponds to the JSON property `ephemeralIdRegistration`
|
134
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
|
135
|
+
attr_accessor :ephemeral_id_registration
|
106
136
|
|
107
|
-
#
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
end
|
137
|
+
# Expected location stability. This is set when the beacon is registered or
|
138
|
+
# updated, not automatically detected in any way.
|
139
|
+
# Optional.
|
140
|
+
# Corresponds to the JSON property `expectedStability`
|
141
|
+
# @return [String]
|
142
|
+
attr_accessor :expected_stability
|
114
143
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
144
|
+
# Indoor level, a human-readable string as returned by Google Maps APIs,
|
145
|
+
# useful to indicate which floor of a building a beacon is located on.
|
146
|
+
# Corresponds to the JSON property `indoorLevel`
|
147
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
|
148
|
+
attr_accessor :indoor_level
|
119
149
|
|
120
|
-
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
|
150
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
151
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
152
|
+
# specified otherwise, this must conform to the
|
153
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
154
|
+
# standard</a>. Values must be within normalized ranges.
|
155
|
+
# Example of normalization code in Python:
|
156
|
+
# def NormalizeLongitude(longitude):
|
157
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
158
|
+
# q, r = divmod(longitude, 360.0)
|
159
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
160
|
+
# return r - 360.0
|
161
|
+
# return r
|
162
|
+
# def NormalizeLatLng(latitude, longitude):
|
163
|
+
# """Wraps decimal degrees latitude and longitude to
|
164
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
165
|
+
# r = latitude % 360.0
|
166
|
+
# if r <= 90.0:
|
167
|
+
# return r, NormalizeLongitude(longitude)
|
168
|
+
# elif r >= 270.0:
|
169
|
+
# return r - 360, NormalizeLongitude(longitude)
|
170
|
+
# else:
|
171
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
172
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
173
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
174
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
175
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
176
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
177
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
178
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
179
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
180
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
181
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
182
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
183
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
184
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
185
|
+
# Corresponds to the JSON property `latLng`
|
186
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
|
187
|
+
attr_accessor :lat_lng
|
125
188
|
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
# <var>namespace/type</var>. Accepts `*` to specify all types in
|
130
|
-
# all namespaces owned by the client.
|
189
|
+
# The [Google Places API](/places/place-id) Place ID of the place where
|
190
|
+
# the beacon is deployed. This is given when the beacon is registered or
|
191
|
+
# updated, not automatically detected in any way.
|
131
192
|
# Optional.
|
132
|
-
# Corresponds to the JSON property `
|
133
|
-
# @return [
|
134
|
-
attr_accessor :
|
193
|
+
# Corresponds to the JSON property `placeId`
|
194
|
+
# @return [String]
|
195
|
+
attr_accessor :place_id
|
135
196
|
|
136
|
-
|
137
|
-
|
138
|
-
|
197
|
+
# Properties of the beacon device, for example battery type or firmware
|
198
|
+
# version.
|
199
|
+
# Optional.
|
200
|
+
# Corresponds to the JSON property `properties`
|
201
|
+
# @return [Hash<String,String>]
|
202
|
+
attr_accessor :properties
|
139
203
|
|
140
|
-
#
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
204
|
+
# Some beacons may require a user to provide an authorization key before
|
205
|
+
# changing any of its configuration (e.g. broadcast frames, transmit power).
|
206
|
+
# This field provides a place to store and control access to that key.
|
207
|
+
# This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
|
208
|
+
# from users with write access to the given beacon. That is to say: If the
|
209
|
+
# user is authorized to write the beacon's confidential data in the service,
|
210
|
+
# the service considers them authorized to configure the beacon. Note
|
211
|
+
# that this key grants nothing on the service, only on the beacon itself.
|
212
|
+
# Corresponds to the JSON property `provisioningKey`
|
213
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
214
|
+
# @return [String]
|
215
|
+
attr_accessor :provisioning_key
|
146
216
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
# `
|
153
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
154
|
-
class Empty
|
155
|
-
include Google::Apis::Core::Hashable
|
217
|
+
# Current status of the beacon.
|
218
|
+
# Required.
|
219
|
+
# Corresponds to the JSON property `status`
|
220
|
+
# @return [String]
|
221
|
+
attr_accessor :status
|
156
222
|
|
157
223
|
def initialize(**args)
|
158
224
|
update!(**args)
|
@@ -160,6 +226,17 @@ module Google
|
|
160
226
|
|
161
227
|
# Update properties of this object
|
162
228
|
def update!(**args)
|
229
|
+
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
230
|
+
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
231
|
+
@description = args[:description] if args.key?(:description)
|
232
|
+
@ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
|
233
|
+
@expected_stability = args[:expected_stability] if args.key?(:expected_stability)
|
234
|
+
@indoor_level = args[:indoor_level] if args.key?(:indoor_level)
|
235
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
236
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
237
|
+
@properties = args[:properties] if args.key?(:properties)
|
238
|
+
@provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
|
239
|
+
@status = args[:status] if args.key?(:status)
|
163
240
|
end
|
164
241
|
end
|
165
242
|
|
@@ -167,18 +244,27 @@ module Google
|
|
167
244
|
class BeaconAttachment
|
168
245
|
include Google::Apis::Core::Hashable
|
169
246
|
|
247
|
+
# Resource name of this attachment. Attachment names have the format:
|
248
|
+
# <code>beacons/<var>beacon_id</var>/attachments/<var>attachment_id</var></code>.
|
249
|
+
# Leave this empty on creation.
|
250
|
+
# Corresponds to the JSON property `attachmentName`
|
251
|
+
# @return [String]
|
252
|
+
attr_accessor :attachment_name
|
253
|
+
|
170
254
|
# The UTC time when this attachment was created, in milliseconds since the
|
171
255
|
# UNIX epoch.
|
172
256
|
# Corresponds to the JSON property `creationTimeMs`
|
173
257
|
# @return [String]
|
174
258
|
attr_accessor :creation_time_ms
|
175
259
|
|
176
|
-
#
|
177
|
-
#
|
178
|
-
#
|
179
|
-
#
|
260
|
+
# An opaque data container for client-provided data. Must be
|
261
|
+
# [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
|
262
|
+
# requests, and will be so encoded (with padding) in responses.
|
263
|
+
# Required.
|
264
|
+
# Corresponds to the JSON property `data`
|
265
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
180
266
|
# @return [String]
|
181
|
-
attr_accessor :
|
267
|
+
attr_accessor :data
|
182
268
|
|
183
269
|
# Specifies what kind of attachment this is. Tells a client how to
|
184
270
|
# interpret the `data` field. Format is <var>namespace/type</var>. Namespace
|
@@ -189,14 +275,39 @@ module Google
|
|
189
275
|
# @return [String]
|
190
276
|
attr_accessor :namespaced_type
|
191
277
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
#
|
197
|
-
|
278
|
+
def initialize(**args)
|
279
|
+
update!(**args)
|
280
|
+
end
|
281
|
+
|
282
|
+
# Update properties of this object
|
283
|
+
def update!(**args)
|
284
|
+
@attachment_name = args[:attachment_name] if args.key?(:attachment_name)
|
285
|
+
@creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms)
|
286
|
+
@data = args[:data] if args.key?(:data)
|
287
|
+
@namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
# A subset of beacon information served via the `beaconinfo.getforobserved`
|
292
|
+
# method, which you call when users of your app encounter your beacons.
|
293
|
+
class BeaconInfo
|
294
|
+
include Google::Apis::Core::Hashable
|
295
|
+
|
296
|
+
# Defines a unique identifier of a beacon as broadcast by the device.
|
297
|
+
# Corresponds to the JSON property `advertisedId`
|
298
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
299
|
+
attr_accessor :advertised_id
|
300
|
+
|
301
|
+
# Attachments matching the type(s) requested.
|
302
|
+
# May be empty if no attachment types were requested.
|
303
|
+
# Corresponds to the JSON property `attachments`
|
304
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
|
305
|
+
attr_accessor :attachments
|
306
|
+
|
307
|
+
# The name under which the beacon is registered.
|
308
|
+
# Corresponds to the JSON property `beaconName`
|
198
309
|
# @return [String]
|
199
|
-
attr_accessor :
|
310
|
+
attr_accessor :beacon_name
|
200
311
|
|
201
312
|
def initialize(**args)
|
202
313
|
update!(**args)
|
@@ -204,89 +315,38 @@ module Google
|
|
204
315
|
|
205
316
|
# Update properties of this object
|
206
317
|
def update!(**args)
|
207
|
-
@
|
208
|
-
@
|
209
|
-
@
|
210
|
-
@data = args[:data] if args.key?(:data)
|
318
|
+
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
319
|
+
@attachments = args[:attachments] if args.key?(:attachments)
|
320
|
+
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
211
321
|
end
|
212
322
|
end
|
213
323
|
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
# to
|
219
|
-
#
|
220
|
-
#
|
221
|
-
|
222
|
-
# compute the identity key, which becomes a secret between them.
|
223
|
-
# 2. Derive or obtain the beacon's identity key via other secure means
|
224
|
-
# (perhaps an ECDH key exchange between the beacon and a mobile device
|
225
|
-
# or any other secure method), and then submit the resulting identity key
|
226
|
-
# to the service. In this case `beacon_identity_key` field should be
|
227
|
-
# populated, and neither of `beacon_ecdh_public_key` nor
|
228
|
-
# `service_ecdh_public_key` fields should be. The security of this method
|
229
|
-
# depends on how securely the parties involved (in particular the
|
230
|
-
# bluetooth client) handle the identity key, and obviously on how
|
231
|
-
# securely the identity key was generated.
|
232
|
-
# See [the Eddystone specification](https://github.com/google/eddystone/tree/
|
233
|
-
# master/eddystone-eid) at GitHub.
|
234
|
-
class EphemeralIdRegistration
|
324
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
325
|
+
# time zone are either specified elsewhere or are not significant. The date
|
326
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
327
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
328
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
329
|
+
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
330
|
+
# and `google.protobuf.Timestamp`.
|
331
|
+
class Date
|
235
332
|
include Google::Apis::Core::Hashable
|
236
333
|
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
# value to the service risks registration or resolution failures. If a
|
241
|
-
# value is not provided, the default is zero.
|
242
|
-
# Corresponds to the JSON property `initialClockValue`
|
334
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
335
|
+
# if specifying a year/month where the day is not significant.
|
336
|
+
# Corresponds to the JSON property `day`
|
243
337
|
# @return [Fixnum]
|
244
|
-
attr_accessor :
|
245
|
-
|
246
|
-
# The beacon's public key used for the Elliptic curve Diffie-Hellman
|
247
|
-
# key exchange. When this field is populated, `service_ecdh_public_key`
|
248
|
-
# must also be populated, and `beacon_identity_key` must not be.
|
249
|
-
# Corresponds to the JSON property `beaconEcdhPublicKey`
|
250
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
251
|
-
# @return [String]
|
252
|
-
attr_accessor :beacon_ecdh_public_key
|
338
|
+
attr_accessor :day
|
253
339
|
|
254
|
-
#
|
255
|
-
#
|
256
|
-
# actual interval. See [the spec at github](https://github.com/google/eddystone/
|
257
|
-
# tree/master/eddystone-eid)
|
258
|
-
# for details. This value corresponds to a power-of-two scaler on the
|
259
|
-
# beacon's clock: when the scaler value is K, the beacon will begin
|
260
|
-
# broadcasting a new ephemeral ID on average every 2^K seconds.
|
261
|
-
# Corresponds to the JSON property `rotationPeriodExponent`
|
340
|
+
# Month of year. Must be from 1 to 12.
|
341
|
+
# Corresponds to the JSON property `month`
|
262
342
|
# @return [Fixnum]
|
263
|
-
attr_accessor :
|
264
|
-
|
265
|
-
# The service's public key used for the Elliptic curve Diffie-Hellman
|
266
|
-
# key exchange. When this field is populated, `beacon_ecdh_public_key`
|
267
|
-
# must also be populated, and `beacon_identity_key` must not be.
|
268
|
-
# Corresponds to the JSON property `serviceEcdhPublicKey`
|
269
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
270
|
-
# @return [String]
|
271
|
-
attr_accessor :service_ecdh_public_key
|
272
|
-
|
273
|
-
# The private key of the beacon. If this field is populated,
|
274
|
-
# `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be
|
275
|
-
# populated.
|
276
|
-
# Corresponds to the JSON property `beaconIdentityKey`
|
277
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
278
|
-
# @return [String]
|
279
|
-
attr_accessor :beacon_identity_key
|
343
|
+
attr_accessor :month
|
280
344
|
|
281
|
-
#
|
282
|
-
#
|
283
|
-
#
|
284
|
-
#
|
285
|
-
|
286
|
-
# Corresponds to the JSON property `initialEid`
|
287
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
288
|
-
# @return [String]
|
289
|
-
attr_accessor :initial_eid
|
345
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
346
|
+
# a year.
|
347
|
+
# Corresponds to the JSON property `year`
|
348
|
+
# @return [Fixnum]
|
349
|
+
attr_accessor :year
|
290
350
|
|
291
351
|
def initialize(**args)
|
292
352
|
update!(**args)
|
@@ -294,62 +354,20 @@ module Google
|
|
294
354
|
|
295
355
|
# Update properties of this object
|
296
356
|
def update!(**args)
|
297
|
-
@
|
298
|
-
@
|
299
|
-
@
|
300
|
-
@service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
|
301
|
-
@beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
|
302
|
-
@initial_eid = args[:initial_eid] if args.key?(:initial_eid)
|
357
|
+
@day = args[:day] if args.key?(:day)
|
358
|
+
@month = args[:month] if args.key?(:month)
|
359
|
+
@year = args[:year] if args.key?(:year)
|
303
360
|
end
|
304
361
|
end
|
305
362
|
|
306
|
-
#
|
307
|
-
|
308
|
-
# specified otherwise, this must conform to the
|
309
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
310
|
-
# standard</a>. Values must be within normalized ranges.
|
311
|
-
# Example of normalization code in Python:
|
312
|
-
# def NormalizeLongitude(longitude):
|
313
|
-
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
314
|
-
# q, r = divmod(longitude, 360.0)
|
315
|
-
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
316
|
-
# return r - 360.0
|
317
|
-
# return r
|
318
|
-
# def NormalizeLatLng(latitude, longitude):
|
319
|
-
# """Wraps decimal degrees latitude and longitude to
|
320
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
321
|
-
# r = latitude % 360.0
|
322
|
-
# if r <= 90.0:
|
323
|
-
# return r, NormalizeLongitude(longitude)
|
324
|
-
# elif r >= 270.0:
|
325
|
-
# return r - 360, NormalizeLongitude(longitude)
|
326
|
-
# else:
|
327
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
328
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
329
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
330
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
331
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
332
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
333
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
334
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
335
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
336
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
337
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
338
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
339
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
340
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
341
|
-
class LatLng
|
363
|
+
# Response for a request to delete attachments.
|
364
|
+
class DeleteAttachmentsResponse
|
342
365
|
include Google::Apis::Core::Hashable
|
343
366
|
|
344
|
-
# The
|
345
|
-
# Corresponds to the JSON property `
|
346
|
-
# @return [
|
347
|
-
attr_accessor :
|
348
|
-
|
349
|
-
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
350
|
-
# Corresponds to the JSON property `latitude`
|
351
|
-
# @return [Float]
|
352
|
-
attr_accessor :latitude
|
367
|
+
# The number of attachments that were deleted.
|
368
|
+
# Corresponds to the JSON property `numDeleted`
|
369
|
+
# @return [Fixnum]
|
370
|
+
attr_accessor :num_deleted
|
353
371
|
|
354
372
|
def initialize(**args)
|
355
373
|
update!(**args)
|
@@ -357,19 +375,35 @@ module Google
|
|
357
375
|
|
358
376
|
# Update properties of this object
|
359
377
|
def update!(**args)
|
360
|
-
@
|
361
|
-
@latitude = args[:latitude] if args.key?(:latitude)
|
378
|
+
@num_deleted = args[:num_deleted] if args.key?(:num_deleted)
|
362
379
|
end
|
363
380
|
end
|
364
381
|
|
365
|
-
#
|
366
|
-
class
|
382
|
+
# Diagnostics for a single beacon.
|
383
|
+
class Diagnostics
|
367
384
|
include Google::Apis::Core::Hashable
|
368
385
|
|
369
|
-
#
|
370
|
-
# Corresponds to the JSON property `
|
371
|
-
# @return [Array<
|
372
|
-
attr_accessor :
|
386
|
+
# An unordered list of Alerts that the beacon has.
|
387
|
+
# Corresponds to the JSON property `alerts`
|
388
|
+
# @return [Array<String>]
|
389
|
+
attr_accessor :alerts
|
390
|
+
|
391
|
+
# Resource name of the beacon. For Eddystone-EID beacons, this may
|
392
|
+
# be the beacon's current EID, or the beacon's "stable" Eddystone-UID.
|
393
|
+
# Corresponds to the JSON property `beaconName`
|
394
|
+
# @return [String]
|
395
|
+
attr_accessor :beacon_name
|
396
|
+
|
397
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
398
|
+
# time zone are either specified elsewhere or are not significant. The date
|
399
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
400
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
401
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
402
|
+
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
403
|
+
# and `google.protobuf.Timestamp`.
|
404
|
+
# Corresponds to the JSON property `estimatedLowBatteryDate`
|
405
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Date]
|
406
|
+
attr_accessor :estimated_low_battery_date
|
373
407
|
|
374
408
|
def initialize(**args)
|
375
409
|
update!(**args)
|
@@ -377,89 +411,107 @@ module Google
|
|
377
411
|
|
378
412
|
# Update properties of this object
|
379
413
|
def update!(**args)
|
380
|
-
@
|
414
|
+
@alerts = args[:alerts] if args.key?(:alerts)
|
415
|
+
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
416
|
+
@estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date)
|
381
417
|
end
|
382
418
|
end
|
383
419
|
|
384
|
-
#
|
385
|
-
#
|
386
|
-
#
|
387
|
-
|
420
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
421
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
422
|
+
# or the response type of an API method. For instance:
|
423
|
+
# service Foo `
|
424
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
425
|
+
# `
|
426
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
427
|
+
class Empty
|
388
428
|
include Google::Apis::Core::Hashable
|
389
429
|
|
390
|
-
# Resource name of this namespace. Namespaces names have the format:
|
391
|
-
# <code>namespaces/<var>namespace</var></code>.
|
392
|
-
# Corresponds to the JSON property `namespaceName`
|
393
|
-
# @return [String]
|
394
|
-
attr_accessor :namespace_name
|
395
|
-
|
396
|
-
# Specifies what clients may receive attachments under this namespace
|
397
|
-
# via `beaconinfo.getforobserved`.
|
398
|
-
# Corresponds to the JSON property `servingVisibility`
|
399
|
-
# @return [String]
|
400
|
-
attr_accessor :serving_visibility
|
401
|
-
|
402
430
|
def initialize(**args)
|
403
431
|
update!(**args)
|
404
432
|
end
|
405
433
|
|
406
434
|
# Update properties of this object
|
407
435
|
def update!(**args)
|
408
|
-
@namespace_name = args[:namespace_name] if args.key?(:namespace_name)
|
409
|
-
@serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
|
410
436
|
end
|
411
437
|
end
|
412
438
|
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
|
439
|
+
# Write-only registration parameters for beacons using Eddystone-EID format.
|
440
|
+
# Two ways of securely registering an Eddystone-EID beacon with the service
|
441
|
+
# are supported:
|
442
|
+
# 1. Perform an ECDH key exchange via this API, including a previous call
|
443
|
+
# to `GET /v1beta1/eidparams`. In this case the fields
|
444
|
+
# `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
|
445
|
+
# populated and `beacon_identity_key` should not be populated. This
|
446
|
+
# method ensures that only the two parties in the ECDH key exchange can
|
447
|
+
# compute the identity key, which becomes a secret between them.
|
448
|
+
# 2. Derive or obtain the beacon's identity key via other secure means
|
449
|
+
# (perhaps an ECDH key exchange between the beacon and a mobile device
|
450
|
+
# or any other secure method), and then submit the resulting identity key
|
451
|
+
# to the service. In this case `beacon_identity_key` field should be
|
452
|
+
# populated, and neither of `beacon_ecdh_public_key` nor
|
453
|
+
# `service_ecdh_public_key` fields should be. The security of this method
|
454
|
+
# depends on how securely the parties involved (in particular the
|
455
|
+
# bluetooth client) handle the identity key, and obviously on how
|
456
|
+
# securely the identity key was generated.
|
457
|
+
# See [the Eddystone specification](https://github.com/google/eddystone/tree/
|
458
|
+
# master/eddystone-eid) at GitHub.
|
459
|
+
class EphemeralIdRegistration
|
417
460
|
include Google::Apis::Core::Hashable
|
418
|
-
|
419
|
-
#
|
420
|
-
#
|
461
|
+
|
462
|
+
# The beacon's public key used for the Elliptic curve Diffie-Hellman
|
463
|
+
# key exchange. When this field is populated, `service_ecdh_public_key`
|
464
|
+
# must also be populated, and `beacon_identity_key` must not be.
|
465
|
+
# Corresponds to the JSON property `beaconEcdhPublicKey`
|
421
466
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
422
467
|
# @return [String]
|
423
|
-
attr_accessor :
|
468
|
+
attr_accessor :beacon_ecdh_public_key
|
424
469
|
|
425
|
-
#
|
426
|
-
#
|
427
|
-
#
|
428
|
-
# Corresponds to the JSON property `
|
470
|
+
# The private key of the beacon. If this field is populated,
|
471
|
+
# `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be
|
472
|
+
# populated.
|
473
|
+
# Corresponds to the JSON property `beaconIdentityKey`
|
474
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
429
475
|
# @return [String]
|
430
|
-
attr_accessor :
|
431
|
-
|
432
|
-
def initialize(**args)
|
433
|
-
update!(**args)
|
434
|
-
end
|
435
|
-
|
436
|
-
# Update properties of this object
|
437
|
-
def update!(**args)
|
438
|
-
@data = args[:data] if args.key?(:data)
|
439
|
-
@namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
|
440
|
-
end
|
441
|
-
end
|
476
|
+
attr_accessor :beacon_identity_key
|
442
477
|
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
478
|
+
# The initial clock value of the beacon. The beacon's clock must have
|
479
|
+
# begun counting at this value immediately prior to transmitting this
|
480
|
+
# value to the resolving service. Significant delay in transmitting this
|
481
|
+
# value to the service risks registration or resolution failures. If a
|
482
|
+
# value is not provided, the default is zero.
|
483
|
+
# Corresponds to the JSON property `initialClockValue`
|
484
|
+
# @return [Fixnum]
|
485
|
+
attr_accessor :initial_clock_value
|
447
486
|
|
448
|
-
#
|
449
|
-
#
|
487
|
+
# An initial ephemeral ID calculated using the clock value submitted as
|
488
|
+
# `initial_clock_value`, and the secret key generated by the
|
489
|
+
# Diffie-Hellman key exchange using `service_ecdh_public_key` and
|
490
|
+
# `service_ecdh_public_key`. This initial EID value will be used by the
|
491
|
+
# service to confirm that the key exchange process was successful.
|
492
|
+
# Corresponds to the JSON property `initialEid`
|
493
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
450
494
|
# @return [String]
|
451
|
-
attr_accessor :
|
495
|
+
attr_accessor :initial_eid
|
452
496
|
|
453
|
-
#
|
454
|
-
#
|
455
|
-
#
|
456
|
-
#
|
457
|
-
|
497
|
+
# Indicates the nominal period between each rotation of the beacon's
|
498
|
+
# ephemeral ID. "Nominal" because the beacon should randomize the
|
499
|
+
# actual interval. See [the spec at github](https://github.com/google/eddystone/
|
500
|
+
# tree/master/eddystone-eid)
|
501
|
+
# for details. This value corresponds to a power-of-two scaler on the
|
502
|
+
# beacon's clock: when the scaler value is K, the beacon will begin
|
503
|
+
# broadcasting a new ephemeral ID on average every 2^K seconds.
|
504
|
+
# Corresponds to the JSON property `rotationPeriodExponent`
|
505
|
+
# @return [Fixnum]
|
506
|
+
attr_accessor :rotation_period_exponent
|
458
507
|
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
|
508
|
+
# The service's public key used for the Elliptic curve Diffie-Hellman
|
509
|
+
# key exchange. When this field is populated, `beacon_ecdh_public_key`
|
510
|
+
# must also be populated, and `beacon_identity_key` must not be.
|
511
|
+
# Corresponds to the JSON property `serviceEcdhPublicKey`
|
512
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
513
|
+
# @return [String]
|
514
|
+
attr_accessor :service_ecdh_public_key
|
463
515
|
|
464
516
|
def initialize(**args)
|
465
517
|
update!(**args)
|
@@ -467,9 +519,12 @@ module Google
|
|
467
519
|
|
468
520
|
# Update properties of this object
|
469
521
|
def update!(**args)
|
470
|
-
@
|
471
|
-
@
|
472
|
-
@
|
522
|
+
@beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
|
523
|
+
@beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
|
524
|
+
@initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
|
525
|
+
@initial_eid = args[:initial_eid] if args.key?(:initial_eid)
|
526
|
+
@rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
|
527
|
+
@service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
|
473
528
|
end
|
474
529
|
end
|
475
530
|
|
@@ -512,14 +567,26 @@ module Google
|
|
512
567
|
end
|
513
568
|
end
|
514
569
|
|
515
|
-
#
|
516
|
-
|
570
|
+
# Request for beacon and attachment information about beacons that
|
571
|
+
# a mobile client has encountered "in the wild".
|
572
|
+
class GetInfoForObservedBeaconsRequest
|
517
573
|
include Google::Apis::Core::Hashable
|
518
574
|
|
519
|
-
#
|
520
|
-
#
|
521
|
-
#
|
522
|
-
|
575
|
+
# Specifies what kind of attachments to include in the response.
|
576
|
+
# When given, the response will include only attachments of the given types.
|
577
|
+
# When empty, no attachments will be returned. Must be in the format
|
578
|
+
# <var>namespace/type</var>. Accepts `*` to specify all types in
|
579
|
+
# all namespaces owned by the client.
|
580
|
+
# Optional.
|
581
|
+
# Corresponds to the JSON property `namespacedTypes`
|
582
|
+
# @return [Array<String>]
|
583
|
+
attr_accessor :namespaced_types
|
584
|
+
|
585
|
+
# The beacons that the client has encountered.
|
586
|
+
# At least one must be given.
|
587
|
+
# Corresponds to the JSON property `observations`
|
588
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::Observation>]
|
589
|
+
attr_accessor :observations
|
523
590
|
|
524
591
|
def initialize(**args)
|
525
592
|
update!(**args)
|
@@ -527,31 +594,41 @@ module Google
|
|
527
594
|
|
528
595
|
# Update properties of this object
|
529
596
|
def update!(**args)
|
530
|
-
@
|
597
|
+
@namespaced_types = args[:namespaced_types] if args.key?(:namespaced_types)
|
598
|
+
@observations = args[:observations] if args.key?(:observations)
|
531
599
|
end
|
532
600
|
end
|
533
601
|
|
534
|
-
#
|
535
|
-
|
602
|
+
# Information about the requested beacons, optionally including attachment
|
603
|
+
# data.
|
604
|
+
class GetInfoForObservedBeaconsResponse
|
536
605
|
include Google::Apis::Core::Hashable
|
537
606
|
|
538
|
-
#
|
539
|
-
#
|
540
|
-
#
|
541
|
-
|
607
|
+
# Public information about beacons.
|
608
|
+
# May be empty if the request matched no beacons.
|
609
|
+
# Corresponds to the JSON property `beacons`
|
610
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
|
611
|
+
attr_accessor :beacons
|
542
612
|
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
attr_accessor :advertised_id
|
613
|
+
def initialize(**args)
|
614
|
+
update!(**args)
|
615
|
+
end
|
547
616
|
|
548
|
-
#
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
617
|
+
# Update properties of this object
|
618
|
+
def update!(**args)
|
619
|
+
@beacons = args[:beacons] if args.key?(:beacons)
|
620
|
+
end
|
621
|
+
end
|
622
|
+
|
623
|
+
# Indoor level, a human-readable string as returned by Google Maps APIs,
|
624
|
+
# useful to indicate which floor of a building a beacon is located on.
|
625
|
+
class IndoorLevel
|
626
|
+
include Google::Apis::Core::Hashable
|
627
|
+
|
628
|
+
# The name of this level.
|
629
|
+
# Corresponds to the JSON property `name`
|
553
630
|
# @return [String]
|
554
|
-
attr_accessor :
|
631
|
+
attr_accessor :name
|
555
632
|
|
556
633
|
def initialize(**args)
|
557
634
|
update!(**args)
|
@@ -559,26 +636,57 @@ module Google
|
|
559
636
|
|
560
637
|
# Update properties of this object
|
561
638
|
def update!(**args)
|
562
|
-
@
|
563
|
-
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
564
|
-
@telemetry = args[:telemetry] if args.key?(:telemetry)
|
639
|
+
@name = args[:name] if args.key?(:name)
|
565
640
|
end
|
566
641
|
end
|
567
642
|
|
568
|
-
#
|
569
|
-
|
643
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
644
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
645
|
+
# specified otherwise, this must conform to the
|
646
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
647
|
+
# standard</a>. Values must be within normalized ranges.
|
648
|
+
# Example of normalization code in Python:
|
649
|
+
# def NormalizeLongitude(longitude):
|
650
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
651
|
+
# q, r = divmod(longitude, 360.0)
|
652
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
653
|
+
# return r - 360.0
|
654
|
+
# return r
|
655
|
+
# def NormalizeLatLng(latitude, longitude):
|
656
|
+
# """Wraps decimal degrees latitude and longitude to
|
657
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
658
|
+
# r = latitude % 360.0
|
659
|
+
# if r <= 90.0:
|
660
|
+
# return r, NormalizeLongitude(longitude)
|
661
|
+
# elif r >= 270.0:
|
662
|
+
# return r - 360, NormalizeLongitude(longitude)
|
663
|
+
# else:
|
664
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
665
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
666
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
667
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
668
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
669
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
670
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
671
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
672
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
673
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
674
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
675
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
676
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
677
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
678
|
+
class LatLng
|
570
679
|
include Google::Apis::Core::Hashable
|
571
680
|
|
572
|
-
# The
|
573
|
-
# Corresponds to the JSON property `
|
574
|
-
# @return [
|
575
|
-
attr_accessor :
|
681
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
682
|
+
# Corresponds to the JSON property `latitude`
|
683
|
+
# @return [Float]
|
684
|
+
attr_accessor :latitude
|
576
685
|
|
577
|
-
#
|
578
|
-
#
|
579
|
-
#
|
580
|
-
|
581
|
-
attr_accessor :next_page_token
|
686
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
687
|
+
# Corresponds to the JSON property `longitude`
|
688
|
+
# @return [Float]
|
689
|
+
attr_accessor :longitude
|
582
690
|
|
583
691
|
def initialize(**args)
|
584
692
|
update!(**args)
|
@@ -586,22 +694,51 @@ module Google
|
|
586
694
|
|
587
695
|
# Update properties of this object
|
588
696
|
def update!(**args)
|
589
|
-
@
|
590
|
-
@
|
697
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
698
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
591
699
|
end
|
592
700
|
end
|
593
701
|
|
594
|
-
#
|
595
|
-
|
596
|
-
class GetInfoForObservedBeaconsResponse
|
702
|
+
# Response to `ListBeaconAttachments` that contains the requested attachments.
|
703
|
+
class ListBeaconAttachmentsResponse
|
597
704
|
include Google::Apis::Core::Hashable
|
598
705
|
|
599
|
-
#
|
600
|
-
#
|
706
|
+
# The attachments that corresponded to the request params.
|
707
|
+
# Corresponds to the JSON property `attachments`
|
708
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconAttachment>]
|
709
|
+
attr_accessor :attachments
|
710
|
+
|
711
|
+
def initialize(**args)
|
712
|
+
update!(**args)
|
713
|
+
end
|
714
|
+
|
715
|
+
# Update properties of this object
|
716
|
+
def update!(**args)
|
717
|
+
@attachments = args[:attachments] if args.key?(:attachments)
|
718
|
+
end
|
719
|
+
end
|
720
|
+
|
721
|
+
# Response that contains list beacon results and pagination help.
|
722
|
+
class ListBeaconsResponse
|
723
|
+
include Google::Apis::Core::Hashable
|
724
|
+
|
725
|
+
# The beacons that matched the search criteria.
|
601
726
|
# Corresponds to the JSON property `beacons`
|
602
|
-
# @return [Array<Google::Apis::ProximitybeaconV1beta1::
|
727
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
|
603
728
|
attr_accessor :beacons
|
604
729
|
|
730
|
+
# An opaque pagination token that the client may provide in their next
|
731
|
+
# request to retrieve the next page of results.
|
732
|
+
# Corresponds to the JSON property `nextPageToken`
|
733
|
+
# @return [String]
|
734
|
+
attr_accessor :next_page_token
|
735
|
+
|
736
|
+
# Estimate of the total number of beacons matched by the query. Higher
|
737
|
+
# values may be less accurate.
|
738
|
+
# Corresponds to the JSON property `totalCount`
|
739
|
+
# @return [Fixnum]
|
740
|
+
attr_accessor :total_count
|
741
|
+
|
605
742
|
def initialize(**args)
|
606
743
|
update!(**args)
|
607
744
|
end
|
@@ -609,144 +746,25 @@ module Google
|
|
609
746
|
# Update properties of this object
|
610
747
|
def update!(**args)
|
611
748
|
@beacons = args[:beacons] if args.key?(:beacons)
|
749
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
750
|
+
@total_count = args[:total_count] if args.key?(:total_count)
|
612
751
|
end
|
613
752
|
end
|
614
753
|
|
615
|
-
#
|
616
|
-
class
|
754
|
+
# Response that contains the requested diagnostics.
|
755
|
+
class ListDiagnosticsResponse
|
617
756
|
include Google::Apis::Core::Hashable
|
618
757
|
|
619
|
-
#
|
620
|
-
#
|
621
|
-
#
|
622
|
-
|
623
|
-
attr_accessor :status
|
624
|
-
|
625
|
-
# Indoor level, a human-readable string as returned by Google Maps APIs,
|
626
|
-
# useful to indicate which floor of a building a beacon is located on.
|
627
|
-
# Corresponds to the JSON property `indoorLevel`
|
628
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
|
629
|
-
attr_accessor :indoor_level
|
630
|
-
|
631
|
-
# Resource name of this beacon. A beacon name has the format
|
632
|
-
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
633
|
-
# the beacon and N is a code for the beacon's type. Possible values are
|
634
|
-
# `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
|
635
|
-
# This field must be left empty when registering. After reading a beacon,
|
636
|
-
# clients can use the name for future operations.
|
637
|
-
# Corresponds to the JSON property `beaconName`
|
638
|
-
# @return [String]
|
639
|
-
attr_accessor :beacon_name
|
640
|
-
|
641
|
-
# Expected location stability. This is set when the beacon is registered or
|
642
|
-
# updated, not automatically detected in any way.
|
643
|
-
# Optional.
|
644
|
-
# Corresponds to the JSON property `expectedStability`
|
645
|
-
# @return [String]
|
646
|
-
attr_accessor :expected_stability
|
647
|
-
|
648
|
-
# Defines a unique identifier of a beacon as broadcast by the device.
|
649
|
-
# Corresponds to the JSON property `advertisedId`
|
650
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
651
|
-
attr_accessor :advertised_id
|
652
|
-
|
653
|
-
# Some beacons may require a user to provide an authorization key before
|
654
|
-
# changing any of its configuration (e.g. broadcast frames, transmit power).
|
655
|
-
# This field provides a place to store and control access to that key.
|
656
|
-
# This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
|
657
|
-
# from users with write access to the given beacon. That is to say: If the
|
658
|
-
# user is authorized to write the beacon's confidential data in the service,
|
659
|
-
# the service considers them authorized to configure the beacon. Note
|
660
|
-
# that this key grants nothing on the service, only on the beacon itself.
|
661
|
-
# Corresponds to the JSON property `provisioningKey`
|
662
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
663
|
-
# @return [String]
|
664
|
-
attr_accessor :provisioning_key
|
665
|
-
|
666
|
-
# Write-only registration parameters for beacons using Eddystone-EID format.
|
667
|
-
# Two ways of securely registering an Eddystone-EID beacon with the service
|
668
|
-
# are supported:
|
669
|
-
# 1. Perform an ECDH key exchange via this API, including a previous call
|
670
|
-
# to `GET /v1beta1/eidparams`. In this case the fields
|
671
|
-
# `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
|
672
|
-
# populated and `beacon_identity_key` should not be populated. This
|
673
|
-
# method ensures that only the two parties in the ECDH key exchange can
|
674
|
-
# compute the identity key, which becomes a secret between them.
|
675
|
-
# 2. Derive or obtain the beacon's identity key via other secure means
|
676
|
-
# (perhaps an ECDH key exchange between the beacon and a mobile device
|
677
|
-
# or any other secure method), and then submit the resulting identity key
|
678
|
-
# to the service. In this case `beacon_identity_key` field should be
|
679
|
-
# populated, and neither of `beacon_ecdh_public_key` nor
|
680
|
-
# `service_ecdh_public_key` fields should be. The security of this method
|
681
|
-
# depends on how securely the parties involved (in particular the
|
682
|
-
# bluetooth client) handle the identity key, and obviously on how
|
683
|
-
# securely the identity key was generated.
|
684
|
-
# See [the Eddystone specification](https://github.com/google/eddystone/tree/
|
685
|
-
# master/eddystone-eid) at GitHub.
|
686
|
-
# Corresponds to the JSON property `ephemeralIdRegistration`
|
687
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
|
688
|
-
attr_accessor :ephemeral_id_registration
|
689
|
-
|
690
|
-
# An object representing a latitude/longitude pair. This is expressed as a pair
|
691
|
-
# of doubles representing degrees latitude and degrees longitude. Unless
|
692
|
-
# specified otherwise, this must conform to the
|
693
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
694
|
-
# standard</a>. Values must be within normalized ranges.
|
695
|
-
# Example of normalization code in Python:
|
696
|
-
# def NormalizeLongitude(longitude):
|
697
|
-
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
698
|
-
# q, r = divmod(longitude, 360.0)
|
699
|
-
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
700
|
-
# return r - 360.0
|
701
|
-
# return r
|
702
|
-
# def NormalizeLatLng(latitude, longitude):
|
703
|
-
# """Wraps decimal degrees latitude and longitude to
|
704
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
705
|
-
# r = latitude % 360.0
|
706
|
-
# if r <= 90.0:
|
707
|
-
# return r, NormalizeLongitude(longitude)
|
708
|
-
# elif r >= 270.0:
|
709
|
-
# return r - 360, NormalizeLongitude(longitude)
|
710
|
-
# else:
|
711
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
712
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
713
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
714
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
715
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
716
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
717
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
718
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
719
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
720
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
721
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
722
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
723
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
724
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
725
|
-
# Corresponds to the JSON property `latLng`
|
726
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
|
727
|
-
attr_accessor :lat_lng
|
728
|
-
|
729
|
-
# The [Google Places API](/places/place-id) Place ID of the place where
|
730
|
-
# the beacon is deployed. This is given when the beacon is registered or
|
731
|
-
# updated, not automatically detected in any way.
|
732
|
-
# Optional.
|
733
|
-
# Corresponds to the JSON property `placeId`
|
734
|
-
# @return [String]
|
735
|
-
attr_accessor :place_id
|
758
|
+
# The diagnostics matching the given request.
|
759
|
+
# Corresponds to the JSON property `diagnostics`
|
760
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
|
761
|
+
attr_accessor :diagnostics
|
736
762
|
|
737
|
-
#
|
738
|
-
#
|
739
|
-
#
|
740
|
-
# Corresponds to the JSON property `description`
|
763
|
+
# Token that can be used for pagination. Returned only if the
|
764
|
+
# request matches more beacons than can be returned in this response.
|
765
|
+
# Corresponds to the JSON property `nextPageToken`
|
741
766
|
# @return [String]
|
742
|
-
attr_accessor :
|
743
|
-
|
744
|
-
# Properties of the beacon device, for example battery type or firmware
|
745
|
-
# version.
|
746
|
-
# Optional.
|
747
|
-
# Corresponds to the JSON property `properties`
|
748
|
-
# @return [Hash<String,String>]
|
749
|
-
attr_accessor :properties
|
767
|
+
attr_accessor :next_page_token
|
750
768
|
|
751
769
|
def initialize(**args)
|
752
770
|
update!(**args)
|
@@ -754,40 +772,19 @@ module Google
|
|
754
772
|
|
755
773
|
# Update properties of this object
|
756
774
|
def update!(**args)
|
757
|
-
@
|
758
|
-
@
|
759
|
-
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
760
|
-
@expected_stability = args[:expected_stability] if args.key?(:expected_stability)
|
761
|
-
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
762
|
-
@provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
|
763
|
-
@ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
|
764
|
-
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
765
|
-
@place_id = args[:place_id] if args.key?(:place_id)
|
766
|
-
@description = args[:description] if args.key?(:description)
|
767
|
-
@properties = args[:properties] if args.key?(:properties)
|
775
|
+
@diagnostics = args[:diagnostics] if args.key?(:diagnostics)
|
776
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
768
777
|
end
|
769
778
|
end
|
770
779
|
|
771
|
-
#
|
772
|
-
class
|
780
|
+
# Response to ListNamespacesRequest that contains all the project's namespaces.
|
781
|
+
class ListNamespacesResponse
|
773
782
|
include Google::Apis::Core::Hashable
|
774
783
|
|
775
|
-
# The
|
776
|
-
#
|
777
|
-
#
|
778
|
-
|
779
|
-
# hex) representation thereof.
|
780
|
-
# Required.
|
781
|
-
# Corresponds to the JSON property `id`
|
782
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
783
|
-
# @return [String]
|
784
|
-
attr_accessor :id
|
785
|
-
|
786
|
-
# Specifies the identifier type.
|
787
|
-
# Required.
|
788
|
-
# Corresponds to the JSON property `type`
|
789
|
-
# @return [String]
|
790
|
-
attr_accessor :type
|
784
|
+
# The attachments that corresponded to the request params.
|
785
|
+
# Corresponds to the JSON property `namespaces`
|
786
|
+
# @return [Array<Google::Apis::ProximitybeaconV1beta1::Namespace>]
|
787
|
+
attr_accessor :namespaces
|
791
788
|
|
792
789
|
def initialize(**args)
|
793
790
|
update!(**args)
|
@@ -795,37 +792,27 @@ module Google
|
|
795
792
|
|
796
793
|
# Update properties of this object
|
797
794
|
def update!(**args)
|
798
|
-
@
|
799
|
-
@type = args[:type] if args.key?(:type)
|
795
|
+
@namespaces = args[:namespaces] if args.key?(:namespaces)
|
800
796
|
end
|
801
797
|
end
|
802
798
|
|
803
|
-
#
|
804
|
-
#
|
805
|
-
#
|
806
|
-
|
807
|
-
# expiration date. The year may be 0 to represent a month and day independent
|
808
|
-
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
809
|
-
# and `google.protobuf.Timestamp`.
|
810
|
-
class Date
|
799
|
+
# An attachment namespace defines read and write access for all the attachments
|
800
|
+
# created under it. Each namespace is globally unique, and owned by one
|
801
|
+
# project which is the only project that can create attachments under it.
|
802
|
+
class Namespace
|
811
803
|
include Google::Apis::Core::Hashable
|
812
804
|
|
813
|
-
#
|
814
|
-
#
|
815
|
-
# Corresponds to the JSON property `
|
816
|
-
# @return [
|
817
|
-
attr_accessor :
|
818
|
-
|
819
|
-
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
820
|
-
# a year.
|
821
|
-
# Corresponds to the JSON property `year`
|
822
|
-
# @return [Fixnum]
|
823
|
-
attr_accessor :year
|
805
|
+
# Resource name of this namespace. Namespaces names have the format:
|
806
|
+
# <code>namespaces/<var>namespace</var></code>.
|
807
|
+
# Corresponds to the JSON property `namespaceName`
|
808
|
+
# @return [String]
|
809
|
+
attr_accessor :namespace_name
|
824
810
|
|
825
|
-
#
|
826
|
-
#
|
827
|
-
#
|
828
|
-
|
811
|
+
# Specifies what clients may receive attachments under this namespace
|
812
|
+
# via `beaconinfo.getforobserved`.
|
813
|
+
# Corresponds to the JSON property `servingVisibility`
|
814
|
+
# @return [String]
|
815
|
+
attr_accessor :serving_visibility
|
829
816
|
|
830
817
|
def initialize(**args)
|
831
818
|
update!(**args)
|
@@ -833,21 +820,32 @@ module Google
|
|
833
820
|
|
834
821
|
# Update properties of this object
|
835
822
|
def update!(**args)
|
836
|
-
@
|
837
|
-
@
|
838
|
-
@month = args[:month] if args.key?(:month)
|
823
|
+
@namespace_name = args[:namespace_name] if args.key?(:namespace_name)
|
824
|
+
@serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
|
839
825
|
end
|
840
826
|
end
|
841
827
|
|
842
|
-
#
|
843
|
-
|
844
|
-
class IndoorLevel
|
828
|
+
# Represents one beacon observed once.
|
829
|
+
class Observation
|
845
830
|
include Google::Apis::Core::Hashable
|
846
831
|
|
847
|
-
#
|
848
|
-
# Corresponds to the JSON property `
|
832
|
+
# Defines a unique identifier of a beacon as broadcast by the device.
|
833
|
+
# Corresponds to the JSON property `advertisedId`
|
834
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
|
835
|
+
attr_accessor :advertised_id
|
836
|
+
|
837
|
+
# The array of telemetry bytes received from the beacon. The server is
|
838
|
+
# responsible for parsing it. This field may frequently be empty, as
|
839
|
+
# with a beacon that transmits telemetry only occasionally.
|
840
|
+
# Corresponds to the JSON property `telemetry`
|
841
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
849
842
|
# @return [String]
|
850
|
-
attr_accessor :
|
843
|
+
attr_accessor :telemetry
|
844
|
+
|
845
|
+
# Time when the beacon was observed.
|
846
|
+
# Corresponds to the JSON property `timestampMs`
|
847
|
+
# @return [String]
|
848
|
+
attr_accessor :timestamp_ms
|
851
849
|
|
852
850
|
def initialize(**args)
|
853
851
|
update!(**args)
|
@@ -855,7 +853,9 @@ module Google
|
|
855
853
|
|
856
854
|
# Update properties of this object
|
857
855
|
def update!(**args)
|
858
|
-
@
|
856
|
+
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
857
|
+
@telemetry = args[:telemetry] if args.key?(:telemetry)
|
858
|
+
@timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
|
859
859
|
end
|
860
860
|
end
|
861
861
|
end
|