google-api-client 0.9.25 → 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +279 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +110 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +25 -25
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +145 -145
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/calendar_v3.rb +1 -1
  11. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  12. data/generated/google/apis/cloudbuild_v1/classes.rb +419 -419
  13. data/generated/google/apis/cloudbuild_v1/representations.rb +73 -73
  14. data/generated/google/apis/cloudbuild_v1/service.rb +86 -86
  15. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  16. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  17. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  18. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  19. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  20. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +478 -478
  21. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +96 -96
  22. data/generated/google/apis/cloudresourcemanager_v1/service.rb +271 -271
  23. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  24. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +353 -353
  25. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +81 -81
  26. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +299 -299
  27. data/generated/google/apis/container_v1.rb +1 -1
  28. data/generated/google/apis/container_v1/classes.rb +287 -16
  29. data/generated/google/apis/container_v1/representations.rb +113 -2
  30. data/generated/google/apis/container_v1/service.rb +130 -0
  31. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  32. data/generated/google/apis/drive_v2.rb +1 -1
  33. data/generated/google/apis/drive_v3.rb +1 -1
  34. data/generated/google/apis/genomics_v1.rb +8 -8
  35. data/generated/google/apis/genomics_v1/classes.rb +2259 -2257
  36. data/generated/google/apis/genomics_v1/representations.rb +461 -526
  37. data/generated/google/apis/genomics_v1/service.rb +1203 -1105
  38. data/generated/google/apis/gmail_v1.rb +1 -1
  39. data/generated/google/apis/logging_v2beta1.rb +1 -1
  40. data/generated/google/apis/logging_v2beta1/classes.rb +852 -852
  41. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  42. data/generated/google/apis/logging_v2beta1/service.rb +230 -230
  43. data/generated/google/apis/manufacturers_v1.rb +34 -0
  44. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  45. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  46. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  47. data/generated/google/apis/monitoring_v3.rb +7 -7
  48. data/generated/google/apis/monitoring_v3/classes.rb +744 -744
  49. data/generated/google/apis/monitoring_v3/representations.rb +164 -164
  50. data/generated/google/apis/monitoring_v3/service.rb +335 -335
  51. data/generated/google/apis/plus_domains_v1.rb +1 -1
  52. data/generated/google/apis/plus_v1.rb +1 -1
  53. data/generated/google/apis/pubsub_v1.rb +3 -3
  54. data/generated/google/apis/pubsub_v1/classes.rb +325 -325
  55. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  56. data/generated/google/apis/pubsub_v1/service.rb +256 -256
  57. data/generated/google/apis/sheets_v4.rb +3 -3
  58. data/generated/google/apis/sheets_v4/classes.rb +4283 -4283
  59. data/generated/google/apis/sheets_v4/representations.rb +833 -833
  60. data/generated/google/apis/sheets_v4/service.rb +184 -184
  61. data/generated/google/apis/speech_v1beta1.rb +1 -1
  62. data/generated/google/apis/speech_v1beta1/classes.rb +213 -211
  63. data/generated/google/apis/speech_v1beta1/representations.rb +49 -49
  64. data/generated/google/apis/speech_v1beta1/service.rb +71 -71
  65. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  66. data/generated/google/apis/sqladmin_v1beta4/classes.rb +20 -0
  67. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  68. data/generated/google/apis/vision_v1.rb +1 -1
  69. data/generated/google/apis/vision_v1/classes.rb +861 -859
  70. data/generated/google/apis/vision_v1/representations.rb +140 -140
  71. data/generated/google/apis/vision_v1/service.rb +4 -4
  72. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  73. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  74. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  75. data/generated/google/apis/youtubereporting_v1/classes.rb +139 -139
  76. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  77. data/generated/google/apis/youtubereporting_v1/service.rb +152 -152
  78. data/lib/google/apis/version.rb +1 -1
  79. metadata +9 -1
@@ -22,37 +22,37 @@ module Google
22
22
  module Apis
