Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: discovery/googleapis_beta/proximitybeacon__v1beta1.json

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/userlocation.beacon.registry": { 5 "https://www.googleapis.com/auth/userlocation.beacon.registry": {
6 "description": "View and modify your beacons" 6 "description": "View and modify your beacons"
7 } 7 }
8 } 8 }
9 } 9 }
10 }, 10 },
11 "basePath": "", 11 "basePath": "",
12 "baseUrl": "https://proximitybeacon.googleapis.com/", 12 "baseUrl": "https://proximitybeacon.googleapis.com/",
13 "batchPath": "batch", 13 "batchPath": "batch",
14 "description": "Registers, manages, indexes, and searches beacons.", 14 "description": "Registers, manages, indexes, and searches beacons.",
15 "discoveryVersion": "v1", 15 "discoveryVersion": "v1",
16 "documentationLink": "https://developers.google.com/beacons/proximity/", 16 "documentationLink": "https://developers.google.com/beacons/proximity/",
17 "icons": { 17 "icons": {
18 "x16": "http://www.google.com/images/icons/product/search-16.gif", 18 "x16": "http://www.google.com/images/icons/product/search-16.gif",
19 "x32": "http://www.google.com/images/icons/product/search-32.gif" 19 "x32": "http://www.google.com/images/icons/product/search-32.gif"
20 }, 20 },
21 "id": "proximitybeacon:v1beta1", 21 "id": "proximitybeacon:v1beta1",
22 "kind": "discovery#restDescription", 22 "kind": "discovery#restDescription",
23 "name": "proximitybeacon", 23 "name": "proximitybeacon",
24 "ownerDomain": "google.com", 24 "ownerDomain": "google.com",
25 "ownerName": "Google", 25 "ownerName": "Google",
26 "parameters": { 26 "parameters": {
27 "quotaUser": {
28 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
29 "location": "query",
30 "type": "string"
31 },
32 "pp": {
33 "default": "true",
34 "description": "Pretty-print response.",
35 "location": "query",
36 "type": "boolean"
37 },
38 "oauth_token": {
39 "description": "OAuth 2.0 token for the current user.",
40 "location": "query",
41 "type": "string"
42 },
43 "bearer_token": {
44 "description": "OAuth bearer token.",
45 "location": "query",
46 "type": "string"
47 },
48 "upload_protocol": {
49 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
50 "location": "query",
51 "type": "string"
52 },
53 "prettyPrint": {
54 "default": "true",
55 "description": "Returns response with indentations and line breaks." ,
56 "location": "query",
57 "type": "boolean"
58 },
27 "fields": { 59 "fields": {
28 "description": "Selector specifying which fields to include in a par tial response.", 60 "description": "Selector specifying which fields to include in a par tial response.",
29 "location": "query", 61 "location": "query",
30 "type": "string" 62 "type": "string"
31 }, 63 },
32 "uploadType": { 64 "uploadType": {
33 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 65 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
34 "location": "query", 66 "location": "query",
35 "type": "string" 67 "type": "string"
36 }, 68 },
69 "callback": {
70 "description": "JSONP",
71 "location": "query",
72 "type": "string"
73 },
37 "$.xgafv": { 74 "$.xgafv": {
38 "description": "V1 error format.", 75 "description": "V1 error format.",
39 "enum": [ 76 "enum": [
40 "1", 77 "1",
41 "2" 78 "2"
42 ], 79 ],
43 "enumDescriptions": [ 80 "enumDescriptions": [
44 "v1 error format", 81 "v1 error format",
45 "v2 error format" 82 "v2 error format"
46 ], 83 ],
47 "location": "query", 84 "location": "query",
48 "type": "string" 85 "type": "string"
49 }, 86 },
50 "callback": {
51 "description": "JSONP",
52 "location": "query",
53 "type": "string"
54 },
55 "alt": { 87 "alt": {
56 "default": "json", 88 "default": "json",
57 "description": "Data format for response.", 89 "description": "Data format for response.",
58 "enum": [ 90 "enum": [
59 "json", 91 "json",
60 "media", 92 "media",
61 "proto" 93 "proto"
62 ], 94 ],
63 "enumDescriptions": [ 95 "enumDescriptions": [
64 "Responses with Content-Type of application/json", 96 "Responses with Content-Type of application/json",
65 "Media download with context-dependent Content-Type", 97 "Media download with context-dependent Content-Type",
66 "Responses with Content-Type of application/x-protobuf" 98 "Responses with Content-Type of application/x-protobuf"
67 ], 99 ],
68 "location": "query", 100 "location": "query",
69 "type": "string" 101 "type": "string"
70 }, 102 },
71 "access_token": { 103 "access_token": {
72 "description": "OAuth access token.", 104 "description": "OAuth access token.",
73 "location": "query", 105 "location": "query",
74 "type": "string" 106 "type": "string"
75 }, 107 },
76 "key": { 108 "key": {
77 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.", 109 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
78 "location": "query", 110 "location": "query",
79 "type": "string" 111 "type": "string"
80 },
81 "quotaUser": {
82 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
83 "location": "query",
84 "type": "string"
85 },
86 "pp": {
87 "default": "true",
88 "description": "Pretty-print response.",
89 "location": "query",
90 "type": "boolean"
91 },
92 "bearer_token": {
93 "description": "OAuth bearer token.",
94 "location": "query",
95 "type": "string"
96 },
97 "oauth_token": {
98 "description": "OAuth 2.0 token for the current user.",
99 "location": "query",
100 "type": "string"
101 },
102 "upload_protocol": {
103 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
104 "location": "query",
105 "type": "string"
106 },
107 "prettyPrint": {
108 "default": "true",
109 "description": "Returns response with indentations and line breaks." ,
110 "location": "query",
111 "type": "boolean"
112 } 112 }
113 }, 113 },
114 "protocol": "rest", 114 "protocol": "rest",
115 "resources": { 115 "resources": {
116 "beaconinfo": { 116 "beaconinfo": {
117 "methods": { 117 "methods": {
118 "getforobserved": { 118 "getforobserved": {
119 "description": "Given one or more beacon observations, retur ns any beacon information\nand attachments accessible to your application. Autho rize by using the\n[API key](https://developers.google.com/beacons/proximity/get -started#request_a_browser_api_key)\nfor the application.", 119 "description": "Given one or more beacon observations, retur ns any beacon information\nand attachments accessible to your application. Autho rize by using the\n[API key](https://developers.google.com/beacons/proximity/get -started#request_a_browser_api_key)\nfor the application.",
120 "httpMethod": "POST", 120 "httpMethod": "POST",
121 "id": "proximitybeacon.beaconinfo.getforobserved", 121 "id": "proximitybeacon.beaconinfo.getforobserved",
122 "parameterOrder": [], 122 "parameterOrder": [],
123 "parameters": {}, 123 "parameters": {},
124 "path": "v1beta1/beaconinfo:getforobserved", 124 "path": "v1beta1/beaconinfo:getforobserved",
125 "request": { 125 "request": {
126 "$ref": "GetInfoForObservedBeaconsRequest" 126 "$ref": "GetInfoForObservedBeaconsRequest"
127 }, 127 },
128 "response": { 128 "response": {
129 "$ref": "GetInfoForObservedBeaconsResponse" 129 "$ref": "GetInfoForObservedBeaconsResponse"
130 } 130 }
131 } 131 }
132 } 132 }
133 }, 133 },
134 "namespaces": { 134 "namespaces": {
135 "methods": { 135 "methods": {
136 "list": {
137 "description": "Lists all attachment namespaces owned by you r Google Developers Console\nproject. Attachment data associated with a beacon m ust include a\nnamespaced type, and the namespace must be owned by your project. \n\nAuthenticate using an [OAuth access token](https://developers.google.com/ide ntity/protocols/OAuth2)\nfrom a signed-in user with **viewer**, **Is owner** or **Can edit**\npermissions in the Google Developers Console project.",
138 "httpMethod": "GET",
139 "id": "proximitybeacon.namespaces.list",
140 "parameterOrder": [],
141 "parameters": {
142 "projectId": {
143 "description": "The project id to list namespaces un der.\nOptional.",
144 "location": "query",
145 "type": "string"
146 }
147 },
148 "path": "v1beta1/namespaces",
149 "response": {
150 "$ref": "ListNamespacesResponse"
151 },
152 "scopes": [
153 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
154 ]
155 },
156 "update": { 136 "update": {
157 "description": "Updates the information about the specified namespace. Only the namespace\nvisibility can be updated.", 137 "description": "Updates the information about the specified namespace. Only the namespace\nvisibility can be updated.",
158 "httpMethod": "PUT", 138 "httpMethod": "PUT",
159 "id": "proximitybeacon.namespaces.update", 139 "id": "proximitybeacon.namespaces.update",
160 "parameterOrder": [ 140 "parameterOrder": [
161 "namespaceName" 141 "namespaceName"
162 ], 142 ],
163 "parameters": { 143 "parameters": {
164 "projectId": { 144 "projectId": {
165 "description": "The project id of the namespace to u pdate. If the project id is not\nspecified then the project making the request i s used. The project id\nmust match the project that owns the beacon.\nOptional." , 145 "description": "The project id of the namespace to u pdate. If the project id is not\nspecified then the project making the request i s used. The project id\nmust match the project that owns the beacon.\nOptional." ,
(...skipping 11 matching lines...) Expand all
177 "path": "v1beta1/{+namespaceName}", 157 "path": "v1beta1/{+namespaceName}",
178 "request": { 158 "request": {
179 "$ref": "Namespace" 159 "$ref": "Namespace"
180 }, 160 },
181 "response": { 161 "response": {
182 "$ref": "Namespace" 162 "$ref": "Namespace"
183 }, 163 },
184 "scopes": [ 164 "scopes": [
185 "https://www.googleapis.com/auth/userlocation.beacon.reg istry" 165 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
186 ] 166 ]
167 },
168 "list": {
169 "description": "Lists all attachment namespaces owned by you r Google Developers Console\nproject. Attachment data associated with a beacon m ust include a\nnamespaced type, and the namespace must be owned by your project. \n\nAuthenticate using an [OAuth access token](https://developers.google.com/ide ntity/protocols/OAuth2)\nfrom a signed-in user with **viewer**, **Is owner** or **Can edit**\npermissions in the Google Developers Console project.",
170 "httpMethod": "GET",
171 "id": "proximitybeacon.namespaces.list",
172 "parameterOrder": [],
173 "parameters": {
174 "projectId": {
175 "description": "The project id to list namespaces un der.\nOptional.",
176 "location": "query",
177 "type": "string"
178 }
179 },
180 "path": "v1beta1/namespaces",
181 "response": {
182 "$ref": "ListNamespacesResponse"
183 },
184 "scopes": [
185 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
186 ]
187 } 187 }
188 } 188 }
189 }, 189 },
190 "v1beta1": { 190 "v1beta1": {
191 "methods": { 191 "methods": {
192 "getEidparams": { 192 "getEidparams": {
193 "description": "Gets the Proximity Beacon API's current publ ic key and associated\nparameters used to initiate the Diffie-Hellman key exchan ge required to\nregister a beacon that broadcasts the Eddystone-EID format. This key\nchanges periodically; clients may cache it and re-use the same public key\ nto provision and register multiple beacons. However, clients should be\nprepare d to refresh this key when they encounter an error registering an\nEddystone-EID beacon.", 193 "description": "Gets the Proximity Beacon API's current publ ic key and associated\nparameters used to initiate the Diffie-Hellman key exchan ge required to\nregister a beacon that broadcasts the Eddystone-EID format. This key\nchanges periodically; clients may cache it and re-use the same public key\ nto provision and register multiple beacons. However, clients should be\nprepare d to refresh this key when they encounter an error registering an\nEddystone-EID beacon.",
194 "httpMethod": "GET", 194 "httpMethod": "GET",
195 "id": "proximitybeacon.getEidparams", 195 "id": "proximitybeacon.getEidparams",
196 "parameterOrder": [], 196 "parameterOrder": [],
197 "parameters": {}, 197 "parameters": {},
198 "path": "v1beta1/eidparams", 198 "path": "v1beta1/eidparams",
199 "response": { 199 "response": {
200 "$ref": "EphemeralIdRegistrationParams" 200 "$ref": "EphemeralIdRegistrationParams"
201 }, 201 },
202 "scopes": [ 202 "scopes": [
203 "https://www.googleapis.com/auth/userlocation.beacon.reg istry" 203 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
204 ] 204 ]
205 } 205 }
206 } 206 }
207 }, 207 },
208 "beacons": { 208 "beacons": {
209 "methods": { 209 "methods": {
210 "activate": { 210 "deactivate": {
211 "description": "Activates a beacon. A beacon that is active will return information\nand attachment data when queried via `beaconinfo.getfor observed`.\nCalling this method on an already active beacon will do nothing (but \nwill return a successful response code).\n\nAuthenticate using an [OAuth acces s token](https://developers.google.com/identity/protocols/OAuth2)\nfrom a signed -in user with **Is owner** or **Can edit** permissions in the\nGoogle Developers Console project.", 211 "description": "Deactivates a beacon. Once deactivated, the API will not return\ninformation nor attachment data for the beacon when queried via\n`beaconinfo.getforobserved`. Calling this method on an already inactive\nb eacon will do nothing (but will return a successful response code).\n\nAuthentic ate using an [OAuth access token](https://developers.google.com/identity/protoco ls/OAuth2)\nfrom a signed-in user with **Is owner** or **Can edit** permissions in the\nGoogle Developers Console project.",
212 "httpMethod": "POST", 212 "httpMethod": "POST",
213 "id": "proximitybeacon.beacons.activate", 213 "id": "proximitybeacon.beacons.deactivate",
214 "parameterOrder": [ 214 "parameterOrder": [
215 "beaconName" 215 "beaconName"
216 ], 216 ],
217 "parameters": { 217 "parameters": {
218 "beaconName": { 218 "beaconName": {
219 "description": "Beacon that should be activated. A b eacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the base 16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible v alues are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` \nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.", 219 "description": "Beacon that should be deactivated. A beacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the ba se16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or ` 5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EI D or the beacon's \"stable\" UID.\nRequired.",
220 "location": "path", 220 "location": "path",
221 "pattern": "^beacons/[^/]+$", 221 "pattern": "^beacons/[^/]+$",
222 "required": true, 222 "required": true,
223 "type": "string" 223 "type": "string"
224 }, 224 },
225 "projectId": { 225 "projectId": {
226 "description": "The project id of the beacon to acti vate. If the project id is not\nspecified then the project making the request is used. The project id\nmust match the project that owns the beacon.\nOptional.", 226 "description": "The project id of the beacon to deac tivate. If the project id is not\nspecified then the project making the request is used. The project id must\nmatch the project that owns the beacon.\nOptional. ",
227 "location": "query", 227 "location": "query",
228 "type": "string" 228 "type": "string"
229 } 229 }
230 }, 230 },
231 "path": "v1beta1/{+beaconName}:activate", 231 "path": "v1beta1/{+beaconName}:deactivate",
232 "response": { 232 "response": {
233 "$ref": "Empty" 233 "$ref": "Empty"
234 }, 234 },
235 "scopes": [ 235 "scopes": [
236 "https://www.googleapis.com/auth/userlocation.beacon.reg istry" 236 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
237 ] 237 ]
238 }, 238 },
239 "get": { 239 "delete": {
240 "description": "Returns detailed information about the speci fied beacon.\n\nAuthenticate using an [OAuth access token](https://developers.go ogle.com/identity/protocols/OAuth2)\nfrom a signed-in user with **viewer**, **Is owner** or **Can edit**\npermissions in the Google Developers Console project.\ n\nRequests may supply an Eddystone-EID beacon name in the form:\n`beacons/4!bea conId` where the `beaconId` is the base16 ephemeral ID\nbroadcast by the beacon. The returned `Beacon` object will contain the\nbeacon's stable Eddystone-UID. C lients not authorized to resolve the\nbeacon's ephemeral Eddystone-EID broadcast will receive an error.", 240 "description": "Deletes the specified beacon including all d iagnostics data for the beacon\nas well as any attachments on the beacon (includ ing those belonging to\nother projects). This operation cannot be undone.\n\nAut henticate using an [OAuth access token](https://developers.google.com/identity/p rotocols/OAuth2)\nfrom a signed-in user with **Is owner** or **Can edit** permis sions in the\nGoogle Developers Console project.",
241 "httpMethod": "GET", 241 "httpMethod": "DELETE",
242 "id": "proximitybeacon.beacons.get", 242 "id": "proximitybeacon.beacons.delete",
243 "parameterOrder": [ 243 "parameterOrder": [
244 "beaconName" 244 "beaconName"
245 ], 245 ],
246 "parameters": { 246 "parameters": {
247 "projectId": { 247 "projectId": {
248 "description": "The project id of the beacon to requ est. If the project id is not specified\nthen the project making the request is used. The project id must match the\nproject that owns the beacon.\nOptional.", 248 "description": "The project id of the beacon to dele te. If not provided, the project\nthat is making the request is used.\nOptional. ",
249 "location": "query", 249 "location": "query",
250 "type": "string" 250 "type": "string"
251 }, 251 },
252 "beaconName": { 252 "beaconName": {
253 "description": "Resource name of this beacon. A beac on name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible valu es are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nf or AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.", 253 "description": "Beacon that should be deleted. A bea con name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible val ues are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\n for AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.",
254 "location": "path", 254 "location": "path",
255 "pattern": "^beacons/[^/]+$", 255 "pattern": "^beacons/[^/]+$",
256 "required": true, 256 "required": true,
257 "type": "string" 257 "type": "string"
258 } 258 }
259 }, 259 },
260 "path": "v1beta1/{+beaconName}", 260 "path": "v1beta1/{+beaconName}",
261 "response": { 261 "response": {
262 "$ref": "Beacon" 262 "$ref": "Empty"
263 }, 263 },
264 "scopes": [ 264 "scopes": [
265 "https://www.googleapis.com/auth/userlocation.beacon.reg istry" 265 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
266 ] 266 ]
267 }, 267 },
268 "update": { 268 "register": {
269 "description": "Updates the information about the specified beacon. **Any field that you do\nnot populate in the submitted beacon will be pe rmanently erased**, so you\nshould follow the \"read, modify, write\" pattern to avoid inadvertently\ndestroying data.\n\nChanges to the beacon status via this method will be silently ignored.\nTo update beacon status, use the separate met hods on this API for\nactivation, deactivation, and decommissioning.\nAuthentica te using an [OAuth access token](https://developers.google.com/identity/protocol s/OAuth2)\nfrom a signed-in user with **Is owner** or **Can edit** permissions i n the\nGoogle Developers Console project.", 269 "description": "Registers a previously unregistered beacon g iven its `advertisedId`.\nThese IDs are unique within the system. An ID can be r egistered only once.\n\nAuthenticate using an [OAuth access token](https://devel opers.google.com/identity/protocols/OAuth2)\nfrom a signed-in user with **Is own er** or **Can edit** permissions in the\nGoogle Developers Console project.",
270 "httpMethod": "PUT", 270 "httpMethod": "POST",
271 "id": "proximitybeacon.beacons.update", 271 "id": "proximitybeacon.beacons.register",
272 "parameterOrder": [ 272 "parameterOrder": [],
273 "beaconName"
274 ],
275 "parameters": { 273 "parameters": {
276 "projectId": { 274 "projectId": {
277 "description": "The project id of the beacon to upda te. If the project id is not\nspecified then the project making the request is u sed. The project id\nmust match the project that owns the beacon.\nOptional.", 275 "description": "The project id of the project the be acon will be registered to. If\nthe project id is not specified then the project making the request\nis used.\nOptional.",
278 "location": "query", 276 "location": "query",
279 "type": "string" 277 "type": "string"
280 },
281 "beaconName": {
282 "description": "Resource name of this beacon. A beac on name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible valu es are\n`3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.\n\nThis field must be left empty when registering. After reading a beacon,\nclients can use th e name for future operations.",
283 "location": "path",
284 "pattern": "^beacons/[^/]+$",
285 "required": true,
286 "type": "string"
287 } 278 }
288 }, 279 },
289 "path": "v1beta1/{+beaconName}", 280 "path": "v1beta1/beacons:register",
290 "request": { 281 "request": {
291 "$ref": "Beacon" 282 "$ref": "Beacon"
292 }, 283 },
293 "response": { 284 "response": {
294 "$ref": "Beacon" 285 "$ref": "Beacon"
295 }, 286 },
296 "scopes": [ 287 "scopes": [
297 "https://www.googleapis.com/auth/userlocation.beacon.reg istry" 288 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
298 ] 289 ]
299 }, 290 },
300 "decommission": { 291 "list": {
301 "description": "Decommissions the specified beacon in the se rvice. This beacon will no\nlonger be returned from `beaconinfo.getforobserved`. This operation is\npermanent -- you will not be able to re-register a beacon wi th this ID\nagain.\n\nAuthenticate using an [OAuth access token](https://develop ers.google.com/identity/protocols/OAuth2)\nfrom a signed-in user with **Is owner ** or **Can edit** permissions in the\nGoogle Developers Console project.", 292 "description": "Searches the beacon registry for beacons tha t match the given search\ncriteria. Only those beacons that the client has permi ssion to list\nwill be returned.\n\nAuthenticate using an [OAuth access token](h ttps://developers.google.com/identity/protocols/OAuth2)\nfrom a signed-in user w ith **viewer**, **Is owner** or **Can edit**\npermissions in the Google Develope rs Console project.",
293 "httpMethod": "GET",
294 "id": "proximitybeacon.beacons.list",
295 "parameterOrder": [],
296 "parameters": {
297 "pageToken": {
298 "description": "A pagination token obtained from a p revious request to list beacons.",
299 "location": "query",
300 "type": "string"
301 },
302 "pageSize": {
303 "description": "The maximum number of records to ret urn for this request, up to a\nserver-defined upper limit.",
304 "format": "int32",
305 "location": "query",
306 "type": "integer"
307 },
308 "q": {
309 "description": "Filter query string that supports th e following field filters:\n\n* **description:`\"<string>\"`**\n For example: * *description:\"Room 3\"**\n Returns beacons whose description matches tokens in the string \"Room 3\"\n (not necessarily that exact string).\n The string mus t be double-quoted.\n* **status:`<enum>`**\n For example: **status:active**\n Returns beacons whose status matches the given value. Values must be\n one of t he Beacon.Status enum values (case insensitive). Accepts\n multiple filters whi ch will be combined with OR logic.\n* **stability:`<enum>`**\n For example: **s tability:mobile**\n Returns beacons whose expected stability matches the given value.\n Values must be one of the Beacon.Stability enum values (case\n insens itive). Accepts multiple filters which will be combined with\n OR logic.\n* **p lace\\_id:`\"<string>\"`**\n For example: **place\\_id:\"ChIJVSZzVR8FdkgRXGmmm6 SslKw=\"**\n Returns beacons explicitly registered at the given place, expresse d as\n a Place ID obtained from [Google Places API](/places/place-id). Does not \n match places inside the given place. Does not consider the beacon's\n actua l location (which may be different from its registered place).\n Accepts multip le filters that will be combined with OR logic. The place\n ID must be double-q uoted.\n* **registration\\_time`[<|>|<=|>=]<integer>`**\n For example: **regist ration\\_time>=1433116800**\n Returns beacons whose registration time matches t he given filter.\n Supports the operators: <, >, <=, and >=. Timestamp must be expressed as\n an integer number of seconds since midnight January 1, 1970 UTC. Accepts\n at most two filters that will be combined with AND logic, to support \n \"between\" semantics. If more than two are supplied, the latter ones are\n ignored.\n* **lat:`<double> lng:<double> radius:<integer>`**\n For example: ** lat:51.1232343 lng:-1.093852 radius:1000**\n Returns beacons whose registered l ocation is within the given circle.\n When any of these fields are given, all a re required. Latitude and\n longitude must be decimal degrees between -90.0 and 90.0 and between\n -180.0 and 180.0 respectively. Radius must be an integer nu mber of\n meters between 10 and 1,000,000 (1000 km).\n* **property:`\"<string>= <string>\"`**\n For example: **property:\"battery-type=CR2032\"**\n Returns be acons which have a property of the given name and value.\n Supports multiple fi lters which will be combined with OR logic.\n The entire name=value string must be double-quoted as one string.\n* **attachment\\_type:`\"<string>\"`**\n For example: **attachment_type:\"my-namespace/my-type\"**\n Returns beacons having at least one attachment of the given namespaced\n type. Supports \"any within t his namespace\" via the partial wildcard\n syntax: \"my-namespace/*\". Supports multiple filters which will be\n combined with OR logic. The string must be do uble-quoted.\n* **indoor\\_level:`\"<string>\"`**\n For example: **indoor\\_lev el:\"1\"**\n Returns beacons which are located on the given indoor level. Accep ts\n multiple filters that will be combined with OR logic.\n\nMultiple filters on the same field are combined with OR logic (except\nregistration_time which is combined with AND logic).\nMultiple filters on different fields are combined wi th AND logic.\nFilters should be separated by spaces.\n\nAs with any HTTP query string parameter, the whole filter expression must\nbe URL-encoded.\n\nExample R EST request:\n`GET /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20 radius:1000`",
310 "location": "query",
311 "type": "string"
312 },
313 "projectId": {
314 "description": "The project id to list beacons under . If not present then the project\ncredential that made the request is used as t he project.\nOptional.",
315 "location": "query",
316 "type": "string"
317 }
318 },
319 "path": "v1beta1/beacons",
320 "response": {
321 "$ref": "ListBeaconsResponse"
322 },
323 "scopes": [
324 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
325 ]
326 },
327 "activate": {
328 "description": "Activates a beacon. A beacon that is active will return information\nand attachment data when queried via `beaconinfo.getfor observed`.\nCalling this method on an already active beacon will do nothing (but \nwill return a successful response code).\n\nAuthenticate using an [OAuth acces s token](https://developers.google.com/identity/protocols/OAuth2)\nfrom a signed -in user with **Is owner** or **Can edit** permissions in the\nGoogle Developers Console project.",
302 "httpMethod": "POST", 329 "httpMethod": "POST",
303 "id": "proximitybeacon.beacons.decommission", 330 "id": "proximitybeacon.beacons.activate",
304 "parameterOrder": [ 331 "parameterOrder": [
305 "beaconName" 332 "beaconName"
306 ], 333 ],
307 "parameters": { 334 "parameters": {
308 "beaconName": { 335 "beaconName": {
309 "description": "Beacon that should be decommissioned . A beacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possi ble values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, o r `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID of the beacon's \"stable\" UID.\nRequired.", 336 "description": "Beacon that should be activated. A b eacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the base 16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible v alues are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` \nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.",
310 "location": "path", 337 "location": "path",
311 "pattern": "^beacons/[^/]+$", 338 "pattern": "^beacons/[^/]+$",
312 "required": true, 339 "required": true,
313 "type": "string" 340 "type": "string"
314 }, 341 },
315 "projectId": { 342 "projectId": {
316 "description": "The project id of the beacon to deco mmission. If the project id is not\nspecified then the project making the reques t is used. The project id\nmust match the project that owns the beacon.\nOptiona l.", 343 "description": "The project id of the beacon to acti vate. If the project id is not\nspecified then the project making the request is used. The project id\nmust match the project that owns the beacon.\nOptional.",
317 "location": "query", 344 "location": "query",
318 "type": "string" 345 "type": "string"
319 } 346 }
320 }, 347 },
321 "path": "v1beta1/{+beaconName}:decommission", 348 "path": "v1beta1/{+beaconName}:activate",
322 "response": { 349 "response": {
323 "$ref": "Empty" 350 "$ref": "Empty"
324 }, 351 },
325 "scopes": [ 352 "scopes": [
326 "https://www.googleapis.com/auth/userlocation.beacon.reg istry" 353 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
327 ] 354 ]
328 }, 355 },
329 "delete": { 356 "get": {
330 "description": "Deletes the specified beacon including all d iagnostics data for the beacon\nas well as any attachments on the beacon (includ ing those belonging to\nother projects). This operation cannot be undone.\n\nAut henticate using an [OAuth access token](https://developers.google.com/identity/p rotocols/OAuth2)\nfrom a signed-in user with **Is owner** or **Can edit** permis sions in the\nGoogle Developers Console project.", 357 "description": "Returns detailed information about the speci fied beacon.\n\nAuthenticate using an [OAuth access token](https://developers.go ogle.com/identity/protocols/OAuth2)\nfrom a signed-in user with **viewer**, **Is owner** or **Can edit**\npermissions in the Google Developers Console project.\ n\nRequests may supply an Eddystone-EID beacon name in the form:\n`beacons/4!bea conId` where the `beaconId` is the base16 ephemeral ID\nbroadcast by the beacon. The returned `Beacon` object will contain the\nbeacon's stable Eddystone-UID. C lients not authorized to resolve the\nbeacon's ephemeral Eddystone-EID broadcast will receive an error.",
331 "httpMethod": "DELETE", 358 "httpMethod": "GET",
332 "id": "proximitybeacon.beacons.delete", 359 "id": "proximitybeacon.beacons.get",
333 "parameterOrder": [ 360 "parameterOrder": [
334 "beaconName" 361 "beaconName"
335 ], 362 ],
336 "parameters": { 363 "parameters": {
337 "projectId": { 364 "projectId": {
338 "description": "The project id of the beacon to dele te. If not provided, the project\nthat is making the request is used.\nOptional. ", 365 "description": "The project id of the beacon to requ est. If the project id is not specified\nthen the project making the request is used. The project id must match the\nproject that owns the beacon.\nOptional.",
339 "location": "query", 366 "location": "query",
340 "type": "string" 367 "type": "string"
341 }, 368 },
342 "beaconName": { 369 "beaconName": {
343 "description": "Beacon that should be deleted. A bea con name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible val ues are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\n for AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.", 370 "description": "Resource name of this beacon. A beac on name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible valu es are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nf or AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.",
344 "location": "path", 371 "location": "path",
345 "pattern": "^beacons/[^/]+$", 372 "pattern": "^beacons/[^/]+$",
346 "required": true, 373 "required": true,
347 "type": "string" 374 "type": "string"
348 } 375 }
349 }, 376 },
350 "path": "v1beta1/{+beaconName}", 377 "path": "v1beta1/{+beaconName}",
351 "response": { 378 "response": {
352 "$ref": "Empty" 379 "$ref": "Beacon"
353 }, 380 },
354 "scopes": [ 381 "scopes": [
355 "https://www.googleapis.com/auth/userlocation.beacon.reg istry" 382 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
356 ] 383 ]
357 }, 384 },
358 "deactivate": { 385 "update": {
359 "description": "Deactivates a beacon. Once deactivated, the API will not return\ninformation nor attachment data for the beacon when queried via\n`beaconinfo.getforobserved`. Calling this method on an already inactive\nb eacon will do nothing (but will return a successful response code).\n\nAuthentic ate using an [OAuth access token](https://developers.google.com/identity/protoco ls/OAuth2)\nfrom a signed-in user with **Is owner** or **Can edit** permissions in the\nGoogle Developers Console project.", 386 "description": "Updates the information about the specified beacon. **Any field that you do\nnot populate in the submitted beacon will be pe rmanently erased**, so you\nshould follow the \"read, modify, write\" pattern to avoid inadvertently\ndestroying data.\n\nChanges to the beacon status via this method will be silently ignored.\nTo update beacon status, use the separate met hods on this API for\nactivation, deactivation, and decommissioning.\nAuthentica te using an [OAuth access token](https://developers.google.com/identity/protocol s/OAuth2)\nfrom a signed-in user with **Is owner** or **Can edit** permissions i n the\nGoogle Developers Console project.",
360 "httpMethod": "POST", 387 "httpMethod": "PUT",
361 "id": "proximitybeacon.beacons.deactivate", 388 "id": "proximitybeacon.beacons.update",
362 "parameterOrder": [ 389 "parameterOrder": [
363 "beaconName" 390 "beaconName"
364 ], 391 ],
365 "parameters": { 392 "parameters": {
366 "beaconName": { 393 "beaconName": {
367 "description": "Beacon that should be deactivated. A beacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the ba se16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or ` 5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EI D or the beacon's \"stable\" UID.\nRequired.", 394 "description": "Resource name of this beacon. A beac on name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible valu es are\n`3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.\n\nThis field must be left empty when registering. After reading a beacon,\nclients can use th e name for future operations.",
368 "location": "path", 395 "location": "path",
369 "pattern": "^beacons/[^/]+$", 396 "pattern": "^beacons/[^/]+$",
370 "required": true, 397 "required": true,
371 "type": "string" 398 "type": "string"
372 }, 399 },
373 "projectId": { 400 "projectId": {
374 "description": "The project id of the beacon to deac tivate. If the project id is not\nspecified then the project making the request is used. The project id must\nmatch the project that owns the beacon.\nOptional. ", 401 "description": "The project id of the beacon to upda te. If the project id is not\nspecified then the project making the request is u sed. The project id\nmust match the project that owns the beacon.\nOptional.",
375 "location": "query", 402 "location": "query",
376 "type": "string" 403 "type": "string"
377 } 404 }
378 }, 405 },
379 "path": "v1beta1/{+beaconName}:deactivate", 406 "path": "v1beta1/{+beaconName}",
380 "response": {
381 "$ref": "Empty"
382 },
383 "scopes": [
384 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
385 ]
386 },
387 "list": {
388 "description": "Searches the beacon registry for beacons tha t match the given search\ncriteria. Only those beacons that the client has permi ssion to list\nwill be returned.\n\nAuthenticate using an [OAuth access token](h ttps://developers.google.com/identity/protocols/OAuth2)\nfrom a signed-in user w ith **viewer**, **Is owner** or **Can edit**\npermissions in the Google Develope rs Console project.",
389 "httpMethod": "GET",
390 "id": "proximitybeacon.beacons.list",
391 "parameterOrder": [],
392 "parameters": {
393 "pageToken": {
394 "description": "A pagination token obtained from a p revious request to list beacons.",
395 "location": "query",
396 "type": "string"
397 },
398 "pageSize": {
399 "description": "The maximum number of records to ret urn for this request, up to a\nserver-defined upper limit.",
400 "format": "int32",
401 "location": "query",
402 "type": "integer"
403 },
404 "q": {
405 "description": "Filter query string that supports th e following field filters:\n\n* **description:`\"<string>\"`**\n For example: * *description:\"Room 3\"**\n Returns beacons whose description matches tokens in the string \"Room 3\"\n (not necessarily that exact string).\n The string mus t be double-quoted.\n* **status:`<enum>`**\n For example: **status:active**\n Returns beacons whose status matches the given value. Values must be\n one of t he Beacon.Status enum values (case insensitive). Accepts\n multiple filters whi ch will be combined with OR logic.\n* **stability:`<enum>`**\n For example: **s tability:mobile**\n Returns beacons whose expected stability matches the given value.\n Values must be one of the Beacon.Stability enum values (case\n insens itive). Accepts multiple filters which will be combined with\n OR logic.\n* **p lace\\_id:`\"<string>\"`**\n For example: **place\\_id:\"ChIJVSZzVR8FdkgRXGmmm6 SslKw=\"**\n Returns beacons explicitly registered at the given place, expresse d as\n a Place ID obtained from [Google Places API](/places/place-id). Does not \n match places inside the given place. Does not consider the beacon's\n actua l location (which may be different from its registered place).\n Accepts multip le filters that will be combined with OR logic. The place\n ID must be double-q uoted.\n* **registration\\_time`[<|>|<=|>=]<integer>`**\n For example: **regist ration\\_time>=1433116800**\n Returns beacons whose registration time matches t he given filter.\n Supports the operators: <, >, <=, and >=. Timestamp must be expressed as\n an integer number of seconds since midnight January 1, 1970 UTC. Accepts\n at most two filters that will be combined with AND logic, to support \n \"between\" semantics. If more than two are supplied, the latter ones are\n ignored.\n* **lat:`<double> lng:<double> radius:<integer>`**\n For example: ** lat:51.1232343 lng:-1.093852 radius:1000**\n Returns beacons whose registered l ocation is within the given circle.\n When any of these fields are given, all a re required. Latitude and\n longitude must be decimal degrees between -90.0 and 90.0 and between\n -180.0 and 180.0 respectively. Radius must be an integer nu mber of\n meters between 10 and 1,000,000 (1000 km).\n* **property:`\"<string>= <string>\"`**\n For example: **property:\"battery-type=CR2032\"**\n Returns be acons which have a property of the given name and value.\n Supports multiple fi lters which will be combined with OR logic.\n The entire name=value string must be double-quoted as one string.\n* **attachment\\_type:`\"<string>\"`**\n For example: **attachment_type:\"my-namespace/my-type\"**\n Returns beacons having at least one attachment of the given namespaced\n type. Supports \"any within t his namespace\" via the partial wildcard\n syntax: \"my-namespace/*\". Supports multiple filters which will be\n combined with OR logic. The string must be do uble-quoted.\n* **indoor\\_level:`\"<string>\"`**\n For example: **indoor\\_lev el:\"1\"**\n Returns beacons which are located on the given indoor level. Accep ts\n multiple filters that will be combined with OR logic.\n\nMultiple filters on the same field are combined with OR logic (except\nregistration_time which is combined with AND logic).\nMultiple filters on different fields are combined wi th AND logic.\nFilters should be separated by spaces.\n\nAs with any HTTP query string parameter, the whole filter expression must\nbe URL-encoded.\n\nExample R EST request:\n`GET /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20 radius:1000`",
406 "location": "query",
407 "type": "string"
408 },
409 "projectId": {
410 "description": "The project id to list beacons under . If not present then the project\ncredential that made the request is used as t he project.\nOptional.",
411 "location": "query",
412 "type": "string"
413 }
414 },
415 "path": "v1beta1/beacons",
416 "response": {
417 "$ref": "ListBeaconsResponse"
418 },
419 "scopes": [
420 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
421 ]
422 },
423 "register": {
424 "description": "Registers a previously unregistered beacon g iven its `advertisedId`.\nThese IDs are unique within the system. An ID can be r egistered only once.\n\nAuthenticate using an [OAuth access token](https://devel opers.google.com/identity/protocols/OAuth2)\nfrom a signed-in user with **Is own er** or **Can edit** permissions in the\nGoogle Developers Console project.",
425 "httpMethod": "POST",
426 "id": "proximitybeacon.beacons.register",
427 "parameterOrder": [],
428 "parameters": {
429 "projectId": {
430 "description": "The project id of the project the be acon will be registered to. If\nthe project id is not specified then the project making the request\nis used.\nOptional.",
431 "location": "query",
432 "type": "string"
433 }
434 },
435 "path": "v1beta1/beacons:register",
436 "request": { 407 "request": {
437 "$ref": "Beacon" 408 "$ref": "Beacon"
438 }, 409 },
439 "response": { 410 "response": {
440 "$ref": "Beacon" 411 "$ref": "Beacon"
441 }, 412 },
442 "scopes": [ 413 "scopes": [
443 "https://www.googleapis.com/auth/userlocation.beacon.reg istry" 414 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
415 ]
416 },
417 "decommission": {
418 "description": "Decommissions the specified beacon in the se rvice. This beacon will no\nlonger be returned from `beaconinfo.getforobserved`. This operation is\npermanent -- you will not be able to re-register a beacon wi th this ID\nagain.\n\nAuthenticate using an [OAuth access token](https://develop ers.google.com/identity/protocols/OAuth2)\nfrom a signed-in user with **Is owner ** or **Can edit** permissions in the\nGoogle Developers Console project.",
419 "httpMethod": "POST",
420 "id": "proximitybeacon.beacons.decommission",
421 "parameterOrder": [
422 "beaconName"
423 ],
424 "parameters": {
425 "projectId": {
426 "description": "The project id of the beacon to deco mmission. If the project id is not\nspecified then the project making the reques t is used. The project id\nmust match the project that owns the beacon.\nOptiona l.",
427 "location": "query",
428 "type": "string"
429 },
430 "beaconName": {
431 "description": "Beacon that should be decommissioned . A beacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possi ble values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, o r `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID of the beacon's \"stable\" UID.\nRequired.",
432 "location": "path",
433 "pattern": "^beacons/[^/]+$",
434 "required": true,
435 "type": "string"
436 }
437 },
438 "path": "v1beta1/{+beaconName}:decommission",
439 "response": {
440 "$ref": "Empty"
441 },
442 "scopes": [
443 "https://www.googleapis.com/auth/userlocation.beacon.reg istry"
444 ] 444 ]
445 } 445 }
446 }, 446 },
447 "resources": { 447 "resources": {
448 "attachments": {
449 "methods": {
450 "list": {
451 "description": "Returns the attachments for the spec ified beacon that match the specified\nnamespaced-type pattern.\n\nTo control wh ich namespaced types are returned, you add the\n`namespacedType` query parameter to the request. You must either use\n`*/*`, to return all attachments, or the n amespace must be one of\nthe ones returned from the `namespaces` endpoint.\n\nA uthenticate using an [OAuth access token](https://developers.google.com/identity /protocols/OAuth2)\nfrom a signed-in user with **viewer**, **Is owner** or **Can edit**\npermissions in the Google Developers Console project.",
452 "httpMethod": "GET",
453 "id": "proximitybeacon.beacons.attachments.list",
454 "parameterOrder": [
455 "beaconName"
456 ],
457 "parameters": {
458 "projectId": {
459 "description": "The project id to list beaco n attachments under. This field can be\nused when \"*\" is specified to mean all attachment namespaces. Projects\nmay have multiple attachments with multiple na mespaces. If \"*\" is\nspecified and the projectId string is empty, then the pro ject\nmaking the request is used.\nOptional.",
460 "location": "query",
461 "type": "string"
462 },
463 "namespacedType": {
464 "description": "Specifies the namespace and type of attachment to include in response in\n<var>namespace/type</var> format. Accepts `*/*` to specify\n\"all types in all namespaces\".",
465 "location": "query",
466 "type": "string"
467 },
468 "beaconName": {
469 "description": "Beacon whose attachments sho uld be fetched. A beacon name has the\nformat \"beacons/N!beaconId\" where the b eaconId is the base16 ID broadcast\nby the beacon and N is a code for the beacon 's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use eithe r the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.",
470 "location": "path",
471 "pattern": "^beacons/[^/]+$",
472 "required": true,
473 "type": "string"
474 }
475 },
476 "path": "v1beta1/{+beaconName}/attachments",
477 "response": {
478 "$ref": "ListBeaconAttachmentsResponse"
479 },
480 "scopes": [
481 "https://www.googleapis.com/auth/userlocation.be acon.registry"
482 ]
483 },
484 "batchDelete": {
485 "description": "Deletes multiple attachments on a gi ven beacon. This operation is\npermanent and cannot be undone.\n\nYou can option ally specify `namespacedType` to choose which attachments\nshould be deleted. If you do not specify `namespacedType`, all your\nattachments on the given beacon will be deleted. You also may explicitly\nspecify `*/*` to delete all.\n\nAuthe nticate using an [OAuth access token](https://developers.google.com/identity/pro tocols/OAuth2)\nfrom a signed-in user with **Is owner** or **Can edit** permissi ons in the\nGoogle Developers Console project.",
486 "httpMethod": "POST",
487 "id": "proximitybeacon.beacons.attachments.batchDele te",
488 "parameterOrder": [
489 "beaconName"
490 ],
491 "parameters": {
492 "namespacedType": {
493 "description": "Specifies the namespace and type of attachments to delete in\n`namespace/type` format. Accepts `*/*` to spec ify\n\"all types in all namespaces\".\nOptional.",
494 "location": "query",
495 "type": "string"
496 },
497 "beaconName": {
498 "description": "The beacon whose attachments should be deleted. A beacon name has the\nformat \"beacons/N!beaconId\" where t he beaconId is the base16 ID broadcast\nby the beacon and N is a code for the be acon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use e ither the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.",
499 "location": "path",
500 "pattern": "^beacons/[^/]+$",
501 "required": true,
502 "type": "string"
503 },
504 "projectId": {
505 "description": "The project id to delete bea con attachments under. This field can be\nused when \"*\" is specified to mean a ll attachment namespaces. Projects\nmay have multiple attachments with multiple namespaces. If \"*\" is\nspecified and the projectId string is empty, then the p roject\nmaking the request is used.\nOptional.",
506 "location": "query",
507 "type": "string"
508 }
509 },
510 "path": "v1beta1/{+beaconName}/attachments:batchDele te",
511 "response": {
512 "$ref": "DeleteAttachmentsResponse"
513 },
514 "scopes": [
515 "https://www.googleapis.com/auth/userlocation.be acon.registry"
516 ]
517 },
518 "create": {
519 "description": "Associates the given data with the s pecified beacon. Attachment data must\ncontain two parts:\n<ul>\n<li>A namespace d type.</li>\n<li>The actual attachment data itself.</li>\n</ul>\nThe namespaced type consists of two parts, the namespace and the type.\nThe namespace must be one of the values returned by the `namespaces`\nendpoint, while the type can be a string of any characters except for the\nforward slash (`/`) up to 100 charact ers in length.\n\nAttachment data can be up to 1024 bytes long.\n\nAuthenticate using an [OAuth access token](https://developers.google.com/identity/protocols/O Auth2)\nfrom a signed-in user with **Is owner** or **Can edit** permissions in t he\nGoogle Developers Console project.",
520 "httpMethod": "POST",
521 "id": "proximitybeacon.beacons.attachments.create",
522 "parameterOrder": [
523 "beaconName"
524 ],
525 "parameters": {
526 "beaconName": {
527 "description": "Beacon on which the attachme nt should be created. A beacon name has the\nformat \"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast\nby the beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID , `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.",
528 "location": "path",
529 "pattern": "^beacons/[^/]+$",
530 "required": true,
531 "type": "string"
532 },
533 "projectId": {
534 "description": "The project id of the projec t the attachment will belong to. If\nthe project id is not specified then the pr oject making the request\nis used.\nOptional.",
535 "location": "query",
536 "type": "string"
537 }
538 },
539 "path": "v1beta1/{+beaconName}/attachments",
540 "request": {
541 "$ref": "BeaconAttachment"
542 },
543 "response": {
544 "$ref": "BeaconAttachment"
545 },
546 "scopes": [
547 "https://www.googleapis.com/auth/userlocation.be acon.registry"
548 ]
549 },
550 "delete": {
551 "description": "Deletes the specified attachment for the given beacon. Each attachment has\na unique attachment name (`attachmentNam e`) which is returned when you\nfetch the attachment data via this API. You spec ify this with the delete\nrequest to control which attachment is removed. This o peration cannot be\nundone.\n\nAuthenticate using an [OAuth access token](https: //developers.google.com/identity/protocols/OAuth2)\nfrom a signed-in user with * *Is owner** or **Can edit** permissions in the\nGoogle Developers Console projec t.",
552 "httpMethod": "DELETE",
553 "id": "proximitybeacon.beacons.attachments.delete",
554 "parameterOrder": [
555 "attachmentName"
556 ],
557 "parameters": {
558 "projectId": {
559 "description": "The project id of the attach ment to delete. If not provided, the project\nthat is making the request is used .\nOptional.",
560 "location": "query",
561 "type": "string"
562 },
563 "attachmentName": {
564 "description": "The attachment name (`attach mentName`) of\nthe attachment to remove. For example:\n`beacons/3!893737abc9/att achments/c5e937-af0-494-959-ec49d12738`. For\nEddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the\nbeacon's current EID, or its \"stable\" Eddystone-UID.\nRequired.",
565 "location": "path",
566 "pattern": "^beacons/[^/]+/attachments/[^/]+ $",
567 "required": true,
568 "type": "string"
569 }
570 },
571 "path": "v1beta1/{+attachmentName}",
572 "response": {
573 "$ref": "Empty"
574 },
575 "scopes": [
576 "https://www.googleapis.com/auth/userlocation.be acon.registry"
577 ]
578 }
579 }
580 },
581 "diagnostics": { 448 "diagnostics": {
582 "methods": { 449 "methods": {
583 "list": { 450 "list": {
584 "description": "List the diagnostics for a single be acon. You can also list diagnostics for\nall the beacons owned by your Google De velopers Console project by using\nthe beacon name `beacons/-`.\n\nAuthenticate using an [OAuth access token](https://developers.google.com/identity/protocols/O Auth2)\nfrom a signed-in user with **viewer**, **Is owner** or **Can edit**\nper missions in the Google Developers Console project.", 451 "description": "List the diagnostics for a single be acon. You can also list diagnostics for\nall the beacons owned by your Google De velopers Console project by using\nthe beacon name `beacons/-`.\n\nAuthenticate using an [OAuth access token](https://developers.google.com/identity/protocols/O Auth2)\nfrom a signed-in user with **viewer**, **Is owner** or **Can edit**\nper missions in the Google Developers Console project.",
585 "httpMethod": "GET", 452 "httpMethod": "GET",
586 "id": "proximitybeacon.beacons.diagnostics.list", 453 "id": "proximitybeacon.beacons.diagnostics.list",
587 "parameterOrder": [ 454 "parameterOrder": [
588 "beaconName" 455 "beaconName"
589 ], 456 ],
590 "parameters": { 457 "parameters": {
458 "beaconName": {
459 "description": "Beacon that the diagnostics are for.",
460 "location": "path",
461 "pattern": "^beacons/[^/]+$",
462 "required": true,
463 "type": "string"
464 },
591 "pageToken": { 465 "pageToken": {
592 "description": "Requests results that occur after the `page_token`, obtained from the\nresponse to a previous request. Optio nal.", 466 "description": "Requests results that occur after the `page_token`, obtained from the\nresponse to a previous request. Optio nal.",
593 "location": "query", 467 "location": "query",
594 "type": "string" 468 "type": "string"
595 }, 469 },
596 "alertFilter": { 470 "alertFilter": {
597 "description": "Requests only beacons that h ave the given alert. For example, to find\nbeacons that have low batteries use ` alert_filter=LOW_BATTERY`.", 471 "description": "Requests only beacons that h ave the given alert. For example, to find\nbeacons that have low batteries use ` alert_filter=LOW_BATTERY`.",
598 "enum": [ 472 "enum": [
599 "ALERT_UNSPECIFIED", 473 "ALERT_UNSPECIFIED",
600 "WRONG_LOCATION", 474 "WRONG_LOCATION",
601 "LOW_BATTERY" 475 "LOW_BATTERY"
602 ], 476 ],
603 "location": "query", 477 "location": "query",
604 "type": "string" 478 "type": "string"
605 }, 479 },
606 "pageSize": { 480 "pageSize": {
607 "description": "Specifies the maximum number of results to return. Defaults to\n10. Maximum 1000. Optional.", 481 "description": "Specifies the maximum number of results to return. Defaults to\n10. Maximum 1000. Optional.",
608 "format": "int32", 482 "format": "int32",
609 "location": "query", 483 "location": "query",
610 "type": "integer" 484 "type": "integer"
611 }, 485 },
612 "projectId": { 486 "projectId": {
613 "description": "Requests only diagnostic rec ords for the given project id. If not set,\nthen the project making the request will be used for looking up\ndiagnostic records. Optional.", 487 "description": "Requests only diagnostic rec ords for the given project id. If not set,\nthen the project making the request will be used for looking up\ndiagnostic records. Optional.",
614 "location": "query", 488 "location": "query",
615 "type": "string" 489 "type": "string"
616 },
617 "beaconName": {
618 "description": "Beacon that the diagnostics are for.",
619 "location": "path",
620 "pattern": "^beacons/[^/]+$",
621 "required": true,
622 "type": "string"
623 } 490 }
624 }, 491 },
625 "path": "v1beta1/{+beaconName}/diagnostics", 492 "path": "v1beta1/{+beaconName}/diagnostics",
626 "response": { 493 "response": {
627 "$ref": "ListDiagnosticsResponse" 494 "$ref": "ListDiagnosticsResponse"
628 }, 495 },
629 "scopes": [ 496 "scopes": [
630 "https://www.googleapis.com/auth/userlocation.be acon.registry" 497 "https://www.googleapis.com/auth/userlocation.be acon.registry"
498 ]
499 }
500 }
501 },
502 "attachments": {
503 "methods": {
504 "delete": {
505 "description": "Deletes the specified attachment for the given beacon. Each attachment has\na unique attachment name (`attachmentNam e`) which is returned when you\nfetch the attachment data via this API. You spec ify this with the delete\nrequest to control which attachment is removed. This o peration cannot be\nundone.\n\nAuthenticate using an [OAuth access token](https: //developers.google.com/identity/protocols/OAuth2)\nfrom a signed-in user with * *Is owner** or **Can edit** permissions in the\nGoogle Developers Console projec t.",
506 "httpMethod": "DELETE",
507 "id": "proximitybeacon.beacons.attachments.delete",
508 "parameterOrder": [
509 "attachmentName"
510 ],
511 "parameters": {
512 "attachmentName": {
513 "description": "The attachment name (`attach mentName`) of\nthe attachment to remove. For example:\n`beacons/3!893737abc9/att achments/c5e937-af0-494-959-ec49d12738`. For\nEddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the\nbeacon's current EID, or its \"stable\" Eddystone-UID.\nRequired.",
514 "location": "path",
515 "pattern": "^beacons/[^/]+/attachments/[^/]+ $",
516 "required": true,
517 "type": "string"
518 },
519 "projectId": {
520 "description": "The project id of the attach ment to delete. If not provided, the project\nthat is making the request is used .\nOptional.",
521 "location": "query",
522 "type": "string"
523 }
524 },
525 "path": "v1beta1/{+attachmentName}",
526 "response": {
527 "$ref": "Empty"
528 },
529 "scopes": [
530 "https://www.googleapis.com/auth/userlocation.be acon.registry"
531 ]
532 },
533 "list": {
534 "description": "Returns the attachments for the spec ified beacon that match the specified\nnamespaced-type pattern.\n\nTo control wh ich namespaced types are returned, you add the\n`namespacedType` query parameter to the request. You must either use\n`*/*`, to return all attachments, or the n amespace must be one of\nthe ones returned from the `namespaces` endpoint.\n\nA uthenticate using an [OAuth access token](https://developers.google.com/identity /protocols/OAuth2)\nfrom a signed-in user with **viewer**, **Is owner** or **Can edit**\npermissions in the Google Developers Console project.",
535 "httpMethod": "GET",
536 "id": "proximitybeacon.beacons.attachments.list",
537 "parameterOrder": [
538 "beaconName"
539 ],
540 "parameters": {
541 "namespacedType": {
542 "description": "Specifies the namespace and type of attachment to include in response in\n<var>namespace/type</var> format. Accepts `*/*` to specify\n\"all types in all namespaces\".",
543 "location": "query",
544 "type": "string"
545 },
546 "beaconName": {
547 "description": "Beacon whose attachments sho uld be fetched. A beacon name has the\nformat \"beacons/N!beaconId\" where the b eaconId is the base16 ID broadcast\nby the beacon and N is a code for the beacon 's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use eithe r the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.",
548 "location": "path",
549 "pattern": "^beacons/[^/]+$",
550 "required": true,
551 "type": "string"
552 },
553 "projectId": {
554 "description": "The project id to list beaco n attachments under. This field can be\nused when \"*\" is specified to mean all attachment namespaces. Projects\nmay have multiple attachments with multiple na mespaces. If \"*\" is\nspecified and the projectId string is empty, then the pro ject\nmaking the request is used.\nOptional.",
555 "location": "query",
556 "type": "string"
557 }
558 },
559 "path": "v1beta1/{+beaconName}/attachments",
560 "response": {
561 "$ref": "ListBeaconAttachmentsResponse"
562 },
563 "scopes": [
564 "https://www.googleapis.com/auth/userlocation.be acon.registry"
565 ]
566 },
567 "batchDelete": {
568 "description": "Deletes multiple attachments on a gi ven beacon. This operation is\npermanent and cannot be undone.\n\nYou can option ally specify `namespacedType` to choose which attachments\nshould be deleted. If you do not specify `namespacedType`, all your\nattachments on the given beacon will be deleted. You also may explicitly\nspecify `*/*` to delete all.\n\nAuthe nticate using an [OAuth access token](https://developers.google.com/identity/pro tocols/OAuth2)\nfrom a signed-in user with **Is owner** or **Can edit** permissi ons in the\nGoogle Developers Console project.",
569 "httpMethod": "POST",
570 "id": "proximitybeacon.beacons.attachments.batchDele te",
571 "parameterOrder": [
572 "beaconName"
573 ],
574 "parameters": {
575 "projectId": {
576 "description": "The project id to delete bea con attachments under. This field can be\nused when \"*\" is specified to mean a ll attachment namespaces. Projects\nmay have multiple attachments with multiple namespaces. If \"*\" is\nspecified and the projectId string is empty, then the p roject\nmaking the request is used.\nOptional.",
577 "location": "query",
578 "type": "string"
579 },
580 "namespacedType": {
581 "description": "Specifies the namespace and type of attachments to delete in\n`namespace/type` format. Accepts `*/*` to spec ify\n\"all types in all namespaces\".\nOptional.",
582 "location": "query",
583 "type": "string"
584 },
585 "beaconName": {
586 "description": "The beacon whose attachments should be deleted. A beacon name has the\nformat \"beacons/N!beaconId\" where t he beaconId is the base16 ID broadcast\nby the beacon and N is a code for the be acon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use e ither the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.",
587 "location": "path",
588 "pattern": "^beacons/[^/]+$",
589 "required": true,
590 "type": "string"
591 }
592 },
593 "path": "v1beta1/{+beaconName}/attachments:batchDele te",
594 "response": {
595 "$ref": "DeleteAttachmentsResponse"
596 },
597 "scopes": [
598 "https://www.googleapis.com/auth/userlocation.be acon.registry"
599 ]
600 },
601 "create": {
602 "description": "Associates the given data with the s pecified beacon. Attachment data must\ncontain two parts:\n<ul>\n<li>A namespace d type.</li>\n<li>The actual attachment data itself.</li>\n</ul>\nThe namespaced type consists of two parts, the namespace and the type.\nThe namespace must be one of the values returned by the `namespaces`\nendpoint, while the type can be a string of any characters except for the\nforward slash (`/`) up to 100 charact ers in length.\n\nAttachment data can be up to 1024 bytes long.\n\nAuthenticate using an [OAuth access token](https://developers.google.com/identity/protocols/O Auth2)\nfrom a signed-in user with **Is owner** or **Can edit** permissions in t he\nGoogle Developers Console project.",
603 "httpMethod": "POST",
604 "id": "proximitybeacon.beacons.attachments.create",
605 "parameterOrder": [
606 "beaconName"
607 ],
608 "parameters": {
609 "projectId": {
610 "description": "The project id of the projec t the attachment will belong to. If\nthe project id is not specified then the pr oject making the request\nis used.\nOptional.",
611 "location": "query",
612 "type": "string"
613 },
614 "beaconName": {
615 "description": "Beacon on which the attachme nt should be created. A beacon name has the\nformat \"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast\nby the beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID , `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.",
616 "location": "path",
617 "pattern": "^beacons/[^/]+$",
618 "required": true,
619 "type": "string"
620 }
621 },
622 "path": "v1beta1/{+beaconName}/attachments",
623 "request": {
624 "$ref": "BeaconAttachment"
625 },
626 "response": {
627 "$ref": "BeaconAttachment"
628 },
629 "scopes": [
630 "https://www.googleapis.com/auth/userlocation.be acon.registry"
631 ] 631 ]
632 } 632 }
633 } 633 }
634 } 634 }
635 } 635 }
636 } 636 }
637 }, 637 },
638 "revision": "20170629", 638 "revision": "20170717",
639 "rootUrl": "https://proximitybeacon.googleapis.com/", 639 "rootUrl": "https://proximitybeacon.googleapis.com/",
640 "schemas": { 640 "schemas": {
641 "LatLng": {
642 "description": "An object representing a latitude/longitude pair. Th is is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http ://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n \n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees long itude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n retur n r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], resp ectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 36 0, NormalizeLongitude(longitude)\n else:\n return 180 - r, Normalize Longitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLo ngitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == Normali zeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\ n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10. 0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng (-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n as sert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == N ormalizeLatLng(-270.0, 10.0)",
643 "id": "LatLng",
644 "properties": {
645 "latitude": {
646 "description": "The latitude in degrees. It must be in the r ange [-90.0, +90.0].",
647 "format": "double",
648 "type": "number"
649 },
650 "longitude": {
651 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
652 "format": "double",
653 "type": "number"
654 }
655 },
656 "type": "object"
657 },
658 "ListBeaconAttachmentsResponse": {
659 "description": "Response to `ListBeaconAttachments` that contains th e requested attachments.",
660 "id": "ListBeaconAttachmentsResponse",
661 "properties": {
662 "attachments": {
663 "description": "The attachments that corresponded to the req uest params.",
664 "items": {
665 "$ref": "BeaconAttachment"
666 },
667 "type": "array"
668 }
669 },
670 "type": "object"
671 },
672 "Namespace": { 641 "Namespace": {
673 "description": "An attachment namespace defines read and write acces s for all the attachments\ncreated under it. Each namespace is globally unique, and owned by one\nproject which is the only project that can create attachments under it.", 642 "description": "An attachment namespace defines read and write acces s for all the attachments\ncreated under it. Each namespace is globally unique, and owned by one\nproject which is the only project that can create attachments under it.",
674 "id": "Namespace", 643 "id": "Namespace",
675 "properties": { 644 "properties": {
676 "namespaceName": { 645 "namespaceName": {
677 "description": "Resource name of this namespace. Namespaces names have the format:\n<code>namespaces/<var>namespace</var></code>.", 646 "description": "Resource name of this namespace. Namespaces names have the format:\n<code>namespaces/<var>namespace</var></code>.",
678 "type": "string" 647 "type": "string"
679 }, 648 },
680 "servingVisibility": { 649 "servingVisibility": {
681 "description": "Specifies what clients may receive attachmen ts under this namespace\nvia `beaconinfo.getforobserved`.", 650 "description": "Specifies what clients may receive attachmen ts under this namespace\nvia `beaconinfo.getforobserved`.",
682 "enum": [ 651 "enum": [
683 "VISIBILITY_UNSPECIFIED", 652 "VISIBILITY_UNSPECIFIED",
684 "UNLISTED", 653 "UNLISTED",
685 "PUBLIC" 654 "PUBLIC"
686 ], 655 ],
687 "enumDescriptions": [ 656 "enumDescriptions": [
688 "Do not use this value.", 657 "Do not use this value.",
689 "Served only to the project that owns the namespace.", 658 "Served only to the project that owns the namespace.",
690 "Any project can subscribe to attachments under the name space." 659 "Any project can subscribe to attachments under the name space."
691 ], 660 ],
692 "type": "string" 661 "type": "string"
693 } 662 }
694 }, 663 },
695 "type": "object" 664 "type": "object"
696 }, 665 },
697 "AttachmentInfo": { 666 "AttachmentInfo": {
698 "description": "A subset of attachment information served via the\n` beaconinfo.getforobserved` method, used when your users encounter your\nbeacons. ", 667 "description": "A subset of attachment information served via the\n` beaconinfo.getforobserved` method, used when your users encounter your\nbeacons. ",
699 "id": "AttachmentInfo", 668 "id": "AttachmentInfo",
700 "properties": { 669 "properties": {
701 "namespacedType": {
702 "description": "Specifies what kind of attachment this is. T ells a client how to\ninterpret the `data` field. Format is <var>namespace/type< /var>, for\nexample <code>scrupulous-wombat-12345/welcome-message</code>",
703 "type": "string"
704 },
705 "data": { 670 "data": {
706 "description": "An opaque data container for client-provided data.", 671 "description": "An opaque data container for client-provided data.",
707 "format": "byte", 672 "format": "byte",
708 "type": "string" 673 "type": "string"
674 },
675 "namespacedType": {
676 "description": "Specifies what kind of attachment this is. T ells a client how to\ninterpret the `data` field. Format is <var>namespace/type< /var>, for\nexample <code>scrupulous-wombat-12345/welcome-message</code>",
677 "type": "string"
709 } 678 }
710 }, 679 },
711 "type": "object" 680 "type": "object"
712 }, 681 },
713 "BeaconInfo": { 682 "BeaconInfo": {
714 "description": "A subset of beacon information served via the `beaco ninfo.getforobserved`\nmethod, which you call when users of your app encounter y our beacons.", 683 "description": "A subset of beacon information served via the `beaco ninfo.getforobserved`\nmethod, which you call when users of your app encounter y our beacons.",
715 "id": "BeaconInfo", 684 "id": "BeaconInfo",
716 "properties": { 685 "properties": {
717 "beaconName": { 686 "beaconName": {
718 "description": "The name under which the beacon is registere d.", 687 "description": "The name under which the beacon is registere d.",
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 "Usually stable but may move rarely, usually within a si ngle place,\nfor example a store display.", 838 "Usually stable but may move rarely, usually within a si ngle place,\nfor example a store display.",
870 "Moves frequently, for example a personal item or food t ruck.", 839 "Moves frequently, for example a personal item or food t ruck.",
871 "Moves continuously in service, for example a bus or tra in." 840 "Moves continuously in service, for example a bus or tra in."
872 ], 841 ],
873 "type": "string" 842 "type": "string"
874 }, 843 },
875 "advertisedId": { 844 "advertisedId": {
876 "$ref": "AdvertisedId", 845 "$ref": "AdvertisedId",
877 "description": "The identifier of a beacon as advertised by it. This field must be\npopulated when registering. It may be empty when updatin g a beacon\nrecord because it is ignored in updates.\n\nWhen registering a beaco n that broadcasts Eddystone-EID, this field\nshould contain a \"stable\" Eddysto ne-UID that identifies the beacon and\nlinks it to its attachments. The stable E ddystone-UID is only used for\nadministering the beacon." 846 "description": "The identifier of a beacon as advertised by it. This field must be\npopulated when registering. It may be empty when updatin g a beacon\nrecord because it is ignored in updates.\n\nWhen registering a beaco n that broadcasts Eddystone-EID, this field\nshould contain a \"stable\" Eddysto ne-UID that identifies the beacon and\nlinks it to its attachments. The stable E ddystone-UID is only used for\nadministering the beacon."
878 }, 847 },
879 "ephemeralIdRegistration": {
880 "$ref": "EphemeralIdRegistration",
881 "description": "Write-only registration parameters for beaco ns using Eddystone-EID\n(remotely resolved ephemeral ID) format. This informatio n will not be\npopulated in API responses. When submitting this data, the `adver tised_id`\nfield must contain an ID of type Eddystone-UID. Any other ID type wil l\nresult in an error."
882 },
883 "provisioningKey": { 848 "provisioningKey": {
884 "description": "Some beacons may require a user to provide a n authorization key before\nchanging any of its configuration (e.g. broadcast fr ames, transmit power).\nThis field provides a place to store and control access to that key.\nThis field is populated in responses to `GET /v1beta1/beacons/3!be aconId`\nfrom users with write access to the given beacon. That is to say: If th e\nuser is authorized to write the beacon's confidential data in the service,\nt he service considers them authorized to configure the beacon. Note\nthat this ke y grants nothing on the service, only on the beacon itself.", 849 "description": "Some beacons may require a user to provide a n authorization key before\nchanging any of its configuration (e.g. broadcast fr ames, transmit power).\nThis field provides a place to store and control access to that key.\nThis field is populated in responses to `GET /v1beta1/beacons/3!be aconId`\nfrom users with write access to the given beacon. That is to say: If th e\nuser is authorized to write the beacon's confidential data in the service,\nt he service considers them authorized to configure the beacon. Note\nthat this ke y grants nothing on the service, only on the beacon itself.",
885 "format": "byte", 850 "format": "byte",
886 "type": "string" 851 "type": "string"
887 }, 852 },
853 "ephemeralIdRegistration": {
854 "$ref": "EphemeralIdRegistration",
855 "description": "Write-only registration parameters for beaco ns using Eddystone-EID\n(remotely resolved ephemeral ID) format. This informatio n will not be\npopulated in API responses. When submitting this data, the `adver tised_id`\nfield must contain an ID of type Eddystone-UID. Any other ID type wil l\nresult in an error."
856 },
888 "latLng": { 857 "latLng": {
889 "$ref": "LatLng", 858 "$ref": "LatLng",
890 "description": "The location of the beacon, expressed as a l atitude and longitude pair.\nThis location is given when the beacon is registere d or updated. It does\nnot necessarily indicate the actual current location of t he beacon.\nOptional." 859 "description": "The location of the beacon, expressed as a l atitude and longitude pair.\nThis location is given when the beacon is registere d or updated. It does\nnot necessarily indicate the actual current location of t he beacon.\nOptional."
891 }, 860 },
861 "placeId": {
862 "description": "The [Google Places API](/places/place-id) Pl ace ID of the place where\nthe beacon is deployed. This is given when the beacon is registered or\nupdated, not automatically detected in any way.\nOptional.",
863 "type": "string"
864 },
892 "description": { 865 "description": {
893 "description": "Free text used to identify and describe the beacon. Maximum length 140\ncharacters.\nOptional.", 866 "description": "Free text used to identify and describe the beacon. Maximum length 140\ncharacters.\nOptional.",
894 "type": "string" 867 "type": "string"
895 },
896 "placeId": {
897 "description": "The [Google Places API](/places/place-id) Pl ace ID of the place where\nthe beacon is deployed. This is given when the beacon is registered or\nupdated, not automatically detected in any way.\nOptional.",
898 "type": "string"
899 } 868 }
900 }, 869 },
901 "type": "object" 870 "type": "object"
902 }, 871 },
903 "AdvertisedId": { 872 "AdvertisedId": {
904 "description": "Defines a unique identifier of a beacon as broadcast by the device.", 873 "description": "Defines a unique identifier of a beacon as broadcast by the device.",
905 "id": "AdvertisedId", 874 "id": "AdvertisedId",
906 "properties": { 875 "properties": {
907 "type": { 876 "type": {
908 "description": "Specifies the identifier type.\nRequired.", 877 "description": "Specifies the identifier type.\nRequired.",
(...skipping 14 matching lines...) Expand all
923 "type": "string" 892 "type": "string"
924 }, 893 },
925 "id": { 894 "id": {
926 "description": "The actual beacon identifier, as broadcast b y the beacon hardware. Must be\n[base64](http://tools.ietf.org/html/rfc4648#sect ion-4) encoded in HTTP\nrequests, and will be so encoded (with padding) in respo nses. The base64\nencoding should be of the binary byte-stream and not any textu al (such as\nhex) representation thereof.\nRequired.", 895 "description": "The actual beacon identifier, as broadcast b y the beacon hardware. Must be\n[base64](http://tools.ietf.org/html/rfc4648#sect ion-4) encoded in HTTP\nrequests, and will be so encoded (with padding) in respo nses. The base64\nencoding should be of the binary byte-stream and not any textu al (such as\nhex) representation thereof.\nRequired.",
927 "format": "byte", 896 "format": "byte",
928 "type": "string" 897 "type": "string"
929 } 898 }
930 }, 899 },
931 "type": "object" 900 "type": "object"
932 }, 901 },
902 "IndoorLevel": {
903 "description": "Indoor level, a human-readable string as returned by Google Maps APIs,\nuseful to indicate which floor of a building a beacon is loc ated on.",
904 "id": "IndoorLevel",
905 "properties": {
906 "name": {
907 "description": "The name of this level.",
908 "type": "string"
909 }
910 },
911 "type": "object"
912 },
933 "Date": { 913 "Date": {
934 "description": "Represents a whole calendar date, e.g. date of birth . The time of day and\ntime zone are either specified elsewhere or are not signi ficant. The date\nis relative to the Proleptic Gregorian Calendar. The day may b e 0 to\nrepresent a year and month where the day is not significant, e.g. credit card\nexpiration date. The year may be 0 to represent a month and day independe nt\nof year, e.g. anniversary date. Related types are google.type.TimeOfDay\nand `google.protobuf.Timestamp`.", 914 "description": "Represents a whole calendar date, e.g. date of birth . The time of day and\ntime zone are either specified elsewhere or are not signi ficant. The date\nis relative to the Proleptic Gregorian Calendar. The day may b e 0 to\nrepresent a year and month where the day is not significant, e.g. credit card\nexpiration date. The year may be 0 to represent a month and day independe nt\nof year, e.g. anniversary date. Related types are google.type.TimeOfDay\nand `google.protobuf.Timestamp`.",
935 "id": "Date", 915 "id": "Date",
936 "properties": { 916 "properties": {
917 "month": {
918 "description": "Month of year. Must be from 1 to 12.",
919 "format": "int32",
920 "type": "integer"
921 },
937 "day": { 922 "day": {
938 "description": "Day of month. Must be from 1 to 31 and valid for the year and month, or 0\nif specifying a year/month where the day is not s ignificant.", 923 "description": "Day of month. Must be from 1 to 31 and valid for the year and month, or 0\nif specifying a year/month where the day is not s ignificant.",
939 "format": "int32", 924 "format": "int32",
940 "type": "integer" 925 "type": "integer"
941 }, 926 },
942 "year": { 927 "year": {
943 "description": "Year of date. Must be from 1 to 9999, or 0 i f specifying a date without\na year.", 928 "description": "Year of date. Must be from 1 to 9999, or 0 i f specifying a date without\na year.",
944 "format": "int32", 929 "format": "int32",
945 "type": "integer" 930 "type": "integer"
946 },
947 "month": {
948 "description": "Month of year. Must be from 1 to 12.",
949 "format": "int32",
950 "type": "integer"
951 } 931 }
952 }, 932 },
953 "type": "object" 933 "type": "object"
954 },
955 "IndoorLevel": {
956 "description": "Indoor level, a human-readable string as returned by Google Maps APIs,\nuseful to indicate which floor of a building a beacon is loc ated on.",
957 "id": "IndoorLevel",
958 "properties": {
959 "name": {
960 "description": "The name of this level.",
961 "type": "string"
962 }
963 },
964 "type": "object"
965 }, 934 },
966 "ListNamespacesResponse": { 935 "ListNamespacesResponse": {
967 "description": "Response to ListNamespacesRequest that contains all the project's namespaces.", 936 "description": "Response to ListNamespacesRequest that contains all the project's namespaces.",
968 "id": "ListNamespacesResponse", 937 "id": "ListNamespacesResponse",
969 "properties": { 938 "properties": {
970 "namespaces": { 939 "namespaces": {
971 "description": "The attachments that corresponded to the req uest params.", 940 "description": "The attachments that corresponded to the req uest params.",
972 "items": { 941 "items": {
973 "$ref": "Namespace" 942 "$ref": "Namespace"
974 }, 943 },
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 "description": "Resource name of the beacon. For Eddystone-E ID beacons, this may\nbe the beacon's current EID, or the beacon's \"stable\" Ed dystone-UID.", 975 "description": "Resource name of the beacon. For Eddystone-E ID beacons, this may\nbe the beacon's current EID, or the beacon's \"stable\" Ed dystone-UID.",
1007 "type": "string" 976 "type": "string"
1008 } 977 }
1009 }, 978 },
1010 "type": "object" 979 "type": "object"
1011 }, 980 },
1012 "ListBeaconsResponse": { 981 "ListBeaconsResponse": {
1013 "description": "Response that contains list beacon results and pagin ation help.", 982 "description": "Response that contains list beacon results and pagin ation help.",
1014 "id": "ListBeaconsResponse", 983 "id": "ListBeaconsResponse",
1015 "properties": { 984 "properties": {
1016 "nextPageToken": {
1017 "description": "An opaque pagination token that the client m ay provide in their next\nrequest to retrieve the next page of results.",
1018 "type": "string"
1019 },
1020 "totalCount": { 985 "totalCount": {
1021 "description": "Estimate of the total number of beacons matc hed by the query. Higher\nvalues may be less accurate.", 986 "description": "Estimate of the total number of beacons matc hed by the query. Higher\nvalues may be less accurate.",
1022 "format": "int64", 987 "format": "int64",
1023 "type": "string" 988 "type": "string"
1024 }, 989 },
1025 "beacons": { 990 "beacons": {
1026 "description": "The beacons that matched the search criteria .", 991 "description": "The beacons that matched the search criteria .",
1027 "items": { 992 "items": {
1028 "$ref": "Beacon" 993 "$ref": "Beacon"
1029 }, 994 },
1030 "type": "array" 995 "type": "array"
996 },
997 "nextPageToken": {
998 "description": "An opaque pagination token that the client m ay provide in their next\nrequest to retrieve the next page of results.",
999 "type": "string"
1031 } 1000 }
1032 }, 1001 },
1033 "type": "object" 1002 "type": "object"
1034 }, 1003 },
1004 "Empty": {
1005 "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use i t as the request\nor the response type of an API method. For instance:\n\n se rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty );\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
1006 "id": "Empty",
1007 "properties": {},
1008 "type": "object"
1009 },
1035 "GetInfoForObservedBeaconsRequest": { 1010 "GetInfoForObservedBeaconsRequest": {
1036 "description": "Request for beacon and attachment information about beacons that\na mobile client has encountered \"in the wild\".", 1011 "description": "Request for beacon and attachment information about beacons that\na mobile client has encountered \"in the wild\".",
1037 "id": "GetInfoForObservedBeaconsRequest", 1012 "id": "GetInfoForObservedBeaconsRequest",
1038 "properties": { 1013 "properties": {
1039 "observations": { 1014 "observations": {
1040 "description": "The beacons that the client has encountered. \nAt least one must be given.", 1015 "description": "The beacons that the client has encountered. \nAt least one must be given.",
1041 "items": { 1016 "items": {
1042 "$ref": "Observation" 1017 "$ref": "Observation"
1043 }, 1018 },
1044 "type": "array" 1019 "type": "array"
1045 }, 1020 },
1046 "namespacedTypes": { 1021 "namespacedTypes": {
1047 "description": "Specifies what kind of attachments to includ e in the response.\nWhen given, the response will include only attachments of th e given types.\nWhen empty, no attachments will be returned. Must be in the form at\n<var>namespace/type</var>. Accepts `*` to specify all types in\nall namespac es owned by the client.\nOptional.", 1022 "description": "Specifies what kind of attachments to includ e in the response.\nWhen given, the response will include only attachments of th e given types.\nWhen empty, no attachments will be returned. Must be in the form at\n<var>namespace/type</var>. Accepts `*` to specify all types in\nall namespac es owned by the client.\nOptional.",
1048 "items": { 1023 "items": {
1049 "type": "string" 1024 "type": "string"
1050 }, 1025 },
1051 "type": "array" 1026 "type": "array"
1052 } 1027 }
1053 }, 1028 },
1054 "type": "object" 1029 "type": "object"
1055 }, 1030 },
1056 "Empty": {
1057 "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use i t as the request\nor the response type of an API method. For instance:\n\n se rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty );\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
1058 "id": "Empty",
1059 "properties": {},
1060 "type": "object"
1061 },
1062 "BeaconAttachment": { 1031 "BeaconAttachment": {
1063 "description": "Project-specific data associated with a beacon.", 1032 "description": "Project-specific data associated with a beacon.",
1064 "id": "BeaconAttachment", 1033 "id": "BeaconAttachment",
1065 "properties": { 1034 "properties": {
1066 "attachmentName": { 1035 "attachmentName": {
1067 "description": "Resource name of this attachment. Attachment names have the format:\n<code>beacons/<var>beacon_id</var>/attachments/<var>att achment_id</var></code>.\nLeave this empty on creation.", 1036 "description": "Resource name of this attachment. Attachment names have the format:\n<code>beacons/<var>beacon_id</var>/attachments/<var>att achment_id</var></code>.\nLeave this empty on creation.",
1068 "type": "string" 1037 "type": "string"
1069 }, 1038 },
1070 "namespacedType": { 1039 "namespacedType": {
1071 "description": "Specifies what kind of attachment this is. T ells a client how to\ninterpret the `data` field. Format is <var>namespace/type< /var>. Namespace\nprovides type separation between clients. Type describes the t ype of\n`data`, for use by the client when parsing the `data` field.\nRequired." , 1040 "description": "Specifies what kind of attachment this is. T ells a client how to\ninterpret the `data` field. Format is <var>namespace/type< /var>. Namespace\nprovides type separation between clients. Type describes the t ype of\n`data`, for use by the client when parsing the `data` field.\nRequired." ,
1072 "type": "string" 1041 "type": "string"
1073 }, 1042 },
1074 "data": { 1043 "data": {
1075 "description": "An opaque data container for client-provided data. Must be\n[base64](http://tools.ietf.org/html/rfc4648#section-4) encoded i n HTTP\nrequests, and will be so encoded (with padding) in responses.\nRequired. ", 1044 "description": "An opaque data container for client-provided data. Must be\n[base64](http://tools.ietf.org/html/rfc4648#section-4) encoded i n HTTP\nrequests, and will be so encoded (with padding) in responses.\nRequired. ",
1076 "format": "byte", 1045 "format": "byte",
1077 "type": "string" 1046 "type": "string"
1078 }, 1047 },
1079 "creationTimeMs": { 1048 "creationTimeMs": {
1080 "description": "The UTC time when this attachment was create d, in milliseconds since the\nUNIX epoch.", 1049 "description": "The UTC time when this attachment was create d, in milliseconds since the\nUNIX epoch.",
1081 "format": "google-datetime", 1050 "format": "google-datetime",
1082 "type": "string" 1051 "type": "string"
1083 } 1052 }
1084 }, 1053 },
1085 "type": "object" 1054 "type": "object"
1086 }, 1055 },
1087 "EphemeralIdRegistration": { 1056 "EphemeralIdRegistration": {
1088 "description": "Write-only registration parameters for beacons using Eddystone-EID format.\nTwo ways of securely registering an Eddystone-EID beacon with the service\nare supported:\n\n1. Perform an ECDH key exchange via this AP I, including a previous call\n to `GET /v1beta1/eidparams`. In this case the f ields\n `beacon_ecdh_public_key` and `service_ecdh_public_key` should be\n p opulated and `beacon_identity_key` should not be populated. This\n method ensu res that only the two parties in the ECDH key exchange can\n compute the ident ity key, which becomes a secret between them.\n2. Derive or obtain the beacon's identity key via other secure means\n (perhaps an ECDH key exchange between th e beacon and a mobile device\n or any other secure method), and then submit th e resulting identity key\n to the service. In this case `beacon_identity_key` field should be\n populated, and neither of `beacon_ecdh_public_key` nor\n ` service_ecdh_public_key` fields should be. The security of this method\n depen ds on how securely the parties involved (in particular the\n bluetooth client) handle the identity key, and obviously on how\n securely the identity key was generated.\n\nSee [the Eddystone specification](https://github.com/google/eddys tone/tree/master/eddystone-eid) at GitHub.", 1057 "description": "Write-only registration parameters for beacons using Eddystone-EID format.\nTwo ways of securely registering an Eddystone-EID beacon with the service\nare supported:\n\n1. Perform an ECDH key exchange via this AP I, including a previous call\n to `GET /v1beta1/eidparams`. In this case the f ields\n `beacon_ecdh_public_key` and `service_ecdh_public_key` should be\n p opulated and `beacon_identity_key` should not be populated. This\n method ensu res that only the two parties in the ECDH key exchange can\n compute the ident ity key, which becomes a secret between them.\n2. Derive or obtain the beacon's identity key via other secure means\n (perhaps an ECDH key exchange between th e beacon and a mobile device\n or any other secure method), and then submit th e resulting identity key\n to the service. In this case `beacon_identity_key` field should be\n populated, and neither of `beacon_ecdh_public_key` nor\n ` service_ecdh_public_key` fields should be. The security of this method\n depen ds on how securely the parties involved (in particular the\n bluetooth client) handle the identity key, and obviously on how\n securely the identity key was generated.\n\nSee [the Eddystone specification](https://github.com/google/eddys tone/tree/master/eddystone-eid) at GitHub.",
1089 "id": "EphemeralIdRegistration", 1058 "id": "EphemeralIdRegistration",
1090 "properties": { 1059 "properties": {
1060 "initialClockValue": {
1061 "description": "The initial clock value of the beacon. The b eacon's clock must have\nbegun counting at this value immediately prior to trans mitting this\nvalue to the resolving service. Significant delay in transmitting this\nvalue to the service risks registration or resolution failures. If a\nvalu e is not provided, the default is zero.",
1062 "format": "uint64",
1063 "type": "string"
1064 },
1065 "beaconEcdhPublicKey": {
1066 "description": "The beacon's public key used for the Ellipti c curve Diffie-Hellman\nkey exchange. When this field is populated, `service_ecd h_public_key`\nmust also be populated, and `beacon_identity_key` must not be.",
1067 "format": "byte",
1068 "type": "string"
1069 },
1091 "rotationPeriodExponent": { 1070 "rotationPeriodExponent": {
1092 "description": "Indicates the nominal period between each ro tation of the beacon's\nephemeral ID. \"Nominal\" because the beacon should rand omize the\nactual interval. See [the spec at github](https://github.com/google/e ddystone/tree/master/eddystone-eid)\nfor details. This value corresponds to a po wer-of-two scaler on the\nbeacon's clock: when the scaler value is K, the beacon will begin\nbroadcasting a new ephemeral ID on average every 2^K seconds.", 1071 "description": "Indicates the nominal period between each ro tation of the beacon's\nephemeral ID. \"Nominal\" because the beacon should rand omize the\nactual interval. See [the spec at github](https://github.com/google/e ddystone/tree/master/eddystone-eid)\nfor details. This value corresponds to a po wer-of-two scaler on the\nbeacon's clock: when the scaler value is K, the beacon will begin\nbroadcasting a new ephemeral ID on average every 2^K seconds.",
1093 "format": "uint32", 1072 "format": "uint32",
1094 "type": "integer" 1073 "type": "integer"
1095 }, 1074 },
1096 "serviceEcdhPublicKey": { 1075 "serviceEcdhPublicKey": {
1097 "description": "The service's public key used for the Ellipt ic curve Diffie-Hellman\nkey exchange. When this field is populated, `beacon_ecd h_public_key`\nmust also be populated, and `beacon_identity_key` must not be.", 1076 "description": "The service's public key used for the Ellipt ic curve Diffie-Hellman\nkey exchange. When this field is populated, `beacon_ecd h_public_key`\nmust also be populated, and `beacon_identity_key` must not be.",
1098 "format": "byte", 1077 "format": "byte",
1099 "type": "string" 1078 "type": "string"
1100 }, 1079 },
1101 "beaconIdentityKey": { 1080 "beaconIdentityKey": {
1102 "description": "The private key of the beacon. If this field is populated,\n`beacon_ecdh_public_key` and `service_ecdh_public_key` must not be\npopulated.", 1081 "description": "The private key of the beacon. If this field is populated,\n`beacon_ecdh_public_key` and `service_ecdh_public_key` must not be\npopulated.",
1103 "format": "byte", 1082 "format": "byte",
1104 "type": "string" 1083 "type": "string"
1105 }, 1084 },
1106 "initialEid": { 1085 "initialEid": {
1107 "description": "An initial ephemeral ID calculated using the clock value submitted as\n`initial_clock_value`, and the secret key generated b y the\nDiffie-Hellman key exchange using `service_ecdh_public_key` and\n`service _ecdh_public_key`. This initial EID value will be used by the\nservice to confir m that the key exchange process was successful.", 1086 "description": "An initial ephemeral ID calculated using the clock value submitted as\n`initial_clock_value`, and the secret key generated b y the\nDiffie-Hellman key exchange using `service_ecdh_public_key` and\n`service _ecdh_public_key`. This initial EID value will be used by the\nservice to confir m that the key exchange process was successful.",
1108 "format": "byte", 1087 "format": "byte",
1109 "type": "string" 1088 "type": "string"
1110 },
1111 "initialClockValue": {
1112 "description": "The initial clock value of the beacon. The b eacon's clock must have\nbegun counting at this value immediately prior to trans mitting this\nvalue to the resolving service. Significant delay in transmitting this\nvalue to the service risks registration or resolution failures. If a\nvalu e is not provided, the default is zero.",
1113 "format": "uint64",
1114 "type": "string"
1115 },
1116 "beaconEcdhPublicKey": {
1117 "description": "The beacon's public key used for the Ellipti c curve Diffie-Hellman\nkey exchange. When this field is populated, `service_ecd h_public_key`\nmust also be populated, and `beacon_identity_key` must not be.",
1118 "format": "byte",
1119 "type": "string"
1120 } 1089 }
1121 }, 1090 },
1122 "type": "object" 1091 "type": "object"
1092 },
1093 "LatLng": {
1094 "description": "An object representing a latitude/longitude pair. Th is is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http ://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n \n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees long itude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n retur n r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], resp ectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 36 0, NormalizeLongitude(longitude)\n else:\n return 180 - r, Normalize Longitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLo ngitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == Normali zeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\ n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10. 0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng (-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n as sert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == N ormalizeLatLng(-270.0, 10.0)",
1095 "id": "LatLng",
1096 "properties": {
1097 "latitude": {
1098 "description": "The latitude in degrees. It must be in the r ange [-90.0, +90.0].",
1099 "format": "double",
1100 "type": "number"
1101 },
1102 "longitude": {
1103 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
1104 "format": "double",
1105 "type": "number"
1106 }
1107 },
1108 "type": "object"
1109 },
1110 "ListBeaconAttachmentsResponse": {
1111 "description": "Response to `ListBeaconAttachments` that contains th e requested attachments.",
1112 "id": "ListBeaconAttachmentsResponse",
1113 "properties": {
1114 "attachments": {
1115 "description": "The attachments that corresponded to the req uest params.",
1116 "items": {
1117 "$ref": "BeaconAttachment"
1118 },
1119 "type": "array"
1120 }
1121 },
1122 "type": "object"
1123 } 1123 }
1124 }, 1124 },
1125 "servicePath": "", 1125 "servicePath": "",
1126 "title": "Google Proximity Beacon API", 1126 "title": "Google Proximity Beacon API",
1127 "version": "v1beta1" 1127 "version": "v1beta1"
1128 } 1128 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/oslogin__v1alpha.json ('k') | discovery/googleapis_beta/pubsub__v1beta2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698