google-api-client 0.10.0 → 0.10.1

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