google-api-client 0.10.1 → 0.10.2

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 (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -61,11 +61,11 @@ module Google
61
61
  # [`people.connections.list`](/people/api/rest/v1/people.connections/list),
62
62
  # of one of the people to provide information about. You can include this
63
63
  # parameter up to 50 times in one request.
64
- # @param [String] fields
65
- # Selector specifying which fields to include in a partial response.
66
64
  # @param [String] quota_user
67
65
  # Available to use for quota purposes for server-side applications. Can be any
68
66
  # 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, fields: nil, quota_user: nil, options: nil, &block)
81
+ def get_people(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: 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
85
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
86
86
  command.query['resourceNames'] = resource_names unless resource_names.nil?
87
- command.query['fields'] = fields unless fields.nil?
88
87
  command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ command.query['fields'] = fields unless fields.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.
109
107
  # @param [String] quota_user
110
108
  # Available to use for quota purposes for server-side applications. Can be any
111
109
  # 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, fields: nil, quota_user: nil, options: nil, &block)
124
+ def get_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: 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['fields'] = fields unless fields.nil?
131
130
  command.query['quotaUser'] = quota_user unless quota_user.nil?
131
+ command.query['fields'] = fields unless fields.nil?
132
132
  execute_or_queue_command(command, &block)
133
133
  end
134
134
 
@@ -136,6 +136,9 @@ 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.
139
142
  # @param [String] sort_order
140
143
  # The order in which the connections should be sorted. Defaults to
141
144
  # `LAST_MODIFIED_ASCENDING`.
@@ -144,6 +147,9 @@ module Google
144
147
  # all changes since the last request.
145
148
  # @param [String] page_token
146
149
  # 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.
147
153
  # @param [String] request_mask_include_field
148
154
  # Comma-separated list of fields to be included in the response. Omitting
149
155
  # this field will include all fields except for connections.list requests,
@@ -151,17 +157,11 @@ module Google
151
157
  # photo, and profile url.
152
158
  # Each path should start with `person.`: for example, `person.names` or
153
159
  # `person.photos`.
154
- # @param [Fixnum] page_size
155
- # The number of connections to include in the response. Valid values are
156
- # between 1 and 500, inclusive. Defaults to 100.
157
- # @param [String] sync_token
158
- # A sync token, returned by a previous call to `people.connections.list`.
159
- # Only resources changed since the sync token was created will be returned.
160
- # @param [String] fields
161
- # Selector specifying which fields to include in a partial response.
162
160
  # @param [String] quota_user
163
161
  # Available to use for quota purposes for server-side applications. Can be any
164
162
  # 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, sort_order: nil, request_sync_token: nil, page_token: nil, request_mask_include_field: nil, page_size: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
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)
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?
182
183
  command.query['sortOrder'] = sort_order unless sort_order.nil?
183
184
  command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
184
185
  command.query['pageToken'] = page_token unless page_token.nil?
185
- command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
186
186
  command.query['pageSize'] = page_size unless page_size.nil?
187
- command.query['syncToken'] = sync_token unless sync_token.nil?
188
- command.query['fields'] = fields unless fields.nil?
187
+ command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
189
188
  command.query['quotaUser'] = quota_user unless quota_user.nil?
189
+ command.query['fields'] = fields unless fields.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 = '20170301'
28
+ REVISION = '20170322'
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 = '20170301'
28
+ REVISION = '20170322'
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'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/beacons/proximity/
26
26
  module ProximitybeaconV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20170220'
28
+ REVISION = '20170320'
29
29
 
30
30
  # View and modify your beacons
31
31
  AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
@@ -26,17 +26,17 @@ module Google
26
26
  class ListBeaconsResponse
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The beacons that matched the search criteria.
30
- # Corresponds to the JSON property `beacons`
31
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
32
- attr_accessor :beacons
33
-
34
29
  # An opaque pagination token that the client may provide in their next
35
30
  # request to retrieve the next page of results.
36
31
  # Corresponds to the JSON property `nextPageToken`
37
32
  # @return [String]
38
33
  attr_accessor :next_page_token
39
34
 
35
+ # The beacons that matched the search criteria.
36
+ # Corresponds to the JSON property `beacons`
37
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
38
+ attr_accessor :beacons
39
+
40
40
  # Estimate of the total number of beacons matched by the query. Higher
41
41
  # values may be less accurate.
42
42
  # Corresponds to the JSON property `totalCount`
@@ -49,45 +49,12 @@ module Google
49
49
 
50
50
  # Update properties of this object
51
51
  def update!(**args)
52
- @beacons = args[:beacons] if args.key?(:beacons)
53
52
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
53
+ @beacons = args[:beacons] if args.key?(:beacons)
54
54
  @total_count = args[:total_count] if args.key?(:total_count)
55
55
  end
56
56
  end
57
57
 
58
- # Represents one beacon observed once.
59
- class Observation
60
- include Google::Apis::Core::Hashable
61
-
62
- # Defines a unique identifier of a beacon as broadcast by the device.
63
- # Corresponds to the JSON property `advertisedId`
64
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
65
- attr_accessor :advertised_id
66
-
67
- # The array of telemetry bytes received from the beacon. The server is
68
- # responsible for parsing it. This field may frequently be empty, as
69
- # with a beacon that transmits telemetry only occasionally.
70
- # Corresponds to the JSON property `telemetry`
71
- # @return [String]
72
- attr_accessor :telemetry
73
-
74
- # Time when the beacon was observed.
75
- # Corresponds to the JSON property `timestampMs`
76
- # @return [String]
77
- attr_accessor :timestamp_ms
78
-
79
- def initialize(**args)
80
- update!(**args)
81
- end
82
-
83
- # Update properties of this object
84
- def update!(**args)
85
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
86
- @telemetry = args[:telemetry] if args.key?(:telemetry)
87
- @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
88
- end
89
- end
90
-
91
58
  # Diagnostics for a single beacon.
92
59
  class Diagnostics
93
60
  include Google::Apis::Core::Hashable
@@ -97,12 +64,6 @@ module Google
97
64
  # @return [Array<String>]
98
65
  attr_accessor :alerts
99
66
 
100
- # Resource name of the beacon. For Eddystone-EID beacons, this may
101
- # be the beacon's current EID, or the beacon's "stable" Eddystone-UID.
102
- # Corresponds to the JSON property `beaconName`
103
- # @return [String]
104
- attr_accessor :beacon_name
105
-
106
67
  # Represents a whole calendar date, e.g. date of birth. The time of day and
107
68
  # time zone are either specified elsewhere or are not significant. The date
108
69
  # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
@@ -114,6 +75,12 @@ module Google
114
75
  # @return [Google::Apis::ProximitybeaconV1beta1::Date]
115
76
  attr_accessor :estimated_low_battery_date
116
77
 
78
+ # Resource name of the beacon. For Eddystone-EID beacons, this may
79
+ # be the beacon's current EID, or the beacon's "stable" Eddystone-UID.
80
+ # Corresponds to the JSON property `beaconName`
81
+ # @return [String]
82
+ attr_accessor :beacon_name
83
+
117
84
  def initialize(**args)
118
85
  update!(**args)
119
86
  end
@@ -121,30 +88,31 @@ module Google
121
88
  # Update properties of this object
122
89
  def update!(**args)
123
90
  @alerts = args[:alerts] if args.key?(:alerts)
124
- @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
125
91
  @estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date)