23
23
  module YoutubereportingV1
24
24
 
25
- class Report
25
+ class ListReportTypesResponse
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class ListJobsResponse
31
+ class Empty
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class Media
37
+ class ReportType
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Job
43
+ class Report
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class Empty
49
+ class ListJobsResponse
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 ReportType
55
+ class Job
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
@@ -64,84 +64,84 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class ListReportTypesResponse
67
+ class Media
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 ListReportTypesResponse
74
74
  # @private
75
75
  class Representation < Google::Apis::Core::JsonRepresentation
76
- property :id, as: 'id'
77
- property :download_url, as: 'downloadUrl'
78
- property :end_time, as: 'endTime'
79
- property :create_time, as: 'createTime'
80
- property :start_time, as: 'startTime'
81
- property :job_expire_time, as: 'jobExpireTime'
82
- property :job_id, as: 'jobId'
76
+ collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation
77
+
78
+ property :next_page_token, as: 'nextPageToken'
83
79
  end
84
80
  end
85
81
 
86
- class ListJobsResponse
82
+ class Empty
87
83
  # @private
88
84
  class Representation < Google::Apis::Core::JsonRepresentation
89
- property :next_page_token, as: 'nextPageToken'
90
- collection :jobs, as: 'jobs', class: Google::Apis::YoutubereportingV1::Job, decorator: Google::Apis::YoutubereportingV1::Job::Representation
91
-
92
85
  end
93
86
  end
94
87
 
95
- class Media
88
+ class ReportType
96
89
  # @private
97
90
  class Representation < Google::Apis::Core::JsonRepresentation
98
- property :resource_name, as: 'resourceName'
91
+ property :id, as: 'id'
92
+ property :system_managed, as: 'systemManaged'
93
+ property :deprecate_time, as: 'deprecateTime'
94
+ property :name, as: 'name'
99
95
  end
100
96
  end
101
97
 
102
- class Job
98
+ class Report
103
99
  # @private
104
100
  class Representation < Google::Apis::Core::JsonRepresentation
105
- property :id, as: 'id'
101
+ property :start_time, as: 'startTime'
106
102
  property :create_time, as: 'createTime'
107
- property :system_managed, as: 'systemManaged'
108
- property :expire_time, as: 'expireTime'
109
- property :name, as: 'name'
110
- property :report_type_id, as: 'reportTypeId'
103
+ property :job_id, as: 'jobId'
104
+ property :id, as: 'id'
105
+ property :end_time, as: 'endTime'
106
+ property :job_expire_time, as: 'jobExpireTime'
107
+ property :download_url, as: 'downloadUrl'
111
108
  end
112
109
  end
113
110
 
114
- class Empty
111
+ class ListJobsResponse
115
112
  # @private
116
113
  class Representation < Google::Apis::Core::JsonRepresentation
114
+ collection :jobs, as: 'jobs', class: Google::Apis::YoutubereportingV1::Job, decorator: Google::Apis::YoutubereportingV1::Job::Representation
115
+
116
+ property :next_page_token, as: 'nextPageToken'
117
117
  end
118
118
  end
119
119
 
120
- class ReportType
120
+ class Job
121
121
  # @private
122
122
  class Representation < Google::Apis::Core::JsonRepresentation
123
+ property :create_time, as: 'createTime'
124
+ property :expire_time, as: 'expireTime'
125
+ property :report_type_id, as: 'reportTypeId'
126
+ property :name, as: 'name'
123
127
  property :system_managed, as: 'systemManaged'
124
- property :deprecate_time, as: 'deprecateTime'
125
128
  property :id, as: 'id'
126
- property :name, as: 'name'
127
129
  end
128
130
  end
129
131
 
130
132
  class ListReportsResponse
131
133
  # @private
132
134
  class Representation < Google::Apis::Core::JsonRepresentation
