google-api-client 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -22,325 +22,325 @@ module Google
22
22
  module Apis
23
23
  module ProximitybeaconV1beta1
24
24
 
25
- class Observation
25
+ class ListNamespacesResponse
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class ListDiagnosticsResponse
31
+ class Diagnostics
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class GetInfoForObservedBeaconsResponse
37
+ class ListBeaconsResponse
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Beacon
43
+ class GetInfoForObservedBeaconsRequest
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class AdvertisedId
49
+ class Empty
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Date
55
+ class BeaconAttachment
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class IndoorLevel
61
+ class EphemeralIdRegistration
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class ListNamespacesResponse
67
+ class LatLng
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class Diagnostics
73
+ class ListBeaconAttachmentsResponse
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class ListBeaconsResponse
79
+ class Namespace
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class Empty
85
+ class AttachmentInfo
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class GetInfoForObservedBeaconsRequest
91
+ class BeaconInfo
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class BeaconAttachment
97
+ class EphemeralIdRegistrationParams
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class EphemeralIdRegistration
103
+ class DeleteAttachmentsResponse
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class LatLng
109
+ class Observation
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class ListBeaconAttachmentsResponse
115
+ class ListDiagnosticsResponse
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class Namespace
121
+ class GetInfoForObservedBeaconsResponse
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class AttachmentInfo
127
+ class Beacon
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class BeaconInfo
133
+ class AdvertisedId
134
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
135
 
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class DeleteAttachmentsResponse
139
+ class Date
140
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
141
 
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
- class EphemeralIdRegistrationParams
145
+ class IndoorLevel
146
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
147
 
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
- class Observation
151
+ class ListNamespacesResponse
152
152
  # @private
153
153
  class Representation < Google::Apis::Core::JsonRepresentation
154
- property :timestamp_ms, as: 'timestampMs'
155
- property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
154
+ collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
156
155
 
157
- property :telemetry, :base64 => true, as: 'telemetry'
158
156
  end
159
157
  end
160
158
 
161
- class ListDiagnosticsResponse
159
+ class Diagnostics
162
160
  # @private
163
161
  class Representation < Google::Apis::Core::JsonRepresentation
164
- collection :diagnostics, as: 'diagnostics', class: Google::Apis::ProximitybeaconV1beta1::Diagnostics, decorator: Google::Apis::ProximitybeaconV1beta1::Diagnostics::Representation
162
+ property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
165
163
 
166
- property :next_page_token, as: 'nextPageToken'
164
+ property :beacon_name, as: 'beaconName'
165
+ collection :alerts, as: 'alerts'
167
166
  end
168
167
  end
169
168
 
170
- class GetInfoForObservedBeaconsResponse
169
+ class ListBeaconsResponse
171
170
  # @private
172
171
  class Representation < Google::Apis::Core::JsonRepresentation
173
- collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
172
+ property :next_page_token, as: 'nextPageToken'
173
+ property :total_count, :numeric_string => true, as: 'totalCount'
174
+ collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
174
175
 
175
176
  end
176
177
  end
177
178
 
178
- class Beacon
179
+ class GetInfoForObservedBeaconsRequest
179
180
  # @private
180
181
  class Representation < Google::Apis::Core::JsonRepresentation
181
- property :provisioning_key, :base64 => true, as: 'provisioningKey'
182
- property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
183
-
184
- property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
185
-
186
- property :place_id, as: 'placeId'
187
- property :description, as: 'description'
188
- hash :properties, as: 'properties'
189
- property :status, as: 'status'
190
- property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
191
-
192
- property :beacon_name, as: 'beaconName'
193
- property :expected_stability, as: 'expectedStability'
194
- property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
182
+ collection :observations, as: 'observations', class: Google::Apis::ProximitybeaconV1beta1::Observation, decorator: Google::Apis::ProximitybeaconV1beta1::Observation::Representation
195
183
 
184
+ collection :namespaced_types, as: 'namespacedTypes'
196
185
  end
197
186
  end
198
187
 
199
- class AdvertisedId
188
+ class Empty
200
189
  # @private
201
190
  class Representation < Google::Apis::Core::JsonRepresentation
202
- property :type, as: 'type'
203
- property :id, :base64 => true, as: 'id'
204
191
  end
205
192
  end
206
193
 
207
- class Date
194
+ class BeaconAttachment
208
195
  # @private
209
196
  class Representation < Google::Apis::Core::JsonRepresentation
210
- property :year, as: 'year'
211
- property :day, as: 'day'
212
- property :month, as: 'month'
197
+ property :creation_time_ms, as: 'creationTimeMs'
198
+ property :attachment_name, as: 'attachmentName'
199
+ property :namespaced_type, as: 'namespacedType'
200
+ property :data, :base64 => true, as: 'data'
213
201
  end
214
202
  end
215
203
 
