google-api-client 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -49,6 +49,11 @@ module Google
49
49
  # Provides information about a list of specific people by specifying a list
50
50
  # of requested resource names. Use `people/me` to indicate the authenticated
51
51
  # user.
52
+ # @param [Array<String>, String] resource_names
53
+ # The resource name, such as one returned by
54
+ # [`people.connections.list`](/people/api/rest/v1/people.connections/list),
55
+ # of one of the people to provide information about. You can include this
56
+ # parameter up to 50 times in one request.
52
57
  # @param [String] request_mask_include_field
53
58
  # Comma-separated list of fields to be included in the response. Omitting
54
59
  # this field will include all fields except for connections.list requests,
@@ -56,16 +61,11 @@ module Google
56
61
  # photo, and profile url.
57
62
  # Each path should start with `person.`: for example, `person.names` or
58
63
  # `person.photos`.
59
- # @param [Array<String>, String] resource_names
60
- # The resource name, such as one returned by
61
- # [`people.connections.list`](/people/api/rest/v1/people.connections/list),
62
- # of one of the people to provide information about. You can include this
63
- # parameter up to 50 times in one request.
64
+ # @param [String] fields
65
+ # Selector specifying which fields to include in a partial response.
64
66
  # @param [String] quota_user
65
67
  # Available to use for quota purposes for server-side applications. Can be any
66
68
  # arbitrary string assigned to a user, but should not exceed 40 characters.
67
- # @param [String] fields
68
- # Selector specifying which fields to include in a partial response.
69
69
  # @param [Google::Apis::RequestOptions] options
70
70
  # Request-specific options
71
71
  #
@@ -78,14 +78,14 @@ module Google
78
78
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
79
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
80
  # @raise [Google::Apis::AuthorizationError] Authorization is required
81
- def get_people(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: nil, options: nil, &block)
81
+ def get_people(resource_names: nil, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block)
82
82
  command = make_simple_command(:get, 'v1/people:batchGet', options)
83
83
  command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation
84
84
  command.response_class = Google::Apis::PeopleV1::GetPeopleResponse
85
- command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
86
85
  command.query['resourceNames'] = resource_names unless resource_names.nil?
87
- command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
88
87
  command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
89
  execute_or_queue_command(command, &block)
90
90
  end
91
91
 
@@ -104,11 +104,11 @@ module Google
104
104
  # photo, and profile url.
105
105
  # Each path should start with `person.`: for example, `person.names` or
106
106
  # `person.photos`.
107
+ # @param [String] fields
108
+ # Selector specifying which fields to include in a partial response.
107
109
  # @param [String] quota_user
108
110
  # Available to use for quota purposes for server-side applications. Can be any
109
111
  # arbitrary string assigned to a user, but should not exceed 40 characters.
110
- # @param [String] fields
111
- # Selector specifying which fields to include in a partial response.
112
112
  # @param [Google::Apis::RequestOptions] options
113
113
  # Request-specific options
114
114
  #
@@ -121,14 +121,14 @@ module Google
121
121
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
122
122
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
123
123
  # @raise [Google::Apis::AuthorizationError] Authorization is required
124
- def get_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block)
124
+ def get_person(resource_name, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block)
125
125
  command = make_simple_command(:get, 'v1/{+resourceName}', options)
126
126
  command.response_representation = Google::Apis::PeopleV1::Person::Representation
127
127
  command.response_class = Google::Apis::PeopleV1::Person
128
128
  command.params['resourceName'] = resource_name unless resource_name.nil?
129
129
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
130
- command.query['quotaUser'] = quota_user unless quota_user.nil?
131
130
  command.query['fields'] = fields unless fields.nil?
131
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
132
132
  execute_or_queue_command(command, &block)
133
133
  end
134
134
 
@@ -136,20 +136,11 @@ module Google
136
136
  # linked profiles.
137
137
  # @param [String] resource_name
138
138
  # The resource name to return connections for. Only `people/me` is valid.
139
- # @param [String] sync_token
140
- # A sync token, returned by a previous call to `people.connections.list`.
141
- # Only resources changed since the sync token was created will be returned.
142
- # @param [String] sort_order
143
- # The order in which the connections should be sorted. Defaults to
144
- # `LAST_MODIFIED_ASCENDING`.
145
139
  # @param [Boolean] request_sync_token
146
140
  # Whether the response should include a sync token, which can be used to get
147
141
  # all changes since the last request.
148
142
  # @param [String] page_token
149
143
  # The token of the page to be returned.
150
- # @param [Fixnum] page_size
151
- # The number of connections to include in the response. Valid values are
152
- # between 1 and 500, inclusive. Defaults to 100.
153
144
  # @param [String] request_mask_include_field
154
145
  # Comma-separated list of fields to be included in the response. Omitting
155
146
  # this field will include all fields except for connections.list requests,
@@ -157,11 +148,20 @@ module Google
157
148
  # photo, and profile url.
158
149
  # Each path should start with `person.`: for example, `person.names` or
159
150
  # `person.photos`.
151
+ # @param [Fixnum] page_size
152
+ # The number of connections to include in the response. Valid values are
153
+ # between 1 and 500, inclusive. Defaults to 100.
154
+ # @param [String] sync_token
155
+ # A sync token, returned by a previous call to `people.connections.list`.
156
+ # Only resources changed since the sync token was created will be returned.
157
+ # @param [String] sort_order
158
+ # The order in which the connections should be sorted. Defaults to
159
+ # `LAST_MODIFIED_ASCENDING`.
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
160
162
  # @param [String] quota_user
161
163
  # Available to use for quota purposes for server-side applications. Can be any
162
164
  # arbitrary string assigned to a user, but should not exceed 40 characters.
163
- # @param [String] fields
164
- # Selector specifying which fields to include in a partial response.
165
165
  # @param [Google::Apis::RequestOptions] options
166
166
  # Request-specific options
167
167
  #
