google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -32,16 +32,16 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/people/
34
34
  class PeopleServiceService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
35
  # @return [String]
41
36
  # Available to use for quota purposes for server-side applications. Can be any
42
37
  # arbitrary string assigned to a user, but should not exceed 40 characters.
43
38
  attr_accessor :quota_user
44
39
 
40
+ # @return [String]
41
+ # API key. Your API key identifies your project and provides you with API access,
42
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
+ attr_accessor :key
44
+
45
45
  def initialize
46
46
  super('https://people.googleapis.com/', '')
47
47
  @batch_path = 'batch'
@@ -51,22 +51,19 @@ module Google
51
51
  # of requested resource names. Use `people/me` to indicate the authenticated
52
52
  # user.
53
53
  # @param [String] request_mask_include_field
54
- # Comma-separated list of fields to be included in the response. Omitting
55
- # this field will include all fields except for connections.list requests,
56
- # which have a default mask that includes common fields like metadata, name,
57
- # photo, and profile url.
58
- # Each path should start with `person.`: for example, `person.names` or
59
- # `person.photos`.
54
+ # Required. Comma-separated list of person fields to be included in the
55
+ # response. Each path should start with `person.`: for example,
56
+ # `person.names` or `person.photos`.
60
57
  # @param [Array<String>, String] resource_names
61
58
  # The resource name, such as one returned by
62
59
  # [`people.connections.list`](/people/api/rest/v1/people.connections/list),
63
60
  # of one of the people to provide information about. You can include this
64
61
  # parameter up to 50 times in one request.
65
- # @param [String] fields
66
- # Selector specifying which fields to include in a partial response.
67
62
  # @param [String] quota_user
68
63
  # Available to use for quota purposes for server-side applications. Can be any
69
64
  # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [String] fields
66
+ # Selector specifying which fields to include in a partial response.
70
67
  # @param [Google::Apis::RequestOptions] options
71
68
  # Request-specific options
72
69
  #
@@ -79,18 +76,18 @@ module Google
79
76
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
77
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
78
  # @raise [Google::Apis::AuthorizationError] Authorization is required
82
- def get_people(request_mask_include_field: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block)
79
+ def get_people(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: nil, options: nil, &block)
83
80
  command = make_simple_command(:get, 'v1/people:batchGet', options)
84
81
  command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation
85
82
  command.response_class = Google::Apis::PeopleV1::GetPeopleResponse
86
83
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
87
84
  command.query['resourceNames'] = resource_names unless resource_names.nil?
88
- command.query['fields'] = fields unless fields.nil?
89
85
  command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ command.query['fields'] = fields unless fields.nil?
90
87
  execute_or_queue_command(command, &block)
91
88
  end
92
89
 
93
- # Provides information about a person for a resource name. Use
90
+ # Provides information about a person by specifying a resource name. Use
94
91
  # `people/me` to indicate the authenticated user.
95
92
  # @param [String] resource_name
96
93
  # The resource name of the person to provide information about.
@@ -99,17 +96,14 @@ module Google
99
96
  # identifies the user, such as the resource names returned by
100
97
  # [`people.connections.list`](/people/api/rest/v1/people.connections/list).
101
98
  # @param [String] request_mask_include_field
102
- # Comma-separated list of fields to be included in the response. Omitting
103
- # this field will include all fields except for connections.list requests,
104
- # which have a default mask that includes common fields like metadata, name,
105
- # photo, and profile url.
106
- # Each path should start with `person.`: for example, `person.names` or
107
- # `person.photos`.
108
- # @param [String] fields
109
- # Selector specifying which fields to include in a partial response.
99
+ # Required. Comma-separated list of person fields to be included in the
100
+ # response. Each path should start with `person.`: for example,
101
+ # `person.names` or `person.photos`.
110
102
  # @param [String] quota_user
111
103
  # Available to use for quota purposes for server-side applications. Can be any
112
104
  # arbitrary string assigned to a user, but should not exceed 40 characters.
105
+ # @param [String] fields
106
+ # Selector specifying which fields to include in a partial response.
113
107
  # @param [Google::Apis::RequestOptions] options
114
108
  # Request-specific options
115
109
  #
@@ -122,14 +116,14 @@ module Google
122
116
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
123
117
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
124
118
  # @raise [Google::Apis::AuthorizationError] Authorization is required
125
- def get_person(resource_name, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block)
119
+ def get_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block)
126
120
  command = make_simple_command(:get, 'v1/{+resourceName}', options)
127
121
  command.response_representation = Google::Apis::PeopleV1::Person::Representation
128
122
  command.response_class = Google::Apis::PeopleV1::Person
129
123
  command.params['resourceName'] = resource_name unless resource_name.nil?
130
124
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
131
- command.query['fields'] = fields unless fields.nil?
132
125
  command.query['quotaUser'] = quota_user unless quota_user.nil?
126
+ command.query['fields'] = fields unless fields.nil?
133
127
  execute_or_queue_command(command, &block)
