google-api-client 0.9.pre2 → 0.9.pre3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +1 -1
  4. data/api_names_out.yaml +68 -5
  5. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +3 -3
  6. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  7. data/generated/google/apis/adexchangeseller_v2_0/service.rb +5 -5
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +34 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +5 -0
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsense_v1_4/service.rb +10 -10
  13. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1/service.rb +19 -19
  15. data/generated/google/apis/analytics_v3/service.rb +35 -35
  16. data/generated/google/apis/androidenterprise_v1/service.rb +6 -6
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2/classes.rb +16 -6
  20. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  21. data/generated/google/apis/bigquery_v2/service.rb +4 -4
  22. data/generated/google/apis/blogger_v3/service.rb +7 -7
  23. data/generated/google/apis/books_v1/service.rb +47 -47
  24. data/generated/google/apis/calendar_v3.rb +1 -1
  25. data/generated/google/apis/calendar_v3/classes.rb +43 -27
  26. data/generated/google/apis/calendar_v3/service.rb +20 -10
  27. data/generated/google/apis/civicinfo_v2/service.rb +1 -1
  28. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  29. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +8 -8
  30. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  31. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +372 -0
  32. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +155 -0
  33. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +109 -0
  34. data/generated/google/apis/compute_v1.rb +1 -1
  35. data/generated/google/apis/compute_v1/classes.rb +21 -18
  36. data/generated/google/apis/compute_v1/representations.rb +0 -1
  37. data/generated/google/apis/compute_v1/service.rb +459 -819
  38. data/generated/google/apis/content_v2.rb +1 -1
  39. data/generated/google/apis/content_v2/classes.rb +25 -15
  40. data/generated/google/apis/content_v2/representations.rb +2 -0
  41. data/generated/google/apis/content_v2/service.rb +2 -1
  42. data/generated/google/apis/coordinate_v1/service.rb +11 -11
  43. data/generated/google/apis/customsearch_v1/service.rb +3 -3
  44. data/generated/google/apis/deploymentmanager_v2beta2.rb +1 -1
  45. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +1 -1
  46. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +50 -90
  47. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  48. data/generated/google/apis/dfareporting_v2_1/classes.rb +4 -4
  49. data/generated/google/apis/dfareporting_v2_1/service.rb +65 -62
  50. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  51. data/generated/google/apis/doubleclicksearch_v2/service.rb +11 -11
  52. data/generated/google/apis/drive_v2.rb +4 -1
  53. data/generated/google/apis/drive_v2/classes.rb +2 -2
  54. data/generated/google/apis/drive_v2/service.rb +15 -9
  55. data/generated/google/apis/fitness_v1.rb +1 -1
  56. data/generated/google/apis/fitness_v1/classes.rb +44 -31
  57. data/generated/google/apis/fitness_v1/representations.rb +0 -2
  58. data/generated/google/apis/fitness_v1/service.rb +5 -1
  59. data/generated/google/apis/fusiontables_v2/service.rb +9 -9
  60. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  61. data/generated/google/apis/games_v1.rb +1 -1
  62. data/generated/google/apis/games_v1/service.rb +18 -18
  63. data/generated/google/apis/genomics_v1.rb +1 -1
  64. data/generated/google/apis/genomics_v1/classes.rb +56 -53
  65. data/generated/google/apis/genomics_v1/service.rb +1 -1
  66. data/generated/google/apis/licensing_v1/service.rb +2 -2
  67. data/generated/google/apis/mapsengine_v1/service.rb +8 -8
  68. data/generated/google/apis/mirror_v1.rb +1 -1
  69. data/generated/google/apis/pagespeedonline_v2/service.rb +3 -3
  70. data/generated/google/apis/plus_domains_v1.rb +1 -1
  71. data/generated/google/apis/plus_v1.rb +1 -1
  72. data/generated/google/apis/plus_v1/service.rb +6 -6
  73. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  74. data/generated/google/apis/pubsub_v1beta2/classes.rb +21 -20
  75. data/generated/google/apis/pubsub_v1beta2/service.rb +13 -13
  76. data/generated/google/apis/replicapool_v1beta2/service.rb +3 -3
  77. data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
  78. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +8 -1
  79. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +1 -0
  80. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -5
  81. data/generated/google/apis/reseller_v1/service.rb +1 -1
  82. data/generated/google/apis/site_verification_v1/service.rb +2 -2
  83. data/generated/google/apis/sqladmin_v1beta4/service.rb +4 -4
  84. data/generated/google/apis/storage_v1/service.rb +6 -6
  85. data/generated/google/apis/taskqueue_v1beta2/service.rb +9 -9
  86. data/generated/google/apis/translate_v2/service.rb +6 -6
  87. data/generated/google/apis/urlshortener_v1/service.rb +3 -3
  88. data/generated/google/apis/webmasters_v3.rb +1 -1
  89. data/generated/google/apis/webmasters_v3/classes.rb +11 -11
  90. data/generated/google/apis/webmasters_v3/service.rb +3 -3
  91. data/generated/google/apis/youtube_analytics_v1/service.rb +25 -25
  92. data/generated/google/apis/youtube_v3/service.rb +305 -305
  93. data/lib/google/apis/generator/model.rb +10 -0
  94. data/lib/google/apis/generator/templates/_method.tmpl +3 -3
  95. data/lib/google/apis/version.rb +1 -1
  96. metadata +2 -2
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/doubleclick-search/
27
27
  module DoubleclicksearchV2
