google-api-client 0.39.5 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/generated/google/apis/apigee_v1.rb +1 -1
  4. data/generated/google/apis/apigee_v1/classes.rb +39 -4
  5. data/generated/google/apis/apigee_v1/representations.rb +5 -0
  6. data/generated/google/apis/apigee_v1/service.rb +15 -13
  7. data/generated/google/apis/bigquery_v2.rb +1 -1
  8. data/generated/google/apis/bigquery_v2/classes.rb +34 -0
  9. data/generated/google/apis/bigquery_v2/representations.rb +3 -0
  10. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  11. data/generated/google/apis/bigqueryreservation_v1/classes.rb +2 -0
  12. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  13. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +2 -0
  14. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  15. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
  16. data/generated/google/apis/{pagespeedonline_v2.rb → chromeuxreport_v1.rb} +10 -10
  17. data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
  18. data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
  19. data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
  20. data/generated/google/apis/cloudiot_v1.rb +1 -1
  21. data/generated/google/apis/cloudiot_v1/classes.rb +26 -10
  22. data/generated/google/apis/cloudkms_v1.rb +1 -1
  23. data/generated/google/apis/cloudkms_v1/classes.rb +281 -0
  24. data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
  25. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  26. data/generated/google/apis/cloudtasks_v2/classes.rb +2 -2
  27. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  28. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
  29. data/generated/google/apis/compute_alpha.rb +1 -1
  30. data/generated/google/apis/compute_alpha/classes.rb +23 -7
  31. data/generated/google/apis/compute_alpha/representations.rb +3 -1
  32. data/generated/google/apis/compute_alpha/service.rb +671 -671
  33. data/generated/google/apis/compute_beta.rb +1 -1
  34. data/generated/google/apis/compute_beta/classes.rb +1 -1
  35. data/generated/google/apis/compute_beta/service.rb +591 -591
  36. data/generated/google/apis/compute_v1.rb +1 -1
  37. data/generated/google/apis/compute_v1/classes.rb +37 -1
  38. data/generated/google/apis/compute_v1/representations.rb +5 -0
  39. data/generated/google/apis/container_v1.rb +1 -1
  40. data/generated/google/apis/container_v1/classes.rb +2 -4
  41. data/generated/google/apis/container_v1beta1.rb +1 -1
  42. data/generated/google/apis/container_v1beta1/classes.rb +27 -4
  43. data/generated/google/apis/container_v1beta1/representations.rb +16 -0
  44. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  45. data/generated/google/apis/dataflow_v1b3/classes.rb +331 -0
  46. data/generated/google/apis/dataflow_v1b3/representations.rb +164 -0
  47. data/generated/google/apis/dataflow_v1b3/service.rb +261 -0
  48. data/generated/google/apis/dialogflow_v2.rb +1 -1
  49. data/generated/google/apis/dialogflow_v2/classes.rb +565 -8
  50. data/generated/google/apis/dialogflow_v2/representations.rb +238 -0
  51. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  52. data/generated/google/apis/dialogflow_v2beta1/classes.rb +565 -8
  53. data/generated/google/apis/dialogflow_v2beta1/representations.rb +238 -0
  54. data/generated/google/apis/dialogflow_v2beta1/service.rb +44 -0
  55. data/generated/google/apis/dialogflow_v3alpha1.rb +1 -1
  56. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +565 -8
  57. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +238 -0
  58. data/generated/google/apis/displayvideo_v1.rb +1 -1
  59. data/generated/google/apis/displayvideo_v1/classes.rb +149 -0
  60. data/generated/google/apis/displayvideo_v1/representations.rb +76 -0
  61. data/generated/google/apis/displayvideo_v1/service.rb +280 -0
  62. data/generated/google/apis/fitness_v1.rb +4 -4
  63. data/generated/google/apis/fitness_v1/classes.rb +185 -158
  64. data/generated/google/apis/fitness_v1/service.rb +187 -215
  65. data/generated/google/apis/healthcare_v1.rb +1 -1
  66. data/generated/google/apis/healthcare_v1/classes.rb +36 -27
  67. data/generated/google/apis/healthcare_v1/service.rb +61 -29
  68. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  69. data/generated/google/apis/healthcare_v1beta1/classes.rb +38 -34
  70. data/generated/google/apis/healthcare_v1beta1/service.rb +162 -144
  71. data/generated/google/apis/homegraph_v1.rb +1 -1
  72. data/generated/google/apis/homegraph_v1/classes.rb +3 -0
  73. data/generated/google/apis/iam_v1.rb +1 -1
  74. data/generated/google/apis/iam_v1/classes.rb +24 -12
  75. data/generated/google/apis/iam_v1/service.rb +7 -0
  76. data/generated/google/apis/monitoring_v3.rb +1 -1
  77. data/generated/google/apis/monitoring_v3/classes.rb +7 -0
  78. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  79. data/generated/google/apis/spanner_v1.rb +1 -1
  80. data/generated/google/apis/spanner_v1/classes.rb +29 -10
  81. data/generated/google/apis/tpu_v1.rb +1 -1
  82. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  83. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  84. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  85. data/generated/google/apis/youtube_v3.rb +1 -1
  86. data/generated/google/apis/youtube_v3/classes.rb +26 -26
  87. data/generated/google/apis/youtube_v3/service.rb +1 -36
  88. data/lib/google/apis/version.rb +1 -1
  89. metadata +7 -11
  90. data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
  91. data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
  92. data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
  93. data/generated/google/apis/pagespeedonline_v4.rb +0 -32
  94. data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
  95. data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
  96. data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