134
128
  end
135
129
 
@@ -137,32 +131,29 @@ module Google
137
131
  # linked profiles.
138
132
  # @param [String] resource_name
139
133
  # The resource name to return connections for. Only `people/me` is valid.
140
- # @param [String] sync_token
141
- # A sync token, returned by a previous call to `people.connections.list`.
142
- # Only resources changed since the sync token was created will be returned.
143
- # @param [String] sort_order
144
- # The order in which the connections should be sorted. Defaults to
145
- # `LAST_MODIFIED_ASCENDING`.
146
134
  # @param [Boolean] request_sync_token
147
135
  # Whether the response should include a sync token, which can be used to get
148
136
  # all changes since the last request.
149
137
  # @param [String] page_token
150
138
  # The token of the page to be returned.
151
- # @param [String] request_mask_include_field
152
- # Comma-separated list of fields to be included in the response. Omitting
153
- # this field will include all fields except for connections.list requests,
154
- # which have a default mask that includes common fields like metadata, name,
155
- # photo, and profile url.
156
- # Each path should start with `person.`: for example, `person.names` or
157
- # `person.photos`.
158
139
  # @param [Fixnum] page_size
159
140
  # The number of connections to include in the response. Valid values are
160
- # between 1 and 500, inclusive. Defaults to 100.
161
- # @param [String] fields
162
- # Selector specifying which fields to include in a partial response.
141
+ # between 1 and 2000, inclusive. Defaults to 100.
142
+ # @param [String] request_mask_include_field
143
+ # Required. Comma-separated list of person fields to be included in the
144
+ # response. Each path should start with `person.`: for example,
145
+ # `person.names` or `person.photos`.
146
+ # @param [String] sync_token
147
+ # A sync token, returned by a previous call to `people.connections.list`.
148
+ # Only resources changed since the sync token was created will be returned.
149
+ # @param [String] sort_order
150
+ # The order in which the connections should be sorted. Defaults to
151
+ # `LAST_MODIFIED_ASCENDING`.
163
152
  # @param [String] quota_user
164
153
  # Available to use for quota purposes for server-side applications. Can be any
165
154
  # arbitrary string assigned to a user, but should not exceed 40 characters.
155
+ # @param [String] fields
156
+ # Selector specifying which fields to include in a partial response.
166
157
  # @param [Google::Apis::RequestOptions] options
167
158
  # Request-specific options
168
159
  #
@@ -175,27 +166,27 @@ module Google
175
166
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
176
167
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
177
168
  # @raise [Google::Apis::AuthorizationError] Authorization is required