92
+ @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
126
93
  end
127
94
  end
128
95
 
129
- # Defines a unique identifier of a beacon as broadcast by the device.
130
- class AdvertisedId
96
+ # Request for beacon and attachment information about beacons that
97
+ # a mobile client has encountered "in the wild".
98
+ class GetInfoForObservedBeaconsRequest
131
99
  include Google::Apis::Core::Hashable
132
100
 
133
- # Specifies the identifier type.
134
- # Required.
135
- # Corresponds to the JSON property `type`
136
- # @return [String]
137
- attr_accessor :type
101
+ # The beacons that the client has encountered.
102
+ # At least one must be given.
103
+ # Corresponds to the JSON property `observations`
104
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Observation>]
105
+ attr_accessor :observations
138
106
 
139
- # The actual beacon identifier, as broadcast by the beacon hardware. Must be
140
- # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
141
- # requests, and will be so encoded (with padding) in responses. The base64
142
- # encoding should be of the binary byte-stream and not any textual (such as
143
- # hex) representation thereof.
144
- # Required.
145
- # Corresponds to the JSON property `id`
146
- # @return [String]
147
- attr_accessor :id
107
+ # Specifies what kind of attachments to include in the response.
108
+ # When given, the response will include only attachments of the given types.
109
+ # When empty, no attachments will be returned. Must be in the format
110
+ # <var>namespace/type</var>. Accepts `*` to specify all types in
111
+ # all namespaces owned by the client.
112
+ # Optional.
113
+ # Corresponds to the JSON property `namespacedTypes`
114
+ # @return [Array<String>]
115
+ attr_accessor :namespaced_types
148
116
 
149
117
  def initialize(**args)
150
118
  update!(**args)
@@ -152,19 +120,63 @@ module Google
152
120
 
153
121
  # Update properties of this object
154
122
  def update!(**args)
155
- @type = args[:type] if args.key?(:type)
156
- @id = args[:id] if args.key?(:id)
123
+ @observations = args[:observations] if args.key?(:observations)
124
+ @namespaced_types = args[:namespaced_types] if args.key?(:namespaced_types)
157
125
  end
158
126
  end
159
127
 
160
- # Response for a request to delete attachments.
161
- class DeleteAttachmentsResponse
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
162
136
  include Google::Apis::Core::Hashable