@@ -36,7 +36,8 @@ module Google
36
36
  # @return [Array<Google::Apis::FitnessV1::Dataset>]
37
37
  attr_accessor :dataset
38
38
 
39
- # The end time for the aggregated data, in milliseconds since epoch, inclusive.
39
+ # The end time for the aggregated data, in milliseconds since epoch,
40
+ # inclusive.
40
41
  # Corresponds to the JSON property `endTimeMillis`
41
42
  # @return [Fixnum]
42
43
  attr_accessor :end_time_millis
@@ -47,7 +48,8 @@ module Google
47
48
  # @return [Google::Apis::FitnessV1::Session]
48
49
  attr_accessor :session
49
50
 
50
- # The start time for the aggregated data, in milliseconds since epoch, inclusive.
51
+ # The start time for the aggregated data, in milliseconds since epoch,
52
+ # inclusive.
51
53
  # Corresponds to the JSON property `startTimeMillis`
52
54
  # @return [Fixnum]
53
55
  attr_accessor :start_time_millis
@@ -78,21 +80,22 @@ module Google
78
80
  include Google::Apis::Core::Hashable
79
81
 
80
82
  # A data source ID to aggregate. Only data from the specified data source ID
81
- # will be included in the aggregation. If specified, this data source must exist;
82
- # the OAuth scopes in the supplied credentials must grant read access to this
83
- # data type. The dataset in the response will have the same data source ID. Note:
84
- # Data can be aggregated by either the dataTypeName or the dataSourceId, not
85
- # both.
83
+ # will be included in the aggregation. If specified, this data source must
84
+ # exist; the OAuth scopes in the supplied credentials must grant read access
85
+ # to this data type. The dataset in the response will have the same data
86
+ # source ID. Note: Data can be aggregated by either the dataTypeName or the
87
+ # dataSourceId, not both.
86
88
  # Corresponds to the JSON property `dataSourceId`
87
89
  # @return [String]
88
90
  attr_accessor :data_source_id
89
91
 
90
92
  # The data type to aggregate. All data sources providing this data type will
91
- # contribute data to the aggregation. The response will contain a single dataset
92
- # for this data type name. The dataset will have a data source ID of derived::
93
- # com.google.android.gms:aggregated. If the user has no data for this data type,
94
- # an empty data set will be returned. Note: Data can be aggregated by either the
95
- # dataTypeName or the dataSourceId, not both.
93
+ # contribute data to the aggregation. The response will contain a single
94
+ # dataset for this data type name. The dataset will have a data source ID of
95
+ # derived:<output data type name>:com.google.android.gms:aggregated.
96
+ # If the user has no data for this data type, an empty data set will be
97
+ # returned. Note: Data can be aggregated by either the dataTypeName or the
98
+ # dataSourceId, not both.
96
99
  # Corresponds to the JSON property `dataTypeName`
97
100
  # @return [String]
98
101
  attr_accessor :data_type_name
@@ -112,27 +115,28 @@ module Google
112
115
  class AggregateRequest
113
116
  include Google::Apis::Core::Hashable
114
117
 
115
- # The specification of data to be aggregated. At least one aggregateBy spec must
116
- # be provided. All data that is specified will be aggregated using the same
117
- # bucketing criteria. There will be one dataset in the response for every
118
- # aggregateBy spec.
118
+ # The specification of data to be aggregated. At least one aggregateBy spec
119
+ # must be provided. All data that is specified will be aggregated using the
120
+ # same bucketing criteria. There will be one dataset in the response for
121
+ # every aggregateBy spec.
119
122
  # Corresponds to the JSON property `aggregateBy`
120
123
  # @return [Array<Google::Apis::FitnessV1::AggregateBy>]
121
124
  attr_accessor :aggregate_by