28
28
  VERSION = 'V2'
29
- REVISION = '20150708'
29
+ REVISION = '20150722'
30
30
 
31
31
  # View and manage your advertising data in DoubleClick Search
32
32
  AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
@@ -60,14 +60,6 @@ module Google
60
60
  # Numeric ID of the advertiser.
61
61
  # @param [String] engine_account_id
62
62
  # Numeric ID of the engine account.
63
- # @param [String] ad_group_id
64
- # Numeric ID of the ad group.
65
- # @param [String] ad_id
66
- # Numeric ID of the ad.
67
- # @param [String] campaign_id
68
- # Numeric ID of the campaign.
69
- # @param [String] criterion_id
70
- # Numeric ID of the criterion.
71
63
  # @param [Fixnum] end_date
72
64
  # Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
73
65
  # @param [Fixnum] row_count
@@ -76,6 +68,14 @@ module Google
76
68
  # First date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
77
69
  # @param [Fixnum] start_row
78
70
  # The 0-based starting index for retrieving conversions results.
71
+ # @param [String] ad_group_id
72
+ # Numeric ID of the ad group.
73
+ # @param [String] ad_id
74
+ # Numeric ID of the ad.
75
+ # @param [String] campaign_id
76
+ # Numeric ID of the campaign.
77
+ # @param [String] criterion_id
78
+ # Numeric ID of the criterion.
79
79
  # @param [String] fields
80
80
  # Selector specifying which fields to include in a partial response.
81
81
  # @param [String] quota_user
@@ -97,7 +97,7 @@ module Google
97
97
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
98
98
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
99
99
  # @raise [Google::Apis::AuthorizationError] Authorization is required