@@ -174,19 +174,19 @@ module Google
174
174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
177
- def list_person_connections(resource_name, sync_token: nil, sort_order: nil, request_sync_token: nil, page_token: nil, page_size: nil, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block)
177
+ def list_person_connections(resource_name, request_sync_token: nil, page_token: nil, request_mask_include_field: nil, page_size: nil, sync_token: nil, sort_order: nil, fields: nil, quota_user: nil, options: nil, &block)
178
178
  command = make_simple_command(:get, 'v1/{+resourceName}/connections', options)
179
179
  command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation
180
180
  command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse
181
181
  command.params['resourceName'] = resource_name unless resource_name.nil?
182
- command.query['syncToken'] = sync_token unless sync_token.nil?
183
- command.query['sortOrder'] = sort_order unless sort_order.nil?
184
182
  command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
185
183
  command.query['pageToken'] = page_token unless page_token.nil?
186
- command.query['pageSize'] = page_size unless page_size.nil?
187
184
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
188
- command.query['quotaUser'] = quota_user unless quota_user.nil?
185
+ command.query['pageSize'] = page_size unless page_size.nil?
186
+ command.query['syncToken'] = sync_token unless sync_token.nil?
187
+ command.query['sortOrder'] = sort_order unless sort_order.nil?
189
188
  command.query['fields'] = fields unless fields.nil?
189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
190
190
  execute_or_queue_command(command, &block)
191
191
  end
192
192
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170322'
28
+ REVISION = '20170329'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170322'
28
+ REVISION = '20170329'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -22,6 +22,295 @@ module Google
22
22
  module Apis
23
23
  module ProximitybeaconV1beta1
24
24
 