122
125
 
123
126
  # Specifies that data be aggregated each activity segment recored for a user.
124
127
  # Similar to bucketByActivitySegment, but bucketing is done for each activity
125
- # segment rather than all segments of the same type. Mutually exclusive of other
126
- # bucketing specifications.
128
+ # segment rather than all segments of the same type. Mutually exclusive of
129
+ # other bucketing specifications.
127
130
  # Corresponds to the JSON property `bucketByActivitySegment`
128
131
  # @return [Google::Apis::FitnessV1::BucketByActivity]
129
132
  attr_accessor :bucket_by_activity_segment
130
133
 
131
- # Specifies that data be aggregated by the type of activity being performed when
132
- # the data was recorded. All data that was recorded during a certain activity
133
- # type (for the given time range) will be aggregated into the same bucket. Data
134
- # that was recorded while the user was not active will not be included in the
135
- # response. Mutually exclusive of other bucketing specifications.
134
+ # Specifies that data be aggregated by the type of activity being performed
135
+ # when the data was recorded. All data that was recorded during a certain
136
+ # activity type (for the given time range) will be aggregated into the same
137
+ # bucket. Data that was recorded while the user was not active will not be
138
+ # included in the response. Mutually exclusive of other bucketing
139
+ # specifications.
136
140
  # Corresponds to the JSON property `bucketByActivityType`
137
141
  # @return [Google::Apis::FitnessV1::BucketByActivity]
138
142
  attr_accessor :bucket_by_activity_type
@@ -150,8 +154,9 @@ module Google
150
154
  # @return [Google::Apis::FitnessV1::BucketByTime]
151
155
  attr_accessor :bucket_by_time
152
156
 
153
- # The end of a window of time. Data that intersects with this time window will
154
- # be aggregated. The time is in milliseconds since epoch, inclusive.
157
+ # The end of a window of time. Data that intersects with this time
158
+ # window will be aggregated. The time is in milliseconds since epoch,
159
+ # inclusive.
155
160
  # Corresponds to the JSON property `endTimeMillis`
156
161
  # @return [Fixnum]
157
162
  attr_accessor :end_time_millis
@@ -161,8 +166,9 @@ module Google
161
166
  # @return [Array<String>]
162
167
  attr_accessor :filtered_data_quality_standard
163
168
 
164
- # The start of a window of time. Data that intersects with this time window will
165
- # be aggregated. The time is in milliseconds since epoch, inclusive.
169
+ # The start of a window of time. Data that intersects with this time
170
+ # window will be aggregated. The time is in milliseconds since epoch,
171
+ # inclusive.
166
172
  # Corresponds to the JSON property `startTimeMillis`
167
173
  # @return [Fixnum]
168
174
  attr_accessor :start_time_millis
@@ -212,18 +218,18 @@ module Google
212
218
  # @return [String]
213
219
  attr_accessor :details_url
214
220
 
215
- # The name of this application. This is required for REST clients, but we do not
216
- # enforce uniqueness of this name. It is provided as a matter of convenience for
217
- # other developers who would like to identify which REST created an Application
218
- # or Data Source.
221
+ # The name of this application. This is required for REST clients, but we
222
+ # do not enforce uniqueness of this name. It is provided as a matter of
223
+ # convenience for other developers who would like to identify which REST
224
+ # created an Application or Data Source.
219
225
  # Corresponds to the JSON property `name`
220
226
  # @return [String]
221
227
  attr_accessor :name
222
228
 
223
- # Package name for this application. This is used as a unique identifier when
224
- # created by Android applications, but cannot be specified by REST clients. REST
225
- # clients will have their developer project number reflected into the Data
226
- # Source data stream IDs, instead of the packageName.
229
+ # Package name for this application. This is used as a unique
230
+ # identifier when created by Android applications, but cannot be specified
231
+ # by REST clients. REST clients will have their developer project number
232
+ # reflected into the Data Source data stream IDs, instead of the packageName.
227
233
  # Corresponds to the JSON property `packageName`
228
234
  # @return [String]
229
235
  attr_accessor :package_name
@@ -251,14 +257,15 @@ module Google
251
257
  class BucketByActivity
252
258
  include Google::Apis::Core::Hashable
253
259
 
254
- # The default activity stream will be used if a specific activityDataSourceId is
255
- # not specified.
260
+ # The default activity stream will be used if a specific activityDataSourceId
261
+ # is not specified.
256
262
  # Corresponds to the JSON property `activityDataSourceId`
257
263
  # @return [String]
258
264
  attr_accessor :activity_data_source_id
259
265
 
260
266
  # Specifies that only activity segments of duration longer than
