google-api-client 0.11.2 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -22,139 +22,204 @@ module Google
22
22
  module Apis
23
23
  module ProximitybeaconV1beta1
24
24
 
25
- class Beacon
25
+ class AttachmentInfo
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 AdvertisedId
31
+ class BeaconInfo
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 Date
37
+ class DeleteAttachmentsResponse
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 IndoorLevel
43
+ class EphemeralIdRegistrationParams
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 ListNamespacesResponse
49
+ class Observation
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 ListBeaconsResponse
55
+ class ListDiagnosticsResponse
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 Diagnostics
61
+ class GetInfoForObservedBeaconsResponse
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 GetInfoForObservedBeaconsRequest
67
+ class Beacon
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 Empty
73
+ class AdvertisedId
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 BeaconAttachment
79
+ class Date
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 EphemeralIdRegistration
85
+ class IndoorLevel
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 LatLng
91
+ class ListNamespacesResponse
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 ListBeaconAttachmentsResponse
97
+ class Diagnostics
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 Namespace
103
+ class ListBeaconsResponse
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 BeaconInfo
109
+ class GetInfoForObservedBeaconsRequest
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 AttachmentInfo
115
+ class Empty
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 EphemeralIdRegistrationParams
121
+ class BeaconAttachment
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 DeleteAttachmentsResponse
127
+ class EphemeralIdRegistration
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 Observation
133
+ class LatLng
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 ListDiagnosticsResponse
139
+ class ListBeaconAttachmentsResponse
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 GetInfoForObservedBeaconsResponse
145
+ class Namespace
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 AttachmentInfo
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :namespaced_type, as: 'namespacedType'
155
+ property :data, :base64 => true, as: 'data'
156
+ end
157
+ end
158
+
159
+ class BeaconInfo
160
+ # @private
161
+ class Representation < Google::Apis::Core::JsonRepresentation
162
+ property :beacon_name, as: 'beaconName'
163
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
164
+
165
+ collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
166
+
167
+ end
168
+ end
169
+
170
+ class DeleteAttachmentsResponse
171
+ # @private
172
+ class Representation < Google::Apis::Core::JsonRepresentation
173
+ property :num_deleted, as: 'numDeleted'
174
+ end
175
+ end
176
+
177
+ class EphemeralIdRegistrationParams
178
+ # @private
179
+ class Representation < Google::Apis::Core::JsonRepresentation
180
+ property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
181
+ property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
182
+ property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
183
+ end
184
+ end
185
+
186
+ class Observation
187
+ # @private
188
+ class Representation < Google::Apis::Core::JsonRepresentation
189
+ property :telemetry, :base64 => true, as: 'telemetry'
190
+ property :timestamp_ms, as: 'timestampMs'
191
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
192
+
193
+ end
194
+ end
195
+
196
+ class ListDiagnosticsResponse
197
+ # @private
198
+ class Representation < Google::Apis::Core::JsonRepresentation
199
+ property :next_page_token, as: 'nextPageToken'
200
+ collection :diagnostics, as: 'diagnostics', class: Google::Apis::ProximitybeaconV1beta1::Diagnostics, decorator: Google::Apis::ProximitybeaconV1beta1::Diagnostics::Representation
201
+
202
+ end
203
+ end
204
+
205
+ class GetInfoForObservedBeaconsResponse
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
209
+
210
+ end
211
+ end
212
+
151
213
  class Beacon
152
214
  # @private
153
215
  class Representation < Google::Apis::Core::JsonRepresentation
154
- property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
216
+ property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
155
217
 
156
- property :place_id, as: 'placeId'
218
+ property :provisioning_key, :base64 => true, as: 'provisioningKey'
157
219
  property :description, as: 'description'
220
+ property :place_id, as: 'placeId'
221
+ property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
222
+
158
223
  hash :properties, as: 'properties'
159
224
  property :status, as: 'status'
160
225
  property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
@@ -163,17 +228,14 @@ module Google
163
228
  property :expected_stability, as: 'expectedStability'
164
229
  property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
165
230
 
166
- property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
167
-
168
- property :provisioning_key, :base64 => true, as: 'provisioningKey'
169
231
  end