25
+ # Information about the requested beacons, optionally including attachment
26
+ # data.
27
+ class GetInfoForObservedBeaconsResponse
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Public information about beacons.
31
+ # May be empty if the request matched no beacons.
32
+ # Corresponds to the JSON property `beacons`
33
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
34
+ attr_accessor :beacons
35
+
36
+ def initialize(**args)
37
+ update!(**args)
38
+ end
39
+
40
+ # Update properties of this object
41
+ def update!(**args)
42
+ @beacons = args[:beacons] if args.key?(:beacons)
43
+ end
44
+ end
45
+
46
+ # Details of a beacon device.
47
+ class Beacon
48
+ include Google::Apis::Core::Hashable
49
+
50
+ # Defines a unique identifier of a beacon as broadcast by the device.
51
+ # Corresponds to the JSON property `advertisedId`
52
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
53
+ attr_accessor :advertised_id
54
+
55
+ # Some beacons may require a user to provide an authorization key before
56
+ # changing any of its configuration (e.g. broadcast frames, transmit power).
57
+ # This field provides a place to store and control access to that key.
58
+ # This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
59
+ # from users with write access to the given beacon. That is to say: If the
60
+ # user is authorized to write the beacon's confidential data in the service,
61
+ # the service considers them authorized to configure the beacon. Note
62
+ # that this key grants nothing on the service, only on the beacon itself.
63
+ # Corresponds to the JSON property `provisioningKey`
64
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
65
+ # @return [String]
66
+ attr_accessor :provisioning_key
67
+
68
+ # Write-only registration parameters for beacons using Eddystone-EID format.
69
+ # Two ways of securely registering an Eddystone-EID beacon with the service
70
+ # are supported:
71
+ # 1. Perform an ECDH key exchange via this API, including a previous call
72
+ # to `GET /v1beta1/eidparams`. In this case the fields
73
+ # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
74
+ # populated and `beacon_identity_key` should not be populated. This
75
+ # method ensures that only the two parties in the ECDH key exchange can
76
+ # compute the identity key, which becomes a secret between them.
77
+ # 2. Derive or obtain the beacon's identity key via other secure means
78
+ # (perhaps an ECDH key exchange between the beacon and a mobile device
79
+ # or any other secure method), and then submit the resulting identity key
80
+ # to the service. In this case `beacon_identity_key` field should be
81
+ # populated, and neither of `beacon_ecdh_public_key` nor
82
+ # `service_ecdh_public_key` fields should be. The security of this method
83
+ # depends on how securely the parties involved (in particular the
84
+ # bluetooth client) handle the identity key, and obviously on how
85
+ # securely the identity key was generated.
86
+ # See [the Eddystone specification](https://github.com/google/eddystone/tree/
87
+ # master/eddystone-eid) at GitHub.
88
+ # Corresponds to the JSON property `ephemeralIdRegistration`
89
+ # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
90
+ attr_accessor :ephemeral_id_registration
91
+
92
+ # An object representing a latitude/longitude pair. This is expressed as a pair
93
+ # of doubles representing degrees latitude and degrees longitude. Unless
94
+ # specified otherwise, this must conform to the
95
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
96
+ # standard</a>. Values must be within normalized ranges.
97
+ # Example of normalization code in Python:
98
+ # def NormalizeLongitude(longitude):
99
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
100
+ # q, r = divmod(longitude, 360.0)
101
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
102
+ # return r - 360.0
103
+ # return r
104
+ # def NormalizeLatLng(latitude, longitude):
105
+ # """Wraps decimal degrees latitude and longitude to
106
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
107
+ # r = latitude % 360.0
108
+ # if r <= 90.0:
109
+ # return r, NormalizeLongitude(longitude)
110
+ # elif r >= 270.0:
111
+ # return r - 360, NormalizeLongitude(longitude)
112
+ # else:
113
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
114
+ # assert 180.0 == NormalizeLongitude(180.0)
115
+ # assert -180.0 == NormalizeLongitude(-180.0)
116
+ # assert -179.0 == NormalizeLongitude(181.0)
117
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
118
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
119
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
120
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
121
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
122
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
123
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
124
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
125
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
126
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
127
+ # The code in logs/storage/validator/logs_validator_traits.cc treats this type
128
+ # as if it were annotated as ST_LOCATION.
129
+ # Corresponds to the JSON property `latLng`
130
+ # @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
131
+ attr_accessor :lat_lng
132
+
133
+ # Free text used to identify and describe the beacon. Maximum length 140
134
+ # characters.
135
+ # Optional.
136
+ # Corresponds to the JSON property `description`
137
+ # @return [String]
138
+ attr_accessor :description
139
+
140
+ # The [Google Places API](/places/place-id) Place ID of the place where
141
+ # the beacon is deployed. This is given when the beacon is registered or
142
+ # updated, not automatically detected in any way.
143
+ # Optional.
144
+ # Corresponds to the JSON property `placeId`
145
+ # @return [String]
146
+ attr_accessor :place_id
147
+
148
+ # Properties of the beacon device, for example battery type or firmware
149
+ # version.
150
+ # Optional.
151
+ # Corresponds to the JSON property `properties`
152
+ # @return [Hash<String,String>]
153
+ attr_accessor :properties
154
+
155
+ # Current status of the beacon.
156
+ # Required.
157
+ # Corresponds to the JSON property `status`
158
+ # @return [String]
159
+ attr_accessor :status
160
+
161
+ # Indoor level, a human-readable string as returned by Google Maps APIs,
162
+ # useful to indicate which floor of a building a beacon is located on.
163
+ # Corresponds to the JSON property `indoorLevel`
164
+ # @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
165
+ attr_accessor :indoor_level
166
+
167
+ # Resource name of this beacon. A beacon name has the format
168
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
169
+ # the beacon and N is a code for the beacon's type. Possible values are
170
+ # `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
171
+ # This field must be left empty when registering. After reading a beacon,
172
+ # clients can use the name for future operations.
173
+ # Corresponds to the JSON property `beaconName`
174
+ # @return [String]
175
+ attr_accessor :beacon_name
176
+
177
+ # Expected location stability. This is set when the beacon is registered or
178
+ # updated, not automatically detected in any way.
179
+ # Optional.
180
+ # Corresponds to the JSON property `expectedStability`
181
+ # @return [String]
182
+ attr_accessor :expected_stability
183
+
184
+ def initialize(**args)
185
+ update!(**args)
186
+ end
187
+
188
+ # Update properties of this object
189
+ def update!(**args)
190
+ @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
191
+ @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
192
+ @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
193
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
194
+ @description = args[:description] if args.key?(:description)
195
+ @place_id = args[:place_id] if args.key?(:place_id)
196
+ @properties = args[:properties] if args.key?(:properties)
197
+ @status = args[:status] if args.key?(:status)
198
+ @indoor_level = args[:indoor_level] if args.key?(:indoor_level)
199
+ @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
200
+ @expected_stability = args[:expected_stability] if args.key?(:expected_stability)
201
+ end
202
+ end
203
+
204
+ # Defines a unique identifier of a beacon as broadcast by the device.
205
+ class AdvertisedId
206
+ include Google::Apis::Core::Hashable
207
+
208
+ # Specifies the identifier type.
209
+ # Required.
210
+ # Corresponds to the JSON property `type`
211
+ # @return [String]
212
+ attr_accessor :type
213
+
214
+ # The actual beacon identifier, as broadcast by the beacon hardware. Must be
215
+ # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
216
+ # requests, and will be so encoded (with padding) in responses. The base64
217
+ # encoding should be of the binary byte-stream and not any textual (such as
218
+ # hex) representation thereof.
219
+ # Required.
220
+ # Corresponds to the JSON property `id`
221
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
222
+ # @return [String]
223
+ attr_accessor :id
224
+
225
+ def initialize(**args)
226
+ update!(**args)
227
+ end
228
+
229
+ # Update properties of this object
230
+ def update!(**args)
231
+ @type = args[:type] if args.key?(:type)
232
+ @id = args[:id] if args.key?(:id)
233
+ end
234
+ end
235
+
236
+ # Indoor level, a human-readable string as returned by Google Maps APIs,
237
+ # useful to indicate which floor of a building a beacon is located on.
238
+ class IndoorLevel
239
+ include Google::Apis::Core::Hashable
240
+
241
+ # The name of this level.
242
+ # Corresponds to the JSON property `name`
243
+ # @return [String]
244
+ attr_accessor :name
245
+
246
+ def initialize(**args)
247
+ update!(**args)
248
+ end
249
+
250
+ # Update properties of this object
251
+ def update!(**args)
252
+ @name = args[:name] if args.key?(:name)
253
+ end
254
+ end
255
+
256
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
257
+ # time zone are either specified elsewhere or are not significant. The date
258
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
259
+ # represent a year and month where the day is not significant, e.g. credit card
260
+ # expiration date. The year may be 0 to represent a month and day independent
261
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
262
+ # and `google.protobuf.Timestamp`.
263
+ class Date
264
+ include Google::Apis::Core::Hashable
265
+
266
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
267
+ # a year.
268
+ # Corresponds to the JSON property `year`
269
+ # @return [Fixnum]
270
+ attr_accessor :year
271
+
272
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
273
+ # if specifying a year/month where the day is not significant.
274
+ # Corresponds to the JSON property `day`
275
+ # @return [Fixnum]
276
+ attr_accessor :day
277
+
278
+ # Month of year. Must be from 1 to 12.
279
+ # Corresponds to the JSON property `month`
280
+ # @return [Fixnum]
281
+ attr_accessor :month
282
+
283
+ def initialize(**args)
284
+ update!(**args)
285
+ end
286
+
287
+ # Update properties of this object
288
+ def update!(**args)
289
+ @year = args[:year] if args.key?(:year)
290
+ @day = args[:day] if args.key?(:day)
291
+ @month = args[:month] if args.key?(:month)
292
+ end
293
+ end
294
+
295
+ # Response to ListNamespacesRequest that contains all the project's namespaces.
296
+ class ListNamespacesResponse
297
+ include Google::Apis::Core::Hashable
298
+
299
+ # The attachments that corresponded to the request params.
300
+ # Corresponds to the JSON property `namespaces`
301
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Namespace>]
302
+ attr_accessor :namespaces
303
+
304
+ def initialize(**args)
305
+ update!(**args)
306
+ end
307
+
308
+ # Update properties of this object
309
+ def update!(**args)
310
+ @namespaces = args[:namespaces] if args.key?(:namespaces)
311
+ end
312
+ end
313
+
25
314
  # Response that contains list beacon results and pagination help.