163
137
 
164
- # The number of attachments that were deleted.
165
- # Corresponds to the JSON property `numDeleted`
166
- # @return [Fixnum]
167
- attr_accessor :num_deleted
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
+ # Project-specific data associated with a beacon.
148
+ class BeaconAttachment
149
+ include Google::Apis::Core::Hashable
150
+
151
+ # Resource name of this attachment. Attachment names have the format:
152
+ # <code>beacons/<var>beacon_id</var>/attachments/<var>attachment_id</var></code>.
153
+ # Leave this empty on creation.
154
+ # Corresponds to the JSON property `attachmentName`
155
+ # @return [String]
156
+ attr_accessor :attachment_name
157
+
158
+ # Specifies what kind of attachment this is. Tells a client how to
159
+ # interpret the `data` field. Format is <var>namespace/type</var>. Namespace
160
+ # provides type separation between clients. Type describes the type of
161
+ # `data`, for use by the client when parsing the `data` field.
162
+ # Required.
163
+ # Corresponds to the JSON property `namespacedType`
164
+ # @return [String]
165
+ attr_accessor :namespaced_type
166
+
167
+ # An opaque data container for client-provided data. Must be
168
+ # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
169
+ # requests, and will be so encoded (with padding) in responses.
170
+ # Required.
171
+ # Corresponds to the JSON property `data`
172
+ # @return [String]
173
+ attr_accessor :data
174
+
175
+ # The UTC time when this attachment was created, in milliseconds since the
176
+ # UNIX epoch.
177
+ # Corresponds to the JSON property `creationTimeMs`
178
+ # @return [String]
179
+ attr_accessor :creation_time_ms
168
180
 
169
181
  def initialize(**args)
170
182
  update!(**args)
@@ -172,7 +184,10 @@ module Google
172
184
 
173
185
  # Update properties of this object
174
186
  def update!(**args)
175
- @num_deleted = args[:num_deleted] if args.key?(:num_deleted)
187
+ @attachment_name = args[:attachment_name] if args.key?(:attachment_name)
188
+ @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
189
+ @data = args[:data] if args.key?(:data)
190
+ @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms)
176
191
  end
177
192
  end
178
193
 
@@ -199,13 +214,6 @@ module Google
199
214
  class EphemeralIdRegistration
200
215
  include Google::Apis::Core::Hashable
201
216
 
202
- # The beacon's public key used for the Elliptic curve Diffie-Hellman
203
- # key exchange. When this field is populated, `service_ecdh_public_key`
204
- # must also be populated, and `beacon_identity_key` must not be.
205
- # Corresponds to the JSON property `beaconEcdhPublicKey`
206
- # @return [String]
207
- attr_accessor :beacon_ecdh_public_key
208
-
209
217
  # The initial clock value of the beacon. The beacon's clock must have
210
218
  # begun counting at this value immediately prior to transmitting this
211
219
  # value to the resolving service. Significant delay in transmitting this
@@ -215,19 +223,12 @@ module Google
215
223
  # @return [String]
216
224
  attr_accessor :initial_clock_value
217
225
 
218
- # The private key of the beacon. If this field is populated,
219
- # `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be
220
- # populated.
221
- # Corresponds to the JSON property `beaconIdentityKey`
222
- # @return [String]
223
- attr_accessor :beacon_identity_key
224
-
225
- # The service's public key used for the Elliptic curve Diffie-Hellman
226
- # key exchange. When this field is populated, `beacon_ecdh_public_key`
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`
227
228
  # must also be populated, and `beacon_identity_key` must not be.
228
- # Corresponds to the JSON property `serviceEcdhPublicKey`
229
+ # Corresponds to the JSON property `beaconEcdhPublicKey`
229
230
  # @return [String]
230
- attr_accessor :service_ecdh_public_key
231
+ attr_accessor :beacon_ecdh_public_key
231
232
 
232
233
  # Indicates the nominal period between each rotation of the beacon's
233
234
  # ephemeral ID. "Nominal" because the beacon should randomize the
@@ -240,6 +241,20 @@ module Google
240
241
  # @return [Fixnum]
241
242
  attr_accessor :rotation_period_exponent
242
243
 
244
+ # The service's public key used for the Elliptic curve Diffie-Hellman
245
+ # key exchange. When this field is populated, `beacon_ecdh_public_key`
246
+ # must also be populated, and `beacon_identity_key` must not be.
247
+ # Corresponds to the JSON property `serviceEcdhPublicKey`
248
+ # @return [String]
249
+ attr_accessor :service_ecdh_public_key
250
+
251
+ # The private key of the beacon. If this field is populated,
252
+ # `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be
253
+ # populated.
254
+ # Corresponds to the JSON property `beaconIdentityKey`
255
+ # @return [String]
256
+ attr_accessor :beacon_identity_key
257
+
243
258
  # An initial ephemeral ID calculated using the clock value submitted as