261
- # minDurationMillis are considered and used as a container for aggregated data.
267
+ # minDurationMillis are considered and used as a container for aggregated
268
+ # data.
262
269
  # Corresponds to the JSON property `minDurationMillis`
263
270
  # @return [Fixnum]
264
271
  attr_accessor :min_duration_millis
@@ -299,8 +306,8 @@ module Google
299
306
  include Google::Apis::Core::Hashable
300
307
 
301
308
  # Specifies that result buckets aggregate data by exactly durationMillis time
302
- # frames. Time frames that contain no data will be included in the response with
303
- # an empty dataset.
309
+ # frames. Time frames that contain no data will be included in the response
310
+ # with an empty dataset.
304
311
  # Corresponds to the JSON property `durationMillis`
305
312
  # @return [Fixnum]
306
313
  attr_accessor :duration_millis
@@ -352,14 +359,14 @@ module Google
352
359
  end
353
360
  end
354
361
 
355
- # Represents a single data point, generated by a particular data source. A data
356
- # point holds a value for each field, an end timestamp and an optional start
357
- # time. The exact semantics of each of these attributes are specified in the
358
- # documentation for the particular data type.
362
+ # Represents a single data point, generated by a particular data source. A
363
+ # data point holds a value for each field, an end timestamp and an optional
364
+ # start time. The exact semantics of each of these attributes are specified in
365
+ # the documentation for the particular data type.
359
366
  # A data point can represent an instantaneous measurement, reading or input
360
- # observation, as well as averages or aggregates over a time interval. Check the
361
- # data type documentation to determine which is the case for a particular data
362
- # type.
367
+ # observation, as well as averages or aggregates over a time interval. Check
368
+ # the data type documentation to determine which is the case for a particular
369
+ # data type.
363
370
  # Data points always contain one value for each field of the data type.
364
371
  class DataPoint
365
372
  include Google::Apis::Core::Hashable
@@ -374,25 +381,25 @@ module Google
374
381
  # @return [String]
375
382
  attr_accessor :data_type_name
376
383
 
377
- # The end time of the interval represented by this data point, in nanoseconds
378
- # since epoch.
384
+ # The end time of the interval represented by this data point, in
385
+ # nanoseconds since epoch.
379
386
  # Corresponds to the JSON property `endTimeNanos`
380
387
  # @return [Fixnum]
381
388
  attr_accessor :end_time_nanos
382
389
 
383
- # Indicates the last time this data point was modified. Useful only in contexts
384
- # where we are listing the data changes, rather than representing the current
385
- # state of the data.
390
+ # Indicates the last time this data point was modified. Useful only in
391
+ # contexts where we are listing the data changes, rather than representing
392
+ # the current state of the data.
386
393
  # Corresponds to the JSON property `modifiedTimeMillis`
387
394
  # @return [Fixnum]
388
395
  attr_accessor :modified_time_millis
389
396
 
390
- # If the data point is contained in a dataset for a derived data source, this
391
- # field will be populated with the data source stream ID that created the data
392
- # point originally.
397
+ # If the data point is contained in a dataset for a derived data source,
398
+ # this field will be populated with the data source stream ID that created
399
+ # the data point originally.
393
400
  # WARNING: do not rely on this field for anything other than debugging. The
394
- # value of this field, if it is set at all, is an implementation detail and is
395
- # not guaranteed to remain consistent.
401
+ # value of this field, if it is set at all, is an implementation detail and
402
+ # is not guaranteed to remain consistent.
396
403
  # Corresponds to the JSON property `originDataSourceId`
397
404
  # @return [String]
398
405
  attr_accessor :origin_data_source_id
@@ -402,17 +409,17 @@ module Google
402
409
  # @return [Fixnum]
403
410
  attr_accessor :raw_timestamp_nanos
404
411
 
405
- # The start time of the interval represented by this data point, in nanoseconds
406
- # since epoch.
412
+ # The start time of the interval represented by this data point, in
413
+ # nanoseconds since epoch.
407
414
  # Corresponds to the JSON property `startTimeNanos`
408
415
  # @return [Fixnum]
409
416
  attr_accessor :start_time_nanos
410
417
 
411
418
  # Values of each data type field for the data point. It is expected that each
412
- # value corresponding to a data type field will occur in the same order that the
413
- # field is listed with in the data type specified in a data source.
414
- # Only one of integer and floating point fields will be populated, depending on
415
- # the format enum value within data source's type field.
419
+ # value corresponding to a data type field will occur in the same order that
420
+ # the field is listed with in the data type specified in a data source.
421
+ # Only one of integer and floating point fields will be populated, depending
422
+ # on the format enum value within data source's type field.
416
423
  # Corresponds to the JSON property `value`
