google-api-client 0.10.1 → 0.10.2

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