170
232
  end
171
233
 
172
234
  class AdvertisedId
173
235
  # @private
174
236
  class Representation < Google::Apis::Core::JsonRepresentation
175
- property :id, :base64 => true, as: 'id'
176
237
  property :type, as: 'type'
238
+ property :id, :base64 => true, as: 'id'
177
239
  end
178
240
  end
179
241
 
@@ -201,23 +263,23 @@ module Google
201
263
  end
202
264
  end
203
265
 
204
- class ListBeaconsResponse
266
+ class Diagnostics
205
267
  # @private
206
268
  class Representation < Google::Apis::Core::JsonRepresentation
207
- property :next_page_token, as: 'nextPageToken'
208
- collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
269
+ property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
209
270
 
210
- property :total_count, :numeric_string => true, as: 'totalCount'
271
+ property :beacon_name, as: 'beaconName'
272
+ collection :alerts, as: 'alerts'
211
273
  end
212
274
  end
213
275
 
214
- class Diagnostics
276
+ class ListBeaconsResponse
215
277
  # @private
216
278
  class Representation < Google::Apis::Core::JsonRepresentation
217
- property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
279
+ property :next_page_token, as: 'nextPageToken'
280
+ collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
218
281
 
219
- property :beacon_name, as: 'beaconName'
220
- collection :alerts, as: 'alerts'
282
+ property :total_count, :numeric_string => true, as: 'totalCount'
221
283
  end
222
284
  end
223
285
 
@@ -239,22 +301,22 @@ module Google
239
301
  class BeaconAttachment
240
302
  # @private
241
303
  class Representation < Google::Apis::Core::JsonRepresentation
242
- property :attachment_name, as: 'attachmentName'
243
304
  property :namespaced_type, as: 'namespacedType'
244
305
  property :data, :base64 => true, as: 'data'
245
306
  property :creation_time_ms, as: 'creationTimeMs'
307
+ property :attachment_name, as: 'attachmentName'
246
308
  end
247
309
  end
248
310
 
249
311
  class EphemeralIdRegistration
250
312
  # @private
251
313
  class Representation < Google::Apis::Core::JsonRepresentation
252
- property :initial_eid, :base64 => true, as: 'initialEid'
253
314
  property :initial_clock_value, :numeric_string => true, as: 'initialClockValue'
254
315
  property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
255
316
  property :rotation_period_exponent, as: 'rotationPeriodExponent'
256
317
  property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
257
318
  property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey'
319
+ property :initial_eid, :base64 => true, as: 'initialEid'
258
320
  end
259
321
  end
260
322
 
@@ -277,70 +339,8 @@ module Google
277
339
  class Namespace
278
340
  # @private
279
341
  class Representation < Google::Apis::Core::JsonRepresentation
280
- property :namespace_name, as: 'namespaceName'
281
342
  property :serving_visibility, as: 'servingVisibility'
282
- end
283
- end
284
-
285
- class BeaconInfo
286
- # @private
287
- class Representation < Google::Apis::Core::JsonRepresentation
288
- property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
289
-
290
- collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
291
-
292
- property :beacon_name, as: 'beaconName'
293
- end
294
- end
295
-
296
- class AttachmentInfo
297
- # @private
298
- class Representation < Google::Apis::Core::JsonRepresentation
299
- property :namespaced_type, as: 'namespacedType'
300
- property :data, :base64 => true, as: 'data'
301
- end
302
- end
303
-
304
- class EphemeralIdRegistrationParams
305
- # @private
306
- class Representation < Google::Apis::Core::JsonRepresentation
307
- property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
308
- property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
309
- property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
310
- end
311
- end
312
-
313
- class DeleteAttachmentsResponse
314
- # @private
315
- class Representation < Google::Apis::Core::JsonRepresentation
316
- property :num_deleted, as: 'numDeleted'
317
- end
318
- end
319
-
320
- class Observation
321
- # @private
322
- class Representation < Google::Apis::Core::JsonRepresentation
323
- property :telemetry, :base64 => true, as: 'telemetry'
324
- property :timestamp_ms, as: 'timestampMs'
325
- property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
326
-
327
- end
328
- end
329
-
330
- class ListDiagnosticsResponse
331
- # @private
332
- class Representation < Google::Apis::Core::JsonRepresentation
333
- collection :diagnostics, as: 'diagnostics', class: Google::Apis::ProximitybeaconV1beta1::Diagnostics, decorator: Google::Apis::ProximitybeaconV1beta1::Diagnostics::Representation
334
-
335
- property :next_page_token, as: 'nextPageToken'
336
- end
337
- end
338
-
339
- class GetInfoForObservedBeaconsResponse
340
- # @private
341
- class Representation < Google::Apis::Core::JsonRepresentation
342
- collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
343
-
343
+ property :namespace_name, as: 'namespaceName'
344
344
  end