244
259
  # `initial_clock_value`, and the secret key generated by the
245
260
  # Diffie-Hellman key exchange using `service_ecdh_public_key` and
@@ -255,29 +270,64 @@ module Google
255
270
 
256
271
  # Update properties of this object
257
272
  def update!(**args)
258
- @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
259
273
  @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
260
- @beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
261
- @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
274
+ @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
262
275
  @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
276
+ @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
277
+ @beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
263
278
  @initial_eid = args[:initial_eid] if args.key?(:initial_eid)
264
279
  end
265
280
  end
266
281
 
267
- # Response that contains the requested diagnostics.
268
- class ListDiagnosticsResponse
282
+ # An object representing a latitude/longitude pair. This is expressed as a pair
283
+ # of doubles representing degrees latitude and degrees longitude. Unless
284
+ # specified otherwise, this must conform to the
285
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
286
+ # standard</a>. Values must be within normalized ranges.
287
+ # Example of normalization code in Python:
288
+ # def NormalizeLongitude(longitude):
289
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
290
+ # q, r = divmod(longitude, 360.0)
291
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
292
+ # return r - 360.0
293
+ # return r
294
+ # def NormalizeLatLng(latitude, longitude):
295
+ # """Wraps decimal degrees latitude and longitude to
296
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
297
+ # r = latitude % 360.0
298
+ # if r <= 90.0:
299
+ # return r, NormalizeLongitude(longitude)
300
+ # elif r >= 270.0:
301
+ # return r - 360, NormalizeLongitude(longitude)
302
+ # else:
303
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
304
+ # assert 180.0 == NormalizeLongitude(180.0)
305
+ # assert -180.0 == NormalizeLongitude(-180.0)
306
+ # assert -179.0 == NormalizeLongitude(181.0)
307
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
308
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
309
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
310
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
311
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
312
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
313
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
314
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
315
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
316
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
317
+ # The code in logs/storage/validator/logs_validator_traits.cc treats this type
318
+ # as if it were annotated as ST_LOCATION.
319
+ class LatLng
269
320
  include Google::Apis::Core::Hashable
270
321
 
271
- # Token that can be used for pagination. Returned only if the
272
- # request matches more beacons than can be returned in this response.
273
- # Corresponds to the JSON property `nextPageToken`
274
- # @return [String]
275
- attr_accessor :next_page_token
322
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
323
+ # Corresponds to the JSON property `latitude`
324
+ # @return [Float]
325
+ attr_accessor :latitude
276
326
 
277
- # The diagnostics matching the given request.
278
- # Corresponds to the JSON property `diagnostics`
279
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
280
- attr_accessor :diagnostics
327
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
328
+ # Corresponds to the JSON property `longitude`
329
+ # @return [Float]
330
+ attr_accessor :longitude
281
331
 
282
332
  def initialize(**args)
283
333
  update!(**args)
@@ -285,31 +335,47 @@ module Google
285
335
 
286
336
  # Update properties of this object
287
337
  def update!(**args)
288
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
289
- @diagnostics = args[:diagnostics] if args.key?(:diagnostics)
338
+ @latitude = args[:latitude] if args.key?(:latitude)
339
+ @longitude = args[:longitude] if args.key?(:longitude)
290
340
  end
291
341
  end
292
342
 
293
- # A subset of beacon information served via the `beaconinfo.getforobserved`
294
- # method, which you call when users of your app encounter your beacons.
295
- class BeaconInfo
343
+ # Response to `ListBeaconAttachments` that contains the requested attachments.
344
+ class ListBeaconAttachmentsResponse
296
345
  include Google::Apis::Core::Hashable
297
346
 
298
- # Attachments matching the type(s) requested.
299
- # May be empty if no attachment types were requested.
347
+ # The attachments that corresponded to the request params.
300
348
  # Corresponds to the JSON property `attachments`
301
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
349
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconAttachment>]
302
350
  attr_accessor :attachments
303
351
 
304
- # The name under which the beacon is registered.
305
- # Corresponds to the JSON property `beaconName`
352
+ def initialize(**args)
353
+ update!(**args)
354
+ end
355
+
356
+ # Update properties of this object
357
+ def update!(**args)
358
+ @attachments = args[:attachments] if args.key?(:attachments)
359
+ end
360
+ end
361
+
362
+ # An attachment namespace defines read and write access for all the attachments
363
+ # created under it. Each namespace is globally unique, and owned by one
364
+ # project which is the only project that can create attachments under it.
365
+ class Namespace
366
+ include Google::Apis::Core::Hashable
367
+
368
+ # Resource name of this namespace. Namespaces names have the format:
369
+ # <code>namespaces/<var>namespace</var></code>.
370
+ # Corresponds to the JSON property `namespaceName`
306
371
  # @return [String]
307
- attr_accessor :beacon_name
372
+ attr_accessor :namespace_name
308
373
 