26
315
  class ListBeaconsResponse
27
316
  include Google::Apis::Core::Hashable
@@ -93,6 +382,25 @@ module Google
93
382
  end
94
383
  end
95
384
 
385
+ # A generic empty message that you can re-use to avoid defining duplicated
386
+ # empty messages in your APIs. A typical example is to use it as the request
387
+ # or the response type of an API method. For instance:
388
+ # service Foo `
389
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
390
+ # `
391
+ # The JSON representation for `Empty` is empty JSON object ````.
392
+ class Empty
393
+ include Google::Apis::Core::Hashable
394
+
395
+ def initialize(**args)
396
+ update!(**args)
397
+ end
398
+
399
+ # Update properties of this object
400
+ def update!(**args)
401
+ end
402
+ end
403
+
96
404
  # Request for beacon and attachment information about beacons that
97
405
  # a mobile client has encountered "in the wild".
98
406
  class GetInfoForObservedBeaconsRequest
@@ -125,25 +433,6 @@ module Google
125
433
  end
126
434
  end
127
435
 
128
- # A generic empty message that you can re-use to avoid defining duplicated
129
- # empty messages in your APIs. A typical example is to use it as the request
130
- # or the response type of an API method. For instance:
131
- # service Foo `
132
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
133
- # `
134
- # The JSON representation for `Empty` is empty JSON object ````.
135
- class Empty
136
- include Google::Apis::Core::Hashable
137
-
138
- def initialize(**args)
139
- update!(**args)
140
- end
141
-
142
- # Update properties of this object
143
- def update!(**args)
144
- end
145
- end
146
-
147
436
  # Project-specific data associated with a beacon.
148
437
  class BeaconAttachment
149
438
  include Google::Apis::Core::Hashable
@@ -169,6 +458,7 @@ module Google
169
458
  # requests, and will be so encoded (with padding) in responses.
170
459
  # Required.
171
460
  # Corresponds to the JSON property `data`
461
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
172
462
  # @return [String]
173
463
  attr_accessor :data
174
464
 
@@ -214,37 +504,11 @@ module Google
214
504
  class EphemeralIdRegistration
215
505
  include Google::Apis::Core::Hashable
216
506
 
217
- # The initial clock value of the beacon. The beacon's clock must have
218
- # begun counting at this value immediately prior to transmitting this
219
- # value to the resolving service. Significant delay in transmitting this
220
- # value to the service risks registration or resolution failures. If a
221
- # value is not provided, the default is zero.
222
- # Corresponds to the JSON property `initialClockValue`
223
- # @return [String]
224
- attr_accessor :initial_clock_value
225
-
226
- # The beacon's public key used for the Elliptic curve Diffie-Hellman
227
- # key exchange. When this field is populated, `service_ecdh_public_key`
228
- # must also be populated, and `beacon_identity_key` must not be.
229
- # Corresponds to the JSON property `beaconEcdhPublicKey`
230
- # @return [String]
231
- attr_accessor :beacon_ecdh_public_key
232
-
233
- # Indicates the nominal period between each rotation of the beacon's
234
- # ephemeral ID. "Nominal" because the beacon should randomize the
235
- # actual interval. See [the spec at github](https://github.com/google/eddystone/
236
- # tree/master/eddystone-eid)
237
- # for details. This value corresponds to a power-of-two scaler on the
238
- # beacon's clock: when the scaler value is K, the beacon will begin
239
- # broadcasting a new ephemeral ID on average every 2^K seconds.
240
- # Corresponds to the JSON property `rotationPeriodExponent`
241
- # @return [Fixnum]
242
- attr_accessor :rotation_period_exponent
243
-
244
507
  # The service's public key used for the Elliptic curve Diffie-Hellman
245
508
  # key exchange. When this field is populated, `beacon_ecdh_public_key`
246
509
  # must also be populated, and `beacon_identity_key` must not be.
247
510
  # Corresponds to the JSON property `serviceEcdhPublicKey`
511
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
248
512
  # @return [String]
249
513
  attr_accessor :service_ecdh_public_key
250
514
 
@@ -252,17 +516,47 @@ module Google
252
516
  # `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be
253
517
  # populated.
254
518
  # Corresponds to the JSON property `beaconIdentityKey`
519
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
520
+ # @return [String]
521
+ attr_accessor :beacon_identity_key
522
+
523
+ # An initial ephemeral ID calculated using the clock value submitted as
524
+ # `initial_clock_value`, and the secret key generated by the
525
+ # Diffie-Hellman key exchange using `service_ecdh_public_key` and
526
+ # `service_ecdh_public_key`. This initial EID value will be used by the
527
+ # service to confirm that the key exchange process was successful.
528
+ # Corresponds to the JSON property `initialEid`
529
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
530
+ # @return [String]
531
+ attr_accessor :initial_eid
532
+
533
+ # The beacon's public key used for the Elliptic curve Diffie-Hellman
534
+ # key exchange. When this field is populated, `service_ecdh_public_key`
535
+ # must also be populated, and `beacon_identity_key` must not be.
536
+ # Corresponds to the JSON property `beaconEcdhPublicKey`
537
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
538
+ # @return [String]
539
+ attr_accessor :beacon_ecdh_public_key
540
+
541
+ # The initial clock value of the beacon. The beacon's clock must have
542
+ # begun counting at this value immediately prior to transmitting this
543
+ # value to the resolving service. Significant delay in transmitting this
544
+ # value to the service risks registration or resolution failures. If a
545
+ # value is not provided, the default is zero.
546
+ # Corresponds to the JSON property `initialClockValue`
255
547
  # @return [String]