216
- class IndoorLevel
204
+ class EphemeralIdRegistration
217
205
  # @private
218
206
  class Representation < Google::Apis::Core::JsonRepresentation
219
- property :name, as: 'name'
207
+ property :initial_clock_value, :numeric_string => true, as: 'initialClockValue'
208
+ property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
209
+ property :rotation_period_exponent, as: 'rotationPeriodExponent'
210
+ property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
211
+ property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey'
212
+ property :initial_eid, :base64 => true, as: 'initialEid'
220
213
  end
221
214
  end
222
215
 
223
- class ListNamespacesResponse
216
+ class LatLng
224
217
  # @private
225
218
  class Representation < Google::Apis::Core::JsonRepresentation
226
- collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
227
-
219
+ property :longitude, as: 'longitude'
220
+ property :latitude, as: 'latitude'
228
221
  end
229
222
  end
230
223
 
231
- class Diagnostics
224
+ class ListBeaconAttachmentsResponse
232
225
  # @private
233
226
  class Representation < Google::Apis::Core::JsonRepresentation
234
- property :beacon_name, as: 'beaconName'
235
- collection :alerts, as: 'alerts'
236
- property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
227
+ collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
237
228
 
238
229
  end
239
230
  end
240
231
 
241
- class ListBeaconsResponse
232
+ class Namespace
242
233
  # @private
243
234
  class Representation < Google::Apis::Core::JsonRepresentation
244
- property :next_page_token, as: 'nextPageToken'
245
- collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
246
-
247
- property :total_count, :numeric_string => true, as: 'totalCount'
235
+ property :namespace_name, as: 'namespaceName'
236
+ property :serving_visibility, as: 'servingVisibility'
248
237
  end
249
238
  end
250
239
 
251
- class Empty
240
+ class AttachmentInfo
252
241
  # @private
253
242
  class Representation < Google::Apis::Core::JsonRepresentation
243
+ property :data, :base64 => true, as: 'data'
244
+ property :namespaced_type, as: 'namespacedType'
254
245
  end
255
246
  end
256
247
 
257
- class GetInfoForObservedBeaconsRequest
248
+ class BeaconInfo
258
249
  # @private
259
250
  class Representation < Google::Apis::Core::JsonRepresentation
260
- collection :observations, as: 'observations', class: Google::Apis::ProximitybeaconV1beta1::Observation, decorator: Google::Apis::ProximitybeaconV1beta1::Observation::Representation
251
+ property :beacon_name, as: 'beaconName'
252
+ collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
261
253
 
262
- collection :namespaced_types, as: 'namespacedTypes'
263
- end
264
- end
254
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
265
255
 
266
- class BeaconAttachment
267
- # @private
268
- class Representation < Google::Apis::Core::JsonRepresentation
269
- property :creation_time_ms, as: 'creationTimeMs'
270
- property :attachment_name, as: 'attachmentName'
271
- property :namespaced_type, as: 'namespacedType'
272
- property :data, :base64 => true, as: 'data'
273
256
  end
274
257
  end
275
258
 
276
- class EphemeralIdRegistration
259
+ class EphemeralIdRegistrationParams
277
260
  # @private
278
261
  class Representation < Google::Apis::Core::JsonRepresentation
279
- property :rotation_period_exponent, as: 'rotationPeriodExponent'
262
+ property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
263
+ property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
280
264
  property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
281
- property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey'
282
- property :initial_eid, :base64 => true, as: 'initialEid'
283
- property :initial_clock_value, :numeric_string => true, as: 'initialClockValue'
284
- property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
285
265
  end
286
266
  end
287
267
 
288
- class LatLng
268
+ class DeleteAttachmentsResponse
289
269
  # @private
290
270
  class Representation < Google::Apis::Core::JsonRepresentation
291
- property :longitude, as: 'longitude'
292
- property :latitude, as: 'latitude'
271
+ property :num_deleted, as: 'numDeleted'
293
272
  end
294
273
  end
295
274
 
296
- class ListBeaconAttachmentsResponse
275
+ class Observation
297
276
  # @private
298
277
  class Representation < Google::Apis::Core::JsonRepresentation
299
- collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
278
+ property :timestamp_ms, as: 'timestampMs'
279
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
300
280
 
281
+ property :telemetry, :base64 => true, as: 'telemetry'
301
282
  end
302
283
  end
303
284
 
304
- class Namespace
285
+ class ListDiagnosticsResponse
305
286
  # @private
306
287
  class Representation < Google::Apis::Core::JsonRepresentation
307
- property :serving_visibility, as: 'servingVisibility'
308
- property :namespace_name, as: 'namespaceName'
288
+ collection :diagnostics, as: 'diagnostics', class: Google::Apis::ProximitybeaconV1beta1::Diagnostics, decorator: Google::Apis::ProximitybeaconV1beta1::Diagnostics::Representation
289
+
290
+ property :next_page_token, as: 'nextPageToken'
309
291
  end