133
- property :next_page_token, as: 'nextPageToken'
134
135
  collection :reports, as: 'reports', class: Google::Apis::YoutubereportingV1::Report, decorator: Google::Apis::YoutubereportingV1::Report::Representation
135
136
 
137
+ property :next_page_token, as: 'nextPageToken'
136
138
  end
137
139
  end
138
140
 
139
- class ListReportTypesResponse
141
+ class Media
140
142
  # @private
141
143
  class Representation < Google::Apis::Core::JsonRepresentation
142
- collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation
143
-
144
- property :next_page_token, as: 'nextPageToken'
144
+ property :resource_name, as: 'resourceName'
145
145
  end
146
146
  end
147
147
  end
@@ -47,122 +47,117 @@ module Google
47
47
  super('https://youtubereporting.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Lists report types.
51
- # @param [Fixnum] page_size
52
- # Requested page size. Server may return fewer report types than requested.
53
- # If unspecified, server will pick an appropriate default.
54
- # @param [Boolean] include_system_managed
55
- # If set to true, also system-managed report types will be returned;
56
- # otherwise only the report types that can be used to create new reporting
57
- # jobs will be returned.
50
+ # Creates a job and returns it.
51
+ # @param [Google::Apis::YoutubereportingV1::Job] job_object
58
52
  # @param [String] on_behalf_of_content_owner
59
53
  # The content owner's external ID on which behalf the user is acting on. If
60
54
  # not set, the user is acting for himself (his own channel).
61
- # @param [String] page_token
62
- # A token identifying a page of results the server should return. Typically,
63
- # this is the value of
64
- # ListReportTypesResponse.next_page_token
65
- # returned in response to the previous call to the `ListReportTypes` method.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
66
57
  # @param [String] quota_user
67
58
  # Available to use for quota purposes for server-side applications. Can be any
68
59
  # arbitrary string assigned to a user, but should not exceed 40 characters.
69
- # @param [String] fields
70
- # Selector specifying which fields to include in a partial response.
71
60
  # @param [Google::Apis::RequestOptions] options
72
61
  # Request-specific options
73
62
  #
74
63
  # @yield [result, err] Result & error if block supplied
75
- # @yieldparam result [Google::Apis::YoutubereportingV1::ListReportTypesResponse] parsed result object
64
+ # @yieldparam result [Google::Apis::YoutubereportingV1::Job] parsed result object
76
65
  # @yieldparam err [StandardError] error object if request failed
77
66
  #
78
- # @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse]
67
+ # @return [Google::Apis::YoutubereportingV1::Job]
79
68
  #
80
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
81
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
83
- def list_report_types(page_size: nil, include_system_managed: nil, on_behalf_of_content_owner: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
84
- command = make_simple_command(:get, 'v1/reportTypes', options)
85
- command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
86
- command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
87
- command.query['pageSize'] = page_size unless page_size.nil?
88
- command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
72
+ def create_job(job_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1/jobs', options)
74
+ command.request_representation = Google::Apis::YoutubereportingV1::Job::Representation
75
+ command.request_object = job_object
76
+ command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
77
+ command.response_class = Google::Apis::YoutubereportingV1::Job
89
78
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
90
- command.query['pageToken'] = page_token unless page_token.nil?
91
- command.query['quotaUser'] = quota_user unless quota_user.nil?
92
79
  command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
93
81
  execute_or_queue_command(command, &block)
94
82
  end
95
83
 
96
- # Method for media download. Download is supported
97
- # on the URI `/v1/media/`+name`?alt=media`.
98
- # @param [String] resource_name
99
- # Name of the media that is being downloaded. See
100
- # ReadRequest.resource_name.
84
+ # Deletes a job.
85
+ # @param [String] job_id
86
+ # The ID of the job to delete.
87
+ # @param [String] on_behalf_of_content_owner
88
+ # The content owner's external ID on which behalf the user is acting on. If
89
+ # not set, the user is acting for himself (his own channel).
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
101
92
  # @param [String] quota_user
102
93
  # Available to use for quota purposes for server-side applications. Can be any
103
94
  # arbitrary string assigned to a user, but should not exceed 40 characters.
104
- # @param [String] fields
105
- # Selector specifying which fields to include in a partial response.
106
- # @param [IO, String] download_dest
107
- # IO stream or filename to receive content download
108
95
  # @param [Google::Apis::RequestOptions] options
109
96
  # Request-specific options
110
97
  #
111
98
  # @yield [result, err] Result & error if block supplied
112
- # @yieldparam result [Google::Apis::YoutubereportingV1::Media] parsed result object
99
+ # @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
113
100
  # @yieldparam err [StandardError] error object if request failed
114
101
  #
115
- # @return [Google::Apis::YoutubereportingV1::Media]
102
+ # @return [Google::Apis::YoutubereportingV1::Empty]
116
103
  #
117
104
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
105
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
106
  # @raise [Google::Apis::AuthorizationError] Authorization is required
120
- def download_medium(resource_name, quota_user: nil, fields: nil, download_dest: nil, options: nil, &block)
121
- if download_dest.nil?
122
- command = make_simple_command(:get, 'v1/media/{+resourceName}', options)
123
- else
124
- command = make_download_command(:get, 'v1/media/{+resourceName}', options)
125
- command.download_dest = download_dest
126
- end
127
- command.response_representation = Google::Apis::YoutubereportingV1::Media::Representation
128
- command.response_class = Google::Apis::YoutubereportingV1::Media
129
- command.params['resourceName'] = resource_name unless resource_name.nil?
130
- command.query['quotaUser'] = quota_user unless quota_user.nil?
107
+ def delete_job(job_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:delete, 'v1/jobs/{jobId}', options)
109
+ command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
110
+ command.response_class = Google::Apis::YoutubereportingV1::Empty
111
+ command.params['jobId'] = job_id unless job_id.nil?
112
+ command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
131
113
  command.query['fields'] = fields unless fields.nil?
114
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
132
115
  execute_or_queue_command(command, &block)
133
116
  end
134
117
 
135
- # Creates a job and returns it.
136
- # @param [Google::Apis::YoutubereportingV1::Job] job_object
118
+ # Lists jobs.
119
+ # @param [String] page_token
120
+ # A token identifying a page of results the server should return. Typically,
121
+ # this is the value of
122
+ # ListReportTypesResponse.next_page_token
123
+ # returned in response to the previous call to the `ListJobs` method.
124
+ # @param [Boolean] include_system_managed
125
+ # If set to true, also system-managed jobs will be returned; otherwise only
126
+ # user-created jobs will be returned. System-managed jobs can neither be
127
+ # modified nor deleted.
128
+ # @param [Fixnum] page_size
129
+ # Requested page size. Server may return fewer jobs than requested.
130
+ # If unspecified, server will pick an appropriate default.
137
131
  # @param [String] on_behalf_of_content_owner
138
132
  # The content owner's external ID on which behalf the user is acting on. If
139
133
  # not set, the user is acting for himself (his own channel).
134
+ # @param [String] fields
135
+ # Selector specifying which fields to include in a partial response.
140
136
  # @param [String] quota_user
141
137
  # Available to use for quota purposes for server-side applications. Can be any
142
138
  # arbitrary string assigned to a user, but should not exceed 40 characters.
143
- # @param [String] fields
144
- # Selector specifying which fields to include in a partial response.
145
139
  # @param [Google::Apis::RequestOptions] options
146
140
  # Request-specific options
147
141
  #
148
142
  # @yield [result, err] Result & error if block supplied
149
- # @yieldparam result [Google::Apis::YoutubereportingV1::Job] parsed result object
143
+ # @yieldparam result [Google::Apis::YoutubereportingV1::ListJobsResponse] parsed result object
150
144
  # @yieldparam err [StandardError] error object if request failed
151
145
  #
152
- # @return [Google::Apis::YoutubereportingV1::Job]
146
+ # @return [Google::Apis::YoutubereportingV1::ListJobsResponse]
153
147
  #
154
148
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
155
149
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
150
  # @raise [Google::Apis::AuthorizationError] Authorization is required
157
- def create_job(job_object = nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
158
- command = make_simple_command(:post, 'v1/jobs', options)
159
- command.request_representation = Google::Apis::YoutubereportingV1::Job::Representation
160
- command.request_object = job_object
161
- command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
162
- command.response_class = Google::Apis::YoutubereportingV1::Job
151
+ def list_jobs(page_token: nil, include_system_managed: nil, page_size: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
152
+ command = make_simple_command(:get, 'v1/jobs', options)
153
+ command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
154
+ command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
155
+ command.query['pageToken'] = page_token unless page_token.nil?
156
+ command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
157
+ command.query['pageSize'] = page_size unless page_size.nil?
163
158
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
164
- command.query['quotaUser'] = quota_user unless quota_user.nil?
165
159
  command.query['fields'] = fields unless fields.nil?
160
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
166
161
  execute_or_queue_command(command, &block)
167
162
  end
168
163
 
@@ -172,11 +167,11 @@ module Google
172
167
  # @param [String] on_behalf_of_content_owner
173
168
  # The content owner's external ID on which behalf the user is acting on. If
174
169
  # not set, the user is acting for himself (his own channel).
170
+ # @param [String] fields
171
+ # Selector specifying which fields to include in a partial response.
175
172
  # @param [String] quota_user
176
173
  # Available to use for quota purposes for server-side applications. Can be any
177
174
  # arbitrary string assigned to a user, but should not exceed 40 characters.
178
- # @param [String] fields
179
- # Selector specifying which fields to include in a partial response.
180
175
  # @param [Google::Apis::RequestOptions] options
181
176
  # Request-specific options
182
177
  #
@@ -189,94 +184,70 @@ module Google
189
184
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
185
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
186
  # @raise [Google::Apis::AuthorizationError] Authorization is required
192
- def get_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
187
+ def get_job(job_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
193
188
  command = make_simple_command(:get, 'v1/jobs/{jobId}', options)
194
189
  command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
195
190
  command.response_class = Google::Apis::YoutubereportingV1::Job
196
191
  command.params['jobId'] = job_id unless job_id.nil?
197
192
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
198
- command.query['quotaUser'] = quota_user unless quota_user.nil?
199
193
  command.query['fields'] = fields unless fields.nil?
194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
200
195
  execute_or_queue_command(command, &block)
201
196
  end
202
197
 
203
- # Lists jobs.
198
+ # Lists reports created by a specific job.
199
+ # Returns NOT_FOUND if the job does not exist.
200
+ # @param [String] job_id
201
+ # The ID of the job.
202
+ # @param [String] created_after
203
+ # If set, only reports created after the specified date/time are returned.
204
+ # @param [String] start_time_at_or_after
205
+ # If set, only reports whose start time is greater than or equal the
206
+ # specified date/time are returned.
207
+ # @param [String] page_token
208
+ # A token identifying a page of results the server should return. Typically,
209
+ # this is the value of
210
+ # ListReportsResponse.next_page_token
211
+ # returned in response to the previous call to the `ListReports` method.
204
212
  # @param [Fixnum] page_size
205
- # Requested page size. Server may return fewer jobs than requested.
213
+ # Requested page size. Server may return fewer report types than requested.
206
214
  # If unspecified, server will pick an appropriate default.
207
- # @param [Boolean] include_system_managed
208
- # If set to true, also system-managed jobs will be returned; otherwise only
209
- # user-created jobs will be returned. System-managed jobs can neither be
210
- # modified nor deleted.
211
215
  # @param [String] on_behalf_of_content_owner
212
216
  # The content owner's external ID on which behalf the user is acting on. If
213
217
  # not set, the user is acting for himself (his own channel).
214
- # @param [String] page_token
215
- # A token identifying a page of results the server should return. Typically,
216
- # this is the value of
217
- # ListReportTypesResponse.next_page_token
218
- # returned in response to the previous call to the `ListJobs` method.
219
- # @param [String] quota_user
220
- # Available to use for quota purposes for server-side applications. Can be any
221
- # arbitrary string assigned to a user, but should not exceed 40 characters.
218
+ # @param [String] start_time_before
219
+ # If set, only reports whose start time is smaller than the specified
220
+ # date/time are returned.
222
221
  # @param [String] fields
223
222
  # Selector specifying which fields to include in a partial response.
224
- # @param [Google::Apis::RequestOptions] options
225
- # Request-specific options
226
- #
227
- # @yield [result, err] Result & error if block supplied
228
- # @yieldparam result [Google::Apis::YoutubereportingV1::ListJobsResponse] parsed result object
229
- # @yieldparam err [StandardError] error object if request failed
230
- #
231
- # @return [Google::Apis::YoutubereportingV1::ListJobsResponse]
232
- #
233
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235
- # @raise [Google::Apis::AuthorizationError] Authorization is required
236
- def list_jobs(page_size: nil, include_system_managed: nil, on_behalf_of_content_owner: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
237
- command = make_simple_command(:get, 'v1/jobs', options)
238
- command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
239
- command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
240
- command.query['pageSize'] = page_size unless page_size.nil?
241
- command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
242
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
243
- command.query['pageToken'] = page_token unless page_token.nil?
244
- command.query['quotaUser'] = quota_user unless quota_user.nil?
245
- command.query['fields'] = fields unless fields.nil?
246
- execute_or_queue_command(command, &block)
247
- end
248
-
249
- # Deletes a job.
250
- # @param [String] job_id
251
- # The ID of the job to delete.
252
- # @param [String] on_behalf_of_content_owner
253
- # The content owner's external ID on which behalf the user is acting on. If
254
- # not set, the user is acting for himself (his own channel).
255
223
  # @param [String] quota_user
256
224
  # Available to use for quota purposes for server-side applications. Can be any
257
225
  # arbitrary string assigned to a user, but should not exceed 40 characters.
258
- # @param [String] fields
259
- # Selector specifying which fields to include in a partial response.
260
226
  # @param [Google::Apis::RequestOptions] options
261
227
  # Request-specific options
262
228
  #
263
229
  # @yield [result, err] Result & error if block supplied
264
- # @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
230
+ # @yieldparam result [Google::Apis::YoutubereportingV1::ListReportsResponse] parsed result object
265
231
  # @yieldparam err [StandardError] error object if request failed
266
232
  #
267
- # @return [Google::Apis::YoutubereportingV1::Empty]
233
+ # @return [Google::Apis::YoutubereportingV1::ListReportsResponse]
268
234
  #
269
235
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
270
236
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
271
237
  # @raise [Google::Apis::AuthorizationError] Authorization is required
272
- def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
273
- command = make_simple_command(:delete, 'v1/jobs/{jobId}', options)
274
- command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
275
- command.response_class = Google::Apis::YoutubereportingV1::Empty
238
+ def list_job_reports(job_id, created_after: nil, start_time_at_or_after: nil, page_token: nil, page_size: nil, on_behalf_of_content_owner: nil, start_time_before: nil, fields: nil, quota_user: nil, options: nil, &block)
239
+ command = make_simple_command(:get, 'v1/jobs/{jobId}/reports', options)
240
+ command.response_representation = Google::Apis::YoutubereportingV1::ListReportsResponse::Representation
241
+ command.response_class = Google::Apis::YoutubereportingV1::ListReportsResponse
276
242
  command.params['jobId'] = job_id unless job_id.nil?
243
+ command.query['createdAfter'] = created_after unless created_after.nil?
244
+ command.query['startTimeAtOrAfter'] = start_time_at_or_after unless start_time_at_or_after.nil?
245
+ command.query['pageToken'] = page_token unless page_token.nil?
246
+ command.query['pageSize'] = page_size unless page_size.nil?
277
247
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
278
- command.query['quotaUser'] = quota_user unless quota_user.nil?
248
+ command.query['startTimeBefore'] = start_time_before unless start_time_before.nil?
279
249
  command.query['fields'] = fields unless fields.nil?
250
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
251
  execute_or_queue_command(command, &block)
281
252
  end
282
253
 
@@ -288,11 +259,11 @@ module Google
288
259
  # @param [String] on_behalf_of_content_owner
289
260
  # The content owner's external ID on which behalf the user is acting on. If
290
261
  # not set, the user is acting for himself (his own channel).
262
+ # @param [String] fields
263
+ # Selector specifying which fields to include in a partial response.
291
264
  # @param [String] quota_user
292
265
  # Available to use for quota purposes for server-side applications. Can be any
293
266
  # arbitrary string assigned to a user, but should not exceed 40 characters.
294
- # @param [String] fields
295
- # Selector specifying which fields to include in a partial response.
296
267
  # @param [Google::Apis::RequestOptions] options
297
268
  # Request-specific options
298
269
  #
@@ -305,71 +276,100 @@ module Google
305
276
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
306
277
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
307
278
  # @raise [Google::Apis::AuthorizationError] Authorization is required
308
- def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
279
+ def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
309
280
  command = make_simple_command(:get, 'v1/jobs/{jobId}/reports/{reportId}', options)
310
281
  command.response_representation = Google::Apis::YoutubereportingV1::Report::Representation
311
282
  command.response_class = Google::Apis::YoutubereportingV1::Report
312
283
  command.params['jobId'] = job_id unless job_id.nil?
313
284
  command.params['reportId'] = report_id unless report_id.nil?
314
285
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
315
- command.query['quotaUser'] = quota_user unless quota_user.nil?
316
286
  command.query['fields'] = fields unless fields.nil?
287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
317
288
  execute_or_queue_command(command, &block)
318
289
  end
319
290
 
320
- # Lists reports created by a specific job.
321
- # Returns NOT_FOUND if the job does not exist.
322
- # @param [String] job_id
323
- # The ID of the job.
291
+ # Lists report types.
324
292
  # @param [String] on_behalf_of_content_owner
325
293
  # The content owner's external ID on which behalf the user is acting on. If
326
294
  # not set, the user is acting for himself (his own channel).
327
- # @param [String] start_time_at_or_after
328
- # If set, only reports whose start time is greater than or equal the
329
- # specified date/time are returned.
330
- # @param [String] start_time_before
331
- # If set, only reports whose start time is smaller than the specified
332
- # date/time are returned.
333
- # @param [Fixnum] page_size
334
- # Requested page size. Server may return fewer report types than requested.
335
- # If unspecified, server will pick an appropriate default.
336
- # @param [String] created_after
337
- # If set, only reports created after the specified date/time are returned.
338
295
  # @param [String] page_token
339
296
  # A token identifying a page of results the server should return. Typically,
340
297
  # this is the value of
341
- # ListReportsResponse.next_page_token
342
- # returned in response to the previous call to the `ListReports` method.
298
+ # ListReportTypesResponse.next_page_token
299
+ # returned in response to the previous call to the `ListReportTypes` method.
300
+ # @param [Boolean] include_system_managed
301
+ # If set to true, also system-managed report types will be returned;
302
+ # otherwise only the report types that can be used to create new reporting
303
+ # jobs will be returned.
304
+ # @param [Fixnum] page_size
305
+ # Requested page size. Server may return fewer report types than requested.
306
+ # If unspecified, server will pick an appropriate default.
307
+ # @param [String] fields
308
+ # Selector specifying which fields to include in a partial response.
343
309
  # @param [String] quota_user
344
310
  # Available to use for quota purposes for server-side applications. Can be any
345
311
  # arbitrary string assigned to a user, but should not exceed 40 characters.
346
- # @param [String] fields
347
- # Selector specifying which fields to include in a partial response.
348
312
  # @param [Google::Apis::RequestOptions] options
349
313
  # Request-specific options
350
314
  #
351
315
  # @yield [result, err] Result & error if block supplied
352
- # @yieldparam result [Google::Apis::YoutubereportingV1::ListReportsResponse] parsed result object
316
+ # @yieldparam result [Google::Apis::YoutubereportingV1::ListReportTypesResponse] parsed result object
353
317
  # @yieldparam err [StandardError] error object if request failed
354
318
  #
355
- # @return [Google::Apis::YoutubereportingV1::ListReportsResponse]
319
+ # @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse]
356
320
  #
357
321
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
358
322
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
359
323
  # @raise [Google::Apis::AuthorizationError] Authorization is required
360
- def list_job_reports(job_id, on_behalf_of_content_owner: nil, start_time_at_or_after: nil, start_time_before: nil, page_size: nil, created_after: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
361
- command = make_simple_command(:get, 'v1/jobs/{jobId}/reports', options)
362
- command.response_representation = Google::Apis::YoutubereportingV1::ListReportsResponse::Representation
363
- command.response_class = Google::Apis::YoutubereportingV1::ListReportsResponse
364
- command.params['jobId'] = job_id unless job_id.nil?
324
+ def list_report_types(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
325
+ command = make_simple_command(:get, 'v1/reportTypes', options)
326
+ command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
327
+ command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
365
328
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
366
- command.query['startTimeAtOrAfter'] = start_time_at_or_after unless start_time_at_or_after.nil?
367
- command.query['startTimeBefore'] = start_time_before unless start_time_before.nil?
368
- command.query['pageSize'] = page_size unless page_size.nil?
369
- command.query['createdAfter'] = created_after unless created_after.nil?
370
329
  command.query['pageToken'] = page_token unless page_token.nil?
330
+ command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
331
+ command.query['pageSize'] = page_size unless page_size.nil?
332
+ command.query['fields'] = fields unless fields.nil?
371
333
  command.query['quotaUser'] = quota_user unless quota_user.nil?
334
+ execute_or_queue_command(command, &block)
335
+ end
336
+
337
+ # Method for media download. Download is supported
338
+ # on the URI `/v1/media/`+name`?alt=media`.
339
+ # @param [String] resource_name
340
+ # Name of the media that is being downloaded. See
341
+ # ReadRequest.resource_name.
342
+ # @param [String] fields
343
+ # Selector specifying which fields to include in a partial response.
344
+ # @param [String] quota_user
345
+ # Available to use for quota purposes for server-side applications. Can be any
346
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
347
+ # @param [IO, String] download_dest
348
+ # IO stream or filename to receive content download
349
+ # @param [Google::Apis::RequestOptions] options
350
+ # Request-specific options
351
+ #
352
+ # @yield [result, err] Result & error if block supplied
353
+ # @yieldparam result [Google::Apis::YoutubereportingV1::Media] parsed result object
354
+ # @yieldparam err [StandardError] error object if request failed
355
+ #
356
+ # @return [Google::Apis::YoutubereportingV1::Media]
357
+ #
358
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
359
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
360
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
361
+ def download_medium(resource_name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
362
+ if download_dest.nil?
363
+ command = make_simple_command(:get, 'v1/media/{+resourceName}', options)
364
+ else
365
+ command = make_download_command(:get, 'v1/media/{+resourceName}', options)
366
+ command.download_dest = download_dest
367
+ end
368
+ command.response_representation = Google::Apis::YoutubereportingV1::Media::Representation
369
+ command.response_class = Google::Apis::YoutubereportingV1::Media
370
+ command.params['resourceName'] = resource_name unless resource_name.nil?
372
371
  command.query['fields'] = fields unless fields.nil?
372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
373
373
  execute_or_queue_command(command, &block)
374
374
  end
375
375