256
- attr_accessor :beacon_identity_key
548
+ attr_accessor :initial_clock_value
257
549
 
258
- # An initial ephemeral ID calculated using the clock value submitted as
259
- # `initial_clock_value`, and the secret key generated by the
260
- # Diffie-Hellman key exchange using `service_ecdh_public_key` and
261
- # `service_ecdh_public_key`. This initial EID value will be used by the
262
- # service to confirm that the key exchange process was successful.
263
- # Corresponds to the JSON property `initialEid`
264
- # @return [String]
265
- attr_accessor :initial_eid
550
+ # Indicates the nominal period between each rotation of the beacon's
551
+ # ephemeral ID. "Nominal" because the beacon should randomize the
552
+ # actual interval. See [the spec at github](https://github.com/google/eddystone/
553
+ # tree/master/eddystone-eid)
554
+ # for details. This value corresponds to a power-of-two scaler on the
555
+ # beacon's clock: when the scaler value is K, the beacon will begin
556
+ # broadcasting a new ephemeral ID on average every 2^K seconds.
557
+ # Corresponds to the JSON property `rotationPeriodExponent`
558
+ # @return [Fixnum]
559
+ attr_accessor :rotation_period_exponent
266
560
 
267
561
  def initialize(**args)
268
562
  update!(**args)
@@ -270,12 +564,12 @@ module Google
270
564
 
271
565
  # Update properties of this object
272
566
  def update!(**args)
273
- @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
274
- @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
275
- @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
276
567
  @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
277
568
  @beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
278
569
  @initial_eid = args[:initial_eid] if args.key?(:initial_eid)
570
+ @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
571
+ @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
572
+ @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
279
573
  end
280
574
  end
281
575
 
@@ -390,340 +684,55 @@ module Google
390
684
 
391
685
  # A subset of attachment information served via the
392
686
  # `beaconinfo.getforobserved` method, used when your users encounter your