345
345
  end
346
346
  end
@@ -32,32 +32,28 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/beacons/proximity/
34
34
  class ProximitybeaconService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # Available to use for quota purposes for server-side applications. Can be any
37
- # arbitrary string assigned to a user, but should not exceed 40 characters.
38
- attr_accessor :quota_user
39
-
40
35
  # @return [String]
41
36
  # API key. Your API key identifies your project and provides you with API access,
42
37
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
38
  attr_accessor :key
44
39
 
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
45
  def initialize
46
46
  super('https://proximitybeacon.googleapis.com/', '')
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
- # Updates the information about the specified namespace. Only the namespace
51
- # visibility can be updated.
52
- # @param [String] namespace_name
53
- # Resource name of this namespace. Namespaces names have the format:
54
- # <code>namespaces/<var>namespace</var></code>.
55
- # @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
56
- # @param [String] project_id
57
- # The project id of the namespace to update. If the project id is not
58
- # specified then the project making the request is used. The project id
59
- # must match the project that owns the beacon.
60
- # Optional.
50
+ # Gets the Proximity Beacon API's current public key and associated
51
+ # parameters used to initiate the Diffie-Hellman key exchange required to
52
+ # register a beacon that broadcasts the Eddystone-EID format. This key
53
+ # changes periodically; clients may cache it and re-use the same public key
54
+ # to provision and register multiple beacons. However, clients should be
55
+ # prepared to refresh this key when they encounter an error registering an
56
+ # Eddystone-EID beacon.
61
57
  # @param [String] quota_user
62
58
  # Available to use for quota purposes for server-side applications. Can be any
63
59
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -67,36 +63,43 @@ module Google
67
63
  # Request-specific options
68
64
  #
69
65
  # @yield [result, err] Result & error if block supplied
70
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
66
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] parsed result object
71
67
  # @yieldparam err [StandardError] error object if request failed
72
68
  #
73
- # @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
69
+ # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams]
74
70
  #