178
- def list_person_connections(resource_name, sync_token: nil, sort_order: nil, request_sync_token: nil, page_token: nil, request_mask_include_field: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
169
+ def list_person_connections(resource_name, request_sync_token: nil, page_token: nil, page_size: nil, request_mask_include_field: nil, sync_token: nil, sort_order: nil, quota_user: nil, fields: nil, options: nil, &block)
179
170
  command = make_simple_command(:get, 'v1/{+resourceName}/connections', options)
180
171
  command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation
181
172
  command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse
182
173
  command.params['resourceName'] = resource_name unless resource_name.nil?
183
- command.query['syncToken'] = sync_token unless sync_token.nil?
184
- command.query['sortOrder'] = sort_order unless sort_order.nil?
185
174
  command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
186
175
  command.query['pageToken'] = page_token unless page_token.nil?
187
- command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
188
176
  command.query['pageSize'] = page_size unless page_size.nil?
189
- command.query['fields'] = fields unless fields.nil?
177
+ command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
178
+ command.query['syncToken'] = sync_token unless sync_token.nil?
179
+ command.query['sortOrder'] = sort_order unless sort_order.nil?
190
180
  command.query['quotaUser'] = quota_user unless quota_user.nil?
181
+ command.query['fields'] = fields unless fields.nil?
191
182
  execute_or_queue_command(command, &block)
192
183
  end
193
184
 
194
185
  protected
195
186
 
196
187
  def apply_command_defaults(command)
197
- command.query['key'] = key unless key.nil?
198
188
  command.query['quotaUser'] = quota_user unless quota_user.nil?
189
+ command.query['key'] = key unless key.nil?
199
190
  end
200
191
  end
201
192
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170410'
28
+ REVISION = '20170523'
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 = '20170410'
28
+ REVISION = '20170523'
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 = '20170504'
28
+ REVISION = '20170517'
29
29
 
30
30
  # View and modify your beacons
31
31
  AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
@@ -22,10 +22,264 @@ module Google
22
22
  module Apis
23
23
  module ProximitybeaconV1beta1
24
24
 
25
+ # A subset of attachment information served via the
26
+ # `beaconinfo.getforobserved` method, used when your users encounter your
27
+ # beacons.
28
+ class AttachmentInfo
29
+ include Google::Apis::Core::Hashable
30
+
31
+ # Specifies what kind of attachment this is. Tells a client how to
32
+ # interpret the `data` field. Format is <var>namespace/type</var>, for
33
+ # example <code>scrupulous-wombat-12345/welcome-message</code>
34
+ # Corresponds to the JSON property `namespacedType`
35
+ # @return [String]
36
+ attr_accessor :namespaced_type
37
+
38
+ # An opaque data container for client-provided data.
39
+ # Corresponds to the JSON property `data`
40
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
41
+ # @return [String]
42
+ attr_accessor :data
43
+
44
+ def initialize(**args)
45
+ update!(**args)
46
+ end
47
+
48
+ # Update properties of this object
49
+ def update!(**args)
50
+ @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
51
+ @data = args[:data] if args.key?(:data)
52
+ end
53
+ end
54
+
55
+ # A subset of beacon information served via the `beaconinfo.getforobserved`
56
+ # method, which you call when users of your app encounter your beacons.
57
+ class BeaconInfo
58
+ include Google::Apis::Core::Hashable
59
+
60
+ # The name under which the beacon is registered.
61
+ # Corresponds to the JSON property `beaconName`
62
+ # @return [String]
63
+ attr_accessor :beacon_name
64
+
65
+ # Defines a unique identifier of a beacon as broadcast by the device.
66
+ # Corresponds to the JSON property `advertisedId`
67
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
68
+ attr_accessor :advertised_id
69
+
70
+ # Attachments matching the type(s) requested.
71
+ # May be empty if no attachment types were requested.
72
+ # Corresponds to the JSON property `attachments`
73
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
74
+ attr_accessor :attachments
75
+
76
+ def initialize(**args)
77
+ update!(**args)
78
+ end
79
+
80
+ # Update properties of this object
81
+ def update!(**args)
82
+ @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
83
+ @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
84
+ @attachments = args[:attachments] if args.key?(:attachments)
85
+ end
86
+ end
87
+
88
+ # Response for a request to delete attachments.
89
+ class DeleteAttachmentsResponse
90
+ include Google::Apis::Core::Hashable
91
+
92
+ # The number of attachments that were deleted.
93
+ # Corresponds to the JSON property `numDeleted`
94
+ # @return [Fixnum]
95
+ attr_accessor :num_deleted
96
+
97
+ def initialize(**args)
98
+ update!(**args)
99
+ end
100
+
101
+ # Update properties of this object
102
+ def update!(**args)
103
+ @num_deleted = args[:num_deleted] if args.key?(:num_deleted)
104
+ end
105
+ end
106
+
107
+ # Information a client needs to provision and register beacons that
108
+ # broadcast Eddystone-EID format beacon IDs, using Elliptic curve
109
+ # Diffie-Hellman key exchange. See
110
+ # [the Eddystone specification](https://github.com/google/eddystone/tree/master/
111
+ # eddystone-eid) at GitHub.
112
+ class EphemeralIdRegistrationParams
113
+ include Google::Apis::Core::Hashable
114
+
115
+ # The beacon service's public key for use by a beacon to derive its
116
+ # Identity Key using Elliptic Curve Diffie-Hellman key exchange.
117
+ # Corresponds to the JSON property `serviceEcdhPublicKey`
118
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
119
+ # @return [String]
120
+ attr_accessor :service_ecdh_public_key
121
+
122
+ # Indicates the minimum rotation period supported by the service.
123
+ # See EddystoneEidRegistration.rotation_period_exponent
124
+ # Corresponds to the JSON property `minRotationPeriodExponent`
125
+ # @return [Fixnum]
126
+ attr_accessor :min_rotation_period_exponent
127
+
128
+ # Indicates the maximum rotation period supported by the service.
129
+ # See EddystoneEidRegistration.rotation_period_exponent
130
+ # Corresponds to the JSON property `maxRotationPeriodExponent`
131
+ # @return [Fixnum]
132
+ attr_accessor :max_rotation_period_exponent
133
+
134
+ def initialize(**args)
135
+ update!(**args)
136
+ end
137
+
138
+ # Update properties of this object
139
+ def update!(**args)
140
+ @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
141
+ @min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent)
142
+ @max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent)
143
+ end
144
+ end
145
+
146
+ # Represents one beacon observed once.
147
+ class Observation
148
+ include Google::Apis::Core::Hashable
149
+
150
+ # The array of telemetry bytes received from the beacon. The server is
151
+ # responsible for parsing it. This field may frequently be empty, as
152
+ # with a beacon that transmits telemetry only occasionally.
153
+ # Corresponds to the JSON property `telemetry`
154
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
155
+ # @return [String]
156
+ attr_accessor :telemetry
157
+
158
+ # Time when the beacon was observed.
159
+ # Corresponds to the JSON property `timestampMs`
160
+ # @return [String]
161
+ attr_accessor :timestamp_ms
162
+
163
+ # Defines a unique identifier of a beacon as broadcast by the device.
164
+ # Corresponds to the JSON property `advertisedId`
165
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
166
+ attr_accessor :advertised_id
167
+
168
+ def initialize(**args)
169
+ update!(**args)
170
+ end
171
+
172
+ # Update properties of this object
173
+ def update!(**args)
174
+ @telemetry = args[:telemetry] if args.key?(:telemetry)
175
+ @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
176
+ @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
177
+ end
178
+ end
179
+
180
+ # Response that contains the requested diagnostics.
181
+ class ListDiagnosticsResponse
182
+ include Google::Apis::Core::Hashable
183
+
184
+ # Token that can be used for pagination. Returned only if the
185
+ # request matches more beacons than can be returned in this response.
186
+ # Corresponds to the JSON property `nextPageToken`
187
+ # @return [String]
188
+ attr_accessor :next_page_token
189
+
190
+ # The diagnostics matching the given request.
191
+ # Corresponds to the JSON property `diagnostics`
192
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
193
+ attr_accessor :diagnostics
194
+
195
+ def initialize(**args)
196
+ update!(**args)
197
+ end
198
+
199
+ # Update properties of this object
200
+ def update!(**args)
201
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
202
+ @diagnostics = args[:diagnostics] if args.key?(:diagnostics)
203
+ end
204
+ end
205
+
206
+ # Information about the requested beacons, optionally including attachment
207
+ # data.
208
+ class GetInfoForObservedBeaconsResponse
209
+ include Google::Apis::Core::Hashable
210
+
211
+ # Public information about beacons.
212
+ # May be empty if the request matched no beacons.
213
+ # Corresponds to the JSON property `beacons`
214
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
215
+ attr_accessor :beacons
216
+
217
+ def initialize(**args)
218
+ update!(**args)
219
+ end
220
+
221
+ # Update properties of this object
222
+ def update!(**args)
223
+ @beacons = args[:beacons] if args.key?(:beacons)
224
+ end
225
+ end
226
+
25
227
  # Details of a beacon device.