393
- # beacons.
394
- class AttachmentInfo
395
- include Google::Apis::Core::Hashable
396
-
397
- # Specifies what kind of attachment this is. Tells a client how to
398
- # interpret the `data` field. Format is <var>namespace/type</var>, for
399
- # example <code>scrupulous-wombat-12345/welcome-message</code>
400
- # Corresponds to the JSON property `namespacedType`
401
- # @return [String]
402
- attr_accessor :namespaced_type
403
-
404
- # An opaque data container for client-provided data.
405
- # Corresponds to the JSON property `data`
406
- # @return [String]
407
- attr_accessor :data
408
-
409
- def initialize(**args)
410
- update!(**args)
411
- end
412
-
413
- # Update properties of this object
414
- def update!(**args)
415
- @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
416
- @data = args[:data] if args.key?(:data)
417
- end
418
- end
419
-
420
- # A subset of beacon information served via the `beaconinfo.getforobserved`
421
- # method, which you call when users of your app encounter your beacons.
422
- class BeaconInfo
423
- include Google::Apis::Core::Hashable
424
-
425
- # The name under which the beacon is registered.
426
- # Corresponds to the JSON property `beaconName`
427
- # @return [String]
428
- attr_accessor :beacon_name
429
-
430
- # Defines a unique identifier of a beacon as broadcast by the device.
431
- # Corresponds to the JSON property `advertisedId`
432
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
433
- attr_accessor :advertised_id
434
-
435
- # Attachments matching the type(s) requested.
436
- # May be empty if no attachment types were requested.
437
- # Corresponds to the JSON property `attachments`
438
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
439
- attr_accessor :attachments
440
-
441
- def initialize(**args)
442
- update!(**args)
443
- end
444
-
445
- # Update properties of this object
446
- def update!(**args)
447
- @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
448
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
449
- @attachments = args[:attachments] if args.key?(:attachments)
450
- end
451
- end
452
-
453
- # Information a client needs to provision and register beacons that
454
- # broadcast Eddystone-EID format beacon IDs, using Elliptic curve
455
- # Diffie-Hellman key exchange. See
456
- # [the Eddystone specification](https://github.com/google/eddystone/tree/master/
457
- # eddystone-eid) at GitHub.
458
- class EphemeralIdRegistrationParams
459
- include Google::Apis::Core::Hashable
460
-
461
- # The beacon service's public key for use by a beacon to derive its
462
- # Identity Key using Elliptic Curve Diffie-Hellman key exchange.
463
- # Corresponds to the JSON property `serviceEcdhPublicKey`
464
- # @return [String]
465
- attr_accessor :service_ecdh_public_key
466
-
467
- # Indicates the minimum rotation period supported by the service.
468
- # See EddystoneEidRegistration.rotation_period_exponent
469
- # Corresponds to the JSON property `minRotationPeriodExponent`
470
- # @return [Fixnum]
471
- attr_accessor :min_rotation_period_exponent
472
-
473
- # Indicates the maximum rotation period supported by the service.
474
- # See EddystoneEidRegistration.rotation_period_exponent
475
- # Corresponds to the JSON property `maxRotationPeriodExponent`
476
- # @return [Fixnum]
477
- attr_accessor :max_rotation_period_exponent
478
-
479
- def initialize(**args)
480
- update!(**args)
481
- end
482
-
483
- # Update properties of this object
484
- def update!(**args)
485
- @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
486
- @min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent)
487
- @max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent)
488
- end
489
- end
490
-
491
- # Response for a request to delete attachments.
492
- class DeleteAttachmentsResponse
493
- include Google::Apis::Core::Hashable
494
-
495
- # The number of attachments that were deleted.
496
- # Corresponds to the JSON property `numDeleted`
497
- # @return [Fixnum]
498
- attr_accessor :num_deleted
499
-
500
- def initialize(**args)
501
- update!(**args)
502
- end
503
-
504
- # Update properties of this object
505
- def update!(**args)
506
- @num_deleted = args[:num_deleted] if args.key?(:num_deleted)
507
- end
508
- end
509
-
510
- # Represents one beacon observed once.
511
- class Observation
512
- include Google::Apis::Core::Hashable
513
-
514
- # The array of telemetry bytes received from the beacon. The server is
515
- # responsible for parsing it. This field may frequently be empty, as
516
- # with a beacon that transmits telemetry only occasionally.
517
- # Corresponds to the JSON property `telemetry`
518
- # @return [String]
519
- attr_accessor :telemetry
520
-
521
- # Time when the beacon was observed.
522
- # Corresponds to the JSON property `timestampMs`
523
- # @return [String]
524
- attr_accessor :timestamp_ms
525
-
526
- # Defines a unique identifier of a beacon as broadcast by the device.
527
- # Corresponds to the JSON property `advertisedId`
528
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
529
- attr_accessor :advertised_id
530
-
531
- def initialize(**args)
532
- update!(**args)
533
- end
534
-
535
- # Update properties of this object
536
- def update!(**args)
537
- @telemetry = args[:telemetry] if args.key?(:telemetry)
538
- @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
539
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
540
- end
541
- end
542
-
543
- # Response that contains the requested diagnostics.
544
- class ListDiagnosticsResponse
545
- include Google::Apis::Core::Hashable
546
-
547
- # The diagnostics matching the given request.
548
- # Corresponds to the JSON property `diagnostics`
549
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
550
- attr_accessor :diagnostics
551
-
552
- # Token that can be used for pagination. Returned only if the
553
- # request matches more beacons than can be returned in this response.
554
- # Corresponds to the JSON property `nextPageToken`
555
- # @return [String]
556
- attr_accessor :next_page_token
557
-
558
- def initialize(**args)
559
- update!(**args)
560
- end
561
-
562
- # Update properties of this object
563
- def update!(**args)
564
- @diagnostics = args[:diagnostics] if args.key?(:diagnostics)
565
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
566
- end
567
- end
568
-
569
- # Information about the requested beacons, optionally including attachment
570
- # data.
571
- class GetInfoForObservedBeaconsResponse
572
- include Google::Apis::Core::Hashable
573
-
574
- # Public information about beacons.
575
- # May be empty if the request matched no beacons.
576
- # Corresponds to the JSON property `beacons`
577
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
578
- attr_accessor :beacons
579
-
580
- def initialize(**args)
581
- update!(**args)
582
- end
583
-
584
- # Update properties of this object
585
- def update!(**args)
586
- @beacons = args[:beacons] if args.key?(:beacons)
587
- end
588
- end
589
-
590
- # Details of a beacon device.
591
- class Beacon
592
- include Google::Apis::Core::Hashable
593
-
594
- # Defines a unique identifier of a beacon as broadcast by the device.
595
- # Corresponds to the JSON property `advertisedId`
596
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
597
- attr_accessor :advertised_id
598
-
599
- # Write-only registration parameters for beacons using Eddystone-EID format.
600
- # Two ways of securely registering an Eddystone-EID beacon with the service
601
- # are supported:
602
- # 1. Perform an ECDH key exchange via this API, including a previous call
603
- # to `GET /v1beta1/eidparams`. In this case the fields
604
- # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
605
- # populated and `beacon_identity_key` should not be populated. This
606
- # method ensures that only the two parties in the ECDH key exchange can
607
- # compute the identity key, which becomes a secret between them.
608
- # 2. Derive or obtain the beacon's identity key via other secure means
609
- # (perhaps an ECDH key exchange between the beacon and a mobile device
610
- # or any other secure method), and then submit the resulting identity key
611
- # to the service. In this case `beacon_identity_key` field should be
612
- # populated, and neither of `beacon_ecdh_public_key` nor
613
- # `service_ecdh_public_key` fields should be. The security of this method
614
- # depends on how securely the parties involved (in particular the
615
- # bluetooth client) handle the identity key, and obviously on how
616
- # securely the identity key was generated.
617
- # See [the Eddystone specification](https://github.com/google/eddystone/tree/
618
- # master/eddystone-eid) at GitHub.
619
- # Corresponds to the JSON property `ephemeralIdRegistration`
620
- # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
621
- attr_accessor :ephemeral_id_registration
687
+ # beacons.
688
+ class AttachmentInfo
689
+ include Google::Apis::Core::Hashable
622
690
 
623
- # Some beacons may require a user to provide an authorization key before
624
- # changing any of its configuration (e.g. broadcast frames, transmit power).
625
- # This field provides a place to store and control access to that key.
626
- # This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
627
- # from users with write access to the given beacon. That is to say: If the
628
- # user is authorized to write the beacon's confidential data in the service,
629
- # the service considers them authorized to configure the beacon. Note
630
- # that this key grants nothing on the service, only on the beacon itself.
631
- # Corresponds to the JSON property `provisioningKey`
691
+ # Specifies what kind of attachment this is. Tells a client how to
692
+ # interpret the `data` field. Format is <var>namespace/type</var>, for
693
+ # example <code>scrupulous-wombat-12345/welcome-message</code>
694
+ # Corresponds to the JSON property `namespacedType`
632
695
  # @return [String]
633
- attr_accessor :provisioning_key
696
+ attr_accessor :namespaced_type
634
697
 
635
- # Free text used to identify and describe the beacon. Maximum length 140
636
- # characters.
637
- # Optional.
638
- # Corresponds to the JSON property `description`
698
+ # An opaque data container for client-provided data.
699
+ # Corresponds to the JSON property `data`
700
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
639
701
  # @return [String]
640
- attr_accessor :description
702
+ attr_accessor :data
641
703
 