75
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
78
- def update_namespace(namespace_name, namespace_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
79
- command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
80
- command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
81
- command.request_object = namespace_object
82
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
83
- command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
84
- command.params['namespaceName'] = namespace_name unless namespace_name.nil?
85
- command.query['projectId'] = project_id unless project_id.nil?
74
+ def get_eidparams(quota_user: nil, fields: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'v1beta1/eidparams', options)
76
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams::Representation
77
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams
86
78
  command.query['quotaUser'] = quota_user unless quota_user.nil?
87
79
  command.query['fields'] = fields unless fields.nil?
88
80
  execute_or_queue_command(command, &block)
89
81
  end
90
82
 
91
- # Lists all attachment namespaces owned by your Google Developers Console
92
- # project. Attachment data associated with a beacon must include a
93
- # namespaced type, and the namespace must be owned by your project.
83
+ # Activates a beacon. A beacon that is active will return information
84
+ # and attachment data when queried via `beaconinfo.getforobserved`.
85
+ # Calling this method on an already active beacon will do nothing (but
86
+ # will return a successful response code).
94
87
  # Authenticate using an [OAuth access token](https://developers.google.com/
95
88
  # identity/protocols/OAuth2)
96
- # from a signed-in user with **viewer**, **Is owner** or **Can edit**
97
- # permissions in the Google Developers Console project.
89
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
90
+ # Google Developers Console project.
91
+ # @param [String] beacon_name
92
+ # Beacon that should be activated. A beacon name has the format
93
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
94
+ # the beacon and N is a code for the beacon's type. Possible values are
95
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
96
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
97
+ # current EID or the beacon's "stable" UID.
98
+ # Required.
98
99
  # @param [String] project_id
99
- # The project id to list namespaces under.
100
+ # The project id of the beacon to activate. If the project id is not
101
+ # specified then the project making the request is used. The project id
102
+ # must match the project that owns the beacon.
100
103
  # Optional.
101
104
  # @param [String] quota_user
102
105
  # Available to use for quota purposes for server-side applications. Can be any
@@ -107,57 +110,25 @@ module Google
107
110
  # Request-specific options
108
111
  #
109
112
  # @yield [result, err] Result & error if block supplied
110
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
113
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
111
114
  # @yieldparam err [StandardError] error object if request failed
112
115
  #
113
- # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
116
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
114
117
  #
115
118
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
119
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
120
  # @raise [Google::Apis::AuthorizationError] Authorization is required
118
- def list_namespaces(project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
119
- command = make_simple_command(:get, 'v1beta1/namespaces', options)
120
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
121
- command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
121
+ def activate_beacon(beacon_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
122
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options)
123
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
124
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
125
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
122
126
  command.query['projectId'] = project_id unless project_id.nil?
123
127
  command.query['quotaUser'] = quota_user unless quota_user.nil?
124
128
  command.query['fields'] = fields unless fields.nil?
125
129
  execute_or_queue_command(command, &block)
126
130
  end
127
131
 
128
- # Gets the Proximity Beacon API's current public key and associated
129
- # parameters used to initiate the Diffie-Hellman key exchange required to
130
- # register a beacon that broadcasts the Eddystone-EID format. This key
131
- # changes periodically; clients may cache it and re-use the same public key
132
- # to provision and register multiple beacons. However, clients should be
133
- # prepared to refresh this key when they encounter an error registering an
134
- # Eddystone-EID beacon.
135
- # @param [String] quota_user
136
- # Available to use for quota purposes for server-side applications. Can be any
137
- # arbitrary string assigned to a user, but should not exceed 40 characters.
138
- # @param [String] fields
139
- # Selector specifying which fields to include in a partial response.
140
- # @param [Google::Apis::RequestOptions] options
141
- # Request-specific options
142
- #
143
- # @yield [result, err] Result & error if block supplied
144
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] parsed result object
145
- # @yieldparam err [StandardError] error object if request failed
146
- #
147
- # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams]
148
- #
149
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
- # @raise [Google::Apis::AuthorizationError] Authorization is required
152
- def get_eidparams(quota_user: nil, fields: nil, options: nil, &block)
153
- command = make_simple_command(:get, 'v1beta1/eidparams', options)
154
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams::Representation
155
- command.response_class = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams
156
- command.query['quotaUser'] = quota_user unless quota_user.nil?
157
- command.query['fields'] = fields unless fields.nil?
158
- execute_or_queue_command(command, &block)
159
- end
160
-
161
132
  # Returns detailed information about the specified beacon.
162
133
  # Authenticate using an [OAuth access token](https://developers.google.com/
163
134
  # identity/protocols/OAuth2)
@@ -408,6 +379,47 @@ module Google
408
379
  execute_or_queue_command(command, &block)
409
380
  end
410
381
 
382
+ # Registers a previously unregistered beacon given its `advertisedId`.
383
+ # These IDs are unique within the system. An ID can be registered only once.
384
+ # Authenticate using an [OAuth access token](https://developers.google.com/
385
+ # identity/protocols/OAuth2)
386
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
387
+ # Google Developers Console project.
388
+ # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
389
+ # @param [String] project_id
390
+ # The project id of the project the beacon will be registered to. If
391
+ # the project id is not specified then the project making the request
392
+ # is used.
393
+ # Optional.
394
+ # @param [String] quota_user
395
+ # Available to use for quota purposes for server-side applications. Can be any
396
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
397
+ # @param [String] fields
398
+ # Selector specifying which fields to include in a partial response.
399
+ # @param [Google::Apis::RequestOptions] options
400
+ # Request-specific options
401
+ #
402
+ # @yield [result, err] Result & error if block supplied
403
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
404
+ # @yieldparam err [StandardError] error object if request failed
405
+ #
406
+ # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
407
+ #
408
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
409
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
410
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
411
+ def register_beacon(beacon_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
412
+ command = make_simple_command(:post, 'v1beta1/beacons:register', options)
413
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
414
+ command.request_object = beacon_object
415
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
416
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
417
+ command.query['projectId'] = project_id unless project_id.nil?
418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
419
+ command.query['fields'] = fields unless fields.nil?
420
+ execute_or_queue_command(command, &block)
421
+ end
422
+
411
423
  # Searches the beacon registry for beacons that match the given search
412
424
  # criteria. Only those beacons that the client has permission to list
413
425
  # will be returned.
@@ -518,68 +530,28 @@ module Google
518
530
  execute_or_queue_command(command, &block)
519
531
  end
520
532
 
521
- # Registers a previously unregistered beacon given its `advertisedId`.
522
- # These IDs are unique within the system. An ID can be registered only once.
523
- # Authenticate using an [OAuth access token](https://developers.google.com/
524
- # identity/protocols/OAuth2)
525
- # from a signed-in user with **Is owner** or **Can edit** permissions in the
526
- # Google Developers Console project.
527
- # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
528
- # @param [String] project_id
529
- # The project id of the project the beacon will be registered to. If
530
- # the project id is not specified then the project making the request
531
- # is used.
532
- # Optional.
533
- # @param [String] quota_user
534
- # Available to use for quota purposes for server-side applications. Can be any
535
- # arbitrary string assigned to a user, but should not exceed 40 characters.
536
- # @param [String] fields
537
- # Selector specifying which fields to include in a partial response.
538
- # @param [Google::Apis::RequestOptions] options
539
- # Request-specific options
540
- #
541
- # @yield [result, err] Result & error if block supplied
542
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
543
- # @yieldparam err [StandardError] error object if request failed
544
- #
545
- # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
546
- #
547
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
548
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
549
- # @raise [Google::Apis::AuthorizationError] Authorization is required
550
- def register_beacon(beacon_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
551
- command = make_simple_command(:post, 'v1beta1/beacons:register', options)
552
- command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
553
- command.request_object = beacon_object
554
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
555
- command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
556
- command.query['projectId'] = project_id unless project_id.nil?
557
- command.query['quotaUser'] = quota_user unless quota_user.nil?
558
- command.query['fields'] = fields unless fields.nil?
559
- execute_or_queue_command(command, &block)
560
- end
561
-
562
- # Activates a beacon. A beacon that is active will return information
563
- # and attachment data when queried via `beaconinfo.getforobserved`.
564
- # Calling this method on an already active beacon will do nothing (but
565
- # will return a successful response code).
533
+ # List the diagnostics for a single beacon. You can also list diagnostics for
534
+ # all the beacons owned by your Google Developers Console project by using
535
+ # the beacon name `beacons/-`.
566
536
  # Authenticate using an [OAuth access token](https://developers.google.com/
567
537
  # identity/protocols/OAuth2)
568
- # from a signed-in user with **Is owner** or **Can edit** permissions in the
569
- # Google Developers Console project.
538
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
539
+ # permissions in the Google Developers Console project.
570
540
  # @param [String] beacon_name
571
- # Beacon that should be activated. A beacon name has the format
572
- # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
573
- # the beacon and N is a code for the beacon's type. Possible values are
574
- # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
575
- # for AltBeacon. For Eddystone-EID beacons, you may use either the
576
- # current EID or the beacon's "stable" UID.
577
- # Required.
541
+ # Beacon that the diagnostics are for.
542
+ # @param [Fixnum] page_size
543
+ # Specifies the maximum number of results to return. Defaults to
544
+ # 10. Maximum 1000. Optional.
545
+ # @param [String] alert_filter
546
+ # Requests only beacons that have the given alert. For example, to find
547
+ # beacons that have low batteries use `alert_filter=LOW_BATTERY`.
578
548
  # @param [String] project_id
579
- # The project id of the beacon to activate. If the project id is not
580
- # specified then the project making the request is used. The project id
581
- # must match the project that owns the beacon.
582
- # Optional.
549
+ # Requests only diagnostic records for the given project id. If not set,
550
+ # then the project making the request will be used for looking up
551
+ # diagnostic records. Optional.
552
+ # @param [String] page_token
553
+ # Requests results that occur after the `page_token`, obtained from the
554
+ # response to a previous request. Optional.
583
555
  # @param [String] quota_user
584
556
  # Available to use for quota purposes for server-side applications. Can be any
585
557
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -589,20 +561,23 @@ module Google
589
561
  # Request-specific options
590
562
  #
591
563
  # @yield [result, err] Result & error if block supplied
592
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
564
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse] parsed result object
593
565
  # @yieldparam err [StandardError] error object if request failed
594
566
  #
595
- # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
567
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse]
596
568
  #
597
569
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
598
570
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
599
571
  # @raise [Google::Apis::AuthorizationError] Authorization is required
600
- def activate_beacon(beacon_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
601
- command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options)
602
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
603
- command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
572
+ def list_beacon_diagnostics(beacon_name, page_size: nil, alert_filter: nil, project_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
573
+ command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options)
574
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation
575
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse
604
576
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
577
+ command.query['pageSize'] = page_size unless page_size.nil?
578
+ command.query['alertFilter'] = alert_filter unless alert_filter.nil?
605
579
  command.query['projectId'] = project_id unless project_id.nil?
580
+ command.query['pageToken'] = page_token unless page_token.nil?
606
581
  command.query['quotaUser'] = quota_user unless quota_user.nil?
607
582
  command.query['fields'] = fields unless fields.nil?
608
583
  execute_or_queue_command(command, &block)
@@ -791,6 +766,11 @@ module Google
791
766
  # for AltBeacon. For Eddystone-EID beacons, you may use either the
792
767
  # current EID or the beacon's "stable" UID.
793
768
  # Required.
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.
794
774
  # @param [String] project_id
795
775
  # The project id to delete beacon attachments under. This field can be
796
776
  # used when "*" is specified to mean all attachment namespaces. Projects
@@ -798,11 +778,6 @@ module Google
798
778
  # specified and the projectId string is empty, then the project
799
779
  # making the request is used.
800
780
  # Optional.
801
- # @param [String] namespaced_type
802
- # Specifies the namespace and type of attachments to delete in
803
- # `namespace/type` format. Accepts `*/*` to specify
804
- # "all types in all namespaces".
805
- # Optional.
806
781
  # @param [String] quota_user
807
782
  # Available to use for quota purposes for server-side applications. Can be any
808
783
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -820,40 +795,62 @@ module Google
820
795
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
821
796
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
822
797
  # @raise [Google::Apis::AuthorizationError] Authorization is required
823
- def batch_beacon_attachment_delete(beacon_name, project_id: nil, namespaced_type: nil, quota_user: nil, fields: nil, options: nil, &block)
798
+ def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
824
799
  command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options)