26
228
  class Beacon
27
229
  include Google::Apis::Core::Hashable
28
230
 
231
+ # Write-only registration parameters for beacons using Eddystone-EID format.
232
+ # Two ways of securely registering an Eddystone-EID beacon with the service
233
+ # are supported:
234
+ # 1. Perform an ECDH key exchange via this API, including a previous call
235
+ # to `GET /v1beta1/eidparams`. In this case the fields
236
+ # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
237
+ # populated and `beacon_identity_key` should not be populated. This
238
+ # method ensures that only the two parties in the ECDH key exchange can
239
+ # compute the identity key, which becomes a secret between them.
240
+ # 2. Derive or obtain the beacon's identity key via other secure means
241
+ # (perhaps an ECDH key exchange between the beacon and a mobile device
242
+ # or any other secure method), and then submit the resulting identity key
243
+ # to the service. In this case `beacon_identity_key` field should be
244
+ # populated, and neither of `beacon_ecdh_public_key` nor
245
+ # `service_ecdh_public_key` fields should be. The security of this method
246
+ # depends on how securely the parties involved (in particular the
247
+ # bluetooth client) handle the identity key, and obviously on how
248
+ # securely the identity key was generated.
249
+ # See [the Eddystone specification](https://github.com/google/eddystone/tree/
250
+ # master/eddystone-eid) at GitHub.
251
+ # Corresponds to the JSON property `ephemeralIdRegistration`
252
+ # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
253
+ attr_accessor :ephemeral_id_registration
254
+
255
+ # Some beacons may require a user to provide an authorization key before
256
+ # changing any of its configuration (e.g. broadcast frames, transmit power).
257
+ # This field provides a place to store and control access to that key.
258
+ # This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
259
+ # from users with write access to the given beacon. That is to say: If the
260
+ # user is authorized to write the beacon's confidential data in the service,
261
+ # the service considers them authorized to configure the beacon. Note
262
+ # that this key grants nothing on the service, only on the beacon itself.
263
+ # Corresponds to the JSON property `provisioningKey`
264
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
265
+ # @return [String]
266
+ attr_accessor :provisioning_key
267
+
268
+ # Free text used to identify and describe the beacon. Maximum length 140
269
+ # characters.
270
+ # Optional.
271
+ # Corresponds to the JSON property `description`
272
+ # @return [String]
273
+ attr_accessor :description
274
+
275
+ # The [Google Places API](/places/place-id) Place ID of the place where
276
+ # the beacon is deployed. This is given when the beacon is registered or
277
+ # updated, not automatically detected in any way.
278
+ # Optional.
279
+ # Corresponds to the JSON property `placeId`
280
+ # @return [String]
281
+ attr_accessor :place_id
282
+
29
283
  # An object representing a latitude/longitude pair. This is expressed as a pair
30
284
  # of doubles representing degrees latitude and degrees longitude. Unless
31
285
  # specified otherwise, this must conform to the
@@ -61,27 +315,10 @@ module Google
61
315
  # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
62
316
  # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
63
317
  # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