417
424
  # @return [Array<Google::Apis::FitnessV1::Value>]
418
425
  attr_accessor :value
@@ -434,11 +441,12 @@ module Google
434
441
  end
435
442
  end
436
443
 
437
- # Definition of a unique source of sensor data. Data sources can expose raw data
438
- # coming from hardware sensors on local or companion devices. They can also
439
- # expose derived data, created by transforming or merging other data sources.
440
- # Multiple data sources can exist for the same data type. Every data point
441
- # inserted into or read from this service has an associated data source.
444
+ # Definition of a unique source of sensor data. Data sources can expose raw
445
+ # data coming from hardware sensors on local or companion devices. They can
446
+ # also expose derived data, created by transforming or merging other data
447
+ # sources. Multiple data sources can exist for the same data type. Every data
448
+ # point inserted into or read from this service has an associated data
449
+ # source.
442
450
  # The data source contains enough information to uniquely identify its data,
443
451
  # including the hardware device and the application that collected and/or
444
452
  # transformed the data. It also holds useful metadata, such as the hardware and
@@ -450,7 +458,7 @@ module Google
450
458
  class DataSource
451
459
  include Google::Apis::Core::Hashable
452
460
 
453
- #
461
+ # Information about an application which feeds sensor data into the platform.
454
462
  # Corresponds to the JSON property `application`
455
463
  # @return [Google::Apis::FitnessV1::Application]
456
464
  attr_accessor :application
@@ -463,46 +471,53 @@ module Google
463
471
  attr_accessor :data_quality_standard
464
472
 
465
473
  # A unique identifier for the data stream produced by this data source. The
466
- # identifier includes:
467
- #
468
- # - The physical device's manufacturer, model, and serial number (UID).
469
- # - The application's package name or name. Package name is used when the data
470
- # source was created by an Android application. The developer project number is
471
- # used when the data source was created by a REST client.
472
- # - The data source's type.
473
- # - The data source's stream name. Note that not all attributes of the data
474
- # source are used as part of the stream identifier. In particular, the version
475
- # of the hardware/the application isn't used. This allows us to preserve the
476
- # same stream through version updates. This also means that two DataSource
477
- # objects may represent the same data stream even if they're not equal.
478
- # The exact format of the data stream ID created by an Android application is:
479
- # type:dataType.name:application.packageName:device.manufacturer:device.model:
480
- # device.uid:dataStreamName
481
- # The exact format of the data stream ID created by a REST client is: type:
482
- # dataType.name:developer project number:device.manufacturer:device.model:device.
483
- # uid:dataStreamName
474
+ # identifier includes:<br/><br/>
475
+ # <ul>
476
+ # <li>The physical device's manufacturer, model, and serial number
477
+ # (UID).</li>
478
+ # <li>The application's package name or name. Package name is used when the
479
+ # data source was created by an Android application. The developer project
480
+ # number is used when the data source was created by a REST client.</li>
481
+ # <li>The data source's type.</li>
482
+ # <li>The data source's stream name.</li>
483
+ # </ul>
484
+ # Note that not all attributes of the data source are used as part of the
485
+ # stream identifier. In particular, the version of the hardware/the
486
+ # application isn't used. This allows us to preserve the same stream through
487
+ # version updates. This also means that two DataSource objects may represent
488
+ # the same data stream even if they're not equal.
489
+ # The exact format of the data stream ID created by an Android application
490
+ # is:
491
+ # <var>type:dataType.name<wbr/>:application.packageName<wbr/>:device.
492
+ # manufacturer<wbr/>:device.model<wbr/>:device.uid<wbr/>:dataStreamName</var>
493
+ # The exact format of the data stream ID created by a REST client is:
494
+ # <var>type:dataType.name<wbr/>:developer project
495
+ # number<wbr/>:device.manufacturer<wbr/>:device.model:device.uid<wbr/>:
496
+ # dataStreamName</var>
484
497
  # When any of the optional fields that make up the data stream ID are absent,
485
- # they will be omitted from the data stream ID. The minimum viable data stream
486
- # ID would be: type:dataType.name:developer project number
487
- # Finally, the developer project number and device UID are obfuscated when read
488
- # by any REST or Android client that did not create the data source. Only the
489
- # data source creator will see the developer project number in clear and normal
490
- # form. This means a client will see a different set of data_stream_ids than
491
- # another client with different credentials.
498
+ # they will be omitted from the data stream ID. The minimum viable data
499
+ # stream ID would be:
500
+ # type:dataType.name:developer project number
501
+ # Finally, the developer project number and device UID are obfuscated when
502
+ # read by any REST or Android client that did not create the data source.
503
+ # Only the data source creator will see the developer project number in clear
504
+ # and normal form. This means a client will see a different set of
505
+ # data_stream_ids than another client with different credentials.
492
506
  # Corresponds to the JSON property `dataStreamId`