309
- # Defines a unique identifier of a beacon as broadcast by the device.
310
- # Corresponds to the JSON property `advertisedId`
311
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
312
- attr_accessor :advertised_id
374
+ # Specifies what clients may receive attachments under this namespace
375
+ # via `beaconinfo.getforobserved`.
376
+ # Corresponds to the JSON property `servingVisibility`
377
+ # @return [String]
378
+ attr_accessor :serving_visibility
313
379
 
314
380
  def initialize(**args)
315
381
  update!(**args)
@@ -317,21 +383,28 @@ module Google
317
383
 
318
384
  # Update properties of this object
319
385
  def update!(**args)
320
- @attachments = args[:attachments] if args.key?(:attachments)
321
- @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
322
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
386
+ @namespace_name = args[:namespace_name] if args.key?(:namespace_name)
387
+ @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
323
388
  end
324
389
  end
325
390
 
326
- # Indoor level, a human-readable string as returned by Google Maps APIs,
327
- # useful to indicate which floor of a building a beacon is located on.
328
- class IndoorLevel
391
+ # A subset of attachment information served via the
392
+ # `beaconinfo.getforobserved` method, used when your users encounter your
393
+ # beacons.
394
+ class AttachmentInfo
329
395
  include Google::Apis::Core::Hashable
330
396
 
331
- # The name of this level.
332
- # Corresponds to the JSON property `name`
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`
333
401
  # @return [String]
334
- attr_accessor :name
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
335
408
 
336
409
  def initialize(**args)
337
410
  update!(**args)
@@ -339,7 +412,41 @@ module Google
339
412
 
340
413
  # Update properties of this object
341
414
  def update!(**args)
342
- @name = args[:name] if args.key?(:name)
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)
343
450
  end
344
451
  end
345
452
 
@@ -381,14 +488,14 @@ module Google
381
488
  end
382
489
  end
383
490
 
384
- # Response to `ListBeaconAttachments` that contains the requested attachments.
385
- class ListBeaconAttachmentsResponse
491
+ # Response for a request to delete attachments.
492
+ class DeleteAttachmentsResponse
386
493
  include Google::Apis::Core::Hashable
387
494
 
388
- # The attachments that corresponded to the request params.
389
- # Corresponds to the JSON property `attachments`
390
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconAttachment>]
391
- attr_accessor :attachments
495
+ # The number of attachments that were deleted.
496
+ # Corresponds to the JSON property `numDeleted`
497
+ # @return [Fixnum]
498
+ attr_accessor :num_deleted
392
499
 
393
500
  def initialize(**args)
394
501
  update!(**args)
@@ -396,27 +503,30 @@ module Google
396
503
 
397
504
  # Update properties of this object
398
505
  def update!(**args)
399
- @attachments = args[:attachments] if args.key?(:attachments)
506
+ @num_deleted = args[:num_deleted] if args.key?(:num_deleted)
400
507
  end
401
508
  end
402
509
 
403
- # An attachment namespace defines read and write access for all the attachments
404
- # created under it. Each namespace is globally unique, and owned by one
405
- # project which is the only project that can create attachments under it.
406
- class Namespace
510
+ # Represents one beacon observed once.
511
+ class Observation
407
512
  include Google::Apis::Core::Hashable
408
513
 
409
- # Resource name of this namespace. Namespaces names have the format:
410
- # <code>namespaces/<var>namespace</var></code>.
411
- # Corresponds to the JSON property `namespaceName`
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`
412
518
  # @return [String]
413
- attr_accessor :namespace_name
519
+ attr_accessor :telemetry
414
520
 
415
- # Specifies what clients may receive attachments under this namespace
416
- # via `beaconinfo.getforobserved`.
417
- # Corresponds to the JSON property `servingVisibility`
521
+ # Time when the beacon was observed.
522
+ # Corresponds to the JSON property `timestampMs`
418
523
  # @return [String]
419
- attr_accessor :serving_visibility
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
420
530
 
421
531
  def initialize(**args)
422
532
  update!(**args)
@@ -424,28 +534,26 @@ module Google
424
534
 
425
535
  # Update properties of this object
426
536
  def update!(**args)
427
- @namespace_name = args[:namespace_name] if args.key?(:namespace_name)
428
- @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
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)
429
540
  end
430
541
  end
431
542
 
432
- # A subset of attachment information served via the
433
- # `beaconinfo.getforobserved` method, used when your users encounter your
434
- # beacons.
435
- class AttachmentInfo
543
+ # Response that contains the requested diagnostics.
544
+ class ListDiagnosticsResponse
436
545
  include Google::Apis::Core::Hashable
437
546
 
438
- # An opaque data container for client-provided data.
439
- # Corresponds to the JSON property `data`
440
- # @return [String]
441
- attr_accessor :data
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
442
551
 
