google-api-client 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +75 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
  9. data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
  10. data/generated/google/apis/admin_directory_v1/service.rb +71 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
  13. data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
  14. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  15. data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
  16. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  17. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
  18. data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
  19. data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
  20. data/generated/google/apis/appengine_v1.rb +1 -1
  21. data/generated/google/apis/appengine_v1/classes.rb +1 -46
  22. data/generated/google/apis/appengine_v1/representations.rb +0 -17
  23. data/generated/google/apis/appengine_v1/service.rb +5 -1
  24. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  25. data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
  26. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
  27. data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
  28. data/generated/google/apis/appengine_v1beta.rb +1 -1
  29. data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
  30. data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
  31. data/generated/google/apis/appengine_v1beta/service.rb +5 -1
  32. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
  34. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
  35. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  36. data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
  37. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +41 -24
  40. data/generated/google/apis/bigquery_v2/representations.rb +3 -0
  41. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  42. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -7
  43. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
  44. data/generated/google/apis/calendar_v3.rb +1 -1
  45. data/generated/google/apis/calendar_v3/service.rb +15 -3
  46. data/generated/google/apis/classroom_v1.rb +4 -1
  47. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
  51. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  52. data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
  53. data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
  54. data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
  55. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  56. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
  57. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
  58. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
  59. data/generated/google/apis/cloudiot_v1.rb +1 -1
  60. data/generated/google/apis/cloudiot_v1/service.rb +7 -3
  61. data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
  62. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  63. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
  64. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
  65. data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
  66. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  67. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
  68. data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
  69. data/generated/google/apis/compute_alpha.rb +1 -1
  70. data/generated/google/apis/compute_alpha/classes.rb +143 -83
  71. data/generated/google/apis/compute_alpha/representations.rb +50 -30
  72. data/generated/google/apis/compute_alpha/service.rb +171 -5
  73. data/generated/google/apis/compute_beta.rb +1 -1
  74. data/generated/google/apis/compute_beta/classes.rb +47 -43
  75. data/generated/google/apis/compute_beta/representations.rb +1 -2
  76. data/generated/google/apis/compute_beta/service.rb +60 -5
  77. data/generated/google/apis/compute_v1.rb +1 -1
  78. data/generated/google/apis/compute_v1/classes.rb +1326 -168
  79. data/generated/google/apis/compute_v1/representations.rb +402 -0
  80. data/generated/google/apis/compute_v1/service.rb +751 -5
  81. data/generated/google/apis/container_v1beta1.rb +1 -1
  82. data/generated/google/apis/content_v2.rb +1 -1
  83. data/generated/google/apis/content_v2/classes.rb +23 -16
  84. data/generated/google/apis/content_v2/service.rb +142 -162
  85. data/generated/google/apis/content_v2sandbox.rb +1 -1
  86. data/generated/google/apis/content_v2sandbox/service.rb +43 -43
  87. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  88. data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
  89. data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
  90. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  91. data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
  92. data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
  93. data/generated/google/apis/datastore_v1.rb +1 -1
  94. data/generated/google/apis/datastore_v1/classes.rb +39 -60
  95. data/generated/google/apis/datastore_v1/representations.rb +27 -0
  96. data/generated/google/apis/datastore_v1/service.rb +34 -0
  97. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  98. data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
  99. data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
  100. data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
  101. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  102. data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
  103. data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
  104. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  105. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
  106. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
  107. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  108. data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
  109. data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
  110. data/generated/google/apis/dns_v1beta2.rb +43 -0
  111. data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
  112. data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
  113. data/generated/google/apis/dns_v1beta2/service.rb +769 -0
  114. data/generated/google/apis/drive_v2.rb +1 -1
  115. data/generated/google/apis/drive_v2/classes.rb +6 -0
  116. data/generated/google/apis/drive_v2/representations.rb +2 -0
  117. data/generated/google/apis/drive_v2/service.rb +51 -8
  118. data/generated/google/apis/drive_v3.rb +1 -1
  119. data/generated/google/apis/drive_v3/classes.rb +6 -0
  120. data/generated/google/apis/drive_v3/representations.rb +2 -0
  121. data/generated/google/apis/drive_v3/service.rb +45 -7
  122. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  123. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
  124. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
  125. data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
  126. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
  127. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
  128. data/generated/google/apis/firebaserules_v1.rb +1 -1
  129. data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
  130. data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
  131. data/generated/google/apis/firebaserules_v1/service.rb +37 -0
  132. data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
  133. data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
  134. data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
  135. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  136. data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
  137. data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
  138. data/generated/google/apis/iam_v1.rb +1 -1
  139. data/generated/google/apis/iam_v1/classes.rb +5 -7
  140. data/generated/google/apis/language_v1.rb +1 -1
  141. data/generated/google/apis/language_v1/classes.rb +78 -0
  142. data/generated/google/apis/language_v1/representations.rb +45 -0
  143. data/generated/google/apis/language_v1/service.rb +30 -0
  144. data/generated/google/apis/language_v1beta2.rb +1 -1
  145. data/generated/google/apis/language_v1beta2/classes.rb +3 -1
  146. data/generated/google/apis/logging_v2.rb +1 -1
  147. data/generated/google/apis/logging_v2/classes.rb +9 -0
  148. data/generated/google/apis/logging_v2/representations.rb +1 -0
  149. data/generated/google/apis/logging_v2/service.rb +517 -0
  150. data/generated/google/apis/logging_v2beta1.rb +1 -1
  151. data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
  152. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  153. data/generated/google/apis/manufacturers_v1.rb +1 -1
  154. data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
  155. data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
  156. data/generated/google/apis/ml_v1.rb +1 -1
  157. data/generated/google/apis/ml_v1/classes.rb +22 -6
  158. data/generated/google/apis/ml_v1/service.rb +8 -2
  159. data/generated/google/apis/monitoring_v3.rb +1 -1
  160. data/generated/google/apis/monitoring_v3/classes.rb +358 -0
  161. data/generated/google/apis/monitoring_v3/representations.rb +145 -0
  162. data/generated/google/apis/monitoring_v3/service.rb +229 -0
  163. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  164. data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
  165. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  166. data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
  167. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  168. data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
  169. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  170. data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
  171. data/generated/google/apis/partners_v2.rb +1 -1
  172. data/generated/google/apis/partners_v2/classes.rb +7 -60
  173. data/generated/google/apis/partners_v2/representations.rb +1 -0
  174. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  175. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  176. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
  177. data/generated/google/apis/script_v1.rb +2 -2
  178. data/generated/google/apis/script_v1/classes.rb +57 -51
  179. data/generated/google/apis/script_v1/representations.rb +0 -1
  180. data/generated/google/apis/script_v1/service.rb +2 -2
  181. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  182. data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
  183. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  184. data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
  185. data/generated/google/apis/serviceuser_v1.rb +1 -1
  186. data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
  187. data/generated/google/apis/sheets_v4.rb +1 -1
  188. data/generated/google/apis/sheets_v4/classes.rb +1 -2
  189. data/generated/google/apis/slides_v1.rb +1 -1
  190. data/generated/google/apis/slides_v1/classes.rb +505 -11
  191. data/generated/google/apis/slides_v1/representations.rb +220 -0
  192. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  193. data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
  194. data/generated/google/apis/speech_v1.rb +1 -1
  195. data/generated/google/apis/speech_v1/classes.rb +10 -1
  196. data/generated/google/apis/speech_v1/representations.rb +1 -0
  197. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  198. data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
  199. data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
  200. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  201. data/generated/google/apis/storage_v1.rb +1 -1
  202. data/generated/google/apis/storage_v1/service.rb +51 -72
  203. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  204. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
  205. data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
  206. data/generated/google/apis/testing_v1.rb +1 -1
  207. data/generated/google/apis/testing_v1/classes.rb +8 -3
  208. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  209. data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
  210. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  211. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  212. data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
  213. data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
  214. data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
  215. data/google-api-client.gemspec +1 -1
  216. data/lib/google/apis/generator/model.rb +9 -3
  217. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  218. data/lib/google/apis/version.rb +1 -1
  219. metadata +14 -12
  220. data/generated/google/apis/playmoviespartner_v1.rb +0 -34
  221. data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
  222. data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
  223. data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
  224. data/generated/google/apis/qpx_express_v1.rb +0 -31
  225. data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
  226. data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
  227. data/generated/google/apis/qpx_express_v1/service.rb +0 -101