493
507
  # @return [String]
494
508
  attr_accessor :data_stream_id
495
509
 
496
- # The stream name uniquely identifies this particular data source among other
497
- # data sources of the same type from the same underlying producer. Setting the
498
- # stream name is optional, but should be done whenever an application exposes
499
- # two streams for the same data type, or when a device has two equivalent
500
- # sensors.
510
+ # The stream name uniquely identifies this particular data source among
511
+ # other data sources of the same type from the same underlying producer.
512
+ # Setting the stream name is optional, but should be done whenever an
513
+ # application exposes two streams for the same data type, or when a device
514
+ # has two equivalent sensors.
501
515
  # Corresponds to the JSON property `dataStreamName`
502
516
  # @return [String]
503
517
  attr_accessor :data_stream_name
504
518
 
505
- #
519
+ # The data type defines the schema for a stream of data being collected by,
520
+ # inserted into, or queried from the Fitness API.
506
521
  # Corresponds to the JSON property `dataType`
507
522
  # @return [Google::Apis::FitnessV1::DataType]
508
523
  attr_accessor :data_type
@@ -510,14 +525,17 @@ module Google
510
525
  # Representation of an integrated device (such as a phone or a wearable) that
511
526
  # can hold sensors. Each sensor is exposed as a data source.
512
527
  # The main purpose of the device information contained in this class is to
513
- # identify the hardware of a particular data source. This can be useful in
528
+ # identify the hardware of a particular data source. This can be useful in
514
529
  # different ways, including:
515
- # - Distinguishing two similar sensors on different devices (the step counter on
516
- # two nexus 5 phones, for instance)
517
- # - Display the source of data to the user (by using the device make / model)
518
- # - Treat data differently depending on sensor type (accelerometers on a watch
519
- # may give different patterns than those on a phone)
520
- # - Build different analysis models for each device/version.
530
+ # <ul>
531
+ # <li>Distinguishing two similar sensors on different devices (the step
532
+ # counter on two nexus 5 phones, for instance)
533
+ # <li>Display the source of data to the user (by using the device make /
534
+ # model)
535
+ # <li>Treat data differently depending on sensor type (accelerometers on a
536
+ # watch may give different patterns than those on a phone)
537
+ # <li>Build different analysis models for each device/version.
538
+ # </ul>
521
539
  # Corresponds to the JSON property `device`
522
540
  # @return [Google::Apis::FitnessV1::Device]
523
541
  attr_accessor :device
@@ -559,8 +577,8 @@ module Google
559
577
  # @return [Array<Google::Apis::FitnessV1::DataTypeField>]
560
578
  attr_accessor :field
561
579
 
562
- # Each data type has a unique, namespaced, name. All data types in the com.
563
- # google namespace are shared as part of the platform.
580
+ # Each data type has a unique, namespaced, name. All data types in the
581
+ # com.google namespace are shared as part of the platform.
564
582
  # Corresponds to the JSON property `name`
565
583
  # @return [String]
566
584
  attr_accessor :name
@@ -590,8 +608,8 @@ module Google
590
608
  # @return [String]
591
609
  attr_accessor :format
592
610
 
593
- # Defines the name and format of data. Unlike data type names, field names are
594
- # not namespaced, and only need to be unique within the data type.
611
+ # Defines the name and format of data. Unlike data type names, field names
612
+ # are not namespaced, and only need to be unique within the data type.
595
613
  # Corresponds to the JSON property `name`
596
614
  # @return [String]
597
615
  attr_accessor :name
@@ -614,43 +632,44 @@ module Google
614
632
  end
615
633
  end
616
634
 
617
- # A dataset represents a projection container for data points. They do not carry
618
- # any info of their own. Datasets represent a set of data points from a
635
+ # A dataset represents a projection container for data points. They do not
636
+ # carry any info of their own. Datasets represent a set of data points from a
619
637
  # particular data source. A data point can be found in more than one dataset.
620
638
  class Dataset
621
639
  include Google::Apis::Core::Hashable
622
640
 
623
- # The data stream ID of the data source that created the points in this dataset.
641
+ # The data stream ID of the data source that created the points in this
642
+ # dataset.
624
643
  # Corresponds to the JSON property `dataSourceId`
625
644
  # @return [String]
626
645
  attr_accessor :data_source_id
627
646
 
628
647
  # The largest end time of all data points in this possibly partial