310
292
  end
311
293
 
312
- class AttachmentInfo
294
+ class GetInfoForObservedBeaconsResponse
313
295
  # @private
314
296
  class Representation < Google::Apis::Core::JsonRepresentation
315
- property :namespaced_type, as: 'namespacedType'
316
- property :data, :base64 => true, as: 'data'
297
+ collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
298
+
317
299
  end
318
300
  end
319
301
 
320
- class BeaconInfo
302
+ class Beacon
321
303
  # @private
322
304
  class Representation < Google::Apis::Core::JsonRepresentation
305
+ property :status, as: 'status'
306
+ property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
307
+
323
308
  property :beacon_name, as: 'beaconName'
309
+ property :expected_stability, as: 'expectedStability'
324
310
  property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
325
311
 
326
- collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
312
+ property :provisioning_key, :base64 => true, as: 'provisioningKey'
313
+ property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
314
+
315
+ property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
327
316
 
317
+ property :place_id, as: 'placeId'
318
+ property :description, as: 'description'
319
+ hash :properties, as: 'properties'
328
320
  end
329
321
  end
330
322
 
331
- class DeleteAttachmentsResponse
323
+ class AdvertisedId
332
324
  # @private
333
325
  class Representation < Google::Apis::Core::JsonRepresentation
334
- property :num_deleted, as: 'numDeleted'
326
+ property :id, :base64 => true, as: 'id'
327
+ property :type, as: 'type'
335
328
  end
336
329
  end
337
330
 
338
- class EphemeralIdRegistrationParams
331
+ class Date
339
332
  # @private
340
333
  class Representation < Google::Apis::Core::JsonRepresentation
341
- property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
342
- property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
343
- property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
334
+ property :day, as: 'day'
335
+ property :year, as: 'year'
336
+ property :month, as: 'month'
337
+ end
338
+ end
339
+
340
+ class IndoorLevel
341
+ # @private
342
+ class Representation < Google::Apis::Core::JsonRepresentation
343
+ property :name, as: 'name'
344
344
  end
345
345
  end
346
346
  end