443
- # Specifies what kind of attachment this is. Tells a client how to
444
- # interpret the `data` field. Format is <var>namespace/type</var>, for
445
- # example <code>scrupulous-wombat-12345/welcome-message</code>
446
- # Corresponds to the JSON property `namespacedType`
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`
447
555
  # @return [String]
448
- attr_accessor :namespaced_type
556
+ attr_accessor :next_page_token
449
557
 
450
558
  def initialize(**args)
451
559
  update!(**args)
@@ -453,46 +561,40 @@ module Google
453
561
 
454
562
  # Update properties of this object
455
563
  def update!(**args)
456
- @data = args[:data] if args.key?(:data)
457
- @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
564
+ @diagnostics = args[:diagnostics] if args.key?(:diagnostics)
565
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
458
566
  end
459
567
  end
460
568
 
461
- # Details of a beacon device.
462
- class Beacon
569
+ # Information about the requested beacons, optionally including attachment
570
+ # data.
571
+ class GetInfoForObservedBeaconsResponse
463
572
  include Google::Apis::Core::Hashable
464
573
 
465
- # Free text used to identify and describe the beacon. Maximum length 140
466
- # characters.
467
- # Optional.
468
- # Corresponds to the JSON property `description`
469
- # @return [String]
470
- attr_accessor :description
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
471
579
 
472
- # Some beacons may require a user to provide an authorization key before
473
- # changing any of its configuration (e.g. broadcast frames, transmit power).
474
- # This field provides a place to store and control access to that key.
475
- # This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
476
- # from users with write access to the given beacon. That is to say: If the
477
- # user is authorized to write the beacon's confidential data in the service,
478
- # the service considers them authorized to configure the beacon. Note
479
- # that this key grants nothing on the service, only on the beacon itself.
480
- # Corresponds to the JSON property `provisioningKey`
481
- # @return [String]
482
- attr_accessor :provisioning_key
580
+ def initialize(**args)
581
+ update!(**args)
582
+ end
483
583
 
484
- # Current status of the beacon.
485
- # Required.
486
- # Corresponds to the JSON property `status`
487
- # @return [String]
488
- attr_accessor :status
584
+ # Update properties of this object
585
+ def update!(**args)
586
+ @beacons = args[:beacons] if args.key?(:beacons)
587
+ end
588
+ end
489
589
 
490
- # Properties of the beacon device, for example battery type or firmware
491
- # version.
492
- # Optional.
493
- # Corresponds to the JSON property `properties`
494
- # @return [Hash<String,String>]
495
- attr_accessor :properties
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
496
598
 
497
599
  # Write-only registration parameters for beacons using Eddystone-EID format.
498
600
  # Two ways of securely registering an Eddystone-EID beacon with the service
@@ -518,18 +620,24 @@ module Google
518
620
  # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
519
621
  attr_accessor :ephemeral_id_registration
520
622
 
521
- # The [Google Places API](/places/place-id) Place ID of the place where
522
- # the beacon is deployed. This is given when the beacon is registered or
523
- # updated, not automatically detected in any way.
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`
632
+ # @return [String]
633
+ attr_accessor :provisioning_key
634
+
635
+ # Free text used to identify and describe the beacon. Maximum length 140
636
+ # characters.
524
637
  # Optional.
525
- # Corresponds to the JSON property `placeId`
638
+ # Corresponds to the JSON property `description`
526
639
  # @return [String]
527
- attr_accessor :place_id
528
-
529
- # Defines a unique identifier of a beacon as broadcast by the device.
530
- # Corresponds to the JSON property `advertisedId`
531
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
532
- attr_accessor :advertised_id
640
+ attr_accessor :description
533
641
 
534
642
  # An object representing a latitude/longitude pair. This is expressed as a pair
535
643
  # of doubles representing degrees latitude and degrees longitude. Unless
@@ -572,6 +680,33 @@ module Google
572
680
  # @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
573
681
  attr_accessor :lat_lng
574
682
 
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
690
+
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
697
+
698
+ # Current status of the beacon.
699
+ # Required.
700
+ # Corresponds to the JSON property `status`
701
+ # @return [String]
702
+ attr_accessor :status
703
+
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
709
+
575
710
  # Resource name of this beacon. A beacon name has the format
576
711
  # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
577
712
  # the beacon and N is a code for the beacon's type. Possible values are
@@ -589,159 +724,45 @@ module Google
589
724
  # @return [String]
590
725
  attr_accessor :expected_stability
591
726
 
592
- # Indoor level, a human-readable string as returned by Google Maps APIs,
593
- # useful to indicate which floor of a building a beacon is located on.
594
- # Corresponds to the JSON property `indoorLevel`
595
- # @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
596
- attr_accessor :indoor_level
597
-
598
727
  def initialize(**args)
599
728
  update!(**args)
600
729
  end
601
730
 
602
731
  # Update properties of this object
603
732
  def update!(**args)