642
- # An object representing a latitude/longitude pair. This is expressed as a pair
643
- # of doubles representing degrees latitude and degrees longitude. Unless
644
- # specified otherwise, this must conform to the
645
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
646
- # standard</a>. Values must be within normalized ranges.
647
- # Example of normalization code in Python:
648
- # def NormalizeLongitude(longitude):
649
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
650
- # q, r = divmod(longitude, 360.0)
651
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
652
- # return r - 360.0
653
- # return r
654
- # def NormalizeLatLng(latitude, longitude):
655
- # """Wraps decimal degrees latitude and longitude to
656
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
657
- # r = latitude % 360.0
658
- # if r <= 90.0:
659
- # return r, NormalizeLongitude(longitude)
660
- # elif r >= 270.0:
661
- # return r - 360, NormalizeLongitude(longitude)
662
- # else:
663
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
664
- # assert 180.0 == NormalizeLongitude(180.0)
665
- # assert -180.0 == NormalizeLongitude(-180.0)
666
- # assert -179.0 == NormalizeLongitude(181.0)
667
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
668
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
669
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
670
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
671
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
672
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
673
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
674
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
675
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
676
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
677
- # The code in logs/storage/validator/logs_validator_traits.cc treats this type
678
- # as if it were annotated as ST_LOCATION.
679
- # Corresponds to the JSON property `latLng`
680
- # @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
681
- attr_accessor :lat_lng
704
+ def initialize(**args)
705
+ update!(**args)
706
+ end
682
707
 
683
- # The [Google Places API](/places/place-id) Place ID of the place where
684
- # the beacon is deployed. This is given when the beacon is registered or
685
- # updated, not automatically detected in any way.
686
- # Optional.
687
- # Corresponds to the JSON property `placeId`
688
- # @return [String]
689
- attr_accessor :place_id
708
+ # Update properties of this object
709
+ def update!(**args)
710
+ @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
711
+ @data = args[:data] if args.key?(:data)
712
+ end
713
+ end
690
714
 
691
- # Properties of the beacon device, for example battery type or firmware
692
- # version.
693
- # Optional.
694
- # Corresponds to the JSON property `properties`
695
- # @return [Hash<String,String>]
696
- attr_accessor :properties
715
+ # A subset of beacon information served via the `beaconinfo.getforobserved`
716
+ # method, which you call when users of your app encounter your beacons.
717
+ class BeaconInfo
718
+ include Google::Apis::Core::Hashable
697
719
 
698
- # Current status of the beacon.
699
- # Required.
700
- # Corresponds to the JSON property `status`
701
- # @return [String]
702
- attr_accessor :status
720
+ # Defines a unique identifier of a beacon as broadcast by the device.
721
+ # Corresponds to the JSON property `advertisedId`
722
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
723
+ attr_accessor :advertised_id
703
724
 
704
- # Indoor level, a human-readable string as returned by Google Maps APIs,
705
- # useful to indicate which floor of a building a beacon is located on.
706
- # Corresponds to the JSON property `indoorLevel`
707
- # @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
708
- attr_accessor :indoor_level
725
+ # Attachments matching the type(s) requested.
726
+ # May be empty if no attachment types were requested.
727
+ # Corresponds to the JSON property `attachments`
728
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
729
+ attr_accessor :attachments
709
730
 
710
- # Resource name of this beacon. A beacon name has the format
711
- # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
712
- # the beacon and N is a code for the beacon's type. Possible values are
713
- # `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
714
- # This field must be left empty when registering. After reading a beacon,
715
- # clients can use the name for future operations.
731
+ # The name under which the beacon is registered.
716
732
  # Corresponds to the JSON property `beaconName`
717
733
  # @return [String]
718
734
  attr_accessor :beacon_name
719
735
 
720
- # Expected location stability. This is set when the beacon is registered or
721
- # updated, not automatically detected in any way.
722
- # Optional.
723
- # Corresponds to the JSON property `expectedStability`
724
- # @return [String]
725
- attr_accessor :expected_stability
726
-
727
736
  def initialize(**args)
728
737
  update!(**args)
729
738
  end
@@ -731,38 +740,37 @@ module Google
731
740
  # Update properties of this object
732
741
  def update!(**args)
733
742
  @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
734
- @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
735
- @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
736
- @description = args[:description] if args.key?(:description)
737
- @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
738
- @place_id = args[:place_id] if args.key?(:place_id)
739
- @properties = args[:properties] if args.key?(:properties)
740
- @status = args[:status] if args.key?(:status)
741
- @indoor_level = args[:indoor_level] if args.key?(:indoor_level)
743
+ @attachments = args[:attachments] if args.key?(:attachments)
742
744
  @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
743
- @expected_stability = args[:expected_stability] if args.key?(:expected_stability)
744
745
  end
745
746
  end
746
747
 
747
- # Defines a unique identifier of a beacon as broadcast by the device.
748
- class AdvertisedId
748
+ # Information a client needs to provision and register beacons that
749
+ # broadcast Eddystone-EID format beacon IDs, using Elliptic curve
750
+ # Diffie-Hellman key exchange. See
751
+ # [the Eddystone specification](https://github.com/google/eddystone/tree/master/
752
+ # eddystone-eid) at GitHub.
753
+ class EphemeralIdRegistrationParams
749
754
  include Google::Apis::Core::Hashable
750
755
 
751
- # Specifies the identifier type.
752
- # Required.
753
- # Corresponds to the JSON property `type`
756
+ # The beacon service's public key for use by a beacon to derive its
757
+ # Identity Key using Elliptic Curve Diffie-Hellman key exchange.
758
+ # Corresponds to the JSON property `serviceEcdhPublicKey`
759
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
754
760
  # @return [String]
755
- attr_accessor :type
761
+ attr_accessor :service_ecdh_public_key
756
762
 