629
- # representation of the dataset. Time is in nanoseconds from epoch. This should
630
- # also match the second part of the dataset identifier.
648
+ # representation of the dataset. Time is in nanoseconds from epoch. This
649
+ # should also match the second part of the dataset identifier.
631
650
  # Corresponds to the JSON property `maxEndTimeNs`
632
651
  # @return [Fixnum]
633
652
  attr_accessor :max_end_time_ns
634
653
 
635
654
  # The smallest start time of all data points in this possibly partial
636
- # representation of the dataset. Time is in nanoseconds from epoch. This should
637
- # also match the first part of the dataset identifier.
655
+ # representation of the dataset. Time is in nanoseconds from epoch. This
656
+ # should also match the first part of the dataset identifier.
638
657
  # Corresponds to the JSON property `minStartTimeNs`
639
658
  # @return [Fixnum]
640
659
  attr_accessor :min_start_time_ns
641
660
 
642
- # This token will be set when a dataset is received in response to a GET request
643
- # and the dataset is too large to be included in a single response. Provide this
644
- # value in a subsequent GET request to return the next page of data points
645
- # within this dataset.
661
+ # This token will be set when a dataset is received in response to a GET
662
+ # request and the dataset is too large to be included in a single response.
663
+ # Provide this value in a subsequent GET request to return the next page of
664
+ # data points within this dataset.
646
665
  # Corresponds to the JSON property `nextPageToken`
647
666
  # @return [String]
648
667
  attr_accessor :next_page_token
649
668
 
650
669
  # A partial list of data points contained in the dataset, ordered by largest
651
- # endTimeNanos first. This list is considered complete when retrieving a small
652
- # dataset and partial when patching a dataset or retrieving a dataset that is
653
- # too large to include in a single response.
670
+ # endTimeNanos first. This list is considered complete when retrieving a
671
+ # small dataset and partial when patching a dataset or retrieving a dataset
672
+ # that is too large to include in a single response.
654
673
  # Corresponds to the JSON property `point`
655
674
  # @return [Array<Google::Apis::FitnessV1::DataPoint>]
656
675
  attr_accessor :point
@@ -672,14 +691,17 @@ module Google
672
691
  # Representation of an integrated device (such as a phone or a wearable) that
673
692
  # can hold sensors. Each sensor is exposed as a data source.
674
693
  # The main purpose of the device information contained in this class is to
675
- # identify the hardware of a particular data source. This can be useful in
694
+ # identify the hardware of a particular data source. This can be useful in
676
695
  # different ways, including:
677
- # - Distinguishing two similar sensors on different devices (the step counter on
678
- # two nexus 5 phones, for instance)
679
- # - Display the source of data to the user (by using the device make / model)
680
- # - Treat data differently depending on sensor type (accelerometers on a watch
681
- # may give different patterns than those on a phone)
682
- # - Build different analysis models for each device/version.
696
+ # <ul>
697
+ # <li>Distinguishing two similar sensors on different devices (the step
698
+ # counter on two nexus 5 phones, for instance)
699
+ # <li>Display the source of data to the user (by using the device make /
700
+ # model)
701
+ # <li>Treat data differently depending on sensor type (accelerometers on a
702
+ # watch may give different patterns than those on a phone)
703
+ # <li>Build different analysis models for each device/version.
704
+ # </ul>
683
705
  class Device
684
706
  include Google::Apis::Core::Hashable
685
707
 
@@ -699,9 +721,9 @@ module Google
699
721
  attr_accessor :type
700
722
 
701
723
  # The serial number or other unique ID for the hardware. This field is
702
- # obfuscated when read by any REST or Android client that did not create the
703
- # data source. Only the data source creator will see the uid field in clear and
704
- # normal form.
724
+ # obfuscated when read by any REST or Android client that did not create
725
+ # the data source. Only the data source creator will see the uid field in
726
+ # clear and normal form.
705
727
  # The obfuscation preserves equality; that is, given two IDs, if id1 == id2,
706
728
  # obfuscated(id1) == obfuscated(id2).
707
729
  # Corresponds to the JSON property `uid`
@@ -748,7 +770,8 @@ module Google
748
770
  attr_accessor :inserted_data_point
749
771
 
750
772
  # The continuation token, which is used to page through large result sets.
751
- # Provide this value in a subsequent request to return the next page of results.
773
+ # Provide this value in a subsequent request to return the next page of
774
+ # results.
752
775
  # Corresponds to the JSON property `nextPageToken`
753
776
  # @return [String]
754
777
  attr_accessor :next_page_token
@@ -789,26 +812,29 @@ module Google
789
812
  class ListSessionsResponse
790
813
  include Google::Apis::Core::Hashable
791
814
 