@@ -47,6 +47,118 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
+ # Given one or more beacon observations, returns any beacon information
51
+ # and attachments accessible to your application. Authorize by using the
52
+ # [API key](https://developers.google.com/beacons/proximity/get-started#
53
+ # request_a_browser_api_key)
54
+ # for the application.
55
+ # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options)
75
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation
76
+ command.request_object = get_info_for_observed_beacons_request_object
77
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation
78
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Lists all attachment namespaces owned by your Google Developers Console
85
+ # project. Attachment data associated with a beacon must include a
86
+ # namespaced type, and the namespace must be owned by your project.
87
+ # Authenticate using an [OAuth access token](https://developers.google.com/
88
+ # identity/protocols/OAuth2)
89
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
90
+ # permissions in the Google Developers Console project.
91
+ # @param [String] project_id
92
+ # The project id to list namespaces under.
93
+ # Optional.
94
+ # @param [String] fields
95
+ # Selector specifying which fields to include in a partial response.
96
+ # @param [String] quota_user
97
+ # Available to use for quota purposes for server-side applications. Can be any
98
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
99
+ # @param [Google::Apis::RequestOptions] options
100
+ # Request-specific options
101
+ #
102
+ # @yield [result, err] Result & error if block supplied
103
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
104
+ # @yieldparam err [StandardError] error object if request failed
105
+ #
106
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
107
+ #
108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
111
+ def list_namespaces(project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
112
+ command = make_simple_command(:get, 'v1beta1/namespaces', options)
113
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
114
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
115
+ command.query['projectId'] = project_id unless project_id.nil?
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ execute_or_queue_command(command, &block)
119
+ end
120
+
121
+ # Updates the information about the specified namespace. Only the namespace
122
+ # visibility can be updated.
123
+ # @param [String] namespace_name
124
+ # Resource name of this namespace. Namespaces names have the format:
125
+ # <code>namespaces/<var>namespace</var></code>.
126
+ # @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
127
+ # @param [String] project_id
128
+ # The project id of the namespace to update. If the project id is not
129
+ # specified then the project making the request is used. The project id
130
+ # must match the project that owns the beacon.
131
+ # Optional.
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
134
+ # @param [String] quota_user
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
137
+ # @param [Google::Apis::RequestOptions] options
138
+ # Request-specific options
139
+ #
140
+ # @yield [result, err] Result & error if block supplied
141
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
142
+ # @yieldparam err [StandardError] error object if request failed
143
+ #
144
+ # @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
145
+ #
146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
149
+ def update_namespace(namespace_name, namespace_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
151
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
152
+ command.request_object = namespace_object
153
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
154
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
155
+ command.params['namespaceName'] = namespace_name unless namespace_name.nil?
156
+ command.query['projectId'] = project_id unless project_id.nil?
157
+ command.query['fields'] = fields unless fields.nil?
158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
159
+ execute_or_queue_command(command, &block)
160
+ end
161
+
50
162
  # Gets the Proximity Beacon API's current public key and associated
51
163
  # parameters used to initiate the Diffie-Hellman key exchange required to
52
164
  # register a beacon that broadcasts the Eddystone-EID format. This key
@@ -80,6 +192,55 @@ module Google
80
192
  execute_or_queue_command(command, &block)
81
193
  end
82
194
 
195
+ # Activates a beacon. A beacon that is active will return information
196
+ # and attachment data when queried via `beaconinfo.getforobserved`.
197
+ # Calling this method on an already active beacon will do nothing (but
198
+ # will return a successful response code).
199
+ # Authenticate using an [OAuth access token](https://developers.google.com/
200
+ # identity/protocols/OAuth2)
201
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
202
+ # Google Developers Console project.
203
+ # @param [String] beacon_name
204
+ # Beacon that should be activated. A beacon name has the format
205
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
206
+ # the beacon and N is a code for the beacon's type. Possible values are
207
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
208
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
209
+ # current EID or the beacon's "stable" UID.
210
+ # Required.
211
+ # @param [String] project_id
212
+ # The project id of the beacon to activate. If the project id is not
213
+ # specified then the project making the request is used. The project id
214
+ # must match the project that owns the beacon.
215
+ # Optional.
216
+ # @param [String] fields
217
+ # Selector specifying which fields to include in a partial response.
218
+ # @param [String] quota_user
219
+ # Available to use for quota purposes for server-side applications. Can be any
220
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
221
+ # @param [Google::Apis::RequestOptions] options
222
+ # Request-specific options
223
+ #
224
+ # @yield [result, err] Result & error if block supplied
225
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
226
+ # @yieldparam err [StandardError] error object if request failed
227
+ #
228
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
229
+ #
230
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
231
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
232
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
233
+ def activate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
234
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options)
235
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
236
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
237
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
238
+ command.query['projectId'] = project_id unless project_id.nil?
239
+ command.query['fields'] = fields unless fields.nil?
240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
241
+ execute_or_queue_command(command, &block)
242
+ end
243
+
83
244
  # Returns detailed information about the specified beacon.
84
245
  # Authenticate using an [OAuth access token](https://developers.google.com/
85
246
  # identity/protocols/OAuth2)
@@ -234,16 +395,15 @@ module Google
234
395
  execute_or_queue_command(command, &block)
235
396
  end
236
397
 
237
- # Deactivates a beacon. Once deactivated, the API will not return
238
- # information nor attachment data for the beacon when queried via
239
- # `beaconinfo.getforobserved`. Calling this method on an already inactive
240
- # beacon will do nothing (but will return a successful response code).
398
+ # Deletes the specified beacon including all diagnostics data for the beacon
399
+ # as well as any attachments on the beacon (including those belonging to
400
+ # other projects). This operation cannot be undone.
241
401
  # Authenticate using an [OAuth access token](https://developers.google.com/
242
402
  # identity/protocols/OAuth2)
243
403
  # from a signed-in user with **Is owner** or **Can edit** permissions in the
244
404
  # Google Developers Console project.
245
405
  # @param [String] beacon_name
246
- # Beacon that should be deactivated. A beacon name has the format
406
+ # Beacon that should be deleted. A beacon name has the format
247
407
  # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
248
408
  # the beacon and N is a code for the beacon's type. Possible values are
249
409
  # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
@@ -251,9 +411,8 @@ module Google
251
411
  # current EID or the beacon's "stable" UID.
252
412
  # Required.
253
413
  # @param [String] project_id
254
- # The project id of the beacon to deactivate. If the project id is not
255
- # specified then the project making the request is used. The project id must
256
- # match the project that owns the beacon.
414
+ # The project id of the beacon to delete. If not provided, the project
415
+ # that is making the request is used.
257
416
  # Optional.
258
417
  # @param [String] fields
259
418
  # Selector specifying which fields to include in a partial response.
@@ -272,8 +431,8 @@ module Google
272
431
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
273
432
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
274
433
  # @raise [Google::Apis::AuthorizationError] Authorization is required
275
- def deactivate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
276
- command = make_simple_command(:post, 'v1beta1/{+beaconName}:deactivate', options)
434
+ def delete_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
435
+ command = make_simple_command(:delete, 'v1beta1/{+beaconName}', options)
277
436
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
278
437
  command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
279
438
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
@@ -283,15 +442,16 @@ module Google
283
442
  execute_or_queue_command(command, &block)
284
443
  end
285
444
 
286
- # Deletes the specified beacon including all diagnostics data for the beacon
287
- # as well as any attachments on the beacon (including those belonging to
288
- # other projects). This operation cannot be undone.
445
+ # Deactivates a beacon. Once deactivated, the API will not return
446
+ # information nor attachment data for the beacon when queried via
447
+ # `beaconinfo.getforobserved`. Calling this method on an already inactive
448
+ # beacon will do nothing (but will return a successful response code).
289
449
  # Authenticate using an [OAuth access token](https://developers.google.com/
290
450
  # identity/protocols/OAuth2)
291
451
  # from a signed-in user with **Is owner** or **Can edit** permissions in the
292
452
  # Google Developers Console project.
293
453
  # @param [String] beacon_name
294
- # Beacon that should be deleted. A beacon name has the format
454
+ # Beacon that should be deactivated. A beacon name has the format
295
455
  # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
296
456
  # the beacon and N is a code for the beacon's type. Possible values are
297
457
  # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
@@ -299,8 +459,9 @@ module Google
299
459
  # current EID or the beacon's "stable" UID.
300
460
  # Required.
301
461
  # @param [String] project_id
302
- # The project id of the beacon to delete. If not provided, the project
303
- # that is making the request is used.
462
+ # The project id of the beacon to deactivate. If the project id is not
463
+ # specified then the project making the request is used. The project id must
464
+ # match the project that owns the beacon.
304
465
  # Optional.
305
466
  # @param [String] fields
306
467
  # Selector specifying which fields to include in a partial response.
@@ -319,8 +480,8 @@ module Google
319
480
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
320
481
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
321
482
  # @raise [Google::Apis::AuthorizationError] Authorization is required
322
- def delete_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
323
- command = make_simple_command(:delete, 'v1beta1/{+beaconName}', options)
483
+ def deactivate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}:deactivate', options)
324
485
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
325
486
  command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
