google-api-client 0.9.8 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.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 +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- 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 +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- 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 +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- 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_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
|
@@ -22,250 +22,255 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module ProximitybeaconV1beta1
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class ListBeaconsResponse
|
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
27
|
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class Diagnostics
|
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
33
|
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class GetInfoForObservedBeaconsRequest
|
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
39
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Empty
|
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
45
|
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class BeaconAttachment
|
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
51
|
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class EphemeralIdRegistration
|
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
57
|
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class LatLng
|
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
63
|
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
class
|
|
67
|
+
class ListBeaconAttachmentsResponse
|
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
69
|
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
-
class
|
|
73
|
+
class Namespace
|
|
74
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
75
|
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class AttachmentInfo
|
|
80
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
81
|
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
class
|
|
85
|
+
class BeaconInfo
|
|
86
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
87
|
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
class
|
|
91
|
+
class EphemeralIdRegistrationParams
|
|
92
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
93
|
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
-
class
|
|
97
|
+
class DeleteAttachmentsResponse
|
|
98
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
99
|
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
class
|
|
103
|
+
class Observation
|
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
105
|
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
class
|
|
109
|
+
class ListDiagnosticsResponse
|
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
111
|
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
class
|
|
115
|
+
class GetInfoForObservedBeaconsResponse
|
|
116
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
117
|
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
class
|
|
121
|
+
class Beacon
|
|
122
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
123
|
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
-
class
|
|
127
|
+
class AdvertisedId
|
|
128
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
129
|
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
class
|
|
133
|
+
class Date
|
|
134
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
135
|
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
class
|
|
139
|
+
class IndoorLevel
|
|
140
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
141
141
|
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
class
|
|
145
|
+
class ListNamespacesResponse
|
|
146
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
147
|
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
-
class
|
|
151
|
+
class ListBeaconsResponse
|
|
152
152
|
# @private
|
|
153
153
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
154
|
-
property :
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
property :status, as: 'status'
|
|
158
|
-
property :place_id, as: 'placeId'
|
|
159
|
-
property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
|
|
154
|
+
property :next_page_token, as: 'nextPageToken'
|
|
155
|
+
collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
|
160
156
|
|
|
161
|
-
property :
|
|
157
|
+
property :total_count, as: 'totalCount'
|
|
158
|
+
end
|
|
159
|
+
end
|
|
162
160
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
class Diagnostics
|
|
162
|
+
# @private
|
|
163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
164
|
+
collection :alerts, as: 'alerts'
|
|
165
|
+
property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
|
|
167
166
|
|
|
168
|
-
property :
|
|
167
|
+
property :beacon_name, as: 'beaconName'
|
|
169
168
|
end
|
|
170
169
|
end
|
|
171
170
|
|
|
172
|
-
class
|
|
171
|
+
class GetInfoForObservedBeaconsRequest
|
|
173
172
|
# @private
|
|
174
173
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
collection :observations, as: 'observations', class: Google::Apis::ProximitybeaconV1beta1::Observation, decorator: Google::Apis::ProximitybeaconV1beta1::Observation::Representation
|
|
175
|
+
|
|
176
|
+
collection :namespaced_types, as: 'namespacedTypes'
|
|
177
177
|
end
|
|
178
178
|
end
|
|
179
179
|
|
|
180
|
-
class
|
|
180
|
+
class Empty
|
|
181
181
|
# @private
|
|
182
182
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
183
|
-
property :latitude, as: 'latitude'
|
|
184
|
-
property :longitude, as: 'longitude'
|
|
185
183
|
end
|
|
186
184
|
end
|
|
187
185
|
|
|
188
|
-
class
|
|
186
|
+
class BeaconAttachment
|
|
189
187
|
# @private
|
|
190
188
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
191
|
-
property :
|
|
189
|
+
property :attachment_name, as: 'attachmentName'
|
|
190
|
+
property :namespaced_type, as: 'namespacedType'
|
|
191
|
+
property :data, :base64 => true, as: 'data'
|
|
192
|
+
property :creation_time_ms, as: 'creationTimeMs'
|
|
192
193
|
end
|
|
193
194
|
end
|
|
194
195
|
|
|
195
196
|
class EphemeralIdRegistration
|
|
196
197
|
# @private
|
|
197
198
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
199
|
+
property :initial_clock_value, as: 'initialClockValue'
|
|
198
200
|
property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
|
|
201
|
+
property :rotation_period_exponent, as: 'rotationPeriodExponent'
|
|
199
202
|
property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
|
|
200
203
|
property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey'
|
|
201
|
-
property :rotation_period_exponent, as: 'rotationPeriodExponent'
|
|
202
|
-
property :initial_clock_value, as: 'initialClockValue'
|
|
203
204
|
property :initial_eid, :base64 => true, as: 'initialEid'
|
|
204
205
|
end
|
|
205
206
|
end
|
|
206
207
|
|
|
207
|
-
class
|
|
208
|
+
class LatLng
|
|
208
209
|
# @private
|
|
209
210
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
211
|
+
property :latitude, as: 'latitude'
|
|
212
|
+
property :longitude, as: 'longitude'
|
|
210
213
|
end
|
|
211
214
|
end
|
|
212
215
|
|
|
213
|
-
class
|
|
216
|
+
class ListBeaconAttachmentsResponse
|
|
214
217
|
# @private
|
|
215
218
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
216
|
-
collection :
|
|
219
|
+
collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
|
|
217
220
|
|
|
218
|
-
property :next_page_token, as: 'nextPageToken'
|
|
219
|
-
property :total_count, as: 'totalCount'
|
|
220
221
|
end
|
|
221
222
|
end
|
|
222
223
|
|
|
223
|
-
class
|
|
224
|
+
class Namespace
|
|
224
225
|
# @private
|
|
225
226
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
226
|
-
property :
|
|
227
|
-
property :
|
|
228
|
-
property :data, :base64 => true, as: 'data'
|
|
227
|
+
property :namespace_name, as: 'namespaceName'
|
|
228
|
+
property :serving_visibility, as: 'servingVisibility'
|
|
229
229
|
end
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
class
|
|
232
|
+
class AttachmentInfo
|
|
233
233
|
# @private
|
|
234
234
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
property :namespaced_type, as: 'namespacedType'
|
|
236
|
+
property :data, :base64 => true, as: 'data'
|
|
237
237
|
end
|
|
238
238
|
end
|
|
239
239
|
|
|
240
|
-
class
|
|
240
|
+
class BeaconInfo
|
|
241
241
|
# @private
|
|
242
242
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
243
|
-
property :
|
|
243
|
+
property :beacon_name, as: 'beaconName'
|
|
244
|
+
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
|
245
|
+
|
|
246
|
+
collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
|
|
247
|
+
|
|
244
248
|
end
|
|
245
249
|
end
|
|
246
250
|
|
|
247
|
-
class
|
|
251
|
+
class EphemeralIdRegistrationParams
|
|
248
252
|
# @private
|
|
249
253
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
250
|
-
|
|
251
|
-
|
|
254
|
+
property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
|
|
255
|
+
property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
|
|
256
|
+
property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
|
|
252
257
|
end
|
|
253
258
|
end
|
|
254
259
|
|
|
255
|
-
class
|
|
260
|
+
class DeleteAttachmentsResponse
|
|
256
261
|
# @private
|
|
257
262
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
258
|
-
property :
|
|
259
|
-
property :serving_visibility, as: 'servingVisibility'
|
|
263
|
+
property :num_deleted, as: 'numDeleted'
|
|
260
264
|
end
|
|
261
265
|
end
|
|
262
266
|
|
|
263
|
-
class
|
|
267
|
+
class Observation
|
|
264
268
|
# @private
|
|
265
269
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
266
|
-
property :
|
|
267
|
-
property :
|
|
268
|
-
property :
|
|
270
|
+
property :telemetry, :base64 => true, as: 'telemetry'
|
|
271
|
+
property :timestamp_ms, as: 'timestampMs'
|
|
272
|
+
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
|
273
|
+
|
|
269
274
|
end
|
|
270
275
|
end
|
|
271
276
|
|
|
@@ -278,68 +283,64 @@ module Google
|
|
|
278
283
|
end
|
|
279
284
|
end
|
|
280
285
|
|
|
281
|
-
class
|
|
286
|
+
class GetInfoForObservedBeaconsResponse
|
|
282
287
|
# @private
|
|
283
288
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
284
|
-
|
|
285
|
-
property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
|
|
289
|
+
collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
|
|
286
290
|
|
|
287
|
-
collection :alerts, as: 'alerts'
|
|
288
291
|
end
|
|
289
292
|
end
|
|
290
293
|
|
|
291
|
-
class
|
|
294
|
+
class Beacon
|
|
292
295
|
# @private
|
|
293
296
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
294
|
-
property :
|
|
295
|
-
property :month, as: 'month'
|
|
296
|
-
property :day, as: 'day'
|
|
297
|
-
end
|
|
298
|
-
end
|
|
297
|
+
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
|
299
298
|
|
|
300
|
-
|
|
301
|
-
# @private
|
|
302
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
303
|
-
collection :observations, as: 'observations', class: Google::Apis::ProximitybeaconV1beta1::Observation, decorator: Google::Apis::ProximitybeaconV1beta1::Observation::Representation
|
|
299
|
+
property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
|
|
304
300
|
|
|
305
|
-
|
|
301
|
+
property :provisioning_key, :base64 => true, as: 'provisioningKey'
|
|
302
|
+
property :description, as: 'description'
|
|
303
|
+
property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
|
|
304
|
+
|
|
305
|
+
property :place_id, as: 'placeId'
|
|
306
|
+
hash :properties, as: 'properties'
|
|
307
|
+
property :status, as: 'status'
|
|
308
|
+
property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
|
|
309
|
+
|
|
310
|
+
property :beacon_name, as: 'beaconName'
|
|
311
|
+
property :expected_stability, as: 'expectedStability'
|
|
306
312
|
end
|
|
307
313
|
end
|
|
308
314
|
|
|
309
|
-
class
|
|
315
|
+
class AdvertisedId
|
|
310
316
|
# @private
|
|
311
317
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
312
|
-
property :
|
|
313
|
-
|
|
314
|
-
property :telemetry, :base64 => true, as: 'telemetry'
|
|
315
|
-
property :timestamp_ms, as: 'timestampMs'
|
|
318
|
+
property :type, as: 'type'
|
|
319
|
+
property :id, :base64 => true, as: 'id'
|
|
316
320
|
end
|
|
317
321
|
end
|
|
318
322
|
|
|
319
|
-
class
|
|
323
|
+
class Date
|
|
320
324
|
# @private
|
|
321
325
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
322
|
-
|
|
323
|
-
|
|
326
|
+
property :year, as: 'year'
|
|
327
|
+
property :day, as: 'day'
|
|
328
|
+
property :month, as: 'month'
|
|
324
329
|
end
|
|
325
330
|
end
|
|
326
331
|
|
|
327
|
-
class
|
|
332
|
+
class IndoorLevel
|
|
328
333
|
# @private
|
|
329
334
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
330
|
-
property :
|
|
331
|
-
|
|
332
|
-
property :beacon_name, as: 'beaconName'
|
|
333
|
-
collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
|
|
334
|
-
|
|
335
|
+
property :name, as: 'name'
|
|
335
336
|
end
|
|
336
337
|
end
|
|
337
338
|
|
|
338
|
-
class
|
|
339
|
+
class ListNamespacesResponse
|
|
339
340
|
# @private
|
|
340
341
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
341
|
-
|
|
342
|
-
|
|
342
|
+
collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
|
343
|
+
|
|
343
344
|
end
|
|
344
345
|
end
|
|
345
346
|
end
|
|
@@ -46,15 +46,12 @@ module Google
|
|
|
46
46
|
super('https://proximitybeacon.googleapis.com/', '')
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
# the
|
|
54
|
-
# @param [Google::Apis::ProximitybeaconV1beta1::
|
|
55
|
-
# @param [String] project_id
|
|
56
|
-
# The project id of the project the beacon will be registered to. If the project
|
|
57
|
-
# id is not specified then the project making the request is used. Optional.
|
|
49
|
+
# Given one or more beacon observations, returns any beacon information
|
|
50
|
+
# and attachments accessible to your application. Authorize by using the
|
|
51
|
+
# [API key](https://developers.google.com/beacons/proximity/how-tos/authorizing#
|
|
52
|
+
# APIKey)
|
|
53
|
+
# for the application.
|
|
54
|
+
# @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
|
|
58
55
|
# @param [String] fields
|
|
59
56
|
# Selector specifying which fields to include in a partial response.
|
|
60
57
|
# @param [String] quota_user
|
|
@@ -64,43 +61,35 @@ module Google
|
|
|
64
61
|
# Request-specific options
|
|
65
62
|
#
|
|
66
63
|
# @yield [result, err] Result & error if block supplied
|
|
67
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
64
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object
|
|
68
65
|
# @yieldparam err [StandardError] error object if request failed
|
|
69
66
|
#
|
|
70
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
67
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse]
|
|
71
68
|
#
|
|
72
69
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
73
70
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
74
71
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
75
|
-
def
|
|
76
|
-
command = make_simple_command(:post, 'v1beta1/
|
|
77
|
-
command.request_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
78
|
-
command.request_object =
|
|
79
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
80
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
|
81
|
-
command.query['projectId'] = project_id unless project_id.nil?
|
|
72
|
+
def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
73
|
+
command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options)
|
|
74
|
+
command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation
|
|
75
|
+
command.request_object = get_info_for_observed_beacons_request_object
|
|
76
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation
|
|
77
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse
|
|
82
78
|
command.query['fields'] = fields unless fields.nil?
|
|
83
79
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
84
80
|
execute_or_queue_command(command, &block)
|
|
85
81
|
end
|
|
86
82
|
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
# using an [OAuth access token](https://developers.google.com/
|
|
91
|
-
# OAuth2)
|
|
92
|
-
#
|
|
93
|
-
#
|
|
94
|
-
# Beacon that should be decommissioned. A beacon name has the format "beacons/N!
|
|
95
|
-
# beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is
|
|
96
|
-
# a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4`
|
|
97
|
-
# for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID
|
|
98
|
-
# beacons, you may use either the current EID of the beacon's "stable" UID.
|
|
99
|
-
# Required.
|
|
83
|
+
# Lists all attachment namespaces owned by your Google Developers Console
|
|
84
|
+
# project. Attachment data associated with a beacon must include a
|
|
85
|
+
# namespaced type, and the namespace must be owned by your project.
|
|
86
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
87
|
+
# identity/protocols/OAuth2)
|
|
88
|
+
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
|
89
|
+
# permissions in the Google Developers Console project.
|
|
100
90
|
# @param [String] project_id
|
|
101
|
-
# The project id
|
|
102
|
-
#
|
|
103
|
-
# match the project that owns the beacon. Optional.
|
|
91
|
+
# The project id to list namespaces under.
|
|
92
|
+
# Optional.
|
|
104
93
|
# @param [String] fields
|
|
105
94
|
# Selector specifying which fields to include in a partial response.
|
|
106
95
|
# @param [String] quota_user
|
|
@@ -110,45 +99,35 @@ module Google
|
|
|
110
99
|
# Request-specific options
|
|
111
100
|
#
|
|
112
101
|
# @yield [result, err] Result & error if block supplied
|
|
113
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
102
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
|
|
114
103
|
# @yieldparam err [StandardError] error object if request failed
|
|
115
104
|
#
|
|
116
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
105
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
|
|
117
106
|
#
|
|
118
107
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
119
108
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
120
109
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
121
|
-
def
|
|
122
|
-
command = make_simple_command(:
|
|
123
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
124
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
|
125
|
-
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
110
|
+
def list_namespaces(project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
111
|
+
command = make_simple_command(:get, 'v1beta1/namespaces', options)
|
|
112
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
|
|
113
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
|
|
126
114
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
127
115
|
command.query['fields'] = fields unless fields.nil?
|
|
128
116
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
129
117
|
execute_or_queue_command(command, &block)
|
|
130
118
|
end
|
|
131
119
|
|
|
132
|
-
#
|
|
133
|
-
#
|
|
134
|
-
#
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
# Beacon` object will contain the beacon's stable Eddystone-UID. Clients not
|
|
139
|
-
# authorized to resolve the beacon's ephemeral Eddystone-EID broadcast will
|
|
140
|
-
# receive an error.
|
|
141
|
-
# @param [String] beacon_name
|
|
142
|
-
# Resource name of this beacon. A beacon name has the format "beacons/N!beaconId"
|
|
143
|
-
# where the beaconId is the base16 ID broadcast by the beacon and N is a code
|
|
144
|
-
# for the beacon's type. Possible values are `3` for Eddystone-UID, `4` for
|
|
145
|
-
# Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID
|
|
146
|
-
# beacons, you may use either the current EID or the beacon's "stable" UID.
|
|
147
|
-
# Required.
|
|
120
|
+
# Updates the information about the specified namespace. Only the namespace
|
|
121
|
+
# visibility can be updated.
|
|
122
|
+
# @param [String] namespace_name
|
|
123
|
+
# Resource name of this namespace. Namespaces names have the format:
|
|
124
|
+
# <code>namespaces/<var>namespace</var></code>.
|
|
125
|
+
# @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
|
|
148
126
|
# @param [String] project_id
|
|
149
|
-
# The project id of the
|
|
150
|
-
# then the project making the request is used. The project id
|
|
151
|
-
# project that owns the beacon.
|
|
127
|
+
# The project id of the namespace to update. If the project id is not
|
|
128
|
+
# specified then the project making the request is used. The project id
|
|
129
|
+
# must match the project that owns the beacon.
|
|
130
|
+
# Optional.
|
|
152
131
|
# @param [String] fields
|
|
153
132
|
# Selector specifying which fields to include in a partial response.
|
|
154
133
|
# @param [String] quota_user
|
|
@@ -158,79 +137,140 @@ module Google
|
|
|
158
137
|
# Request-specific options
|
|
159
138
|
#
|
|
160
139
|
# @yield [result, err] Result & error if block supplied
|
|
161
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
140
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
|
|
162
141
|
# @yieldparam err [StandardError] error object if request failed
|
|
163
142
|
#
|
|
164
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
143
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
|
|
165
144
|
#
|
|
166
145
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
167
146
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
168
147
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
169
|
-
def
|
|
170
|
-
command = make_simple_command(:
|
|
171
|
-
command.
|
|
172
|
-
command.
|
|
173
|
-
command.
|
|
148
|
+
def update_namespace(namespace_name, namespace_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
149
|
+
command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
|
|
150
|
+
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
|
151
|
+
command.request_object = namespace_object
|
|
152
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
|
153
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
|
|
154
|
+
command.params['namespaceName'] = namespace_name unless namespace_name.nil?
|
|
174
155
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
175
156
|
command.query['fields'] = fields unless fields.nil?
|
|
176
157
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
177
158
|
execute_or_queue_command(command, &block)
|
|
178
159
|
end
|
|
179
160
|
|
|
180
|
-
#
|
|
181
|
-
#
|
|
161
|
+
# Gets the Proximity Beacon API's current public key and associated
|
|
162
|
+
# parameters used to initiate the Diffie-Hellman key exchange required to
|
|
163
|
+
# register a beacon that broadcasts the Eddystone-EID format. This key
|
|
164
|
+
# changes periodically; clients may cache it and re-use the same public key
|
|
165
|
+
# to provision and register multiple beacons. However, clients should be
|
|
166
|
+
# prepared to refresh this key when they encounter an error registering an
|
|
167
|
+
# Eddystone-EID beacon.
|
|
168
|
+
# @param [String] fields
|
|
169
|
+
# Selector specifying which fields to include in a partial response.
|
|
170
|
+
# @param [String] quota_user
|
|
171
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
172
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
173
|
+
# @param [Google::Apis::RequestOptions] options
|
|
174
|
+
# Request-specific options
|
|
175
|
+
#
|
|
176
|
+
# @yield [result, err] Result & error if block supplied
|
|
177
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] parsed result object
|
|
178
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
179
|
+
#
|
|
180
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams]
|
|
181
|
+
#
|
|
182
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
183
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
184
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
185
|
+
def get_eidparams(fields: nil, quota_user: nil, options: nil, &block)
|
|
186
|
+
command = make_simple_command(:get, 'v1beta1/eidparams', options)
|
|
187
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams::Representation
|
|
188
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams
|
|
189
|
+
command.query['fields'] = fields unless fields.nil?
|
|
190
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
191
|
+
execute_or_queue_command(command, &block)
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Searches the beacon registry for beacons that match the given search
|
|
195
|
+
# criteria. Only those beacons that the client has permission to list
|
|
196
|
+
# will be returned.
|
|
182
197
|
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
183
|
-
# identity/protocols/OAuth2)
|
|
184
|
-
#
|
|
198
|
+
# identity/protocols/OAuth2)
|
|
199
|
+
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
|
200
|
+
# permissions in the Google Developers Console project.
|
|
185
201
|
# @param [String] q
|
|
186
|
-
# Filter query string that supports the following field filters:
|
|
187
|
-
#
|
|
188
|
-
#
|
|
189
|
-
#
|
|
190
|
-
#
|
|
191
|
-
#
|
|
192
|
-
#
|
|
193
|
-
#
|
|
194
|
-
#
|
|
195
|
-
#
|
|
196
|
-
#
|
|
197
|
-
#
|
|
198
|
-
#
|
|
199
|
-
#
|
|
200
|
-
#
|
|
201
|
-
#
|
|
202
|
-
#
|
|
203
|
-
#
|
|
204
|
-
#
|
|
205
|
-
#
|
|
206
|
-
#
|
|
207
|
-
#
|
|
208
|
-
#
|
|
209
|
-
#
|
|
210
|
-
#
|
|
211
|
-
#
|
|
212
|
-
#
|
|
213
|
-
# Returns beacons
|
|
214
|
-
#
|
|
215
|
-
#
|
|
216
|
-
#
|
|
217
|
-
#
|
|
218
|
-
#
|
|
219
|
-
#
|
|
202
|
+
# Filter query string that supports the following field filters:
|
|
203
|
+
# * **description:`"<string>"`**
|
|
204
|
+
# For example: **description:"Room 3"**
|
|
205
|
+
# Returns beacons whose description matches tokens in the string "Room 3"
|
|
206
|
+
# (not necessarily that exact string).
|
|
207
|
+
# The string must be double-quoted.
|
|
208
|
+
# * **status:`<enum>`**
|
|
209
|
+
# For example: **status:active**
|
|
210
|
+
# Returns beacons whose status matches the given value. Values must be
|
|
211
|
+
# one of the Beacon.Status enum values (case insensitive). Accepts
|
|
212
|
+
# multiple filters which will be combined with OR logic.
|
|
213
|
+
# * **stability:`<enum>`**
|
|
214
|
+
# For example: **stability:mobile**
|
|
215
|
+
# Returns beacons whose expected stability matches the given value.
|
|
216
|
+
# Values must be one of the Beacon.Stability enum values (case
|
|
217
|
+
# insensitive). Accepts multiple filters which will be combined with
|
|
218
|
+
# OR logic.
|
|
219
|
+
# * **place\_id:`"<string>"`**
|
|
220
|
+
# For example: **place\_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="**
|
|
221
|
+
# Returns beacons explicitly registered at the given place, expressed as
|
|
222
|
+
# a Place ID obtained from [Google Places API](/places/place-id). Does not
|
|
223
|
+
# match places inside the given place. Does not consider the beacon's
|
|
224
|
+
# actual location (which may be different from its registered place).
|
|
225
|
+
# Accepts multiple filters that will be combined with OR logic. The place
|
|
226
|
+
# ID must be double-quoted.
|
|
227
|
+
# * **registration\_time`[<|>|<=|>=]<integer>`**
|
|
228
|
+
# For example: **registration\_time>=1433116800**
|
|
229
|
+
# Returns beacons whose registration time matches the given filter.
|
|
230
|
+
# Supports the operators: <, >, <=, and >=. Timestamp must be expressed as
|
|
231
|
+
# an integer number of seconds since midnight January 1, 1970 UTC. Accepts
|
|
232
|
+
# at most two filters that will be combined with AND logic, to support
|
|
233
|
+
# "between" semantics. If more than two are supplied, the latter ones are
|
|
234
|
+
# ignored.
|
|
235
|
+
# * **lat:`<double> lng:<double> radius:<integer>`**
|
|
236
|
+
# For example: **lat:51.1232343 lng:-1.093852 radius:1000**
|
|
237
|
+
# Returns beacons whose registered location is within the given circle.
|
|
238
|
+
# When any of these fields are given, all are required. Latitude and
|
|
239
|
+
# longitude must be decimal degrees between -90.0 and 90.0 and between
|
|
240
|
+
# -180.0 and 180.0 respectively. Radius must be an integer number of
|
|
241
|
+
# meters between 10 and 1,000,000 (1000 km).
|
|
242
|
+
# * **property:`"<string>=<string>"`**
|
|
243
|
+
# For example: **property:"battery-type=CR2032"**
|
|
244
|
+
# Returns beacons which have a property of the given name and value.
|
|
245
|
+
# Supports multiple filters which will be combined with OR logic.
|
|
246
|
+
# The entire name=value string must be double-quoted as one string.
|
|
247
|
+
# * **attachment\_type:`"<string>"`**
|
|
248
|
+
# For example: **attachment_type:"my-namespace/my-type"**
|
|
249
|
+
# Returns beacons having at least one attachment of the given namespaced
|
|
250
|
+
# type. Supports "any within this namespace" via the partial wildcard
|
|
251
|
+
# syntax: "my-namespace/*". Supports multiple filters which will be
|
|
252
|
+
# combined with OR logic. The string must be double-quoted.
|
|
253
|
+
# * **indoor\_level:`"<string>"`**
|
|
254
|
+
# For example: **indoor\_level:"1"**
|
|
255
|
+
# Returns beacons which are located on the given indoor level. Accepts
|
|
256
|
+
# multiple filters that will be combined with OR logic.
|
|
220
257
|
# Multiple filters on the same field are combined with OR logic (except
|
|
221
|
-
# registration_time which is combined with AND logic).
|
|
222
|
-
# different fields are combined with AND logic.
|
|
223
|
-
#
|
|
224
|
-
#
|
|
225
|
-
#
|
|
226
|
-
#
|
|
227
|
-
#
|
|
258
|
+
# registration_time which is combined with AND logic).
|
|
259
|
+
# Multiple filters on different fields are combined with AND logic.
|
|
260
|
+
# Filters should be separated by spaces.
|
|
261
|
+
# As with any HTTP query string parameter, the whole filter expression must
|
|
262
|
+
# be URL-encoded.
|
|
263
|
+
# Example REST request:
|
|
264
|
+
# `GET /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000`
|
|
228
265
|
# @param [Fixnum] page_size
|
|
229
|
-
# The maximum number of records to return for this request, up to a
|
|
230
|
-
# defined upper limit.
|
|
266
|
+
# The maximum number of records to return for this request, up to a
|
|
267
|
+
# server-defined upper limit.
|
|
231
268
|
# @param [String] project_id
|
|
232
269
|
# The project id to list beacons under. If not present then the project
|
|
233
|
-
# credential that made the request is used as the project.
|
|
270
|
+
# credential that made the request is used as the project.
|
|
271
|
+
# Optional.
|
|
272
|
+
# @param [String] page_token
|
|
273
|
+
# A pagination token obtained from a previous request to list beacons.
|
|
234
274
|
# @param [String] fields
|
|
235
275
|
# Selector specifying which fields to include in a partial response.
|
|
236
276
|
# @param [String] quota_user
|
|
@@ -248,39 +288,31 @@ module Google
|
|
|
248
288
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
249
289
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
250
290
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
251
|
-
def list_beacons(q: nil,
|
|
291
|
+
def list_beacons(q: nil, page_size: nil, project_id: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
252
292
|
command = make_simple_command(:get, 'v1beta1/beacons', options)
|
|
253
293
|
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse::Representation
|
|
254
294
|
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse
|
|
255
295
|
command.query['q'] = q unless q.nil?
|
|
256
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
257
296
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
258
297
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
298
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
259
299
|
command.query['fields'] = fields unless fields.nil?
|
|
260
300
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
261
301
|
execute_or_queue_command(command, &block)
|
|
262
302
|
end
|
|
263
303
|
|
|
264
|
-
#
|
|
265
|
-
#
|
|
266
|
-
#
|
|
267
|
-
#
|
|
268
|
-
#
|
|
269
|
-
#
|
|
270
|
-
# access token](https://developers.google.com/identity/protocols/OAuth2) from a
|
|
271
|
-
# signed-in user with **Is owner** or **Can edit** permissions in the Google
|
|
272
|
-
# Developers Console project.
|
|
273
|
-
# @param [String] beacon_name
|
|
274
|
-
# Resource name of this beacon. A beacon name has the format "beacons/N!beaconId"
|
|
275
|
-
# where the beaconId is the base16 ID broadcast by the beacon and N is a code
|
|
276
|
-
# for the beacon's type. Possible values are `3` for Eddystone, `1` for iBeacon,
|
|
277
|
-
# or `5` for AltBeacon. This field must be left empty when registering. After
|
|
278
|
-
# reading a beacon, clients can use the name for future operations.
|
|
304
|
+
# Registers a previously unregistered beacon given its `advertisedId`.
|
|
305
|
+
# These IDs are unique within the system. An ID can be registered only once.
|
|
306
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
307
|
+
# identity/protocols/OAuth2)
|
|
308
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
|
309
|
+
# Google Developers Console project.
|
|
279
310
|
# @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
|
|
280
311
|
# @param [String] project_id
|
|
281
|
-
# The project id of the
|
|
282
|
-
#
|
|
283
|
-
#
|
|
312
|
+
# The project id of the project the beacon will be registered to. If
|
|
313
|
+
# the project id is not specified then the project making the request
|
|
314
|
+
# is used.
|
|
315
|
+
# Optional.
|
|
284
316
|
# @param [String] fields
|
|
285
317
|
# Selector specifying which fields to include in a partial response.
|
|
286
318
|
# @param [String] quota_user
|
|
@@ -298,37 +330,39 @@ module Google
|
|
|
298
330
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
299
331
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
300
332
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
301
|
-
def
|
|
302
|
-
command = make_simple_command(:
|
|
333
|
+
def register_beacon(beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
334
|
+
command = make_simple_command(:post, 'v1beta1/beacons:register', options)
|
|
303
335
|
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
|
304
336
|
command.request_object = beacon_object
|
|
305
337
|
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
|
306
338
|
command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
|
|
307
|
-
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
308
339
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
309
340
|
command.query['fields'] = fields unless fields.nil?
|
|
310
341
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
311
342
|
execute_or_queue_command(command, &block)
|
|
312
343
|
end
|
|
313
344
|
|
|
314
|
-
# Activates a beacon. A beacon that is active will return information
|
|
315
|
-
# attachment data when queried via `beaconinfo.getforobserved`.
|
|
316
|
-
# method on an already active beacon will do nothing (but
|
|
317
|
-
# successful response code).
|
|
318
|
-
# developers.google.com/
|
|
319
|
-
#
|
|
320
|
-
#
|
|
345
|
+
# Activates a beacon. A beacon that is active will return information
|
|
346
|
+
# and attachment data when queried via `beaconinfo.getforobserved`.
|
|
347
|
+
# Calling this method on an already active beacon will do nothing (but
|
|
348
|
+
# will return a successful response code).
|
|
349
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
350
|
+
# identity/protocols/OAuth2)
|
|
351
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
|
352
|
+
# Google Developers Console project.
|
|
321
353
|
# @param [String] beacon_name
|
|
322
|
-
# Beacon that should be activated. A beacon name has the format
|
|
323
|
-
# beaconId" where the beaconId is the base16 ID broadcast by
|
|
324
|
-
# a code for the beacon's type. Possible values are
|
|
325
|
-
# for Eddystone-EID, `1` for iBeacon, or `5`
|
|
326
|
-
# beacons, you may use either the
|
|
354
|
+
# Beacon that should be activated. A beacon name has the format
|
|
355
|
+
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
|
356
|
+
# the beacon and N is a code for the beacon's type. Possible values are
|
|
357
|
+
# `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
|
358
|
+
# for AltBeacon. For Eddystone-EID beacons, you may use either the
|
|
359
|
+
# current EID or the beacon's "stable" UID.
|
|
327
360
|
# Required.
|
|
328
361
|
# @param [String] project_id
|
|
329
|
-
# The project id of the beacon to activate. If the project id is not
|
|
330
|
-
# then the project making the request is used. The project id
|
|
331
|
-
# project that owns the beacon.
|
|
362
|
+
# The project id of the beacon to activate. If the project id is not
|
|
363
|
+
# specified then the project making the request is used. The project id
|
|
364
|
+
# must match the project that owns the beacon.
|
|
365
|
+
# Optional.
|
|
332
366
|
# @param [String] fields
|
|
333
367
|
# Selector specifying which fields to include in a partial response.
|
|
334
368
|
# @param [String] quota_user
|
|
@@ -357,24 +391,29 @@ module Google
|
|
|
357
391
|
execute_or_queue_command(command, &block)
|
|
358
392
|
end
|
|
359
393
|
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
#
|
|
365
|
-
#
|
|
366
|
-
#
|
|
394
|
+
# Returns detailed information about the specified beacon.
|
|
395
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
396
|
+
# identity/protocols/OAuth2)
|
|
397
|
+
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
|
398
|
+
# permissions in the Google Developers Console project.
|
|
399
|
+
# Requests may supply an Eddystone-EID beacon name in the form:
|
|
400
|
+
# `beacons/4!beaconId` where the `beaconId` is the base16 ephemeral ID
|
|
401
|
+
# broadcast by the beacon. The returned `Beacon` object will contain the
|
|
402
|
+
# beacon's stable Eddystone-UID. Clients not authorized to resolve the
|
|
403
|
+
# beacon's ephemeral Eddystone-EID broadcast will receive an error.
|
|
367
404
|
# @param [String] beacon_name
|
|
368
|
-
#
|
|
369
|
-
# beaconId" where the beaconId is the base16 ID broadcast by
|
|
370
|
-
# a code for the beacon's type. Possible values are
|
|
371
|
-
# for Eddystone-EID, `1` for iBeacon, or `5`
|
|
372
|
-
# beacons, you may use either the
|
|
405
|
+
# Resource name of this beacon. A beacon name has the format
|
|
406
|
+
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
|
407
|
+
# the beacon and N is a code for the beacon's type. Possible values are
|
|
408
|
+
# `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
|
409
|
+
# for AltBeacon. For Eddystone-EID beacons, you may use either the
|
|
410
|
+
# current EID or the beacon's "stable" UID.
|
|
373
411
|
# Required.
|
|
374
412
|
# @param [String] project_id
|
|
375
|
-
# The project id of the beacon to
|
|
413
|
+
# The project id of the beacon to request. If the project id is not specified
|
|
376
414
|
# then the project making the request is used. The project id must match the
|
|
377
|
-
# project that owns the beacon.
|
|
415
|
+
# project that owns the beacon.
|
|
416
|
+
# Optional.
|
|
378
417
|
# @param [String] fields
|
|
379
418
|
# Selector specifying which fields to include in a partial response.
|
|
380
419
|
# @param [String] quota_user
|
|
@@ -384,18 +423,18 @@ module Google
|
|
|
384
423
|
# Request-specific options
|
|
385
424
|
#
|
|
386
425
|
# @yield [result, err] Result & error if block supplied
|
|
387
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
426
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
|
|
388
427
|
# @yieldparam err [StandardError] error object if request failed
|
|
389
428
|
#
|
|
390
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
429
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
|
|
391
430
|
#
|
|
392
431
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
393
432
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
394
433
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
395
|
-
def
|
|
396
|
-
command = make_simple_command(:
|
|
397
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
398
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
|
434
|
+
def get_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
435
|
+
command = make_simple_command(:get, 'v1beta1/{+beaconName}', options)
|
|
436
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
|
437
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
|
|
399
438
|
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
400
439
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
401
440
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -403,28 +442,30 @@ module Google
|
|
|
403
442
|
execute_or_queue_command(command, &block)
|
|
404
443
|
end
|
|
405
444
|
|
|
406
|
-
#
|
|
407
|
-
#
|
|
408
|
-
#
|
|
409
|
-
#
|
|
410
|
-
#
|
|
411
|
-
#
|
|
412
|
-
#
|
|
413
|
-
#
|
|
414
|
-
#
|
|
415
|
-
# signed-in user with **Is owner** or **Can edit** permissions in the
|
|
416
|
-
# Developers Console project.
|
|
445
|
+
# Updates the information about the specified beacon. **Any field that you do
|
|
446
|
+
# not populate in the submitted beacon will be permanently erased**, so you
|
|
447
|
+
# should follow the "read, modify, write" pattern to avoid inadvertently
|
|
448
|
+
# destroying data.
|
|
449
|
+
# Changes to the beacon status via this method will be silently ignored.
|
|
450
|
+
# To update beacon status, use the separate methods on this API for
|
|
451
|
+
# activation, deactivation, and decommissioning.
|
|
452
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
453
|
+
# identity/protocols/OAuth2)
|
|
454
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
|
455
|
+
# Google Developers Console project.
|
|
417
456
|
# @param [String] beacon_name
|
|
418
|
-
#
|
|
419
|
-
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
|
420
|
-
# beacon and N is a code for the beacon's type. Possible values are
|
|
421
|
-
#
|
|
422
|
-
#
|
|
423
|
-
#
|
|
424
|
-
# @param [Google::Apis::ProximitybeaconV1beta1::
|
|
457
|
+
# Resource name of this beacon. A beacon name has the format
|
|
458
|
+
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
|
459
|
+
# the beacon and N is a code for the beacon's type. Possible values are
|
|
460
|
+
# `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
|
|
461
|
+
# This field must be left empty when registering. After reading a beacon,
|
|
462
|
+
# clients can use the name for future operations.
|
|
463
|
+
# @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
|
|
425
464
|
# @param [String] project_id
|
|
426
|
-
# The project id of the
|
|
427
|
-
#
|
|
465
|
+
# The project id of the beacon to update. If the project id is not
|
|
466
|
+
# specified then the project making the request is used. The project id
|
|
467
|
+
# must match the project that owns the beacon.
|
|
468
|
+
# Optional.
|
|
428
469
|
# @param [String] fields
|
|
429
470
|
# Selector specifying which fields to include in a partial response.
|
|
430
471
|
# @param [String] quota_user
|
|
@@ -434,20 +475,20 @@ module Google
|
|
|
434
475
|
# Request-specific options
|
|
435
476
|
#
|
|
436
477
|
# @yield [result, err] Result & error if block supplied
|
|
437
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
478
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
|
|
438
479
|
# @yieldparam err [StandardError] error object if request failed
|
|
439
480
|
#
|
|
440
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
481
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
|
|
441
482
|
#
|
|
442
483
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
443
484
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
444
485
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
445
|
-
def
|
|
446
|
-
command = make_simple_command(:
|
|
447
|
-
command.request_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
448
|
-
command.request_object =
|
|
449
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
450
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
|
486
|
+
def update_beacon(beacon_name, beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
487
|
+
command = make_simple_command(:put, 'v1beta1/{+beaconName}', options)
|
|
488
|
+
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
|
489
|
+
command.request_object = beacon_object
|
|
490
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
|
491
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
|
|
451
492
|
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
452
493
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
453
494
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -455,29 +496,27 @@ module Google
|
|
|
455
496
|
execute_or_queue_command(command, &block)
|
|
456
497
|
end
|
|
457
498
|
|
|
458
|
-
#
|
|
459
|
-
#
|
|
460
|
-
#
|
|
461
|
-
#
|
|
462
|
-
#
|
|
463
|
-
#
|
|
464
|
-
# in user with **
|
|
499
|
+
# Decommissions the specified beacon in the service. This beacon will no
|
|
500
|
+
# longer be returned from `beaconinfo.getforobserved`. This operation is
|
|
501
|
+
# permanent -- you will not be able to re-register a beacon with this ID
|
|
502
|
+
# again.
|
|
503
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
504
|
+
# identity/protocols/OAuth2)
|
|
505
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
|
465
506
|
# Google Developers Console project.
|
|
466
507
|
# @param [String] beacon_name
|
|
467
|
-
# Beacon
|
|
468
|
-
# beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
|
469
|
-
# beacon and N is a code for the beacon's type. Possible values are
|
|
470
|
-
# Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
|
471
|
-
# For Eddystone-EID beacons, you may use either the
|
|
472
|
-
# stable" UID.
|
|
473
|
-
#
|
|
474
|
-
# Specifies the namespace and type of attachment to include in response in
|
|
475
|
-
# namespace/type format. Accepts `*/*` to specify "all types in all namespaces".
|
|
508
|
+
# Beacon that should be decommissioned. A beacon name has the format
|
|
509
|
+
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
|
510
|
+
# the beacon and N is a code for the beacon's type. Possible values are
|
|
511
|
+
# `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
|
512
|
+
# for AltBeacon. For Eddystone-EID beacons, you may use either the
|
|
513
|
+
# current EID of the beacon's "stable" UID.
|
|
514
|
+
# Required.
|
|
476
515
|
# @param [String] project_id
|
|
477
|
-
# The project id
|
|
478
|
-
#
|
|
479
|
-
#
|
|
480
|
-
#
|
|
516
|
+
# The project id of the beacon to decommission. If the project id is not
|
|
517
|
+
# specified then the project making the request is used. The project id
|
|
518
|
+
# must match the project that owns the beacon.
|
|
519
|
+
# Optional.
|
|
481
520
|
# @param [String] fields
|
|
482
521
|
# Selector specifying which fields to include in a partial response.
|
|
483
522
|
# @param [String] quota_user
|
|
@@ -487,41 +526,46 @@ module Google
|
|
|
487
526
|
# Request-specific options
|
|
488
527
|
#
|
|
489
528
|
# @yield [result, err] Result & error if block supplied
|
|
490
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
529
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
|
|
491
530
|
# @yieldparam err [StandardError] error object if request failed
|
|
492
531
|
#
|
|
493
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
532
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Empty]
|
|
494
533
|
#
|
|
495
534
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
496
535
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
497
536
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
498
|
-
def
|
|
499
|
-
command = make_simple_command(:
|
|
500
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
501
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
|
537
|
+
def decommission_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
538
|
+
command = make_simple_command(:post, 'v1beta1/{+beaconName}:decommission', options)
|
|
539
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
|
|
540
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
|
|
502
541
|
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
503
|
-
command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
|
|
504
542
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
505
543
|
command.query['fields'] = fields unless fields.nil?
|
|
506
544
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
507
545
|
execute_or_queue_command(command, &block)
|
|
508
546
|
end
|
|
509
547
|
|
|
510
|
-
#
|
|
511
|
-
#
|
|
512
|
-
#
|
|
513
|
-
#
|
|
548
|
+
# Deactivates a beacon. Once deactivated, the API will not return
|
|
549
|
+
# information nor attachment data for the beacon when queried via
|
|
550
|
+
# `beaconinfo.getforobserved`. Calling this method on an already inactive
|
|
551
|
+
# beacon will do nothing (but will return a successful response code).
|
|
514
552
|
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
515
|
-
# identity/protocols/OAuth2)
|
|
516
|
-
# edit** permissions in the
|
|
517
|
-
#
|
|
518
|
-
#
|
|
519
|
-
#
|
|
520
|
-
#
|
|
521
|
-
# beacon
|
|
553
|
+
# identity/protocols/OAuth2)
|
|
554
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
|
555
|
+
# Google Developers Console project.
|
|
556
|
+
# @param [String] beacon_name
|
|
557
|
+
# Beacon that should be deactivated. A beacon name has the format
|
|
558
|
+
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
|
559
|
+
# the beacon and N is a code for the beacon's type. Possible values are
|
|
560
|
+
# `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
|
561
|
+
# for AltBeacon. For Eddystone-EID beacons, you may use either the
|
|
562
|
+
# current EID or the beacon's "stable" UID.
|
|
563
|
+
# Required.
|
|
522
564
|
# @param [String] project_id
|
|
523
|
-
# The project id of the
|
|
524
|
-
#
|
|
565
|
+
# The project id of the beacon to deactivate. If the project id is not
|
|
566
|
+
# specified then the project making the request is used. The project id must
|
|
567
|
+
# match the project that owns the beacon.
|
|
568
|
+
# Optional.
|
|
525
569
|
# @param [String] fields
|
|
526
570
|
# Selector specifying which fields to include in a partial response.
|
|
527
571
|
# @param [String] quota_user
|
|
@@ -539,40 +583,36 @@ module Google
|
|
|
539
583
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
540
584
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
541
585
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
542
|
-
def
|
|
543
|
-
command = make_simple_command(:
|
|
586
|
+
def deactivate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
587
|
+
command = make_simple_command(:post, 'v1beta1/{+beaconName}:deactivate', options)
|
|
544
588
|
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
|
|
545
589
|
command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
|
|
546
|
-
command.params['
|
|
590
|
+
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
547
591
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
548
592
|
command.query['fields'] = fields unless fields.nil?
|
|
549
593
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
550
594
|
execute_or_queue_command(command, &block)
|
|
551
595
|
end
|
|
552
596
|
|
|
553
|
-
# Deletes
|
|
554
|
-
#
|
|
555
|
-
#
|
|
556
|
-
#
|
|
557
|
-
#
|
|
558
|
-
#
|
|
559
|
-
#
|
|
560
|
-
# Console project.
|
|
597
|
+
# Deletes the specified beacon including all diagnostics data for the beacon
|
|
598
|
+
# as well as any attachments on the beacon (including those belonging to
|
|
599
|
+
# other projects). This operation cannot be undone.
|
|
600
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
601
|
+
# identity/protocols/OAuth2)
|
|
602
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
|
603
|
+
# Google Developers Console project.
|
|
561
604
|
# @param [String] beacon_name
|
|
562
|
-
#
|
|
563
|
-
# beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
|
564
|
-
# beacon and N is a code for the beacon's type. Possible values are
|
|
565
|
-
# Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
|
566
|
-
# For Eddystone-EID beacons, you may use either the
|
|
567
|
-
# stable" UID.
|
|
568
|
-
#
|
|
569
|
-
# Specifies the namespace and type of attachments to delete in `namespace/type`
|
|
570
|
-
# format. Accepts `*/*` to specify "all types in all namespaces". Optional.
|
|
605
|
+
# Beacon that should be deleted. A beacon name has the format
|
|
606
|
+
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
|
|
607
|
+
# the beacon and N is a code for the beacon's type. Possible values are
|
|
608
|
+
# `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
|
609
|
+
# for AltBeacon. For Eddystone-EID beacons, you may use either the
|
|
610
|
+
# current EID or the beacon's "stable" UID.
|
|
611
|
+
# Required.
|
|
571
612
|
# @param [String] project_id
|
|
572
|
-
# The project id
|
|
573
|
-
#
|
|
574
|
-
#
|
|
575
|
-
# string is empty, then the project making the request is used. Optional.
|
|
613
|
+
# The project id of the beacon to delete. If not provided, the project
|
|
614
|
+
# that is making the request is used.
|
|
615
|
+
# Optional.
|
|
576
616
|
# @param [String] fields
|
|
577
617
|
# Selector specifying which fields to include in a partial response.
|
|
578
618
|
# @param [String] quota_user
|
|
@@ -582,20 +622,19 @@ module Google
|
|
|
582
622
|
# Request-specific options
|
|
583
623
|
#
|
|
584
624
|
# @yield [result, err] Result & error if block supplied
|
|
585
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
625
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
|
|
586
626
|
# @yieldparam err [StandardError] error object if request failed
|
|
587
627
|
#
|
|
588
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
628
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Empty]
|
|
589
629
|
#
|
|
590
630
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
591
631
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
592
632
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
593
|
-
def
|
|
594
|
-
command = make_simple_command(:
|
|
595
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
596
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
|
633
|
+
def delete_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
634
|
+
command = make_simple_command(:delete, 'v1beta1/{+beaconName}', options)
|
|
635
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
|
|
636
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
|
|
597
637
|
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
598
|
-
command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
|
|
599
638
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
600
639
|
command.query['fields'] = fields unless fields.nil?
|
|
601
640
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -603,26 +642,27 @@ module Google
|
|
|
603
642
|
end
|
|
604
643
|
|
|
605
644
|
# List the diagnostics for a single beacon. You can also list diagnostics for
|
|
606
|
-
# all the beacons owned by your Google Developers Console project by using
|
|
607
|
-
# beacon name `beacons/-`.
|
|
608
|
-
# developers.google.com/
|
|
609
|
-
#
|
|
610
|
-
#
|
|
645
|
+
# all the beacons owned by your Google Developers Console project by using
|
|
646
|
+
# the beacon name `beacons/-`.
|
|
647
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
648
|
+
# identity/protocols/OAuth2)
|
|
649
|
+
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
|
650
|
+
# permissions in the Google Developers Console project.
|
|
611
651
|
# @param [String] beacon_name
|
|
612
652
|
# Beacon that the diagnostics are for.
|
|
613
653
|
# @param [Fixnum] page_size
|
|
614
|
-
# Specifies the maximum number of results to return. Defaults to
|
|
615
|
-
# 1000. Optional.
|
|
616
|
-
# @param [String] page_token
|
|
617
|
-
# Requests results that occur after the `page_token`, obtained from the response
|
|
618
|
-
# to a previous request. Optional.
|
|
654
|
+
# Specifies the maximum number of results to return. Defaults to
|
|
655
|
+
# 10. Maximum 1000. Optional.
|
|
619
656
|
# @param [String] alert_filter
|
|
620
|
-
# Requests only beacons that have the given alert. For example, to find
|
|
621
|
-
# that have low batteries use `alert_filter=LOW_BATTERY`.
|
|
657
|
+
# Requests only beacons that have the given alert. For example, to find
|
|
658
|
+
# beacons that have low batteries use `alert_filter=LOW_BATTERY`.
|
|
622
659
|
# @param [String] project_id
|
|
623
|
-
# Requests only diagnostic records for the given project id. If not set,
|
|
624
|
-
# the project making the request will be used for looking up
|
|
625
|
-
# Optional.
|
|
660
|
+
# Requests only diagnostic records for the given project id. If not set,
|
|
661
|
+
# then the project making the request will be used for looking up
|
|
662
|
+
# diagnostic records. Optional.
|
|
663
|
+
# @param [String] page_token
|
|
664
|
+
# Requests results that occur after the `page_token`, obtained from the
|
|
665
|
+
# response to a previous request. Optional.
|
|
626
666
|
# @param [String] fields
|
|
627
667
|
# Selector specifying which fields to include in a partial response.
|
|
628
668
|
# @param [String] quota_user
|
|
@@ -640,28 +680,49 @@ module Google
|
|
|
640
680
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
641
681
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
642
682
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
643
|
-
def list_beacon_diagnostics(beacon_name, page_size: nil,
|
|
683
|
+
def list_beacon_diagnostics(beacon_name, page_size: nil, alert_filter: nil, project_id: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
644
684
|
command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options)
|
|
645
685
|
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation
|
|
646
686
|
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse
|
|
647
687
|
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
648
688
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
649
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
650
689
|
command.query['alertFilter'] = alert_filter unless alert_filter.nil?
|
|
651
690
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
691
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
652
692
|
command.query['fields'] = fields unless fields.nil?
|
|
653
693
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
654
694
|
execute_or_queue_command(command, &block)
|
|
655
695
|
end
|
|
656
696
|
|
|
657
|
-
#
|
|
658
|
-
#
|
|
659
|
-
#
|
|
660
|
-
#
|
|
697
|
+
# Returns the attachments for the specified beacon that match the specified
|
|
698
|
+
# namespaced-type pattern.
|
|
699
|
+
# To control which namespaced types are returned, you add the
|
|
700
|
+
# `namespacedType` query parameter to the request. You must either use
|
|
701
|
+
# `*/*`, to return all attachments, or the namespace must be one of
|
|
702
|
+
# the ones returned from the `namespaces` endpoint.
|
|
703
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
704
|
+
# identity/protocols/OAuth2)
|
|
661
705
|
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
|
662
706
|
# permissions in the Google Developers Console project.
|
|
707
|
+
# @param [String] beacon_name
|
|
708
|
+
# Beacon whose attachments should be fetched. A beacon name has the
|
|
709
|
+
# format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
|
|
710
|
+
# by the beacon and N is a code for the beacon's type. Possible values are
|
|
711
|
+
# `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
|
712
|
+
# for AltBeacon. For Eddystone-EID beacons, you may use either the
|
|
713
|
+
# current EID or the beacon's "stable" UID.
|
|
714
|
+
# Required.
|
|
715
|
+
# @param [String] namespaced_type
|
|
716
|
+
# Specifies the namespace and type of attachment to include in response in
|
|
717
|
+
# <var>namespace/type</var> format. Accepts `*/*` to specify
|
|
718
|
+
# "all types in all namespaces".
|
|
663
719
|
# @param [String] project_id
|
|
664
|
-
# The project id to list
|
|
720
|
+
# The project id to list beacon attachments under. This field can be
|
|
721
|
+
# used when "*" is specified to mean all attachment namespaces. Projects
|
|
722
|
+
# may have multiple attachments with multiple namespaces. If "*" is
|
|
723
|
+
# specified and the projectId string is empty, then the project
|
|
724
|
+
# making the request is used.
|
|
725
|
+
# Optional.
|
|
665
726
|
# @param [String] fields
|
|
666
727
|
# Selector specifying which fields to include in a partial response.
|
|
667
728
|
# @param [String] quota_user
|
|
@@ -671,34 +732,55 @@ module Google
|
|
|
671
732
|
# Request-specific options
|
|
672
733
|
#
|
|
673
734
|
# @yield [result, err] Result & error if block supplied
|
|
674
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
735
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse] parsed result object
|
|
675
736
|
# @yieldparam err [StandardError] error object if request failed
|
|
676
737
|
#
|
|
677
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
738
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse]
|
|
678
739
|
#
|
|
679
740
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
680
741
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
681
742
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
682
|
-
def
|
|
683
|
-
command = make_simple_command(:get, 'v1beta1/
|
|
684
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
685
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
|
743
|
+
def list_beacon_attachments(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
744
|
+
command = make_simple_command(:get, 'v1beta1/{+beaconName}/attachments', options)
|
|
745
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse::Representation
|
|
746
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse
|
|
747
|
+
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
748
|
+
command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
|
|
686
749
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
687
750
|
command.query['fields'] = fields unless fields.nil?
|
|
688
751
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
689
752
|
execute_or_queue_command(command, &block)
|
|
690
753
|
end
|
|
691
754
|
|
|
692
|
-
#
|
|
693
|
-
#
|
|
694
|
-
#
|
|
695
|
-
#
|
|
696
|
-
#
|
|
697
|
-
#
|
|
755
|
+
# Associates the given data with the specified beacon. Attachment data must
|
|
756
|
+
# contain two parts:
|
|
757
|
+
# <ul>
|
|
758
|
+
# <li>A namespaced type.</li>
|
|
759
|
+
# <li>The actual attachment data itself.</li>
|
|
760
|
+
# </ul>
|
|
761
|
+
# The namespaced type consists of two parts, the namespace and the type.
|
|
762
|
+
# The namespace must be one of the values returned by the `namespaces`
|
|
763
|
+
# endpoint, while the type can be a string of any characters except for the
|
|
764
|
+
# forward slash (`/`) up to 100 characters in length.
|
|
765
|
+
# Attachment data can be up to 1024 bytes long.
|
|
766
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
767
|
+
# identity/protocols/OAuth2)
|
|
768
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
|
769
|
+
# Google Developers Console project.
|
|
770
|
+
# @param [String] beacon_name
|
|
771
|
+
# Beacon on which the attachment should be created. A beacon name has the
|
|
772
|
+
# format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
|
|
773
|
+
# by the beacon and N is a code for the beacon's type. Possible values are
|
|
774
|
+
# `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
|
775
|
+
# for AltBeacon. For Eddystone-EID beacons, you may use either the
|
|
776
|
+
# current EID or the beacon's "stable" UID.
|
|
777
|
+
# Required.
|
|
778
|
+
# @param [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] beacon_attachment_object
|
|
698
779
|
# @param [String] project_id
|
|
699
|
-
# The project id of the
|
|
700
|
-
#
|
|
701
|
-
#
|
|
780
|
+
# The project id of the project the attachment will belong to. If
|
|
781
|
+
# the project id is not specified then the project making the request
|
|
782
|
+
# is used.
|
|
783
|
+
# Optional.
|
|
702
784
|
# @param [String] fields
|
|
703
785
|
# Selector specifying which fields to include in a partial response.
|
|
704
786
|
# @param [String] quota_user
|
|
@@ -708,33 +790,57 @@ module Google
|
|
|
708
790
|
# Request-specific options
|
|
709
791
|
#
|
|
710
792
|
# @yield [result, err] Result & error if block supplied
|
|
711
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
793
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] parsed result object
|
|
712
794
|
# @yieldparam err [StandardError] error object if request failed
|
|
713
795
|
#
|
|
714
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
796
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment]
|
|
715
797
|
#
|
|
716
798
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
717
799
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
718
800
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
719
|
-
def
|
|
720
|
-
command = make_simple_command(:
|
|
721
|
-
command.request_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
722
|
-
command.request_object =
|
|
723
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
724
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
|
725
|
-
command.params['
|
|
801
|
+
def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
802
|
+
command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments', options)
|
|
803
|
+
command.request_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
|
|
804
|
+
command.request_object = beacon_attachment_object
|
|
805
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
|
|
806
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment
|
|
807
|
+
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
726
808
|
command.query['projectId'] = project_id unless project_id.nil?
|
|
727
809
|
command.query['fields'] = fields unless fields.nil?
|
|
728
810
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
729
811
|
execute_or_queue_command(command, &block)
|
|
730
812
|
end
|
|
731
813
|
|
|
732
|
-
#
|
|
733
|
-
#
|
|
734
|
-
#
|
|
735
|
-
#
|
|
736
|
-
#
|
|
737
|
-
#
|
|
814
|
+
# Deletes multiple attachments on a given beacon. This operation is
|
|
815
|
+
# permanent and cannot be undone.
|
|
816
|
+
# You can optionally specify `namespacedType` to choose which attachments
|
|
817
|
+
# should be deleted. If you do not specify `namespacedType`, all your
|
|
818
|
+
# attachments on the given beacon will be deleted. You also may explicitly
|
|
819
|
+
# specify `*/*` to delete all.
|
|
820
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
821
|
+
# identity/protocols/OAuth2)
|
|
822
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
|
823
|
+
# Google Developers Console project.
|
|
824
|
+
# @param [String] beacon_name
|
|
825
|
+
# The beacon whose attachments should be deleted. A beacon name has the
|
|
826
|
+
# format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
|
|
827
|
+
# by the beacon and N is a code for the beacon's type. Possible values are
|
|
828
|
+
# `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
|
|
829
|
+
# for AltBeacon. For Eddystone-EID beacons, you may use either the
|
|
830
|
+
# current EID or the beacon's "stable" UID.
|
|
831
|
+
# Required.
|
|
832
|
+
# @param [String] namespaced_type
|
|
833
|
+
# Specifies the namespace and type of attachments to delete in
|
|
834
|
+
# `namespace/type` format. Accepts `*/*` to specify
|
|
835
|
+
# "all types in all namespaces".
|
|
836
|
+
# Optional.
|
|
837
|
+
# @param [String] project_id
|
|
838
|
+
# The project id to delete beacon attachments under. This field can be
|
|
839
|
+
# used when "*" is specified to mean all attachment namespaces. Projects
|
|
840
|
+
# may have multiple attachments with multiple namespaces. If "*" is
|
|
841
|
+
# specified and the projectId string is empty, then the project
|
|
842
|
+
# making the request is used.
|
|
843
|
+
# Optional.
|
|
738
844
|
# @param [String] fields
|
|
739
845
|
# Selector specifying which fields to include in a partial response.
|
|
740
846
|
# @param [String] quota_user
|
|
@@ -744,28 +850,46 @@ module Google
|
|
|
744
850
|
# Request-specific options
|
|
745
851
|
#
|
|
746
852
|
# @yield [result, err] Result & error if block supplied
|
|
747
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
853
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] parsed result object
|
|
748
854
|
# @yieldparam err [StandardError] error object if request failed
|
|
749
855
|
#
|
|
750
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
856
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse]
|
|
751
857
|
#
|
|
752
858
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
753
859
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
754
860
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
755
|
-
def
|
|
756
|
-
command = make_simple_command(:
|
|
757
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::
|
|
758
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::
|
|
861
|
+
def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
862
|
+
command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options)
|
|
863
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation
|
|
864
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse
|
|
865
|
+
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
|
866
|
+
command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
|
|
867
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
|
759
868
|
command.query['fields'] = fields unless fields.nil?
|
|
760
869
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
761
870
|
execute_or_queue_command(command, &block)
|
|
762
871
|
end
|
|
763
872
|
|
|
764
|
-
#
|
|
765
|
-
#
|
|
766
|
-
#
|
|
767
|
-
#
|
|
768
|
-
#
|
|
873
|
+
# Deletes the specified attachment for the given beacon. Each attachment has
|
|
874
|
+
# a unique attachment name (`attachmentName`) which is returned when you
|
|
875
|
+
# fetch the attachment data via this API. You specify this with the delete
|
|
876
|
+
# request to control which attachment is removed. This operation cannot be
|
|
877
|
+
# undone.
|
|
878
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
|
879
|
+
# identity/protocols/OAuth2)
|
|
880
|
+
# from a signed-in user with **Is owner** or **Can edit** permissions in the
|
|
881
|
+
# Google Developers Console project.
|
|
882
|
+
# @param [String] attachment_name
|
|
883
|
+
# The attachment name (`attachmentName`) of
|
|
884
|
+
# the attachment to remove. For example:
|
|
885
|
+
# `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For
|
|
886
|
+
# Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the
|
|
887
|
+
# beacon's current EID, or its "stable" Eddystone-UID.
|
|
888
|
+
# Required.
|
|
889
|
+
# @param [String] project_id
|
|
890
|
+
# The project id of the attachment to delete. If not provided, the project
|
|
891
|
+
# that is making the request is used.
|
|
892
|
+
# Optional.
|
|
769
893
|
# @param [String] fields
|
|
770
894
|
# Selector specifying which fields to include in a partial response.
|
|
771
895
|
# @param [String] quota_user
|
|
@@ -775,20 +899,20 @@ module Google
|
|
|
775
899
|
# Request-specific options
|
|
776
900
|
#
|
|
777
901
|
# @yield [result, err] Result & error if block supplied
|
|
778
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::
|
|
902
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
|
|
779
903
|
# @yieldparam err [StandardError] error object if request failed
|
|
780
904
|
#
|
|
781
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::
|
|
905
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Empty]
|
|
782
906
|
#
|
|
783
907
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
784
908
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
785
909
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
786
|
-
def
|
|
787
|
-
command = make_simple_command(:
|
|
788
|
-
command.
|
|
789
|
-
command.
|
|
790
|
-
command.
|
|
791
|
-
command.
|
|
910
|
+
def delete_beacon_attachment(attachment_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
911
|
+
command = make_simple_command(:delete, 'v1beta1/{+attachmentName}', options)
|
|
912
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
|
|
913
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
|
|
914
|
+
command.params['attachmentName'] = attachment_name unless attachment_name.nil?
|
|
915
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
|
792
916
|
command.query['fields'] = fields unless fields.nil?
|
|
793
917
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
794
918
|
execute_or_queue_command(command, &block)
|