792
- # If includeDeleted is set to true in the request, this list will contain
793
- # sessions deleted with original end times that are within the startTime and
794
- # endTime frame.
815
+ # If <code>includeDeleted</code> is set to true in the request, and
816
+ # <var>startTime</var> and <var>endTime</var> are omitted, this will include
817
+ # sessions which were deleted since the last sync.
795
818
  # Corresponds to the JSON property `deletedSession`
796
819
  # @return [Array<Google::Apis::FitnessV1::Session>]
797
820
  attr_accessor :deleted_session
798
821
 
799
- # Flag to indicate server has more data to transfer
822
+ # Flag to indicate server has more data to transfer.
823
+ # DO NOT USE THIS FIELD. It is never populated in responses from the server.
800
824
  # Corresponds to the JSON property `hasMoreData`
801
825
  # @return [Boolean]
802
826
  attr_accessor :has_more_data
803
827
  alias_method :has_more_data?, :has_more_data
804
828
 
805
- # The continuation token, which is used to page through large result sets.
806
- # Provide this value in a subsequent request to return the next page of results.
829
+ # The sync token which is used to sync further changes. This will only be
830
+ # provided if both <var>startTime</var> and <var>endTime</var> are omitted
831
+ # from the request.
807
832
  # Corresponds to the JSON property `nextPageToken`
808
833
  # @return [String]
809
834
  attr_accessor :next_page_token
810
835
 
811
- # Sessions with an end time that is between startTime and endTime of the request.
836
+ # Sessions with an end time that is between <var>startTime</var> and
837
+ # <var>endTime</var> of the request.
812
838
  # Corresponds to the JSON property `session`
813
839
  # @return [Array<Google::Apis::FitnessV1::Session>]
814
840
  attr_accessor :session
@@ -851,11 +877,12 @@ module Google
851
877
  class Session
852
878
  include Google::Apis::Core::Hashable
853
879
 
854
- # Session active time. While start_time_millis and end_time_millis define the
855
- # full session time, the active time can be shorter and specified by
856
- # active_time_millis. If the inactive time during the session is known, it
857
- # should also be inserted via a com.google.activity.segment data point with a
858
- # STILL activity value
880
+ # Session active time. While start_time_millis and end_time_millis define
881
+ # the full session time, the active time can be shorter and specified by
882
+ # active_time_millis.
883
+ # If the inactive time during the session is known, it should also be
884
+ # inserted via a com.google.activity.segment data point with a STILL
885
+ # activity value
859
886
  # Corresponds to the JSON property `activeTimeMillis`
860
887
  # @return [Fixnum]
861
888
  attr_accessor :active_time_millis
@@ -865,7 +892,7 @@ module Google
865
892
  # @return [Fixnum]
866
893
  attr_accessor :activity_type
867
894
 
868
- #
895
+ # The application that created the session.
869
896
  # Corresponds to the JSON property `application`
870
897
  # @return [Google::Apis::FitnessV1::Application]
871
898
  attr_accessor :application
@@ -880,8 +907,8 @@ module Google
880
907
  # @return [Fixnum]
881
908
  attr_accessor :end_time_millis
882
909
 
883
- # A client-generated identifier that is unique across all sessions owned by this
884
- # particular user.
910
+ # A client-generated identifier that is unique across all sessions owned by
911
+ # this particular user.
885
912
  # Corresponds to the JSON property `id`
886
913
  # @return [String]
887
914
  attr_accessor :id
@@ -935,17 +962,17 @@ module Google
935
962
  # @return [Fixnum]
936
963
  attr_accessor :int_val
937
964
 
938
- # Map value. The valid key space and units for the corresponding value of each
939
- # entry should be documented as part of the data type definition. Keys should be
940
- # kept small whenever possible. Data streams with large keys and high data
941
- # frequency may be down sampled.
965
+ # Map value. The valid key space and units for the corresponding value
966
+ # of each entry should be documented as part of the data type definition.
967
+ # Keys should be kept small whenever possible. Data streams with large keys
968
+ # and high data frequency may be down sampled.
942
969
  # Corresponds to the JSON property `mapVal`
943
970
  # @return [Array<Google::Apis::FitnessV1::ValueMapValEntry>]
944
971
  attr_accessor :map_val
945
972
 
946
- # String value. When this is set, other values must not be set. Strings should
947
- # be kept small whenever possible. Data streams with large string values and
948
- # high data frequency may be down sampled.
973
+ # String value. When this is set, other values must not be set.
974
+ # Strings should be kept small whenever possible. Data streams with large
975
+ # string values and high data frequency may be down sampled.
949
976
  # Corresponds to the JSON property `stringVal`
950
977
  # @return [String]
951
978
  attr_accessor :string_val