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
@@ -51,11 +51,11 @@ module Google
51
51
 
52
52
  # Run image detection and annotation for a batch of images.
53
53
  # @param [Google::Apis::VisionV1::BatchAnnotateImagesRequest] batch_annotate_images_request_object
54
- # @param [String] fields
55
- # Selector specifying which fields to include in a partial response.
56
54
  # @param [String] quota_user
57
55
  # Available to use for quota purposes for server-side applications. Can be any
58
56
  # arbitrary string assigned to a user, but should not exceed 40 characters.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
59
  # @param [Google::Apis::RequestOptions] options
60
60
  # Request-specific options
61
61
  #
@@ -68,14 +68,14 @@ module Google
68
68
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
69
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
70
  # @raise [Google::Apis::AuthorizationError] Authorization is required
71
- def annotate_image(batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
71
+ def annotate_image(batch_annotate_images_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
72
72
  command = make_simple_command(:post, 'v1/images:annotate', options)
73
73
  command.request_representation = Google::Apis::VisionV1::BatchAnnotateImagesRequest::Representation
74
74
  command.request_object = batch_annotate_images_request_object
75
75
  command.response_representation = Google::Apis::VisionV1::BatchAnnotateImagesResponse::Representation
76
76
  command.response_class = Google::Apis::VisionV1::BatchAnnotateImagesResponse
77
- command.query['fields'] = fields unless fields.nil?
78
77
  command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ command.query['fields'] = fields unless fields.nil?
79
79
  execute_or_queue_command(command, &block)
80
80
  end
81
81
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/webmaster-tools/
26
26
  module WebmastersV3
27
27
  VERSION = 'V3'
28
- REVISION = '20170322'
28
+ REVISION = '20170517'
29
29
 
30
30
  # View and manage Search Console data for your verified sites
31
31
  AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see http://developers.google.com/youtube/analytics/
26
26
  module YoutubeAnalyticsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170428'
28
+ REVISION = '20170522'
29
29
 
30
30
  # Manage your YouTube account
31
31
  AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/youtube/partner/
26
26
  module YoutubePartnerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170424'
28
+ REVISION = '20170522'
29
29
 
30
30
  # View and manage your assets and associated content on YouTube
31
31
  AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
@@ -3030,7 +3030,8 @@ module Google
3030
3030
  attr_accessor :content_type
3031
3031
 
3032
3032
  # The ID that uniquely identifies the reference that this reference duplicates.
3033
- # This field is only present if the reference's status is duplicate_on_hold.
3033
+ # This field is only present if the reference's status is inactive with reason
3034
+ # REASON_DUPLICATE_FOR_OWNERS.
3034
3035
  # Corresponds to the JSON property `duplicateLeader`
3035
3036
  # @return [String]
3036
3037
  attr_accessor :duplicate_leader
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/youtube/reporting/v1/reports/
27
27
  module YoutubereportingV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170502'
29
+ REVISION = '20170524'
30
30
 
31
31
  # View YouTube Analytics reports for your YouTube content
32
32
  AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
@@ -22,47 +22,14 @@ module Google
22
22
  module Apis
23
23
  module YoutubereportingV1
24
24
 
25
- # A report's metadata including the URL from which the report itself can be
26
- # downloaded.
27
- class Report
25
+ # Media resource.
26
+ class Media
28
27
  include Google::Apis::Core::Hashable
29
28
 
30
- # The date/time when this report was created.
31
- # Corresponds to the JSON property `createTime`
32
- # @return [String]
33
- attr_accessor :create_time
34
-
35
- # The ID of the job that created this report.
36
- # Corresponds to the JSON property `jobId`
37
- # @return [String]
38
- attr_accessor :job_id
39
-
40
- # The server-generated ID of the report.
41
- # Corresponds to the JSON property `id`
42
- # @return [String]
43
- attr_accessor :id
44
-
45
- # The date/time when the job this report belongs to will expire/expired.
46
- # Corresponds to the JSON property `jobExpireTime`
47
- # @return [String]
48
- attr_accessor :job_expire_time
49
-
50
- # The end of the time period that the report instance covers. The value is
51
- # exclusive.
52
- # Corresponds to the JSON property `endTime`
53
- # @return [String]
54
- attr_accessor :end_time
55
-
56
- # The URL from which the report can be downloaded (max. 1000 characters).
57
- # Corresponds to the JSON property `downloadUrl`
58
- # @return [String]
59
- attr_accessor :download_url
60
-
61
- # The start of the time period that the report instance covers. The value is
62
- # inclusive.
63
- # Corresponds to the JSON property `startTime`
29
+ # Name of the media resource.
30
+ # Corresponds to the JSON property `resourceName`
64
31
  # @return [String]
65
- attr_accessor :start_time
32
+ attr_accessor :resource_name
66
33
 
67
34
  def initialize(**args)
68
35
  update!(**args)
@@ -70,13 +37,7 @@ module Google
70
37
 
71
38
  # Update properties of this object
72
39
  def update!(**args)
73
- @create_time = args[:create_time] if args.key?(:create_time)
74
- @job_id = args[:job_id] if args.key?(:job_id)
75
- @id = args[:id] if args.key?(:id)
76
- @job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
77
- @end_time = args[:end_time] if args.key?(:end_time)
78
- @download_url = args[:download_url] if args.key?(:download_url)
79
- @start_time = args[:start_time] if args.key?(:start_time)
40
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
80
41
  end
81
42
  end
82
43
 
@@ -84,11 +45,6 @@ module Google
84
45
  class ReportType
85
46
  include Google::Apis::Core::Hashable
86
47
 
87
- # The name of the report type (max. 100 characters).
88
- # Corresponds to the JSON property `name`
89
- # @return [String]
90
- attr_accessor :name
91
-
92
48
  # The ID of the report type (max. 100 characters).
93
49
  # Corresponds to the JSON property `id`
94
50
  # @return [String]
@@ -107,16 +63,21 @@ module Google
107
63
  # @return [String]
108
64
  attr_accessor :deprecate_time
109
65
 
66
+ # The name of the report type (max. 100 characters).
67
+ # Corresponds to the JSON property `name`
68
+ # @return [String]
69
+ attr_accessor :name
70
+
110
71
  def initialize(**args)
111
72
  update!(**args)
112
73
  end
113
74
 
114
75
  # Update properties of this object
115
76
  def update!(**args)
116
- @name = args[:name] if args.key?(:name)
117
77
  @id = args[:id] if args.key?(:id)
118
78
  @system_managed = args[:system_managed] if args.key?(:system_managed)
119
79
  @deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
80
+ @name = args[:name] if args.key?(:name)
120
81
  end
121
82
  end
122
83
 
@@ -124,11 +85,6 @@ module Google
124
85
  class ListReportTypesResponse
125
86
  include Google::Apis::Core::Hashable
126
87
 
127
- # The list of report types.
128
- # Corresponds to the JSON property `reportTypes`
129
- # @return [Array<Google::Apis::YoutubereportingV1::ReportType>]
130
- attr_accessor :report_types
131
-
132
88
  # A token to retrieve next page of results.
133
89
  # Pass this value in the
134
90
  # ListReportTypesRequest.page_token
@@ -138,14 +94,19 @@ module Google
138
94
  # @return [String]
139
95
  attr_accessor :next_page_token
140
96
 
97
+ # The list of report types.
98
+ # Corresponds to the JSON property `reportTypes`
99
+ # @return [Array<Google::Apis::YoutubereportingV1::ReportType>]
100
+ attr_accessor :report_types
101
+
141
102
  def initialize(**args)
142
103
  update!(**args)
143
104
  end
144
105
 
145
106
  # Update properties of this object
146
107
  def update!(**args)
147
- @report_types = args[:report_types] if args.key?(:report_types)
148
108
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
109
+ @report_types = args[:report_types] if args.key?(:report_types)
149
110
  end
150
111
  end
151
112
 
@@ -168,6 +129,64 @@ module Google
168
129
  end
169
130
  end
170
131
 
132
+ # A report's metadata including the URL from which the report itself can be
133
+ # downloaded.
134
+ class Report
135
+ include Google::Apis::Core::Hashable
136
+
137
+ # The date/time when the job this report belongs to will expire/expired.
138
+ # Corresponds to the JSON property `jobExpireTime`
139
+ # @return [String]
140
+ attr_accessor :job_expire_time
141
+
142
+ # The end of the time period that the report instance covers. The value is
143
+ # exclusive.
144
+ # Corresponds to the JSON property `endTime`
145
+ # @return [String]
146
+ attr_accessor :end_time
147
+
148
+ # The URL from which the report can be downloaded (max. 1000 characters).
149
+ # Corresponds to the JSON property `downloadUrl`
150
+ # @return [String]
151
+ attr_accessor :download_url
152
+
153
+ # The start of the time period that the report instance covers. The value is
154
+ # inclusive.
155
+ # Corresponds to the JSON property `startTime`
156
+ # @return [String]
157
+ attr_accessor :start_time
158
+
159
+ # The date/time when this report was created.
160
+ # Corresponds to the JSON property `createTime`
161
+ # @return [String]
162
+ attr_accessor :create_time
163
+
164
+ # The ID of the job that created this report.
165
+ # Corresponds to the JSON property `jobId`
166
+ # @return [String]
167
+ attr_accessor :job_id
168
+
169
+ # The server-generated ID of the report.
170
+ # Corresponds to the JSON property `id`
171
+ # @return [String]
172
+ attr_accessor :id
173
+
174
+ def initialize(**args)
175
+ update!(**args)
176
+ end
177
+
178
+ # Update properties of this object
179
+ def update!(**args)
180
+ @job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
181
+ @end_time = args[:end_time] if args.key?(:end_time)
182
+ @download_url = args[:download_url] if args.key?(:download_url)
183
+ @start_time = args[:start_time] if args.key?(:start_time)
184
+ @create_time = args[:create_time] if args.key?(:create_time)
185
+ @job_id = args[:job_id] if args.key?(:job_id)
186
+ @id = args[:id] if args.key?(:id)
187
+ end
188
+ end
189
+
171
190
  # Response message for ReportingService.ListJobs.
172
191
  class ListJobsResponse
173
192
  include Google::Apis::Core::Hashable
@@ -201,10 +220,11 @@ module Google
201
220
  class Job
202
221
  include Google::Apis::Core::Hashable
203
222
 
204
- # The creation date/time of the job.
205
- # Corresponds to the JSON property `createTime`
223
+ # The type of reports this job creates. Corresponds to the ID of a
224
+ # ReportType.
225
+ # Corresponds to the JSON property `reportTypeId`
206
226
  # @return [String]
207
- attr_accessor :create_time
227
+ attr_accessor :report_type_id
208
228
 
209
229
  # The date/time when this job will expire/expired. After a job expired, no
210
230
  # new reports are generated.
@@ -212,17 +232,16 @@ module Google
212
232
  # @return [String]
213
233
  attr_accessor :expire_time
214
234
 
215
- # The type of reports this job creates. Corresponds to the ID of a
216
- # ReportType.
217
- # Corresponds to the JSON property `reportTypeId`
218
- # @return [String]
219
- attr_accessor :report_type_id
220
-
221
235
  # The name of the job (max. 100 characters).
222
236
  # Corresponds to the JSON property `name`
223
237
  # @return [String]
224
238
  attr_accessor :name
225
239
 
240
+ # The server-generated ID of the job (max. 40 characters).
241
+ # Corresponds to the JSON property `id`
242
+ # @return [String]
243
+ attr_accessor :id
244
+
226
245
  # True if this a system-managed job that cannot be modified by the user;
227
246
  # otherwise false.
228
247
  # Corresponds to the JSON property `systemManaged`
@@ -230,10 +249,10 @@ module Google
230
249
  attr_accessor :system_managed
231
250
  alias_method :system_managed?, :system_managed
232
251
 
233
- # The server-generated ID of the job (max. 40 characters).
234
- # Corresponds to the JSON property `id`
252
+ # The creation date/time of the job.
253
+ # Corresponds to the JSON property `createTime`
235
254
  # @return [String]
236
- attr_accessor :id
255
+ attr_accessor :create_time
237
256
 
238
257
  def initialize(**args)
239
258
  update!(**args)
@@ -241,12 +260,12 @@ module Google
241
260
 
242
261
  # Update properties of this object
243
262
  def update!(**args)
244
- @create_time = args[:create_time] if args.key?(:create_time)
245
- @expire_time = args[:expire_time] if args.key?(:expire_time)
246
263
  @report_type_id = args[:report_type_id] if args.key?(:report_type_id)
264
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
247
265
  @name = args[:name] if args.key?(:name)
248
- @system_managed = args[:system_managed] if args.key?(:system_managed)
249
266
  @id = args[:id] if args.key?(:id)
267
+ @system_managed = args[:system_managed] if args.key?(:system_managed)
268
+ @create_time = args[:create_time] if args.key?(:create_time)
250
269
  end
251
270
  end
252
271
 
@@ -278,25 +297,6 @@ module Google
278
297
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
279
298
  end
280
299
  end
281
-
282
- # Media resource.
283
- class Media
284
- include Google::Apis::Core::Hashable
285
-
286
- # Name of the media resource.
287
- # Corresponds to the JSON property `resourceName`
288
- # @return [String]
289
- attr_accessor :resource_name
290
-
291
- def initialize(**args)
292
- update!(**args)
293
- end
294
-
295
- # Update properties of this object
296
- def update!(**args)
297
- @resource_name = args[:resource_name] if args.key?(:resource_name)
298
- end
299
- end
300
300
  end
301
301
  end
302
302
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Apis
23
23
  module YoutubereportingV1
24
24
 
25
- class Report
25
+ class Media
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
@@ -46,59 +46,53 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class ListJobsResponse
49
+ class Report
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Job
55
+ class ListJobsResponse
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ListReportsResponse
61
+ class Job
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class Media
67
+ class ListReportsResponse
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class Report
73
+ class Media
74
74
  # @private
75
75
  class Representation < Google::Apis::Core::JsonRepresentation
76
- property :create_time, as: 'createTime'
77
- property :job_id, as: 'jobId'
78
- property :id, as: 'id'
79
- property :job_expire_time, as: 'jobExpireTime'
80
- property :end_time, as: 'endTime'
81
- property :download_url, as: 'downloadUrl'
82
- property :start_time, as: 'startTime'
76
+ property :resource_name, as: 'resourceName'
83
77
  end
84
78
  end
85
79
 
86
80
  class ReportType
87
81
  # @private
88
82
  class Representation < Google::Apis::Core::JsonRepresentation
89
- property :name, as: 'name'
90
83
  property :id, as: 'id'
91
84
  property :system_managed, as: 'systemManaged'
92
85
  property :deprecate_time, as: 'deprecateTime'
86
+ property :name, as: 'name'
93
87
  end
94
88
  end
95
89
 
96
90
  class ListReportTypesResponse
97
91
  # @private
98
92
  class Representation < Google::Apis::Core::JsonRepresentation
93
+ property :next_page_token, as: 'nextPageToken'
99
94
  collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation
100
95
 
101
- property :next_page_token, as: 'nextPageToken'
102
96
  end
103
97
  end
104
98
 
@@ -108,6 +102,19 @@ module Google
108
102
  end
109
103
  end
110
104
 
105
+ class Report
106
+ # @private
107
+ class Representation < Google::Apis::Core::JsonRepresentation
108
+ property :job_expire_time, as: 'jobExpireTime'
109
+ property :end_time, as: 'endTime'
110
+ property :download_url, as: 'downloadUrl'
111
+ property :start_time, as: 'startTime'
112
+ property :create_time, as: 'createTime'
113
+ property :job_id, as: 'jobId'
114
+ property :id, as: 'id'
115
+ end
116
+ end
117
+
111
118
  class ListJobsResponse
112
119
  # @private
113
120
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -120,12 +127,12 @@ module Google
120
127
  class Job
121
128
  # @private
122
129
  class Representation < Google::Apis::Core::JsonRepresentation
123
- property :create_time, as: 'createTime'
124
- property :expire_time, as: 'expireTime'
125
130
  property :report_type_id, as: 'reportTypeId'
131
+ property :expire_time, as: 'expireTime'
126
132
  property :name, as: 'name'
127
- property :system_managed, as: 'systemManaged'
128
133
  property :id, as: 'id'
134
+ property :system_managed, as: 'systemManaged'
135
+ property :create_time, as: 'createTime'
129
136
  end
130
137
  end
131
138
 
@@ -137,13 +144,6 @@ module Google
137
144
  property :next_page_token, as: 'nextPageToken'
138
145
  end
139
146
  end
140
-
141
- class Media
142
- # @private
143
- class Representation < Google::Apis::Core::JsonRepresentation
144
- property :resource_name, as: 'resourceName'
145
- end
146
- end
147
147
  end
148
148
  end
149
149
  end