64
- # The code in logs/storage/validator/logs_validator_traits.cc treats this type
65
- # as if it were annotated as ST_LOCATION.
66
318
  # Corresponds to the JSON property `latLng`
67
319
  # @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
68
320
  attr_accessor :lat_lng
69
321
 
70
- # The [Google Places API](/places/place-id) Place ID of the place where
71
- # the beacon is deployed. This is given when the beacon is registered or
72
- # updated, not automatically detected in any way.
73
- # Optional.
74
- # Corresponds to the JSON property `placeId`
75
- # @return [String]
76
- attr_accessor :place_id
77
-
78
- # Free text used to identify and describe the beacon. Maximum length 140
79
- # characters.
80
- # Optional.
81
- # Corresponds to the JSON property `description`
82
- # @return [String]
83
- attr_accessor :description
84
-
85
322
  # Properties of the beacon device, for example battery type or firmware
86
323
  # version.
87
324
  # Optional.
@@ -123,60 +360,23 @@ module Google
123
360
  # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
124
361
  attr_accessor :advertised_id
125
362
 
126
- # Write-only registration parameters for beacons using Eddystone-EID format.
127
- # Two ways of securely registering an Eddystone-EID beacon with the service
128
- # are supported:
129
- # 1. Perform an ECDH key exchange via this API, including a previous call
130
- # to `GET /v1beta1/eidparams`. In this case the fields
131
- # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
132
- # populated and `beacon_identity_key` should not be populated. This
133
- # method ensures that only the two parties in the ECDH key exchange can
134
- # compute the identity key, which becomes a secret between them.
135
- # 2. Derive or obtain the beacon's identity key via other secure means
136
- # (perhaps an ECDH key exchange between the beacon and a mobile device
137
- # or any other secure method), and then submit the resulting identity key
138
- # to the service. In this case `beacon_identity_key` field should be
139
- # populated, and neither of `beacon_ecdh_public_key` nor
140
- # `service_ecdh_public_key` fields should be. The security of this method
141
- # depends on how securely the parties involved (in particular the
142
- # bluetooth client) handle the identity key, and obviously on how
143
- # securely the identity key was generated.
144
- # See [the Eddystone specification](https://github.com/google/eddystone/tree/
145
- # master/eddystone-eid) at GitHub.
146
- # Corresponds to the JSON property `ephemeralIdRegistration`
147
- # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
148
- attr_accessor :ephemeral_id_registration
149
-
150
- # Some beacons may require a user to provide an authorization key before
151
- # changing any of its configuration (e.g. broadcast frames, transmit power).
152
- # This field provides a place to store and control access to that key.
153
- # This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
154
- # from users with write access to the given beacon. That is to say: If the
155
- # user is authorized to write the beacon's confidential data in the service,
156
- # the service considers them authorized to configure the beacon. Note
157
- # that this key grants nothing on the service, only on the beacon itself.
158
- # Corresponds to the JSON property `provisioningKey`
159
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
160
- # @return [String]
161
- attr_accessor :provisioning_key
162
-
163
363
  def initialize(**args)
164
364
  update!(**args)
165
365
  end
166
366
 
167
367
  # Update properties of this object
168
368
  def update!(**args)
169
- @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
170
- @place_id = args[:place_id] if args.key?(:place_id)
369
+ @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
370
+ @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
171
371
  @description = args[:description] if args.key?(:description)
372
+ @place_id = args[:place_id] if args.key?(:place_id)
373
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
172
374
  @properties = args[:properties] if args.key?(:properties)
173
375
  @status = args[:status] if args.key?(:status)
174
376
  @indoor_level = args[:indoor_level] if args.key?(:indoor_level)
175
377
  @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
176
378
  @expected_stability = args[:expected_stability] if args.key?(:expected_stability)
177
379
  @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
178
- @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
179
- @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
180
380
  end
181
381
  end
182
382
 
@@ -184,6 +384,12 @@ module Google
184
384
  class AdvertisedId
185
385
  include Google::Apis::Core::Hashable
186
386
 
387
+ # Specifies the identifier type.
388
+ # Required.
389
+ # Corresponds to the JSON property `type`
390
+ # @return [String]
391
+ attr_accessor :type
392
+
187
393
  # The actual beacon identifier, as broadcast by the beacon hardware. Must be
188
394
  # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
189
395
  # requests, and will be so encoded (with padding) in responses. The base64
@@ -195,20 +401,14 @@ module Google
195
401
  # @return [String]
196
402
  attr_accessor :id
197
403
 
198
- # Specifies the identifier type.
199
- # Required.
200
- # Corresponds to the JSON property `type`
201
- # @return [String]
202
- attr_accessor :type
203
-
204
404
  def initialize(**args)
205
405
  update!(**args)
206
406
  end
207
407
 
208
408
  # Update properties of this object
209
409
  def update!(**args)
210
- @id = args[:id] if args.key?(:id)
211
410
  @type = args[:type] if args.key?(:type)
411
+ @id = args[:id] if args.key?(:id)
212
412
  end
