google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -50,11 +50,11 @@ module Google
50
50
 
51
51
  # Run image detection and annotation for a batch of images.
52
52
  # @param [Google::Apis::VisionV1::BatchAnnotateImagesRequest] batch_annotate_images_request_object
53
+ # @param [String] fields
54
+ # Selector specifying which fields to include in a partial response.
53
55
  # @param [String] quota_user
54
56
  # Available to use for quota purposes for server-side applications. Can be any
55
57
  # arbitrary string assigned to a user, but should not exceed 40 characters.
56
- # @param [String] fields
57
- # Selector specifying which fields to include in a partial response.
58
58
  # @param [Google::Apis::RequestOptions] options
59
59
  # Request-specific options
60
60
  #
@@ -67,14 +67,14 @@ module Google
67
67
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
68
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
69
  # @raise [Google::Apis::AuthorizationError] Authorization is required
70
- def annotate_image(batch_annotate_images_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
70
+ def annotate_image(batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
71
71
  command = make_simple_command(:post, 'v1/images:annotate', options)
72
72
  command.request_representation = Google::Apis::VisionV1::BatchAnnotateImagesRequest::Representation
73
73
  command.request_object = batch_annotate_images_request_object
74
74
  command.response_representation = Google::Apis::VisionV1::BatchAnnotateImagesResponse::Representation
75
75
  command.response_class = Google::Apis::VisionV1::BatchAnnotateImagesResponse
76
- command.query['quotaUser'] = quota_user unless quota_user.nil?
77
76
  command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
78
  execute_or_queue_command(command, &block)
79
79
  end
80
80
 
@@ -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 = '20170208'
28
+ REVISION = '20170306'
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 = '20170207'
28
+ REVISION = '20170228'
29
29
 
30
30
  # View and manage your assets and associated content on YouTube
31
31
  AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
@@ -26,13 +26,13 @@ module Google
26
26
  # @see https://developers.google.com/youtube/reporting/v1/reports/
27
27
  module YoutubereportingV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170213'
30
-
31
- # View YouTube Analytics reports for your YouTube content
32
- AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
29
+ REVISION = '20170308'
33
30
 
34
31
  # View monetary and non-monetary YouTube Analytics reports for your YouTube content
35
32
  AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
33
+
34
+ # View YouTube Analytics reports for your YouTube content
35
+ AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
36
36
  end
37
37
  end
38
38
  end
@@ -22,22 +22,22 @@ module Google
22
22
  module Apis
23
23
  module YoutubereportingV1
24
24
 
25
- # A generic empty message that you can re-use to avoid defining duplicated
26
- # empty messages in your APIs. A typical example is to use it as the request
27
- # or the response type of an API method. For instance:
28
- # service Foo `
29
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
30
- # `
31
- # The JSON representation for `Empty` is empty JSON object ````.
32
- class Empty
25
+ # Media resource.
26
+ class Media
33
27
  include Google::Apis::Core::Hashable
34
28
 
29
+ # Name of the media resource.
30
+ # Corresponds to the JSON property `resourceName`
31
+ # @return [String]
32
+ attr_accessor :resource_name
33
+
35
34
  def initialize(**args)
36
35
  update!(**args)
37
36
  end
38
37
 
39
38
  # Update properties of this object
40
39
  def update!(**args)
40
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
41
41
  end
42
42
  end
43
43
 
@@ -46,16 +46,6 @@ module Google
46
46
  class Report
47
47
  include Google::Apis::Core::Hashable
48
48
 
49
- # The date/time when this report was created.
50
- # Corresponds to the JSON property `createTime`
51
- # @return [String]
52
- attr_accessor :create_time
53
-
54
- # The ID of the job that created this report.
55
- # Corresponds to the JSON property `jobId`
56
- # @return [String]
57
- attr_accessor :job_id
58
-
59
49
  # The server-generated ID of the report.
60
50
  # Corresponds to the JSON property `id`
61
51
  # @return [String]
@@ -83,59 +73,48 @@ module Google
83
73
  # @return [String]
84
74
  attr_accessor :start_time
85
75
 
76
+ # The date/time when this report was created.
77
+ # Corresponds to the JSON property `createTime`
78
+ # @return [String]
79
+ attr_accessor :create_time
80
+
81
+ # The ID of the job that created this report.
82
+ # Corresponds to the JSON property `jobId`
83
+ # @return [String]
84
+ attr_accessor :job_id
85
+
86
86
  def initialize(**args)
87
87
  update!(**args)
88
88
  end
89
89
 
90
90
  # Update properties of this object
91
91
  def update!(**args)
92
- @create_time = args[:create_time] if args.key?(:create_time)
93
- @job_id = args[:job_id] if args.key?(:job_id)
94
92
  @id = args[:id] if args.key?(:id)
95
93
  @job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
96
94
  @end_time = args[:end_time] if args.key?(:end_time)
97
95
  @download_url = args[:download_url] if args.key?(:download_url)
98
96
  @start_time = args[:start_time] if args.key?(:start_time)
97
+ @create_time = args[:create_time] if args.key?(:create_time)
98
+ @job_id = args[:job_id] if args.key?(:job_id)
99
99
  end
100
100
  end
101
101
 
102
- # A report type.
103
- class ReportType
102
+ # A generic empty message that you can re-use to avoid defining duplicated
103
+ # empty messages in your APIs. A typical example is to use it as the request
104
+ # or the response type of an API method. For instance:
105
+ # service Foo `
106
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
107
+ # `
108
+ # The JSON representation for `Empty` is empty JSON object ````.
109
+ class Empty
104
110
  include Google::Apis::Core::Hashable
105
111
 
106
- # The ID of the report type (max. 100 characters).
107
- # Corresponds to the JSON property `id`
108
- # @return [String]
109
- attr_accessor :id
110
-
111
- # True if this a system-managed report type; otherwise false. Reporting jobs
112
- # for system-managed report types are created automatically and can thus not
113
- # be used in the `CreateJob` method.
114
- # Corresponds to the JSON property `systemManaged`
115
- # @return [Boolean]
116
- attr_accessor :system_managed
117
- alias_method :system_managed?, :system_managed
118
-
119
- # The date/time when this report type was/will be deprecated.
120
- # Corresponds to the JSON property `deprecateTime`
121
- # @return [String]
122
- attr_accessor :deprecate_time
123
-
124
- # The name of the report type (max. 100 characters).
125
- # Corresponds to the JSON property `name`
126
- # @return [String]
127
- attr_accessor :name
128
-
129
112
  def initialize(**args)
130
113
  update!(**args)
131
114
  end
132
115
 
133
116
  # Update properties of this object
134
117
  def update!(**args)
135
- @id = args[:id] if args.key?(:id)
136
- @system_managed = args[:system_managed] if args.key?(:system_managed)
137
- @deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
138
- @name = args[:name] if args.key?(:name)
139
118
  end
140
119
  end
141
120
 
@@ -168,15 +147,50 @@ module Google
168
147
  end
169
148
  end
170
149
 
150
+ # A report type.
151
+ class ReportType
152
+ include Google::Apis::Core::Hashable
153
+
154
+ # The date/time when this report type was/will be deprecated.
155
+ # Corresponds to the JSON property `deprecateTime`
156
+ # @return [String]
157
+ attr_accessor :deprecate_time
158
+
159
+ # The name of the report type (max. 100 characters).
160
+ # Corresponds to the JSON property `name`
161
+ # @return [String]
162
+ attr_accessor :name
163
+
164
+ # The ID of the report type (max. 100 characters).
165
+ # Corresponds to the JSON property `id`
166
+ # @return [String]
167
+ attr_accessor :id
168
+
169
+ # True if this a system-managed report type; otherwise false. Reporting jobs
170
+ # for system-managed report types are created automatically and can thus not
171
+ # be used in the `CreateJob` method.
172
+ # Corresponds to the JSON property `systemManaged`
173
+ # @return [Boolean]
174
+ attr_accessor :system_managed
175
+ alias_method :system_managed?, :system_managed
176
+
177
+ def initialize(**args)
178
+ update!(**args)
179
+ end
180
+
181
+ # Update properties of this object
182
+ def update!(**args)
183
+ @deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
184
+ @name = args[:name] if args.key?(:name)
185
+ @id = args[:id] if args.key?(:id)
186
+ @system_managed = args[:system_managed] if args.key?(:system_managed)
187
+ end
188
+ end
189
+
171
190
  # Response message for ReportingService.ListJobs.
172
191
  class ListJobsResponse
173
192
  include Google::Apis::Core::Hashable
174
193
 
175
- # The list of jobs.
176
- # Corresponds to the JSON property `jobs`
177
- # @return [Array<Google::Apis::YoutubereportingV1::Job>]
178
- attr_accessor :jobs
179
-
180
194
  # A token to retrieve next page of results.
181
195
  # Pass this value in the
182
196
  # ListJobsRequest.page_token
@@ -186,14 +200,19 @@ module Google
186
200
  # @return [String]
187
201
  attr_accessor :next_page_token
188
202
 
203
+ # The list of jobs.
204
+ # Corresponds to the JSON property `jobs`
205
+ # @return [Array<Google::Apis::YoutubereportingV1::Job>]
206
+ attr_accessor :jobs
207
+
189
208
  def initialize(**args)
190
209
  update!(**args)
191
210
  end
192
211
 
193
212
  # Update properties of this object
194
213
  def update!(**args)
195
- @jobs = args[:jobs] if args.key?(:jobs)
196
214
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
215
+ @jobs = args[:jobs] if args.key?(:jobs)
197
216
  end
198
217
  end
199
218
 
@@ -206,28 +225,23 @@ module Google
206
225
  # @return [String]
207
226
  attr_accessor :create_time
208
227
 
209
- # The type of reports this job creates. Corresponds to the ID of a
210
- # ReportType.
211
- # Corresponds to the JSON property `reportTypeId`
212
- # @return [String]
213
- attr_accessor :report_type_id
214
-
215
228
  # The date/time when this job will expire/expired. After a job expired, no
216
229
  # new reports are generated.
217
230
  # Corresponds to the JSON property `expireTime`
218
231
  # @return [String]
219
232
  attr_accessor :expire_time
220
233
 
234
+ # The type of reports this job creates. Corresponds to the ID of a
235
+ # ReportType.
236
+ # Corresponds to the JSON property `reportTypeId`
237
+ # @return [String]
238
+ attr_accessor :report_type_id
239
+
221
240
  # The name of the job (max. 100 characters).
222
241
  # Corresponds to the JSON property `name`
223
242
  # @return [String]
224
243
  attr_accessor :name
225
244
 
226
- # The server-generated ID of the job (max. 40 characters).
227
- # Corresponds to the JSON property `id`
228
- # @return [String]
229
- attr_accessor :id
230
-
231
245
  # True if this a system-managed job that cannot be modified by the user;
232
246
  # otherwise false.
233
247
  # Corresponds to the JSON property `systemManaged`
@@ -235,6 +249,11 @@ module Google
235
249
  attr_accessor :system_managed
236
250
  alias_method :system_managed?, :system_managed
237
251
 
252
+ # The server-generated ID of the job (max. 40 characters).
253
+ # Corresponds to the JSON property `id`
254
+ # @return [String]
255
+ attr_accessor :id
256
+
238
257
  def initialize(**args)
239
258
  update!(**args)
240
259
  end
@@ -242,11 +261,11 @@ module Google
242
261
  # Update properties of this object
243
262
  def update!(**args)
244
263
  @create_time = args[:create_time] if args.key?(:create_time)
245
- @report_type_id = args[:report_type_id] if args.key?(:report_type_id)
246
264
  @expire_time = args[:expire_time] if args.key?(:expire_time)
265
+ @report_type_id = args[:report_type_id] if args.key?(:report_type_id)
247
266
  @name = args[:name] if args.key?(:name)
248
- @id = args[:id] if args.key?(:id)
249
267
  @system_managed = args[:system_managed] if args.key?(:system_managed)
268
+ @id = args[:id] if args.key?(:id)
250
269
  end
251
270
  end
252
271
 
@@ -254,6 +273,11 @@ module Google
254
273
  class ListReportsResponse
255
274
  include Google::Apis::Core::Hashable
256
275
 
276
+ # The list of report types.
277
+ # Corresponds to the JSON property `reports`
278
+ # @return [Array<Google::Apis::YoutubereportingV1::Report>]
279
+ attr_accessor :reports
280
+
257
281
  # A token to retrieve next page of results.
258
282
  # Pass this value in the
259
283
  # ListReportsRequest.page_token
@@ -263,38 +287,14 @@ module Google
263
287
  # @return [String]
264
288
  attr_accessor :next_page_token
265
289
 
266
- # The list of report types.
267
- # Corresponds to the JSON property `reports`
268
- # @return [Array<Google::Apis::YoutubereportingV1::Report>]
269
- attr_accessor :reports
270
-
271
290
  def initialize(**args)
272
291
  update!(**args)
273
292
  end
274
293
 
275
294
  # Update properties of this object
276
295
  def update!(**args)
277
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
278
296
  @reports = args[:reports] if args.key?(:reports)
279
- end
280
- 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)
297
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
298
298
  end
299
299
  end
300
300
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Apis
23
23
  module YoutubereportingV1
24
24
 
25
- class Empty
25
+ class Media
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
@@ -34,7 +34,7 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class ReportType
37
+ class Empty
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
@@ -46,56 +46,53 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class ListJobsResponse
49
+ class ReportType
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 Empty
73
+ class Media
74
74
  # @private
75
75
  class Representation < Google::Apis::Core::JsonRepresentation
76
+ property :resource_name, as: 'resourceName'
76
77
  end
77
78
  end
78
79
 
79
80
  class Report
80
81
  # @private
81
82
  class Representation < Google::Apis::Core::JsonRepresentation
82
- property :create_time, as: 'createTime'
83
- property :job_id, as: 'jobId'
84
83
  property :id, as: 'id'
85
84
  property :job_expire_time, as: 'jobExpireTime'
86
85
  property :end_time, as: 'endTime'
87
86
  property :download_url, as: 'downloadUrl'
88
87
  property :start_time, as: 'startTime'
88
+ property :create_time, as: 'createTime'
89
+ property :job_id, as: 'jobId'
89
90
  end
90
91
  end
91
92
 
92
- class ReportType
93
+ class Empty
93
94
  # @private
94
95
  class Representation < Google::Apis::Core::JsonRepresentation
95
- property :id, as: 'id'
96
- property :system_managed, as: 'systemManaged'
97
- property :deprecate_time, as: 'deprecateTime'
98
- property :name, as: 'name'
99
96
  end
100
97
  end
101
98
 
@@ -108,12 +105,22 @@ module Google
108
105
  end
109
106
  end
110
107
 
108
+ class ReportType
109
+ # @private
110
+ class Representation < Google::Apis::Core::JsonRepresentation
111
+ property :deprecate_time, as: 'deprecateTime'
112
+ property :name, as: 'name'
113
+ property :id, as: 'id'
114
+ property :system_managed, as: 'systemManaged'
115
+ end
116
+ end
117
+
111
118
  class ListJobsResponse
112
119
  # @private
113
120
  class Representation < Google::Apis::Core::JsonRepresentation
121
+ property :next_page_token, as: 'nextPageToken'
114
122
  collection :jobs, as: 'jobs', class: Google::Apis::YoutubereportingV1::Job, decorator: Google::Apis::YoutubereportingV1::Job::Representation
115
123
 
116
- property :next_page_token, as: 'nextPageToken'
117
124
  end
118
125
  end
119
126
 
@@ -121,27 +128,20 @@ module Google
121
128
  # @private
122
129
  class Representation < Google::Apis::Core::JsonRepresentation
123
130
  property :create_time, as: 'createTime'
124
- property :report_type_id, as: 'reportTypeId'
125
131
  property :expire_time, as: 'expireTime'
132
+ property :report_type_id, as: 'reportTypeId'
126
133
  property :name, as: 'name'
127
- property :id, as: 'id'
128
134
  property :system_managed, as: 'systemManaged'
135
+ property :id, as: 'id'
129
136
  end
130
137
  end
131
138
 
132
139
  class ListReportsResponse
133
140
  # @private
134
141
  class Representation < Google::Apis::Core::JsonRepresentation
135
- property :next_page_token, as: 'nextPageToken'
136
142
  collection :reports, as: 'reports', class: Google::Apis::YoutubereportingV1::Report, decorator: Google::Apis::YoutubereportingV1::Report::Representation
137
143
 
138
- end
139
- end
140
-
141
- class Media
142
- # @private
143
- class Representation < Google::Apis::Core::JsonRepresentation
144
- property :resource_name, as: 'resourceName'
144
+ property :next_page_token, as: 'nextPageToken'
145
145
  end
146
146
  end
147
147
  end