825
800
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation
826
801
  command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse
827
802
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
828
- command.query['projectId'] = project_id unless project_id.nil?
829
803
  command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
804
+ command.query['projectId'] = project_id unless project_id.nil?
830
805
  command.query['quotaUser'] = quota_user unless quota_user.nil?
831
806
  command.query['fields'] = fields unless fields.nil?
832
807
  execute_or_queue_command(command, &block)
833
808
  end
834
809
 
835
- # List the diagnostics for a single beacon. You can also list diagnostics for
836
- # all the beacons owned by your Google Developers Console project by using
837
- # the beacon name `beacons/-`.
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] quota_user
817
+ # Available to use for quota purposes for server-side applications. Can be any
818
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
819
+ # @param [String] fields
820
+ # Selector specifying which fields to include in a partial response.
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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil?
840
+ command.query['fields'] = fields unless fields.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.
838
847
  # Authenticate using an [OAuth access token](https://developers.google.com/
839
848
  # identity/protocols/OAuth2)
840
849
  # from a signed-in user with **viewer**, **Is owner** or **Can edit**
841
850
  # permissions in the Google Developers Console project.
842
- # @param [String] beacon_name
843
- # Beacon that the diagnostics are for.
844
- # @param [String] page_token
845
- # Requests results that occur after the `page_token`, obtained from the
846
- # response to a previous request. Optional.
847
- # @param [Fixnum] page_size
848
- # Specifies the maximum number of results to return. Defaults to
849
- # 10. Maximum 1000. Optional.
850
- # @param [String] alert_filter
851
- # Requests only beacons that have the given alert. For example, to find
852
- # beacons that have low batteries use `alert_filter=LOW_BATTERY`.
853
851
  # @param [String] project_id