213
413
  end
214
414
 
@@ -290,39 +490,6 @@ module Google
290
490
  end
291
491
  end
292
492
 
293
- # Response that contains list beacon results and pagination help.
294
- class ListBeaconsResponse
295
- include Google::Apis::Core::Hashable
296
-
297
- # An opaque pagination token that the client may provide in their next
298
- # request to retrieve the next page of results.
299
- # Corresponds to the JSON property `nextPageToken`
300
- # @return [String]
301
- attr_accessor :next_page_token
302
-
303
- # The beacons that matched the search criteria.
304
- # Corresponds to the JSON property `beacons`
305
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
306
- attr_accessor :beacons
307
-
308
- # Estimate of the total number of beacons matched by the query. Higher
309
- # values may be less accurate.
310
- # Corresponds to the JSON property `totalCount`
311
- # @return [Fixnum]
312
- attr_accessor :total_count
313
-
314
- def initialize(**args)
315
- update!(**args)
316
- end
317
-
318
- # Update properties of this object
319
- def update!(**args)
320
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
321
- @beacons = args[:beacons] if args.key?(:beacons)
322
- @total_count = args[:total_count] if args.key?(:total_count)
323
- end
324
- end
325
-
326
493
  # Diagnostics for a single beacon.
327
494
  class Diagnostics
328
495
  include Google::Apis::Core::Hashable
@@ -361,6 +528,39 @@ module Google
361
528
  end
362
529
  end
363
530
 
531
+ # Response that contains list beacon results and pagination help.
532
+ class ListBeaconsResponse
533
+ include Google::Apis::Core::Hashable
534
+
535
+ # An opaque pagination token that the client may provide in their next
536
+ # request to retrieve the next page of results.
537
+ # Corresponds to the JSON property `nextPageToken`
538
+ # @return [String]
539
+ attr_accessor :next_page_token
540
+
541
+ # The beacons that matched the search criteria.
542
+ # Corresponds to the JSON property `beacons`
543
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
544
+ attr_accessor :beacons
545
+
546
+ # Estimate of the total number of beacons matched by the query. Higher
547
+ # values may be less accurate.
548
+ # Corresponds to the JSON property `totalCount`
549
+ # @return [Fixnum]
550
+ attr_accessor :total_count
551
+
552
+ def initialize(**args)
553
+ update!(**args)
554
+ end
555
+
556
+ # Update properties of this object
557
+ def update!(**args)
558
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
559
+ @beacons = args[:beacons] if args.key?(:beacons)
560
+ @total_count = args[:total_count] if args.key?(:total_count)
561
+ end
562
+ end
563
+
364
564
  # Request for beacon and attachment information about beacons that
365
565
  # a mobile client has encountered "in the wild".
366
566
  class GetInfoForObservedBeaconsRequest
@@ -416,13 +616,6 @@ module Google
416
616
  class BeaconAttachment
417
617
  include Google::Apis::Core::Hashable
418
618
 
419
- # Resource name of this attachment. Attachment names have the format:
420
- # <code>beacons/<var>beacon_id</var>/attachments/<var>attachment_id</var></code>.
421
- # Leave this empty on creation.
422
- # Corresponds to the JSON property `attachmentName`
423
- # @return [String]
424
- attr_accessor :attachment_name
425
-
426
619
  # Specifies what kind of attachment this is. Tells a client how to
427
620
  # interpret the `data` field. Format is <var>namespace/type</var>. Namespace
428
621
  # provides type separation between clients. Type describes the type of
@@ -447,16 +640,23 @@ module Google
447
640
  # @return [String]
448
641
  attr_accessor :creation_time_ms
449
642
 
643
+ # Resource name of this attachment. Attachment names have the format:
644
+ # <code>beacons/<var>beacon_id</var>/attachments/<var>attachment_id</var></code>.
645
+ # Leave this empty on creation.
646
+ # Corresponds to the JSON property `attachmentName`
647
+ # @return [String]
648
+ attr_accessor :attachment_name
649
+
450
650
  def initialize(**args)
451
651
  update!(**args)
452
652
  end
453
653
 
454
654
  # Update properties of this object
455
655
  def update!(**args)
456
- @attachment_name = args[:attachment_name] if args.key?(:attachment_name)
457
656
  @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
458
657
  @data = args[:data] if args.key?(:data)
459
658
  @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms)
659
+ @attachment_name = args[:attachment_name] if args.key?(:attachment_name)
460
660
  end
461
661
  end
462
662
 
@@ -483,16 +683,6 @@ module Google
483
683
  class EphemeralIdRegistration
484
684
  include Google::Apis::Core::Hashable
485
685
 
486
- # An initial ephemeral ID calculated using the clock value submitted as
487
- # `initial_clock_value`, and the secret key generated by the
488
- # Diffie-Hellman key exchange using `service_ecdh_public_key` and
489
- # `service_ecdh_public_key`. This initial EID value will be used by the
490
- # service to confirm that the key exchange process was successful.
491
- # Corresponds to the JSON property `initialEid`
492
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
493
- # @return [String]
494
- attr_accessor :initial_eid
495
-
496
686
  # The initial clock value of the beacon. The beacon's clock must have