326
487
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
@@ -380,6 +541,9 @@ module Google
380
541
  # permissions in the Google Developers Console project.
381
542
  # @param [String] page_token
382
543
  # A pagination token obtained from a previous request to list beacons.
544
+ # @param [Fixnum] page_size
545
+ # The maximum number of records to return for this request, up to a
546
+ # server-defined upper limit.
383
547
  # @param [String] q
384
548
  # Filter query string that supports the following field filters:
385
549
  # * **description:`"<string>"`**
@@ -444,9 +608,6 @@ module Google
444
608
  # be URL-encoded.
445
609
  # Example REST request:
446
610
  # `GET /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000`
447
- # @param [Fixnum] page_size
448
- # The maximum number of records to return for this request, up to a
449
- # server-defined upper limit.
450
611
  # @param [String] project_id
451
612
  # The project id to list beacons under. If not present then the project
452
613
  # credential that made the request is used as the project.
@@ -468,62 +629,13 @@ module Google
468
629
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
469
630
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
470
631
  # @raise [Google::Apis::AuthorizationError] Authorization is required
471
- def list_beacons(page_token: nil, q: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
632
+ def list_beacons(page_token: nil, page_size: nil, q: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
472
633
  command = make_simple_command(:get, 'v1beta1/beacons', options)
473
634
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse::Representation
474
635
  command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse
475
636
  command.query['pageToken'] = page_token unless page_token.nil?
476
- command.query['q'] = q unless q.nil?
477
637
  command.query['pageSize'] = page_size unless page_size.nil?
478
- command.query['projectId'] = project_id unless project_id.nil?
479
- command.query['fields'] = fields unless fields.nil?
480
- command.query['quotaUser'] = quota_user unless quota_user.nil?
481
- execute_or_queue_command(command, &block)
482
- end
483
-
484
- # Activates a beacon. A beacon that is active will return information
485
- # and attachment data when queried via `beaconinfo.getforobserved`.
486
- # Calling this method on an already active beacon will do nothing (but
487
- # will return a successful response code).
488
- # Authenticate using an [OAuth access token](https://developers.google.com/
489
- # identity/protocols/OAuth2)
490
- # from a signed-in user with **Is owner** or **Can edit** permissions in the
491
- # Google Developers Console project.
492
- # @param [String] beacon_name
493
- # Beacon that should be activated. A beacon name has the format
494
- # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
495
- # the beacon and N is a code for the beacon's type. Possible values are
496
- # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
497
- # for AltBeacon. For Eddystone-EID beacons, you may use either the
498
- # current EID or the beacon's "stable" UID.
499
- # Required.
500
- # @param [String] project_id
501
- # The project id of the beacon to activate. If the project id is not
502
- # specified then the project making the request is used. The project id
503
- # must match the project that owns the beacon.
504
- # Optional.
505
- # @param [String] fields
506
- # Selector specifying which fields to include in a partial response.
507
- # @param [String] quota_user
508
- # Available to use for quota purposes for server-side applications. Can be any
509
- # arbitrary string assigned to a user, but should not exceed 40 characters.
510
- # @param [Google::Apis::RequestOptions] options
511
- # Request-specific options
512
- #
513
- # @yield [result, err] Result & error if block supplied
514
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
515
- # @yieldparam err [StandardError] error object if request failed
516
- #
517
- # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
518
- #
519
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
- # @raise [Google::Apis::AuthorizationError] Authorization is required
522
- def activate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
523
- command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options)
524
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
525
- command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
526
- command.params['beaconName'] = beacon_name unless beacon_name.nil?
638
+ command.query['q'] = q unless q.nil?
527
639
  command.query['projectId'] = project_id unless project_id.nil?
528
640
  command.query['fields'] = fields unless fields.nil?
529
641
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -636,34 +748,35 @@ module Google
636
748
  execute_or_queue_command(command, &block)
637
749
  end
638
750
 
639
- # Associates the given data with the specified beacon. Attachment data must
640
- # contain two parts:
641
- # <ul>
642
- # <li>A namespaced type.</li>
643
- # <li>The actual attachment data itself.</li>
644
- # </ul>
645
- # The namespaced type consists of two parts, the namespace and the type.
646
- # The namespace must be one of the values returned by the `namespaces`
647
- # endpoint, while the type can be a string of any characters except for the
648
- # forward slash (`/`) up to 100 characters in length.
649
- # Attachment data can be up to 1024 bytes long.
751
+ # Deletes multiple attachments on a given beacon. This operation is
752
+ # permanent and cannot be undone.
753
+ # You can optionally specify `namespacedType` to choose which attachments
754
+ # should be deleted. If you do not specify `namespacedType`, all your
755
+ # attachments on the given beacon will be deleted. You also may explicitly
756
+ # specify `*/*` to delete all.
650
757
  # Authenticate using an [OAuth access token](https://developers.google.com/
651
758
  # identity/protocols/OAuth2)
652
759
  # from a signed-in user with **Is owner** or **Can edit** permissions in the
653
760
  # Google Developers Console project.
654
761
  # @param [String] beacon_name
655
- # Beacon on which the attachment should be created. A beacon name has the
762
+ # The beacon whose attachments should be deleted. A beacon name has the
656
763
  # format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
657
764
  # by the beacon and N is a code for the beacon's type. Possible values are
658
765
  # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
659
766
  # for AltBeacon. For Eddystone-EID beacons, you may use either the
660
767
  # current EID or the beacon's "stable" UID.
661
768
  # Required.
662
- # @param [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] beacon_attachment_object
769
+ # @param [String] namespaced_type
770
+ # Specifies the namespace and type of attachments to delete in
771
+ # `namespace/type` format. Accepts `*/*` to specify
772
+ # "all types in all namespaces".
773
+ # Optional.
663
774
  # @param [String] project_id
664
- # The project id of the project the attachment will belong to. If
665
- # the project id is not specified then the project making the request
666
- # is used.
775
+ # The project id to delete beacon attachments under. This field can be
776
+ # used when "*" is specified to mean all attachment namespaces. Projects
777
+ # may have multiple attachments with multiple namespaces. If "*" is
778
+ # specified and the projectId string is empty, then the project
779
+ # making the request is used.
667
780
  # Optional.
668
781
  # @param [String] fields
669
782
  # Selector specifying which fields to include in a partial response.
@@ -674,56 +787,54 @@ module Google
674
787
  # Request-specific options
675
788
  #
676
789
  # @yield [result, err] Result & error if block supplied
677
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] parsed result object
790
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] parsed result object
678
791
  # @yieldparam err [StandardError] error object if request failed