@@ -1,191 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module PlaymoviespartnerV1
24
-
25
- class Avail
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class ListAvailsResponse
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class ListOrdersResponse
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class ListStoreInfosResponse
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class Order
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class StoreInfo
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class Avail
62
- # @private
63
- class Representation < Google::Apis::Core::JsonRepresentation
64
- property :alt_id, as: 'altId'
65
- property :avail_id, as: 'availId'
66
- property :caption_exemption, as: 'captionExemption'
67
- property :caption_included, as: 'captionIncluded'
68
- property :content_id, as: 'contentId'
69
- property :display_name, as: 'displayName'
70
- property :encode_id, as: 'encodeId'
71
- property :end, as: 'end'
72
- property :episode_alt_id, as: 'episodeAltId'
73
- property :episode_number, as: 'episodeNumber'
74
- property :episode_title_internal_alias, as: 'episodeTitleInternalAlias'
75
- property :format_profile, as: 'formatProfile'
76
- property :license_type, as: 'licenseType'
77
- collection :pph_names, as: 'pphNames'
78
- property :price_type, as: 'priceType'
79
- property :price_value, as: 'priceValue'
80
- property :product_id, as: 'productId'
81
- property :rating_reason, as: 'ratingReason'
82
- property :rating_system, as: 'ratingSystem'
83
- property :rating_value, as: 'ratingValue'
84
- property :release_date, as: 'releaseDate'
85
- property :season_alt_id, as: 'seasonAltId'
86
- property :season_number, as: 'seasonNumber'
87
- property :season_title_internal_alias, as: 'seasonTitleInternalAlias'
88
- property :series_alt_id, as: 'seriesAltId'
89
- property :series_title_internal_alias, as: 'seriesTitleInternalAlias'
90
- property :start, as: 'start'
91
- property :store_language, as: 'storeLanguage'
92
- property :suppression_lift_date, as: 'suppressionLiftDate'
93
- property :territory, as: 'territory'
94
- property :title_internal_alias, as: 'titleInternalAlias'
95
- property :video_id, as: 'videoId'
96
- property :work_type, as: 'workType'
97
- end
98
- end
99
-
100
- class ListAvailsResponse
101
- # @private
102
- class Representation < Google::Apis::Core::JsonRepresentation
103
- collection :avails, as: 'avails', class: Google::Apis::PlaymoviespartnerV1::Avail, decorator: Google::Apis::PlaymoviespartnerV1::Avail::Representation
104
-
105
- property :next_page_token, as: 'nextPageToken'
106
- property :total_size, as: 'totalSize'
107
- end
108
- end
109
-
110
- class ListOrdersResponse
111
- # @private
112
- class Representation < Google::Apis::Core::JsonRepresentation
113
- property :next_page_token, as: 'nextPageToken'
114
- collection :orders, as: 'orders', class: Google::Apis::PlaymoviespartnerV1::Order, decorator: Google::Apis::PlaymoviespartnerV1::Order::Representation
115
-
116
- property :total_size, as: 'totalSize'
117
- end
118
- end
119
-
120
- class ListStoreInfosResponse
121
- # @private
122
- class Representation < Google::Apis::Core::JsonRepresentation
123
- property :next_page_token, as: 'nextPageToken'
124
- collection :store_infos, as: 'storeInfos', class: Google::Apis::PlaymoviespartnerV1::StoreInfo, decorator: Google::Apis::PlaymoviespartnerV1::StoreInfo::Representation
125
-
126
- property :total_size, as: 'totalSize'
127
- end
128
- end
129
-
130
- class Order
131
- # @private
132
- class Representation < Google::Apis::Core::JsonRepresentation
133
- property :approved_time, as: 'approvedTime'
134
- property :channel_id, as: 'channelId'
135
- property :channel_name, as: 'channelName'
136
- collection :countries, as: 'countries'
137
- property :custom_id, as: 'customId'
138
- property :earliest_avail_start_time, as: 'earliestAvailStartTime'
139
- property :episode_name, as: 'episodeName'
140
- property :legacy_priority, as: 'legacyPriority'
141
- property :name, as: 'name'
142
- property :normalized_priority, as: 'normalizedPriority'
143
- property :order_id, as: 'orderId'
144
- property :ordered_time, as: 'orderedTime'
145
- property :pph_name, as: 'pphName'
146
- property :priority, as: 'priority'
147
- property :received_time, as: 'receivedTime'
148
- property :rejection_note, as: 'rejectionNote'
149
- property :season_name, as: 'seasonName'
150
- property :show_name, as: 'showName'
151
- property :status, as: 'status'
152
- property :status_detail, as: 'statusDetail'
153
- property :studio_name, as: 'studioName'
154
- property :type, as: 'type'
155
- property :video_id, as: 'videoId'
156
- end
157
- end
158
-
159
- class StoreInfo
160
- # @private
161
- class Representation < Google::Apis::Core::JsonRepresentation
162
- collection :audio_tracks, as: 'audioTracks'
163
- property :country, as: 'country'
164
- property :edit_level_eidr, as: 'editLevelEidr'
165
- property :episode_number, as: 'episodeNumber'
166
- property :has_audio51, as: 'hasAudio51'
167
- property :has_est_offer, as: 'hasEstOffer'
168
- property :has_hd_offer, as: 'hasHdOffer'
169
- property :has_info_cards, as: 'hasInfoCards'
170
- property :has_sd_offer, as: 'hasSdOffer'
171
- property :has_vod_offer, as: 'hasVodOffer'
172
- property :live_time, as: 'liveTime'
173
- property :mid, as: 'mid'
174
- property :name, as: 'name'
175
- collection :pph_names, as: 'pphNames'
176
- property :season_id, as: 'seasonId'
177
- property :season_name, as: 'seasonName'
178
- property :season_number, as: 'seasonNumber'
179
- property :show_id, as: 'showId'
180
- property :show_name, as: 'showName'
181
- property :studio_name, as: 'studioName'
182
- collection :subtitles, as: 'subtitles'
183
- property :title_level_eidr, as: 'titleLevelEidr'
184
- property :trailer_id, as: 'trailerId'
185
- property :type, as: 'type'
186
- property :video_id, as: 'videoId'
187
- end
188
- end
189
- end
190
- end
191
- end
@@ -1,354 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module PlaymoviespartnerV1
23
- # Google Play Movies Partner API
24
- #
25
- # Gets the delivery status of titles for Google Play Movies Partners.
26
- #
27
- # @example
28
- # require 'google/apis/playmoviespartner_v1'
29
- #
30
- # Playmoviespartner = Google::Apis::PlaymoviespartnerV1 # Alias the module
31
- # service = Playmoviespartner::PlayMoviesService.new
32
- #
33
- # @see https://developers.google.com/playmoviespartner/
34
- class PlayMoviesService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
- # @return [String]
41
- # Available to use for quota purposes for server-side applications. Can be any
42
- # arbitrary string assigned to a user, but should not exceed 40 characters.
43
- attr_accessor :quota_user
44
-
45
- def initialize
46
- super('https://playmoviespartner.googleapis.com/', '')
47
- @batch_path = 'batch'
48
- end
49
-
50
- # Get an Avail given its avail group id and avail id.
51
- # @param [String] account_id
52
- # REQUIRED. See _General rules_ for more information about this field.
53
- # @param [String] avail_id
54
- # REQUIRED. Avail ID.
55
- # @param [String] fields
56
- # Selector specifying which fields to include in a partial response.
57
- # @param [String] quota_user
58
- # Available to use for quota purposes for server-side applications. Can be any
59
- # arbitrary string assigned to a user, but should not exceed 40 characters.
60
- # @param [Google::Apis::RequestOptions] options
61
- # Request-specific options
62
- #
63
- # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::PlaymoviespartnerV1::Avail] parsed result object
65
- # @yieldparam err [StandardError] error object if request failed
66
- #
67
- # @return [Google::Apis::PlaymoviespartnerV1::Avail]
68
- #
69
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
- # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def get_account_avail(account_id, avail_id, fields: nil, quota_user: nil, options: nil, &block)
73
- command = make_simple_command(:get, 'v1/accounts/{accountId}/avails/{availId}', options)
74
- command.response_representation = Google::Apis::PlaymoviespartnerV1::Avail::Representation
75
- command.response_class = Google::Apis::PlaymoviespartnerV1::Avail
76
- command.params['accountId'] = account_id unless account_id.nil?
77
- command.params['availId'] = avail_id unless avail_id.nil?
78
- command.query['fields'] = fields unless fields.nil?
79
- command.query['quotaUser'] = quota_user unless quota_user.nil?
80
- execute_or_queue_command(command, &block)
81
- end
82
-
83
- # List Avails owned or managed by the partner.
84
- # See _Authentication and Authorization rules_ and
85
- # _List methods rules_ for more information about this method.
86
- # @param [String] account_id
87
- # REQUIRED. See _General rules_ for more information about this field.
88
- # @param [String] alt_id
89
- # Filter Avails that match a case-insensitive, partner-specific custom id.
90
- # NOTE: this field is deprecated and will be removed on V2; `alt_ids`
91
- # should be used instead.
92
- # @param [Array<String>, String] alt_ids
93
- # Filter Avails that match (case-insensitive) any of the given partner-specific
94
- # custom ids.
95
- # @param [Fixnum] page_size
96
- # See _List methods rules_ for info about this field.
97
- # @param [String] page_token
98
- # See _List methods rules_ for info about this field.
99
- # @param [Array<String>, String] pph_names
100
- # See _List methods rules_ for info about this field.
101
- # @param [Array<String>, String] studio_names
102
- # See _List methods rules_ for info about this field.
103
- # @param [Array<String>, String] territories
104
- # Filter Avails that match (case-insensitive) any of the given country codes,
105
- # using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us").
106
- # @param [String] title
107
- # Filter that matches Avails with a `title_internal_alias`,
108
- # `series_title_internal_alias`, `season_title_internal_alias`,
109
- # or `episode_title_internal_alias` that contains the given
110
- # case-insensitive title.
111
- # @param [Array<String>, String] video_ids
112
- # Filter Avails that match any of the given `video_id`s.
113
- # @param [String] fields
114
- # Selector specifying which fields to include in a partial response.
115
- # @param [String] quota_user
116
- # Available to use for quota purposes for server-side applications. Can be any
117
- # arbitrary string assigned to a user, but should not exceed 40 characters.
118
- # @param [Google::Apis::RequestOptions] options
119
- # Request-specific options
120
- #
121
- # @yield [result, err] Result & error if block supplied
122
- # @yieldparam result [Google::Apis::PlaymoviespartnerV1::ListAvailsResponse] parsed result object
123
- # @yieldparam err [StandardError] error object if request failed
124
- #
125
- # @return [Google::Apis::PlaymoviespartnerV1::ListAvailsResponse]
126
- #
127
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
128
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
129
- # @raise [Google::Apis::AuthorizationError] Authorization is required
130
- def list_account_avails(account_id, alt_id: nil, alt_ids: nil, page_size: nil, page_token: nil, pph_names: nil, studio_names: nil, territories: nil, title: nil, video_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
131
- command = make_simple_command(:get, 'v1/accounts/{accountId}/avails', options)
132
- command.response_representation = Google::Apis::PlaymoviespartnerV1::ListAvailsResponse::Representation
133
- command.response_class = Google::Apis::PlaymoviespartnerV1::ListAvailsResponse
134
- command.params['accountId'] = account_id unless account_id.nil?
135
- command.query['altId'] = alt_id unless alt_id.nil?
136
- command.query['altIds'] = alt_ids unless alt_ids.nil?
137
- command.query['pageSize'] = page_size unless page_size.nil?
138
- command.query['pageToken'] = page_token unless page_token.nil?
139
- command.query['pphNames'] = pph_names unless pph_names.nil?
140
- command.query['studioNames'] = studio_names unless studio_names.nil?
141
- command.query['territories'] = territories unless territories.nil?
142
- command.query['title'] = title unless title.nil?
143
- command.query['videoIds'] = video_ids unless video_ids.nil?
144
- command.query['fields'] = fields unless fields.nil?
145
- command.query['quotaUser'] = quota_user unless quota_user.nil?
146
- execute_or_queue_command(command, &block)
147
- end
148
-
149
- # Get an Order given its id.
150
- # See _Authentication and Authorization rules_ and
151
- # _Get methods rules_ for more information about this method.
152
- # @param [String] account_id
153
- # REQUIRED. See _General rules_ for more information about this field.
154
- # @param [String] order_id
155
- # REQUIRED. Order ID.
156
- # @param [String] fields
157
- # Selector specifying which fields to include in a partial response.
158
- # @param [String] quota_user
159
- # Available to use for quota purposes for server-side applications. Can be any
160
- # arbitrary string assigned to a user, but should not exceed 40 characters.
161
- # @param [Google::Apis::RequestOptions] options
162
- # Request-specific options
163
- #
164
- # @yield [result, err] Result & error if block supplied
165
- # @yieldparam result [Google::Apis::PlaymoviespartnerV1::Order] parsed result object
166
- # @yieldparam err [StandardError] error object if request failed
167
- #
168
- # @return [Google::Apis::PlaymoviespartnerV1::Order]
169
- #
170
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
171
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
172
- # @raise [Google::Apis::AuthorizationError] Authorization is required
173
- def get_account_order(account_id, order_id, fields: nil, quota_user: nil, options: nil, &block)
174
- command = make_simple_command(:get, 'v1/accounts/{accountId}/orders/{orderId}', options)
175
- command.response_representation = Google::Apis::PlaymoviespartnerV1::Order::Representation
176
- command.response_class = Google::Apis::PlaymoviespartnerV1::Order
177
- command.params['accountId'] = account_id unless account_id.nil?
178
- command.params['orderId'] = order_id unless order_id.nil?
179
- command.query['fields'] = fields unless fields.nil?
180
- command.query['quotaUser'] = quota_user unless quota_user.nil?
181
- execute_or_queue_command(command, &block)
182
- end
183
-
184
- # List Orders owned or managed by the partner.
185
- # See _Authentication and Authorization rules_ and
186
- # _List methods rules_ for more information about this method.
187
- # @param [String] account_id
188
- # REQUIRED. See _General rules_ for more information about this field.
189
- # @param [String] custom_id
190
- # Filter Orders that match a case-insensitive, partner-specific custom id.
191
- # @param [String] name
192
- # Filter that matches Orders with a `name`, `show`, `season` or `episode`
193
- # that contains the given case-insensitive name.
194
- # @param [Fixnum] page_size
195
- # See _List methods rules_ for info about this field.
196
- # @param [String] page_token
197
- # See _List methods rules_ for info about this field.
198
- # @param [Array<String>, String] pph_names
199
- # See _List methods rules_ for info about this field.
200
- # @param [Array<String>, String] status
201
- # Filter Orders that match one of the given status.
202
- # @param [Array<String>, String] studio_names
203
- # See _List methods rules_ for info about this field.
204
- # @param [Array<String>, String] video_ids
205
- # Filter Orders that match any of the given `video_id`s.
206
- # @param [String] fields
207
- # Selector specifying which fields to include in a partial response.
208
- # @param [String] quota_user
209
- # Available to use for quota purposes for server-side applications. Can be any
210
- # arbitrary string assigned to a user, but should not exceed 40 characters.
211
- # @param [Google::Apis::RequestOptions] options
212
- # Request-specific options
213
- #
214
- # @yield [result, err] Result & error if block supplied
215
- # @yieldparam result [Google::Apis::PlaymoviespartnerV1::ListOrdersResponse] parsed result object
216
- # @yieldparam err [StandardError] error object if request failed
217
- #
218
- # @return [Google::Apis::PlaymoviespartnerV1::ListOrdersResponse]
219
- #
220
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
- # @raise [Google::Apis::AuthorizationError] Authorization is required
223
- def list_account_orders(account_id, custom_id: nil, name: nil, page_size: nil, page_token: nil, pph_names: nil, status: nil, studio_names: nil, video_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
224
- command = make_simple_command(:get, 'v1/accounts/{accountId}/orders', options)
225
- command.response_representation = Google::Apis::PlaymoviespartnerV1::ListOrdersResponse::Representation
226
- command.response_class = Google::Apis::PlaymoviespartnerV1::ListOrdersResponse
227
- command.params['accountId'] = account_id unless account_id.nil?
228
- command.query['customId'] = custom_id unless custom_id.nil?
229
- command.query['name'] = name unless name.nil?
230
- command.query['pageSize'] = page_size unless page_size.nil?
231
- command.query['pageToken'] = page_token unless page_token.nil?
232
- command.query['pphNames'] = pph_names unless pph_names.nil?
233
- command.query['status'] = status unless status.nil?
234
- command.query['studioNames'] = studio_names unless studio_names.nil?
235
- command.query['videoIds'] = video_ids unless video_ids.nil?
236
- command.query['fields'] = fields unless fields.nil?
237
- command.query['quotaUser'] = quota_user unless quota_user.nil?
238
- execute_or_queue_command(command, &block)
239
- end
240
-
241
- # List StoreInfos owned or managed by the partner.
242
- # See _Authentication and Authorization rules_ and
243
- # _List methods rules_ for more information about this method.
244
- # @param [String] account_id
245
- # REQUIRED. See _General rules_ for more information about this field.
246
- # @param [Array<String>, String] countries
247
- # Filter StoreInfos that match (case-insensitive) any of the given country
248
- # codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us").
249
- # @param [Array<String>, String] mids
250
- # Filter StoreInfos that match any of the given `mid`s.
251
- # @param [String] name
252
- # Filter that matches StoreInfos with a `name` or `show_name`
253
- # that contains the given case-insensitive name.
254
- # @param [Fixnum] page_size
255
- # See _List methods rules_ for info about this field.
256
- # @param [String] page_token
257
- # See _List methods rules_ for info about this field.
258
- # @param [Array<String>, String] pph_names
259
- # See _List methods rules_ for info about this field.
260
- # @param [Array<String>, String] season_ids
261
- # Filter StoreInfos that match any of the given `season_id`s.
262
- # @param [Array<String>, String] studio_names
263
- # See _List methods rules_ for info about this field.
264
- # @param [String] video_id
265
- # Filter StoreInfos that match a given `video_id`.
266
- # NOTE: this field is deprecated and will be removed on V2; `video_ids`
267
- # should be used instead.
268
- # @param [Array<String>, String] video_ids
269
- # Filter StoreInfos that match any of the given `video_id`s.
270
- # @param [String] fields
271
- # Selector specifying which fields to include in a partial response.
272
- # @param [String] quota_user
273
- # Available to use for quota purposes for server-side applications. Can be any
274
- # arbitrary string assigned to a user, but should not exceed 40 characters.
275
- # @param [Google::Apis::RequestOptions] options
276
- # Request-specific options
277
- #
278
- # @yield [result, err] Result & error if block supplied
279
- # @yieldparam result [Google::Apis::PlaymoviespartnerV1::ListStoreInfosResponse] parsed result object
280
- # @yieldparam err [StandardError] error object if request failed
281
- #
282
- # @return [Google::Apis::PlaymoviespartnerV1::ListStoreInfosResponse]
283
- #
284
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
- # @raise [Google::Apis::AuthorizationError] Authorization is required
287
- def list_account_store_infos(account_id, countries: nil, mids: nil, name: nil, page_size: nil, page_token: nil, pph_names: nil, season_ids: nil, studio_names: nil, video_id: nil, video_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
288
- command = make_simple_command(:get, 'v1/accounts/{accountId}/storeInfos', options)
289
- command.response_representation = Google::Apis::PlaymoviespartnerV1::ListStoreInfosResponse::Representation
290
- command.response_class = Google::Apis::PlaymoviespartnerV1::ListStoreInfosResponse
291
- command.params['accountId'] = account_id unless account_id.nil?
292
- command.query['countries'] = countries unless countries.nil?
293
- command.query['mids'] = mids unless mids.nil?
294
- command.query['name'] = name unless name.nil?
295
- command.query['pageSize'] = page_size unless page_size.nil?
296
- command.query['pageToken'] = page_token unless page_token.nil?
297
- command.query['pphNames'] = pph_names unless pph_names.nil?
298
- command.query['seasonIds'] = season_ids unless season_ids.nil?
299
- command.query['studioNames'] = studio_names unless studio_names.nil?
300
- command.query['videoId'] = video_id unless video_id.nil?
301
- command.query['videoIds'] = video_ids unless video_ids.nil?
302
- command.query['fields'] = fields unless fields.nil?
303
- command.query['quotaUser'] = quota_user unless quota_user.nil?
304
- execute_or_queue_command(command, &block)
305
- end
306
-
307
- # Get a StoreInfo given its video id and country.
308
- # See _Authentication and Authorization rules_ and
309
- # _Get methods rules_ for more information about this method.
310
- # @param [String] account_id
311
- # REQUIRED. See _General rules_ for more information about this field.
312
- # @param [String] video_id
313
- # REQUIRED. Video ID.
314
- # @param [String] country
315
- # REQUIRED. Edit country.
316
- # @param [String] fields
317
- # Selector specifying which fields to include in a partial response.
318
- # @param [String] quota_user
319
- # Available to use for quota purposes for server-side applications. Can be any
320
- # arbitrary string assigned to a user, but should not exceed 40 characters.
321
- # @param [Google::Apis::RequestOptions] options
322
- # Request-specific options
323
- #
324
- # @yield [result, err] Result & error if block supplied
325
- # @yieldparam result [Google::Apis::PlaymoviespartnerV1::StoreInfo] parsed result object
326
- # @yieldparam err [StandardError] error object if request failed
327
- #
328
- # @return [Google::Apis::PlaymoviespartnerV1::StoreInfo]
329
- #
330
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
331
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
332
- # @raise [Google::Apis::AuthorizationError] Authorization is required
333
- def get_account_store_info_country(account_id, video_id, country, fields: nil, quota_user: nil, options: nil, &block)
334
- command = make_simple_command(:get, 'v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}', options)
335
- command.response_representation = Google::Apis::PlaymoviespartnerV1::StoreInfo::Representation
336
- command.response_class = Google::Apis::PlaymoviespartnerV1::StoreInfo
337
- command.params['accountId'] = account_id unless account_id.nil?
338
- command.params['videoId'] = video_id unless video_id.nil?
339
- command.params['country'] = country unless country.nil?
340
- command.query['fields'] = fields unless fields.nil?
341
- command.query['quotaUser'] = quota_user unless quota_user.nil?
342
- execute_or_queue_command(command, &block)
343
- end
344
-
345
- protected
346
-
347
- def apply_command_defaults(command)
348
- command.query['key'] = key unless key.nil?
349
- command.query['quotaUser'] = quota_user unless quota_user.nil?
350
- end
351
- end
352
- end
353
- end
354
- end