497
687
  # begun counting at this value immediately prior to transmitting this
498
688
  # value to the resolving service. Significant delay in transmitting this
@@ -537,18 +727,28 @@ module Google
537
727
  # @return [String]
538
728
  attr_accessor :beacon_identity_key
539
729
 
730
+ # An initial ephemeral ID calculated using the clock value submitted as
731
+ # `initial_clock_value`, and the secret key generated by the
732
+ # Diffie-Hellman key exchange using `service_ecdh_public_key` and
733
+ # `service_ecdh_public_key`. This initial EID value will be used by the
734
+ # service to confirm that the key exchange process was successful.
735
+ # Corresponds to the JSON property `initialEid`
736
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
737
+ # @return [String]
738
+ attr_accessor :initial_eid
739
+
540
740
  def initialize(**args)
541
741
  update!(**args)
542
742
  end
543
743
 
544
744
  # Update properties of this object
545
745
  def update!(**args)
546
- @initial_eid = args[:initial_eid] if args.key?(:initial_eid)
547
746
  @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
548
747
  @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
549
748
  @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
550
749
  @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
551
750
  @beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
751
+ @initial_eid = args[:initial_eid] if args.key?(:initial_eid)
552
752
  end
553
753
  end
554
754
 
@@ -587,8 +787,6 @@ module Google
587
787
  # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
588
788
  # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
589
789
  # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
590
- # The code in logs/storage/validator/logs_validator_traits.cc treats this type
591
- # as if it were annotated as ST_LOCATION.
592
790
  class LatLng
593
791
  include Google::Apis::Core::Hashable
594
792
 
@@ -638,220 +836,17 @@ module Google
638
836
  class Namespace
639
837
  include Google::Apis::Core::Hashable
640
838
 
641
- # Resource name of this namespace. Namespaces names have the format:
642
- # <code>namespaces/<var>namespace</var></code>.
643
- # Corresponds to the JSON property `namespaceName`
644
- # @return [String]
645
- attr_accessor :namespace_name
646
-
647
839
  # Specifies what clients may receive attachments under this namespace
648
840
  # via `beaconinfo.getforobserved`.
649
841
  # Corresponds to the JSON property `servingVisibility`
650
842
  # @return [String]
651
843
  attr_accessor :serving_visibility
652
844
 