604
- @description = args[:description] if args.key?(:description)
605
- @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
606
- @status = args[:status] if args.key?(:status)
607
- @properties = args[:properties] if args.key?(:properties)
608
- @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
609
- @place_id = args[:place_id] if args.key?(:place_id)
610
733
  @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)
611
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)
612
742
  @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
613
743
  @expected_stability = args[:expected_stability] if args.key?(:expected_stability)
614
- @indoor_level = args[:indoor_level] if args.key?(:indoor_level)
615
- end
616
- end
617
-
618
- # A generic empty message that you can re-use to avoid defining duplicated
619
- # empty messages in your APIs. A typical example is to use it as the request
620
- # or the response type of an API method. For instance:
621
- # service Foo `
622
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
623
- # `
624
- # The JSON representation for `Empty` is empty JSON object ````.
625
- class Empty
626
- include Google::Apis::Core::Hashable
627
-
628
- def initialize(**args)
629
- update!(**args)
630
- end
631
-
632
- # Update properties of this object
633
- def update!(**args)
634
744
  end
635
745
  end
636
746
 
637
- # Project-specific data associated with a beacon.
638
- class BeaconAttachment
747
+ # Defines a unique identifier of a beacon as broadcast by the device.
748
+ class AdvertisedId
639
749
  include Google::Apis::Core::Hashable
640
750
 
641
- # An opaque data container for client-provided data. Must be
642
- # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
643
- # requests, and will be so encoded (with padding) in responses.
751
+ # Specifies the identifier type.
644
752
  # Required.
645
- # Corresponds to the JSON property `data`
753
+ # Corresponds to the JSON property `type`
646
754
  # @return [String]
647
- attr_accessor :data
755
+ attr_accessor :type
648
756
 
649
- # Specifies what kind of attachment this is. Tells a client how to
650
- # interpret the `data` field. Format is <var>namespace/type</var>. Namespace
651
- # provides type separation between clients. Type describes the type of
652
- # `data`, for use by the client when parsing the `data` field.
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.
653
762
  # Required.
654
- # Corresponds to the JSON property `namespacedType`
655
- # @return [String]
656
- attr_accessor :namespaced_type
657
-
658
- # Resource name of this attachment. Attachment names have the format:
659
- # <code>beacons/<var>beacon_id</var>/attachments/<var>attachment_id</var></code>.
660
- # Leave this empty on creation.
661
- # Corresponds to the JSON property `attachmentName`
662
- # @return [String]
663
- attr_accessor :attachment_name
664
-
665
- # The UTC time when this attachment was created, in milliseconds since the
666
- # UNIX epoch.
667
- # Corresponds to the JSON property `creationTimeMs`
763
+ # Corresponds to the JSON property `id`
668
764
  # @return [String]
669
- attr_accessor :creation_time_ms
670
-
671
- def initialize(**args)
672
- update!(**args)
673
- end
674
-
675
- # Update properties of this object
676
- def update!(**args)
677
- @data = args[:data] if args.key?(:data)
678
- @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
679
- @attachment_name = args[:attachment_name] if args.key?(:attachment_name)
680
- @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms)
681
- end
682
- end
683
-
684
- # Information about the requested beacons, optionally including attachment
685
- # data.
686
- class GetInfoForObservedBeaconsResponse
687
- include Google::Apis::Core::Hashable
688
-
689
- # Public information about beacons.
690
- # May be empty if the request matched no beacons.
691
- # Corresponds to the JSON property `beacons`
692
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
693
- attr_accessor :beacons
694
-
695
- def initialize(**args)
696
- update!(**args)
697
- end
698
-
699
- # Update properties of this object
700
- def update!(**args)
701
- @beacons = args[:beacons] if args.key?(:beacons)
702
- end
703
- end
704
-
705
- # Request for beacon and attachment information about beacons that
706
- # a mobile client has encountered "in the wild".
707
- class GetInfoForObservedBeaconsRequest
708
- include Google::Apis::Core::Hashable
709
-
710
- # The beacons that the client has encountered.
711
- # At least one must be given.
712
- # Corresponds to the JSON property `observations`
713
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Observation>]
714
- attr_accessor :observations
715
-
716
- # Specifies what kind of attachments to include in the response.
717
- # When given, the response will include only attachments of the given types.
718
- # When empty, no attachments will be returned. Must be in the format
719
- # <var>namespace/type</var>. Accepts `*` to specify all types in
720
- # all namespaces owned by the client.
721
- # Optional.
722
- # Corresponds to the JSON property `namespacedTypes`
723
- # @return [Array<String>]
724
- attr_accessor :namespaced_types
725
-
726
- def initialize(**args)
727
- update!(**args)
728
- end
729
-
730
- # Update properties of this object
731
- def update!(**args)
732
- @observations = args[:observations] if args.key?(:observations)
733
- @namespaced_types = args[:namespaced_types] if args.key?(:namespaced_types)
734
- end
735
- end
736
-
737
- # Response to ListNamespacesRequest that contains all the project's namespaces.
738
- class ListNamespacesResponse
739
- include Google::Apis::Core::Hashable
740
-
741
- # The attachments that corresponded to the request params.
742
- # Corresponds to the JSON property `namespaces`
743
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Namespace>]
744
- attr_accessor :namespaces
765
+ attr_accessor :id
745
766
 