679
792
  #
680
- # @return [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment]
793
+ # @return [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse]
681
794
  #
682
795
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
683
796
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
684
797
  # @raise [Google::Apis::AuthorizationError] Authorization is required
685
- def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
686
- command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments', options)
687
- command.request_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
688
- command.request_object = beacon_attachment_object
689
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
690
- command.response_class = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment
798
+ def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
799
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options)
800
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation
801
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse
691
802
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
803
+ command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
692
804
  command.query['projectId'] = project_id unless project_id.nil?
693
805
  command.query['fields'] = fields unless fields.nil?
694
806
  command.query['quotaUser'] = quota_user unless quota_user.nil?
695
807
  execute_or_queue_command(command, &block)
696
808
  end
697
809
 
698
- # Deletes multiple attachments on a given beacon. This operation is
699
- # permanent and cannot be undone.
700
- # You can optionally specify `namespacedType` to choose which attachments
701
- # should be deleted. If you do not specify `namespacedType`, all your
702
- # attachments on the given beacon will be deleted. You also may explicitly
703
- # specify `*/*` to delete all.
810
+ # Associates the given data with the specified beacon. Attachment data must
811
+ # contain two parts:
812
+ # <ul>
813
+ # <li>A namespaced type.</li>
814
+ # <li>The actual attachment data itself.</li>
815
+ # </ul>
816
+ # The namespaced type consists of two parts, the namespace and the type.
817
+ # The namespace must be one of the values returned by the `namespaces`
818
+ # endpoint, while the type can be a string of any characters except for the
819
+ # forward slash (`/`) up to 100 characters in length.
820
+ # Attachment data can be up to 1024 bytes long.
704
821
  # Authenticate using an [OAuth access token](https://developers.google.com/