854
- # Requests only diagnostic records for the given project id. If not set,
855
- # then the project making the request will be used for looking up
856
- # diagnostic records. Optional.
852
+ # The project id to list namespaces under.
853
+ # Optional.
857
854
  # @param [String] quota_user
858
855
  # Available to use for quota purposes for server-side applications. Can be any
859
856
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -863,34 +860,35 @@ module Google
863
860
  # Request-specific options
864
861
  #
865
862
  # @yield [result, err] Result & error if block supplied
866
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse] parsed result object
863
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
867
864
  # @yieldparam err [StandardError] error object if request failed
868
865
  #
869
- # @return [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse]
866
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
870
867
  #
871
868
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
872
869
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
873
870
  # @raise [Google::Apis::AuthorizationError] Authorization is required
874
- def list_beacon_diagnostics(beacon_name, page_token: nil, page_size: nil, alert_filter: nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
875
- command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options)
876
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation
877
- command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse
878
- command.params['beaconName'] = beacon_name unless beacon_name.nil?
879
- command.query['pageToken'] = page_token unless page_token.nil?
880
- command.query['pageSize'] = page_size unless page_size.nil?
881
- command.query['alertFilter'] = alert_filter unless alert_filter.nil?
871
+ def list_namespaces(project_id: nil, quota_user: nil, fields: 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
882
875
  command.query['projectId'] = project_id unless project_id.nil?
883
876
  command.query['quotaUser'] = quota_user unless quota_user.nil?
884
877
  command.query['fields'] = fields unless fields.nil?
885
878
  execute_or_queue_command(command, &block)
886
879
  end
887
880
 
888
- # Given one or more beacon observations, returns any beacon information
889
- # and attachments accessible to your application. Authorize by using the
890
- # [API key](https://developers.google.com/beacons/proximity/get-started#
891
- # request_a_browser_api_key)
892
- # for the application.
893
- # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
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.
894
892
  # @param [String] quota_user
895
893
  # Available to use for quota purposes for server-side applications. Can be any
896
894
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -900,20 +898,22 @@ module Google
900
898
  # Request-specific options
901
899
  #
902
900
  # @yield [result, err] Result & error if block supplied
903
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object
901
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
904
902
  # @yieldparam err [StandardError] error object if request failed
905
903
  #
906
- # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse]
904
+ # @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
907
905
  #
908
906
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
909
907
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
910
908
  # @raise [Google::Apis::AuthorizationError] Authorization is required
911
- def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
912
- command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options)
913
- command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation
914
- command.request_object = get_info_for_observed_beacons_request_object
915
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation
916
- command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse
909
+ def update_namespace(namespace_name, namespace_object = nil, project_id: nil, quota_user: nil, fields: 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?
917
917
  command.query['quotaUser'] = quota_user unless quota_user.nil?
918
918
  command.query['fields'] = fields unless fields.nil?
919
919
  execute_or_queue_command(command, &block)
@@ -922,8 +922,8 @@ module Google
922
922
  protected
923
923
 
924
924
  def apply_command_defaults(command)
925
- command.query['quotaUser'] = quota_user unless quota_user.nil?
926
925
  command.query['key'] = key unless key.nil?
926
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
927
927
  end
928
928
  end
929
929
  end