746
767
  def initialize(**args)
747
768
  update!(**args)
@@ -749,7 +770,8 @@ module Google
749
770
 
750
771
  # Update properties of this object
751
772
  def update!(**args)
752
- @namespaces = args[:namespaces] if args.key?(:namespaces)
773
+ @type = args[:type] if args.key?(:type)
774
+ @id = args[:id] if args.key?(:id)
753
775
  end
754
776
  end
755
777
 
@@ -763,11 +785,6 @@ module Google
763
785
  class Date
764
786
  include Google::Apis::Core::Hashable
765
787
 
766
- # Month of year. Must be from 1 to 12.
767
- # Corresponds to the JSON property `month`
768
- # @return [Fixnum]
769
- attr_accessor :month
770
-
771
788
  # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
772
789
  # a year.
773
790
  # Corresponds to the JSON property `year`
@@ -780,67 +797,51 @@ module Google
780
797
  # @return [Fixnum]
781
798
  attr_accessor :day
782
799
 
800
+ # Month of year. Must be from 1 to 12.
801
+ # Corresponds to the JSON property `month`
802
+ # @return [Fixnum]
803
+ attr_accessor :month
804
+
783
805
  def initialize(**args)
784
806
  update!(**args)
785
807
  end
786
808
 
787
809
  # Update properties of this object
788
810
  def update!(**args)
789
- @month = args[:month] if args.key?(:month)
790
811
  @year = args[:year] if args.key?(:year)
791
812
  @day = args[:day] if args.key?(:day)
813
+ @month = args[:month] if args.key?(:month)
792
814
  end
793
815
  end
794
816
 
795
- # An object representing a latitude/longitude pair. This is expressed as a pair
796
- # of doubles representing degrees latitude and degrees longitude. Unless
797
- # specified otherwise, this must conform to the
798
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
799
- # standard</a>. Values must be within normalized ranges.
800
- # Example of normalization code in Python:
801
- # def NormalizeLongitude(longitude):
802
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
803
- # q, r = divmod(longitude, 360.0)
804
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
805
- # return r - 360.0
806
- # return r
807
- # def NormalizeLatLng(latitude, longitude):
808
- # """Wraps decimal degrees latitude and longitude to
809
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
810
- # r = latitude % 360.0
811
- # if r <= 90.0:
812
- # return r, NormalizeLongitude(longitude)
813
- # elif r >= 270.0:
814
- # return r - 360, NormalizeLongitude(longitude)
815
- # else:
816
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
817
- # assert 180.0 == NormalizeLongitude(180.0)
818
- # assert -180.0 == NormalizeLongitude(-180.0)
819
- # assert -179.0 == NormalizeLongitude(181.0)
820
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
821
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
822
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
823
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
824
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
825
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
826
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
827
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
828
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
829
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
830
- # The code in logs/storage/validator/logs_validator_traits.cc treats this type
831
- # as if it were annotated as ST_LOCATION.
832
- class LatLng
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
833
820
  include Google::Apis::Core::Hashable
834
821
 
835
- # The latitude in degrees. It must be in the range [-90.0, +90.0].
836
- # Corresponds to the JSON property `latitude`
837
- # @return [Float]
838
- attr_accessor :latitude
822
+ # The name of this level.
823
+ # Corresponds to the JSON property `name`
824
+ # @return [String]
825
+ attr_accessor :name
839
826
 
840
- # The longitude in degrees. It must be in the range [-180.0, +180.0].
841
- # Corresponds to the JSON property `longitude`
842
- # @return [Float]
843
- attr_accessor :longitude
827
+ def initialize(**args)
828
+ update!(**args)
829
+ end
830
+
831
+ # Update properties of this object
832
+ def update!(**args)
833
+ @name = args[:name] if args.key?(:name)
834
+ end
835
+ end
836
+
837
+ # Response to ListNamespacesRequest that contains all the project's namespaces.
838
+ class ListNamespacesResponse
839
+ include Google::Apis::Core::Hashable
840
+
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
845
 
845
846
  def initialize(**args)
846
847
  update!(**args)
@@ -848,8 +849,7 @@ module Google
848
849
 
849
850
  # Update properties of this object
850
851
  def update!(**args)
851
- @latitude = args[:latitude] if args.key?(:latitude)
852
- @longitude = args[:longitude] if args.key?(:longitude)
852
+ @namespaces = args[:namespaces] if args.key?(:namespaces)
853
853
  end
854
854
  end
855
855
  end