705
822
  # identity/protocols/OAuth2)
706
823
  # from a signed-in user with **Is owner** or **Can edit** permissions in the
707
824
  # Google Developers Console project.
708
825
  # @param [String] beacon_name
709
- # The beacon whose attachments should be deleted. A beacon name has the
826
+ # Beacon on which the attachment should be created. A beacon name has the
710
827
  # format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
711
828
  # by the beacon and N is a code for the beacon's type. Possible values are
712
829
  # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
713
830
  # for AltBeacon. For Eddystone-EID beacons, you may use either the
714
831
  # current EID or the beacon's "stable" UID.
715
832
  # Required.
833
+ # @param [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] beacon_attachment_object
716
834
  # @param [String] project_id
717
- # The project id to delete beacon attachments under. This field can be
718
- # used when "*" is specified to mean all attachment namespaces. Projects
719
- # may have multiple attachments with multiple namespaces. If "*" is
720
- # specified and the projectId string is empty, then the project
721
- # making the request is used.
722
- # Optional.
723
- # @param [String] namespaced_type
724
- # Specifies the namespace and type of attachments to delete in
725
- # `namespace/type` format. Accepts `*/*` to specify
726
- # "all types in all namespaces".
835
+ # The project id of the project the attachment will belong to. If
836
+ # the project id is not specified then the project making the request
837
+ # is used.
727
838
  # Optional.
728
839
  # @param [String] fields
729
840
  # Selector specifying which fields to include in a partial response.
@@ -734,21 +845,22 @@ module Google
734
845
  # Request-specific options
735
846
  #
736
847
  # @yield [result, err] Result & error if block supplied
737
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] parsed result object
848
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] parsed result object
738
849
  # @yieldparam err [StandardError] error object if request failed
739
850
  #
740
- # @return [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse]
851
+ # @return [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment]
741
852
  #
742
853
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
743
854
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
744
855
  # @raise [Google::Apis::AuthorizationError] Authorization is required
745
- def batch_beacon_attachment_delete(beacon_name, project_id: nil, namespaced_type: nil, fields: nil, quota_user: nil, options: nil, &block)
746
- command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options)
747
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation
748
- command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse
856
+ def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
857
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments', options)
858
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
859
+ command.request_object = beacon_attachment_object
860
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
861
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment
749
862
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
750
863
  command.query['projectId'] = project_id unless project_id.nil?
751
- command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
752
864
  command.query['fields'] = fields unless fields.nil?
753
865
  command.query['quotaUser'] = quota_user unless quota_user.nil?
754
866
  execute_or_queue_command(command, &block)
@@ -763,19 +875,19 @@ module Google
763
875
  # permissions in the Google Developers Console project.
764
876
  # @param [String] beacon_name
765
877
  # Beacon that the diagnostics are for.
766
- # @param [String] page_token
767
- # Requests results that occur after the `page_token`, obtained from the
768
- # response to a previous request. Optional.
769
- # @param [Fixnum] page_size
770
- # Specifies the maximum number of results to return. Defaults to
771
- # 10. Maximum 1000. Optional.
772
878
  # @param [String] alert_filter
773
879
  # Requests only beacons that have the given alert. For example, to find
774
880
  # beacons that have low batteries use `alert_filter=LOW_BATTERY`.
881
+ # @param [Fixnum] page_size
882
+ # Specifies the maximum number of results to return. Defaults to
883
+ # 10. Maximum 1000. Optional.
775
884
  # @param [String] project_id
776
885
  # Requests only diagnostic records for the given project id. If not set,
777
886
  # then the project making the request will be used for looking up
778
887
  # diagnostic records. Optional.
888
+ # @param [String] page_token
889
+ # Requests results that occur after the `page_token`, obtained from the
890
+ # response to a previous request. Optional.
779
891
  # @param [String] fields
780
892
  # Selector specifying which fields to include in a partial response.
781
893
  # @param [String] quota_user
@@ -793,127 +905,15 @@ module Google
793
905
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
794
906
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
795
907
  # @raise [Google::Apis::AuthorizationError] Authorization is required