100
- def get_conversion(agency_id, advertiser_id, engine_account_id, ad_group_id: nil, ad_id: nil, campaign_id: nil, criterion_id: nil, end_date: nil, row_count: nil, start_date: nil, start_row: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
100
+ def get_conversion(agency_id, advertiser_id, engine_account_id, end_date, row_count, start_date, start_row, ad_group_id: nil, ad_id: nil, campaign_id: nil, criterion_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
101
101
  path = 'agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion'
102
102
  command = make_simple_command(:get, path, options)
103
103
  command.response_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation
@@ -157,7 +157,6 @@ module Google
157
157
 
158
158
  # Updates a batch of conversions in DoubleClick Search. This method supports
159
159
  # patch semantics.
160
- # @param [Google::Apis::DoubleclicksearchV2::ConversionList] conversion_list_object
161
160
  # @param [String] advertiser_id
162
161
  # Numeric ID of the advertiser.
163
162
  # @param [String] agency_id
@@ -172,6 +171,7 @@ module Google
172
171
  # First date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
173
172
  # @param [Fixnum] start_row
174
173
  # The 0-based starting index for retrieving conversions results.
174
+ # @param [Google::Apis::DoubleclicksearchV2::ConversionList] conversion_list_object
175
175
  # @param [String] fields
176
176
  # Selector specifying which fields to include in a partial response.
177
177
  # @param [String] quota_user
@@ -193,7 +193,7 @@ module Google
193
193
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
194
194
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
195
195
  # @raise [Google::Apis::AuthorizationError] Authorization is required
196
- def patch_conversion(conversion_list_object = nil, advertiser_id: nil, agency_id: nil, end_date: nil, engine_account_id: nil, row_count: nil, start_date: nil, start_row: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
196
+ def patch_conversion(advertiser_id, agency_id, end_date, engine_account_id, row_count, start_date, start_row, conversion_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
197
197
  path = 'conversion'
198
198
  command = make_simple_command(:patch, path, options)
199
199
  command.request_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/drive/
26
26
  module DriveV2
27
27
  VERSION = 'V2'
28
- REVISION = '20150702'
28
+ REVISION = '20150716'
29
29
 
30
30
  # View and manage the files in your Google Drive
31
31
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -45,6 +45,9 @@ module Google
45
45
  # View metadata for files in your Google Drive
46
46
  AUTH_DRIVE_METADATA_READONLY = 'https://www.googleapis.com/auth/drive.metadata.readonly'
47
47
 
48
+ # View the photos, videos and albums in your Google Photos
49
+ AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly'
50
+
48
51
  # View the files in your Google Drive
49
52
  AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
50
53
 
@@ -1454,8 +1454,8 @@ module Google
1454
1454
  # @return [Google::Apis::DriveV2::User]
1455
1455
  attr_accessor :sharing_user
1456
1456
 
1457
- # The list of spaces which contain the file. Supported values are 'drive' and '
1458
- # appDataFolder'.
1457
+ # The list of spaces which contain the file. Supported values are 'drive', '
1458
+ # appDataFolder' and 'photos'.
1459
1459
  # Corresponds to the JSON property `spaces`
1460
1460
  # @return [Array<String>]
1461
1461
  attr_accessor :spaces
@@ -231,8 +231,8 @@ module Google
231
231
  # @param [String] page_token
232
232
  # Page token for changes.
233
233
  # @param [String] spaces
234
- # A comma-separated list of spaces to query. Supported values are 'drive' and '
235
- # appDataFolder'.
234
+ # A comma-separated list of spaces to query. Supported values are 'drive', '
235
+ # appDataFolder' and 'photos'.
236
236
  # @param [String] start_change_id
237
237
  # Change ID to start listing changes from.
238
238
  # @param [String] fields
@@ -286,8 +286,8 @@ module Google
286
286
  # @param [String] page_token
287
287
  # Page token for changes.
288
288
  # @param [String] spaces
289
- # A comma-separated list of spaces to query. Supported values are 'drive' and '
290
- # appDataFolder'.
289
+ # A comma-separated list of spaces to query. Supported values are 'drive', '
290
+ # appDataFolder' and 'photos'.
291
291
  # @param [String] start_change_id
292
292
  # Change ID to start listing changes from.
293
293
  # @param [String] fields
@@ -1048,8 +1048,8 @@ module Google
1048
1048
  # @param [String] q
1049
1049
  # Query string for searching files.
1050
1050
  # @param [String] spaces
1051
- # A comma-separated list of spaces to query. Supported values are 'drive' and '
1052
- # appDataFolder'.
1051
+ # A comma-separated list of spaces to query. Supported values are 'drive', '
1052
+ # appDataFolder' and 'photos'.
1053
1053
  # @param [String] fields
1054
1054
  # Selector specifying which fields to include in a partial response.
1055
1055
  # @param [String] quota_user
@@ -1096,6 +1096,8 @@ module Google
1096
1096
  # Comma-separated list of parent IDs to add.
1097
1097
  # @param [Boolean] convert
1098
1098
  # Whether to convert this file to the corresponding Google Docs format.
1099
+ # @param [String] modified_date_behavior
1100
+ # How the modifiedDate field should be updated. This overrides setModifiedDate.
1099
1101
  # @param [Boolean] new_revision
1100
1102
  # Whether a blob upload should create a new revision. If false, the blob data in
1101
1103
  # the current head revision is replaced. If true or not set, a new blob is
@@ -1142,7 +1144,7 @@ module Google
1142
1144
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1143
1145
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1144
1146
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1145
- def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1147
+ def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1146
1148
  path = 'files/{fileId}'
1147
1149
  command = make_simple_command(:patch, path, options)
1148
1150
  command.request_representation = Google::Apis::DriveV2::File::Representation
@@ -1152,6 +1154,7 @@ module Google
1152
1154
  command.params['fileId'] = file_id unless file_id.nil?
1153
1155
  command.query['addParents'] = add_parents unless add_parents.nil?
1154
1156
  command.query['convert'] = convert unless convert.nil?
1157
+ command.query['modifiedDateBehavior'] = modified_date_behavior unless modified_date_behavior.nil?
1155
1158
  command.query['newRevision'] = new_revision unless new_revision.nil?
1156
1159
  command.query['ocr'] = ocr unless ocr.nil?
1157
1160
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
@@ -1204,7 +1207,7 @@ module Google
1204
1207
  execute_or_queue_command(command, &block)
1205
1208
  end
1206
1209
 
1207
- # Moves a file to the trash.
1210
+ # Moves a file to the trash. The currently authenticated user must own the file.
1208
1211
  # @param [String] file_id
1209
1212
  # The ID of the file to trash.
1210
1213
  # @param [String] fields
@@ -1284,6 +1287,8 @@ module Google
1284
1287
  # Comma-separated list of parent IDs to add.
1285
1288
  # @param [Boolean] convert
1286
1289
  # Whether to convert this file to the corresponding Google Docs format.
1290
+ # @param [String] modified_date_behavior
1291
+ # How the modifiedDate field should be updated. This overrides setModifiedDate.
1287
1292
  # @param [Boolean] new_revision
1288
1293
  # Whether a blob upload should create a new revision. If false, the blob data in
1289
1294
  # the current head revision is replaced. If true or not set, a new blob is
@@ -1334,7 +1339,7 @@ module Google
1334
1339
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1335
1340
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1336
1341
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1337
- def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1342
+ def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1338
1343
  path = 'files/{fileId}'
1339
1344
  if upload_source.nil?
1340
1345
  command = make_simple_command(:put, path, options)
@@ -1350,6 +1355,7 @@ module Google
1350
1355
  command.params['fileId'] = file_id unless file_id.nil?
1351
1356
  command.query['addParents'] = add_parents unless add_parents.nil?
1352
1357
  command.query['convert'] = convert unless convert.nil?
1358
+ command.query['modifiedDateBehavior'] = modified_date_behavior unless modified_date_behavior.nil?
1353
1359
  command.query['newRevision'] = new_revision unless new_revision.nil?
1354
1360
  command.query['ocr'] = ocr unless ocr.nil?
1355
1361
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/fit/rest/
26
26
  module FitnessV1
27
27
  VERSION = 'V1'
28
- REVISION = '20150717'
28
+ REVISION = '20150720'
29
29
 
30
30
  # View your activity information in Google Fit
31
31
  AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
@@ -26,17 +26,17 @@ module Google
26
26
  class AggregateBucket
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT
29
+ # Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT
30
30
  # Corresponds to the JSON property `activity`
31
31
  # @return [Fixnum]
32
32
  attr_accessor :activity
33
33
 
34
- # There will be one dataset per datatype/datasource
34
+ # There will be one dataset per AggregateBy in the request.
35
35
  # Corresponds to the JSON property `dataset`
36
36
  # @return [Array<Google::Apis::FitnessV1::Dataset>]
37
37
  attr_accessor :dataset
38
38
 
39
- #
39
+ # The end time for the aggregated data, in milliseconds since epoch, inclusive.
40
40
  # Corresponds to the JSON property `endTimeMillis`
41
41
  # @return [String]
42
42
  attr_accessor :end_time_millis
@@ -47,7 +47,7 @@ module Google
47
47
  # @return [Google::Apis::FitnessV1::Session]
48
48
  attr_accessor :session
49
49
 
50
- #
50
+ # The start time for the aggregated data, in milliseconds since epoch, inclusive.
51
51
  # Corresponds to the JSON property `startTimeMillis`
52
52
  # @return [String]
53
53
  attr_accessor :start_time_millis
@@ -73,30 +73,25 @@ module Google
73
73
  end
74
74
  end
75
75
 
76
- #
76
+ # The specification of which data to aggregate.
77
77
  class AggregateBy
78
78
  include Google::Apis::Core::Hashable
79
79
 
80
- #
80
+ # A data source ID to aggregate. Mutually exclusive of dataTypeName. Only data
81
+ # from the specified data source ID will be included in the aggregation. The
82
+ # dataset in the response will have the same data source ID.
81
83
  # Corresponds to the JSON property `dataSourceId`
82
84
  # @return [String]
83
85
  attr_accessor :data_source_id
84
86
 
85
- # by dataype or by datasource
87
+ # The data type to aggregate. All data sources providing this data type will
88
+ # contribute data to the aggregation. The response will contain a single dataset
89
+ # for this data type name. The dataset will have a data source ID of derived:com.
90
+ # google.:com.google.android.gms:aggregated
86
91
  # Corresponds to the JSON property `dataTypeName`
87
92
  # @return [String]
88
93
  attr_accessor :data_type_name
89
94
 
90
- #
91
- # Corresponds to the JSON property `outputDataSourceId`
92
- # @return [String]
93
- attr_accessor :output_data_source_id
94
-
95
- #
96
- # Corresponds to the JSON property `outputDataTypeName`
97
- # @return [String]
98
- attr_accessor :output_data_type_name
99
-
100
95
  def initialize(**args)
101
96
  update!(**args)
102
97
  end
@@ -105,8 +100,6 @@ module Google
105
100
  def update!(**args)
106
101
  @data_source_id = args[:data_source_id] unless args[:data_source_id].nil?
107
102
  @data_type_name = args[:data_type_name] unless args[:data_type_name].nil?
108
- @output_data_source_id = args[:output_data_source_id] unless args[:output_data_source_id].nil?
109
- @output_data_type_name = args[:output_data_type_name] unless args[:output_data_type_name].nil?
110
103
  end
111
104
  end
112
105
 
@@ -114,37 +107,52 @@ module Google
114
107
  class AggregateRequest
115
108
  include Google::Apis::Core::Hashable
116
109
 
117
- #
110
+ # The specification of data to be aggregated. At least one aggregateBy spec must
111
+ # be provided. All data that is specified will be aggregated using the same
112
+ # bucketing criteria. There will be one dataset in the response for every
113
+ # aggregateBy spec.
118
114
  # Corresponds to the JSON property `aggregateBy`
119
115
  # @return [Array<Google::Apis::FitnessV1::AggregateBy>]
120
116
  attr_accessor :aggregate_by
121
117
 
122
- #
118
+ # Specifies that data be aggregated each activity segment recored for a user.
119
+ # Similar to bucketByActivitySegment, but bucketing is done for each activity
120
+ # segment rather than all segments of the same type. Mutually exclusive of other
121
+ # bucketing specifications.
123
122
  # Corresponds to the JSON property `bucketByActivitySegment`
124
123
  # @return [Google::Apis::FitnessV1::BucketByActivity]
125
124
  attr_accessor :bucket_by_activity_segment
126
125
 
127
- #
126
+ # Specifies that data be aggregated by the type of activity being performed when
127
+ # the data was recorded. All data that was recorded during a certain activity
128
+ # type (for the given time range) will be aggregated into the same bucket. Data
129
+ # that was recorded while the user was not active will not be included in the
130
+ # response. Mutually exclusive of other bucketing specifications.
128
131
  # Corresponds to the JSON property `bucketByActivityType`
129
132
  # @return [Google::Apis::FitnessV1::BucketByActivity]
130
133
  attr_accessor :bucket_by_activity_type
131
134
 
132
- #
135
+ # Specifies that data be aggregated by user sessions. Data that does not fall
136
+ # within the time range of a session will not be included in the response.
137
+ # Mutually exclusive of other bucketing specifications.
133
138
  # Corresponds to the JSON property `bucketBySession`
134
139
  # @return [Google::Apis::FitnessV1::BucketBySession]
135
140
  attr_accessor :bucket_by_session
136
141
 
137
- # apparently oneof is not supported by reduced_nano_proto
142
+ # Specifies that data be aggregated by a single time interval. Mutually
143
+ # exclusive of other bucketing specifications.
138
144
  # Corresponds to the JSON property `bucketByTime`
139
145
  # @return [Google::Apis::FitnessV1::BucketByTime]
140
146
  attr_accessor :bucket_by_time
141
147
 
142
- #
148
+ # The end of a window of time. Data that intersects with this time window will
149
+ # be aggregated. The time is in milliseconds since epoch, inclusive.
143
150
  # Corresponds to the JSON property `endTimeMillis`
144
151
  # @return [String]
145
152
  attr_accessor :end_time_millis
146
153
 
147
- # required time range
154
+ # The start of a window of time. Data that intersects with this time window will
155
+ # be aggregated. The time is in milliseconds since epoch, inclusive.
148
156
  # Corresponds to the JSON property `startTimeMillis`
149
157
  # @return [String]
150
158
  attr_accessor :start_time_millis
@@ -169,7 +177,7 @@ module Google
169
177
  class AggregateResponse
170
178
  include Google::Apis::Core::Hashable
171
179
 
172
- #
180
+ # A list of buckets containing the aggregated data.
173
181
  # Corresponds to the JSON property `bucket`
174
182
  # @return [Array<Google::Apis::FitnessV1::AggregateBucket>]
175
183
  attr_accessor :bucket
@@ -232,12 +240,14 @@ module Google
232
240
  class BucketByActivity
233
241
  include Google::Apis::Core::Hashable
234
242
 
235
- # default activity stream will be used if not specified
243
+ # The default activity stream will be used if a specific activityDataSourceId is
244
+ # not specified.
236
245
  # Corresponds to the JSON property `activityDataSourceId`
237
246
  # @return [String]
238
247
  attr_accessor :activity_data_source_id
239
248
 
240
- # Only activity segments of duration longer than this is used
249
+ # Specifies that only activity segments of duration longer than
250
+ # minDurationMillis are considered and used as a container for aggregated data.
241
251
  # Corresponds to the JSON property `minDurationMillis`
242
252
  # @return [String]
243
253
  attr_accessor :min_duration_millis
@@ -257,7 +267,8 @@ module Google
257
267
  class BucketBySession
258
268
  include Google::Apis::Core::Hashable
259
269
 
260
- # Only sessions of duration longer than this is used
270
+ # Specifies that only sessions of duration longer than minDurationMillis are
271
+ # considered and used as a container for aggregated data.
261
272
  # Corresponds to the JSON property `minDurationMillis`
262
273
  # @return [String]
263
274
  attr_accessor :min_duration_millis
@@ -276,7 +287,9 @@ module Google
276
287
  class BucketByTime
277
288
  include Google::Apis::Core::Hashable
278
289
 
279
- #
290
+ # Specifies that result buckets aggregate data by exactly durationMillis time
291
+ # frames. Time frames that contain no data will be included in the response with
292
+ # an empty dataset.
280
293
  # Corresponds to the JSON property `durationMillis`
281
294
  # @return [String]
282
295
  attr_accessor :duration_millis
@@ -121,8 +121,6 @@ module Google
121
121
  class Representation < Google::Apis::Core::JsonRepresentation
122
122
  property :data_source_id, as: 'dataSourceId'
123
123
  property :data_type_name, as: 'dataTypeName'
124
- property :output_data_source_id, as: 'outputDataSourceId'
125
- property :output_data_type_name, as: 'outputDataTypeName'
126
124
  end
127
125
  end
128
126
 
@@ -491,8 +491,12 @@ module Google
491
491
  execute_or_queue_command(command, &block)
492
492
  end
493
493
 
494
- #
494
+ # Aggregates data of a certain type or stream into buckets divided by a given
495
+ # type of boundary. Multiple data sets of multiple types and from multiple
496
+ # sources can be aggreated into exactly one bucket type per request.
495
497
  # @param [String] user_id
498
+ # Aggregate data for the person identified. Use me to indicate the authenticated
499
+ # user. Only me is supported at this time.
496
500
  # @param [Google::Apis::FitnessV1::AggregateRequest] aggregate_request_object
497
501
  # @param [String] fields
498
502
  # Selector specifying which fields to include in a partial response.
@@ -302,8 +302,6 @@ module Google
302
302
  # - SHOW
303
303
  # - DESCRIBE
304
304
  # - CREATE statement.
305
- # @param [Boolean] hdrs
306
- # Whether column names are included in the first row. Default is true.
307
305
  # @param [String] sql
308
306
  # A Fusion Tables SQL statement, which can be any of
309
307
  # - SELECT
@@ -313,6 +311,8 @@ module Google
313
311
  # - SHOW
314
312
  # - DESCRIBE
315
313
  # - CREATE
314
+ # @param [Boolean] hdrs
315
+ # Whether column names are included in the first row. Default is true.
316
316
  # @param [Boolean] typed
317
317
  # Whether typed values are returned in the (JSON) response: numbers for numeric
318
318
  # values and parsed geometries for KML values. Default is true.
@@ -339,7 +339,7 @@ module Google
339
339
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
340
340
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
341
341
  # @raise [Google::Apis::AuthorizationError] Authorization is required
342
- def sql_query(hdrs: nil, sql: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
342
+ def sql_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
343
343
  path = 'query'
344
344
  if download_dest.nil?
345
345
  command = make_simple_command(:post, path, options)
@@ -362,13 +362,13 @@ module Google
362
362
  # - SELECT
363
363
  # - SHOW
364
364
  # - DESCRIBE
365
- # @param [Boolean] hdrs
366
- # Whether column names are included (in the first row). Default is true.
367
365
  # @param [String] sql
368
366
  # A SQL statement which can be any of
369
367
  # - SELECT
370
368
  # - SHOW
371
369
  # - DESCRIBE
370
+ # @param [Boolean] hdrs
371
+ # Whether column names are included (in the first row). Default is true.
372
372
  # @param [Boolean] typed
373
373
  # Whether typed values are returned in the (JSON) response: numbers for numeric
374
374
  # values and parsed geometries for KML values. Default is true.
@@ -395,7 +395,7 @@ module Google
395
395
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
396
396
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
397
397
  # @raise [Google::Apis::AuthorizationError] Authorization is required
398
- def sql_get_query(hdrs: nil, sql: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
398
+ def sql_get_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
399
399
  path = 'query'
400
400
  if download_dest.nil?
401
401
  command = make_simple_command(:get, path, options)
@@ -833,14 +833,14 @@ module Google
833
833
  end
834
834
 
835
835
  # Imports a new table.
836
+ # @param [String] name
837
+ # The name to be assigned to the new table.
836
838
  # @param [String] delimiter
837
839
  # The delimiter used to separate cell values. This can only consist of a single
838
840
  # character. Default is ,.
839
841
  # @param [String] encoding
840
842
  # The encoding of the content. Default is UTF-8. Use auto-detect if you are
841
843
  # unsure of the encoding.
842
- # @param [String] name
843
- # The name to be assigned to the new table.
844
844
  # @param [String] fields
845
845
  # Selector specifying which fields to include in a partial response.
846
846
  # @param [String] quota_user
@@ -866,7 +866,7 @@ module Google
866
866
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
867
867
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
868
868
  # @raise [Google::Apis::AuthorizationError] Authorization is required
869
- def import_table(delimiter: nil, encoding: nil, name: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
869
+ def import_table(name, delimiter: nil, encoding: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
870
870
  path = 'tables/import'
871
871
  if upload_source.nil?
872
872
  command = make_simple_command(:post, path, options)