google-api-client 0.9.20 → 0.9.21

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