757
- # The actual beacon identifier, as broadcast by the beacon hardware. Must be
758
- # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
759
- # requests, and will be so encoded (with padding) in responses. The base64
760
- # encoding should be of the binary byte-stream and not any textual (such as
761
- # hex) representation thereof.
762
- # Required.
763
- # Corresponds to the JSON property `id`
764
- # @return [String]
765
- attr_accessor :id
763
+ # Indicates the minimum rotation period supported by the service.
764
+ # See EddystoneEidRegistration.rotation_period_exponent
765
+ # Corresponds to the JSON property `minRotationPeriodExponent`
766
+ # @return [Fixnum]
767
+ attr_accessor :min_rotation_period_exponent
768
+
769
+ # Indicates the maximum rotation period supported by the service.
770
+ # See EddystoneEidRegistration.rotation_period_exponent
771
+ # Corresponds to the JSON property `maxRotationPeriodExponent`
772
+ # @return [Fixnum]
773
+ attr_accessor :max_rotation_period_exponent
766
774
 
767
775
  def initialize(**args)
768
776
  update!(**args)
@@ -770,37 +778,20 @@ module Google
770
778
 
771
779
  # Update properties of this object
772
780
  def update!(**args)
773
- @type = args[:type] if args.key?(:type)
774
- @id = args[:id] if args.key?(:id)
781
+ @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
782
+ @min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent)
783
+ @max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent)
775
784
  end
776
785
  end
777
786
 
778
- # Represents a whole calendar date, e.g. date of birth. The time of day and
779
- # time zone are either specified elsewhere or are not significant. The date
780
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
781
- # represent a year and month where the day is not significant, e.g. credit card
782
- # expiration date. The year may be 0 to represent a month and day independent
783
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
784
- # and `google.protobuf.Timestamp`.
785
- class Date
787
+ # Response for a request to delete attachments.
788
+ class DeleteAttachmentsResponse
786
789
  include Google::Apis::Core::Hashable
787
790
 
788
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
789
- # a year.
790
- # Corresponds to the JSON property `year`
791
- # @return [Fixnum]
792
- attr_accessor :year
793
-
794
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
795
- # if specifying a year/month where the day is not significant.
796
- # Corresponds to the JSON property `day`
797
- # @return [Fixnum]
798
- attr_accessor :day
799
-
800
- # Month of year. Must be from 1 to 12.
801
- # Corresponds to the JSON property `month`
791
+ # The number of attachments that were deleted.
792
+ # Corresponds to the JSON property `numDeleted`
802
793
  # @return [Fixnum]
803
- attr_accessor :month
794
+ attr_accessor :num_deleted
804
795
 
805
796
  def initialize(**args)
806
797
  update!(**args)
@@ -808,21 +799,31 @@ module Google
808
799
 
809
800
  # Update properties of this object
810
801
  def update!(**args)
811
- @year = args[:year] if args.key?(:year)
812
- @day = args[:day] if args.key?(:day)
813
- @month = args[:month] if args.key?(:month)
802
+ @num_deleted = args[:num_deleted] if args.key?(:num_deleted)
814
803
  end
815
804
  end
816
805
 
817
- # Indoor level, a human-readable string as returned by Google Maps APIs,
818
- # useful to indicate which floor of a building a beacon is located on.
819
- class IndoorLevel
806
+ # Represents one beacon observed once.
807
+ class Observation
820
808
  include Google::Apis::Core::Hashable
821
809
 
822
- # The name of this level.
823
- # Corresponds to the JSON property `name`
810
+ # Defines a unique identifier of a beacon as broadcast by the device.
811
+ # Corresponds to the JSON property `advertisedId`
812
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
813
+ attr_accessor :advertised_id
814
+
815
+ # The array of telemetry bytes received from the beacon. The server is
816
+ # responsible for parsing it. This field may frequently be empty, as
817
+ # with a beacon that transmits telemetry only occasionally.
818
+ # Corresponds to the JSON property `telemetry`
819
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
824
820
  # @return [String]
825
- attr_accessor :name
821
+ attr_accessor :telemetry
822
+
823
+ # Time when the beacon was observed.
824
+ # Corresponds to the JSON property `timestampMs`
825
+ # @return [String]
826
+ attr_accessor :timestamp_ms
826
827
 
827
828
  def initialize(**args)
828
829
  update!(**args)
@@ -830,18 +831,26 @@ module Google
830
831
 
831
832
  # Update properties of this object
832
833
  def update!(**args)
833
- @name = args[:name] if args.key?(:name)
834
+ @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
835
+ @telemetry = args[:telemetry] if args.key?(:telemetry)
836
+ @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
834
837
  end
835
838
  end
836
839
 
837
- # Response to ListNamespacesRequest that contains all the project's namespaces.
838
- class ListNamespacesResponse
840
+ # Response that contains the requested diagnostics.
841
+ class ListDiagnosticsResponse
839
842
  include Google::Apis::Core::Hashable
840
843
 
841
- # The attachments that corresponded to the request params.
842
- # Corresponds to the JSON property `namespaces`
843
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Namespace>]
844
- attr_accessor :namespaces
844
+ # The diagnostics matching the given request.
845
+ # Corresponds to the JSON property `diagnostics`
846
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
847
+ attr_accessor :diagnostics
848
+
849
+ # Token that can be used for pagination. Returned only if the
850
+ # request matches more beacons than can be returned in this response.
851
+ # Corresponds to the JSON property `nextPageToken`
852
+ # @return [String]
853
+ attr_accessor :next_page_token
845
854
 
846
855
  def initialize(**args)
847
856
  update!(**args)
@@ -849,7 +858,8 @@ module Google
849
858
 
850
859
  # Update properties of this object
851
860
  def update!(**args)
852
- @namespaces = args[:namespaces] if args.key?(:namespaces)
861
+ @diagnostics = args[:diagnostics] if args.key?(:diagnostics)
862
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
853
863
  end
854
864
  end
855
865
  end