796
- def list_beacon_diagnostics(beacon_name, page_token: nil, page_size: nil, alert_filter: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
908
+ def list_beacon_diagnostics(beacon_name, alert_filter: nil, page_size: nil, project_id: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
797
909
  command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options)
798
910
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation
799
911
  command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse
800
912
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
801
- command.query['pageToken'] = page_token unless page_token.nil?
802
- command.query['pageSize'] = page_size unless page_size.nil?
803
913
  command.query['alertFilter'] = alert_filter unless alert_filter.nil?
914
+ command.query['pageSize'] = page_size unless page_size.nil?
804
915
  command.query['projectId'] = project_id unless project_id.nil?
805
- command.query['fields'] = fields unless fields.nil?
806
- command.query['quotaUser'] = quota_user unless quota_user.nil?
807
- execute_or_queue_command(command, &block)
808
- end
809
-
810
- # Given one or more beacon observations, returns any beacon information
811
- # and attachments accessible to your application. Authorize by using the
812
- # [API key](https://developers.google.com/beacons/proximity/get-started#
813
- # request_a_browser_api_key)
814
- # for the application.
815
- # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
816
- # @param [String] fields
817
- # Selector specifying which fields to include in a partial response.
818
- # @param [String] quota_user
819
- # Available to use for quota purposes for server-side applications. Can be any
820
- # arbitrary string assigned to a user, but should not exceed 40 characters.
821
- # @param [Google::Apis::RequestOptions] options
822
- # Request-specific options
823
- #
824
- # @yield [result, err] Result & error if block supplied
825
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object
826
- # @yieldparam err [StandardError] error object if request failed
827
- #
828
- # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse]
829
- #
830
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
831
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
832
- # @raise [Google::Apis::AuthorizationError] Authorization is required
833
- def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
834
- command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options)
835
- command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation
836
- command.request_object = get_info_for_observed_beacons_request_object
837
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation
838
- command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse
839
- command.query['fields'] = fields unless fields.nil?
840
- command.query['quotaUser'] = quota_user unless quota_user.nil?
841
- execute_or_queue_command(command, &block)
842
- end
843
-
844
- # Lists all attachment namespaces owned by your Google Developers Console
845
- # project. Attachment data associated with a beacon must include a
846
- # namespaced type, and the namespace must be owned by your project.
847
- # Authenticate using an [OAuth access token](https://developers.google.com/
848
- # identity/protocols/OAuth2)
849
- # from a signed-in user with **viewer**, **Is owner** or **Can edit**
850
- # permissions in the Google Developers Console project.
851
- # @param [String] project_id
852
- # The project id to list namespaces under.
853
- # Optional.
854
- # @param [String] fields
855
- # Selector specifying which fields to include in a partial response.
856
- # @param [String] quota_user
857
- # Available to use for quota purposes for server-side applications. Can be any
858
- # arbitrary string assigned to a user, but should not exceed 40 characters.
859
- # @param [Google::Apis::RequestOptions] options
860
- # Request-specific options
861
- #
862
- # @yield [result, err] Result & error if block supplied
863
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
864
- # @yieldparam err [StandardError] error object if request failed
865
- #
866
- # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
867
- #
868
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
869
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
870
- # @raise [Google::Apis::AuthorizationError] Authorization is required
871
- def list_namespaces(project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
872
- command = make_simple_command(:get, 'v1beta1/namespaces', options)
873
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
874
- command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
875
- command.query['projectId'] = project_id unless project_id.nil?
876
- command.query['fields'] = fields unless fields.nil?
877
- command.query['quotaUser'] = quota_user unless quota_user.nil?
878
- execute_or_queue_command(command, &block)
879
- end
880
-
881
- # Updates the information about the specified namespace. Only the namespace
882
- # visibility can be updated.
883
- # @param [String] namespace_name
884
- # Resource name of this namespace. Namespaces names have the format:
885
- # <code>namespaces/<var>namespace</var></code>.
886
- # @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
887
- # @param [String] project_id
888
- # The project id of the namespace to update. If the project id is not
889
- # specified then the project making the request is used. The project id
890
- # must match the project that owns the beacon.
891
- # Optional.
892
- # @param [String] fields
893
- # Selector specifying which fields to include in a partial response.
894
- # @param [String] quota_user
895
- # Available to use for quota purposes for server-side applications. Can be any
896
- # arbitrary string assigned to a user, but should not exceed 40 characters.
897
- # @param [Google::Apis::RequestOptions] options
898
- # Request-specific options
899
- #
900
- # @yield [result, err] Result & error if block supplied
901
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
902
- # @yieldparam err [StandardError] error object if request failed
903
- #
904
- # @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
905
- #
906
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
907
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
908
- # @raise [Google::Apis::AuthorizationError] Authorization is required
909
- def update_namespace(namespace_name, namespace_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
910
- command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
911
- command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
912
- command.request_object = namespace_object
913
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
914
- command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
915
- command.params['namespaceName'] = namespace_name unless namespace_name.nil?
916
- command.query['projectId'] = project_id unless project_id.nil?
916
+ command.query['pageToken'] = page_token unless page_token.nil?
917
917
  command.query['fields'] = fields unless fields.nil?
918
918
  command.query['quotaUser'] = quota_user unless quota_user.nil?
919
919
  execute_or_queue_command(command, &block)