653
- def initialize(**args)
654
- update!(**args)
655
- end
656
-
657
- # Update properties of this object
658
- def update!(**args)
659
- @namespace_name = args[:namespace_name] if args.key?(:namespace_name)
660
- @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
661
- end
662
- end
663
-
664
- # A subset of beacon information served via the `beaconinfo.getforobserved`
665
- # method, which you call when users of your app encounter your beacons.
666
- class BeaconInfo
667
- include Google::Apis::Core::Hashable
668
-
669
- # Defines a unique identifier of a beacon as broadcast by the device.
670
- # Corresponds to the JSON property `advertisedId`
671
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
672
- attr_accessor :advertised_id
673
-
674
- # Attachments matching the type(s) requested.
675
- # May be empty if no attachment types were requested.
676
- # Corresponds to the JSON property `attachments`
677
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
678
- attr_accessor :attachments
679
-
680
- # The name under which the beacon is registered.
681
- # Corresponds to the JSON property `beaconName`
682
- # @return [String]
683
- attr_accessor :beacon_name
684
-
685
- def initialize(**args)
686
- update!(**args)
687
- end
688
-
689
- # Update properties of this object
690
- def update!(**args)
691
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
692
- @attachments = args[:attachments] if args.key?(:attachments)
693
- @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
694
- end
695
- end
696
-
697
- # A subset of attachment information served via the
698
- # `beaconinfo.getforobserved` method, used when your users encounter your
699
- # beacons.
700
- class AttachmentInfo
701
- include Google::Apis::Core::Hashable
702
-
703
- # Specifies what kind of attachment this is. Tells a client how to
704
- # interpret the `data` field. Format is <var>namespace/type</var>, for
705
- # example <code>scrupulous-wombat-12345/welcome-message</code>
706
- # Corresponds to the JSON property `namespacedType`
707
- # @return [String]
708
- attr_accessor :namespaced_type
709
-
710
- # An opaque data container for client-provided data.
711
- # Corresponds to the JSON property `data`
712
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
713
- # @return [String]
714
- attr_accessor :data
715
-
716
- def initialize(**args)
717
- update!(**args)
718
- end
719
-
720
- # Update properties of this object
721
- def update!(**args)
722
- @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
723
- @data = args[:data] if args.key?(:data)
724
- end
725
- end
726
-
727
- # Information a client needs to provision and register beacons that
728
- # broadcast Eddystone-EID format beacon IDs, using Elliptic curve
729
- # Diffie-Hellman key exchange. See
730
- # [the Eddystone specification](https://github.com/google/eddystone/tree/master/
731
- # eddystone-eid) at GitHub.
732
- class EphemeralIdRegistrationParams
733
- include Google::Apis::Core::Hashable
734
-
735
- # Indicates the minimum rotation period supported by the service.
736
- # See EddystoneEidRegistration.rotation_period_exponent
737
- # Corresponds to the JSON property `minRotationPeriodExponent`
738
- # @return [Fixnum]
739
- attr_accessor :min_rotation_period_exponent
740
-
741
- # Indicates the maximum rotation period supported by the service.
742
- # See EddystoneEidRegistration.rotation_period_exponent
743
- # Corresponds to the JSON property `maxRotationPeriodExponent`
744
- # @return [Fixnum]
745
- attr_accessor :max_rotation_period_exponent
746
-
747
- # The beacon service's public key for use by a beacon to derive its
748
- # Identity Key using Elliptic Curve Diffie-Hellman key exchange.
749
- # Corresponds to the JSON property `serviceEcdhPublicKey`
750
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
751
- # @return [String]
752
- attr_accessor :service_ecdh_public_key
753
-
754
- def initialize(**args)
755
- update!(**args)
756
- end
757
-
758
- # Update properties of this object
759
- def update!(**args)
760
- @min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent)
761
- @max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent)
762
- @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
763
- end
764
- end
765
-
766
- # Response for a request to delete attachments.
767
- class DeleteAttachmentsResponse
768
- include Google::Apis::Core::Hashable
769
-
770
- # The number of attachments that were deleted.
771
- # Corresponds to the JSON property `numDeleted`
772
- # @return [Fixnum]
773
- attr_accessor :num_deleted
774
-
775
- def initialize(**args)
776
- update!(**args)
777
- end
778
-
779
- # Update properties of this object
780
- def update!(**args)
781
- @num_deleted = args[:num_deleted] if args.key?(:num_deleted)
782
- end
783
- end
784
-
785
- # Represents one beacon observed once.
786
- class Observation
787
- include Google::Apis::Core::Hashable
788
-
789
- # The array of telemetry bytes received from the beacon. The server is
790
- # responsible for parsing it. This field may frequently be empty, as
791
- # with a beacon that transmits telemetry only occasionally.
792
- # Corresponds to the JSON property `telemetry`
793
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
794
- # @return [String]
795
- attr_accessor :telemetry
796
-
797
- # Time when the beacon was observed.
798
- # Corresponds to the JSON property `timestampMs`
799
- # @return [String]
800
- attr_accessor :timestamp_ms
801
-
802
- # Defines a unique identifier of a beacon as broadcast by the device.
803
- # Corresponds to the JSON property `advertisedId`
804
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
805
- attr_accessor :advertised_id
806
-
807
- def initialize(**args)
808
- update!(**args)
809
- end
810
-
811
- # Update properties of this object
812
- def update!(**args)
813
- @telemetry = args[:telemetry] if args.key?(:telemetry)
814
- @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
815
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
816
- end
817
- end
818
-
819
- # Response that contains the requested diagnostics.
820
- class ListDiagnosticsResponse
821
- include Google::Apis::Core::Hashable
822
-
823
- # The diagnostics matching the given request.
824
- # Corresponds to the JSON property `diagnostics`
825
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
826
- attr_accessor :diagnostics
827
-
828
- # Token that can be used for pagination. Returned only if the
829
- # request matches more beacons than can be returned in this response.
830
- # Corresponds to the JSON property `nextPageToken`
845
+ # Resource name of this namespace. Namespaces names have the format:
846
+ # <code>namespaces/<var>namespace</var></code>.
847
+ # Corresponds to the JSON property `namespaceName`
831
848
  # @return [String]
832
- attr_accessor :next_page_token
833
-
834
- def initialize(**args)
835
- update!(**args)
836
- end
837
-
838
- # Update properties of this object
839
- def update!(**args)
840
- @diagnostics = args[:diagnostics] if args.key?(:diagnostics)
841
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
842
- end
843
- end
844
-
845
- # Information about the requested beacons, optionally including attachment
846
- # data.
847
- class GetInfoForObservedBeaconsResponse
848
- include Google::Apis::Core::Hashable
849
-
850
- # Public information about beacons.
851
- # May be empty if the request matched no beacons.
852
- # Corresponds to the JSON property `beacons`
853
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
854
- attr_accessor :beacons
849
+ attr_accessor :namespace_name
855
850
 
856
851
  def initialize(**args)
857
852
  update!(**args)
@@ -859,7 +854,8 @@ module Google
859
854
 
860
855
  # Update properties of this object
861
856
  def update!(**args)
862
- @beacons = args[:beacons] if args.key?(:beacons)
857
+ @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
858
+ @namespace_name = args[:namespace_name] if args.key?(:namespace_name)
863
859
  end
864
860
  end
865
861
  end