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,42 +22,6 @@ module Google
22
22
  module Apis
23
23
  module YoutubeAnalyticsV1
24
24
 
25
- class BatchReport
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- class Output
29
- class Representation < Google::Apis::Core::JsonRepresentation; end
30
-
31
- include Google::Apis::Core::JsonObjectSupport
32
- end
33
-
34
- class TimeSpan
35
- class Representation < Google::Apis::Core::JsonRepresentation; end
36
-
37
- include Google::Apis::Core::JsonObjectSupport
38
- end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class BatchReportDefinition
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class BatchReportDefinitionList
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class BatchReportList
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
25
  class Group
62
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
27
 
@@ -112,69 +76,6 @@ module Google
112
76
  include Google::Apis::Core::JsonObjectSupport
113
77
  end
114
78
 
115
- class BatchReport
116
- # @private
117
- class Representation < Google::Apis::Core::JsonRepresentation
118
- property :id, as: 'id'
119
- property :kind, as: 'kind'
120
- collection :outputs, as: 'outputs', class: Google::Apis::YoutubeAnalyticsV1::BatchReport::Output, decorator: Google::Apis::YoutubeAnalyticsV1::BatchReport::Output::Representation
121
-
122
- property :report_id, as: 'reportId'
123
- property :time_span, as: 'timeSpan', class: Google::Apis::YoutubeAnalyticsV1::BatchReport::TimeSpan, decorator: Google::Apis::YoutubeAnalyticsV1::BatchReport::TimeSpan::Representation
124
-
125
- property :time_updated, as: 'timeUpdated', type: DateTime
126
-
127
- end
128
-
129
- class Output
130
- # @private
131
- class Representation < Google::Apis::Core::JsonRepresentation
132
- property :download_url, as: 'downloadUrl'
133
- property :format, as: 'format'
134
- property :type, as: 'type'
135
- end
136
- end
137
-
138
- class TimeSpan
139
- # @private
140
- class Representation < Google::Apis::Core::JsonRepresentation
141
- property :end_time, as: 'endTime', type: DateTime
142
-
143
- property :start_time, as: 'startTime', type: DateTime
144
-
145
- end
146
- end
147
- end
148
-
149
- class BatchReportDefinition
150
- # @private
151
- class Representation < Google::Apis::Core::JsonRepresentation
152
- property :id, as: 'id'
153
- property :kind, as: 'kind'
154
- property :name, as: 'name'
155
- property :status, as: 'status'
156
- property :type, as: 'type'
157
- end
158
- end
159
-
160
- class BatchReportDefinitionList
161
- # @private
162
- class Representation < Google::Apis::Core::JsonRepresentation
163
- collection :items, as: 'items', class: Google::Apis::YoutubeAnalyticsV1::BatchReportDefinition, decorator: Google::Apis::YoutubeAnalyticsV1::BatchReportDefinition::Representation
164
-
165
- property :kind, as: 'kind'
166
- end
167
- end
168
-
169
- class BatchReportList
170
- # @private
171
- class Representation < Google::Apis::Core::JsonRepresentation
172
- collection :items, as: 'items', class: Google::Apis::YoutubeAnalyticsV1::BatchReport, decorator: Google::Apis::YoutubeAnalyticsV1::BatchReport::Representation
173
-
174
- property :kind, as: 'kind'
175
- end
176
- end
177
-
178
79
  class Group
179
80
  # @private
180
81
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -52,82 +52,6 @@ module Google
52
52
  super('https://www.googleapis.com/', 'youtube/analytics/v1/')
53
53
  end
54
54
 
55
- # Retrieves a list of available batch report definitions.
56
- # @param [String] on_behalf_of_content_owner
57
- # The onBehalfOfContentOwner parameter identifies the content owner that the
58
- # user is acting on behalf of.
59
- # @param [String] fields
60
- # Selector specifying which fields to include in a partial response.
61
- # @param [String] quota_user
62
- # Available to use for quota purposes for server-side applications. Can be any
63
- # arbitrary string assigned to a user, but should not exceed 40 characters.
64
- # Overrides userIp if both are provided.
65
- # @param [String] user_ip
66
- # IP address of the site where the request originates. Use this if you want to
67
- # enforce per-user limits.
68
- # @param [Google::Apis::RequestOptions] options
69
- # Request-specific options
70
- #
71
- # @yield [result, err] Result & error if block supplied
72
- # @yieldparam result [Google::Apis::YoutubeAnalyticsV1::BatchReportDefinitionList] parsed result object
73
- # @yieldparam err [StandardError] error object if request failed
74
- #
75
- # @return [Google::Apis::YoutubeAnalyticsV1::BatchReportDefinitionList]
76
- #
77
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
- # @raise [Google::Apis::AuthorizationError] Authorization is required
80
- def list_batch_report_definitions(on_behalf_of_content_owner, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
81
- command = make_simple_command(:get, 'batchReportDefinitions', options)
82
- command.response_representation = Google::Apis::YoutubeAnalyticsV1::BatchReportDefinitionList::Representation
83
- command.response_class = Google::Apis::YoutubeAnalyticsV1::BatchReportDefinitionList
84
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
85
- command.query['fields'] = fields unless fields.nil?
86
- command.query['quotaUser'] = quota_user unless quota_user.nil?
87
- command.query['userIp'] = user_ip unless user_ip.nil?
88
- execute_or_queue_command(command, &block)
89
- end
90
-
91
- # Retrieves a list of processed batch reports.
92
- # @param [String] batch_report_definition_id
93
- # The batchReportDefinitionId parameter specifies the ID of the batch reportort
94
- # definition for which you are retrieving reports.
95
- # @param [String] on_behalf_of_content_owner
96
- # The onBehalfOfContentOwner parameter identifies the content owner that the
97
- # user is acting on behalf of.
98
- # @param [String] fields
99
- # Selector specifying which fields to include in a partial response.
100
- # @param [String] quota_user
101
- # Available to use for quota purposes for server-side applications. Can be any
102
- # arbitrary string assigned to a user, but should not exceed 40 characters.
103
- # Overrides userIp if both are provided.
104
- # @param [String] user_ip
105
- # IP address of the site where the request originates. Use this if you want to
106
- # enforce per-user limits.
107
- # @param [Google::Apis::RequestOptions] options
108
- # Request-specific options
109
- #
110
- # @yield [result, err] Result & error if block supplied
111
- # @yieldparam result [Google::Apis::YoutubeAnalyticsV1::BatchReportList] parsed result object
112
- # @yieldparam err [StandardError] error object if request failed
113
- #
114
- # @return [Google::Apis::YoutubeAnalyticsV1::BatchReportList]
115
- #
116
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
- # @raise [Google::Apis::AuthorizationError] Authorization is required
119
- def list_batch_reports(batch_report_definition_id, on_behalf_of_content_owner, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
120
- command = make_simple_command(:get, 'batchReports', options)
121
- command.response_representation = Google::Apis::YoutubeAnalyticsV1::BatchReportList::Representation
122
- command.response_class = Google::Apis::YoutubeAnalyticsV1::BatchReportList
123
- command.query['batchReportDefinitionId'] = batch_report_definition_id unless batch_report_definition_id.nil?
124
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
125
- command.query['fields'] = fields unless fields.nil?
126
- command.query['quotaUser'] = quota_user unless quota_user.nil?
127
- command.query['userIp'] = user_ip unless user_ip.nil?
128
- execute_or_queue_command(command, &block)
129
- end
130
-
131
55
  # Removes an item from a group.
132
56
  # @param [String] id
133
57
  # The id parameter specifies the YouTube group item ID for the group that is
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/youtube/partner/
26
26
  module YoutubePartnerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20161101'
28
+ REVISION = '20170117'
29
29
 
30
30
  # View and manage your assets and associated content on YouTube
31
31
  AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
@@ -482,6 +482,77 @@ module Google
482
482
  end
483
483
  end
484
484
 
485
+ #
486
+ class AssetShare
487
+ include Google::Apis::Core::Hashable
488
+
489
+ # The type of the API resource. For this resource, the value is youtubePartner#
490
+ # assetShare.
491
+ # Corresponds to the JSON property `kind`
492
+ # @return [String]
493
+ attr_accessor :kind
494
+
495
+ # A value that YouTube assigns and uses to uniquely identify the asset share.
496
+ # Corresponds to the JSON property `shareId`
497
+ # @return [String]
498
+ attr_accessor :share_id
499
+
500
+ # A value that YouTube assigns and uses to uniquely identify the asset view.
501
+ # Corresponds to the JSON property `viewId`
502
+ # @return [String]
503
+ attr_accessor :view_id
504
+
505
+ def initialize(**args)
506
+ update!(**args)
507
+ end
508
+
509
+ # Update properties of this object
510
+ def update!(**args)
511
+ @kind = args[:kind] if args.key?(:kind)
512
+ @share_id = args[:share_id] if args.key?(:share_id)
513
+ @view_id = args[:view_id] if args.key?(:view_id)
514
+ end
515
+ end
516
+
517
+ #
518
+ class AssetShareListResponse
519
+ include Google::Apis::Core::Hashable
520
+
521
+ # An assetShare resource that matches the request criteria.
522
+ # Corresponds to the JSON property `items`
523
+ # @return [Array<Google::Apis::YoutubePartnerV1::AssetShare>]
524
+ attr_accessor :items
525
+
526
+ # The type of the API response. For this operation, the value is youtubePartner#
527
+ # assetShareList.
528
+ # Corresponds to the JSON property `kind`
529
+ # @return [String]
530
+ attr_accessor :kind
531
+
532
+ # The token that can be used as the value of the pageToken parameter to retrieve
533
+ # the next page of results.
534
+ # Corresponds to the JSON property `nextPageToken`
535
+ # @return [String]
536
+ attr_accessor :next_page_token
537
+
538
+ # The pageInfo object encapsulates paging information for the result set.
539
+ # Corresponds to the JSON property `pageInfo`
540
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
541
+ attr_accessor :page_info
542
+
543
+ def initialize(**args)
544
+ update!(**args)
545
+ end
546
+
547
+ # Update properties of this object
548
+ def update!(**args)
549
+ @items = args[:items] if args.key?(:items)
550
+ @kind = args[:kind] if args.key?(:kind)
551
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
552
+ @page_info = args[:page_info] if args.key?(:page_info)
553
+ end
554
+ end
555
+
485
556
  #
486
557
  class AssetSnippet
487
558
  include Google::Apis::Core::Hashable
@@ -88,6 +88,18 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class AssetShare
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class AssetShareListResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
91
103
  class AssetSnippet
92
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
105
 
@@ -640,6 +652,27 @@ module Google
640
652
  end
641
653
  end
642
654
 
655
+ class AssetShare
656
+ # @private
657
+ class Representation < Google::Apis::Core::JsonRepresentation
658
+ property :kind, as: 'kind'
659
+ property :share_id, as: 'shareId'
660
+ property :view_id, as: 'viewId'
661
+ end
662
+ end
663
+
664
+ class AssetShareListResponse
665
+ # @private
666
+ class Representation < Google::Apis::Core::JsonRepresentation
667
+ collection :items, as: 'items', class: Google::Apis::YoutubePartnerV1::AssetShare, decorator: Google::Apis::YoutubePartnerV1::AssetShare::Representation
668
+
669
+ property :kind, as: 'kind'
670
+ property :next_page_token, as: 'nextPageToken'
671
+ property :page_info, as: 'pageInfo', class: Google::Apis::YoutubePartnerV1::PageInfo, decorator: Google::Apis::YoutubePartnerV1::PageInfo::Representation
672
+
673
+ end
674
+ end
675
+
643
676
  class AssetSnippet
644
677
  # @private
645
678
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -499,6 +499,58 @@ module Google
499
499
  execute_or_queue_command(command, &block)
500
500
  end
501
501
 
502
+ # This method either retrieves a list of asset shares the partner owns and that
503
+ # map to a specified asset view ID or it retrieves a list of asset views
504
+ # associated with a specified asset share ID owned by the partner.
505
+ # @param [String] asset_id
506
+ # The assetId parameter specifies the asset ID for which you are retrieving data.
507
+ # The parameter can be an asset view ID or an asset share ID.
508
+ # - If the value is an asset view ID, the API response identifies any asset
509
+ # share ids mapped to the asset view.
510
+ # - If the value is an asset share ID, the API response identifies any asset
511
+ # view ids that maps to that asset share.
512
+ # @param [String] on_behalf_of_content_owner
513
+ # The onBehalfOfContentOwner parameter identifies the content owner that the
514
+ # user is acting on behalf of. This parameter supports users whose accounts are
515
+ # associated with multiple content owners.
516
+ # @param [String] page_token
517
+ # The pageToken parameter specifies a token that identifies a particular page of
518
+ # results to return. Set this parameter to the value of the nextPageToken value
519
+ # from the previous API response to retrieve the next page of search results.
520
+ # @param [String] fields
521
+ # Selector specifying which fields to include in a partial response.
522
+ # @param [String] quota_user
523
+ # Available to use for quota purposes for server-side applications. Can be any
524
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
525
+ # Overrides userIp if both are provided.
526
+ # @param [String] user_ip
527
+ # IP address of the site where the request originates. Use this if you want to
528
+ # enforce per-user limits.
529
+ # @param [Google::Apis::RequestOptions] options
530
+ # Request-specific options
531
+ #
532
+ # @yield [result, err] Result & error if block supplied
533
+ # @yieldparam result [Google::Apis::YoutubePartnerV1::AssetShareListResponse] parsed result object
534
+ # @yieldparam err [StandardError] error object if request failed
535
+ #
536
+ # @return [Google::Apis::YoutubePartnerV1::AssetShareListResponse]
537
+ #
538
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
539
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
540
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
541
+ def list_asset_shares(asset_id, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
542
+ command = make_simple_command(:get, 'assetShares', options)
543
+ command.response_representation = Google::Apis::YoutubePartnerV1::AssetShareListResponse::Representation
544
+ command.response_class = Google::Apis::YoutubePartnerV1::AssetShareListResponse
545
+ command.query['assetId'] = asset_id unless asset_id.nil?
546
+ command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
547
+ command.query['pageToken'] = page_token unless page_token.nil?
548
+ command.query['fields'] = fields unless fields.nil?
549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
550
+ command.query['userIp'] = user_ip unless user_ip.nil?
551
+ execute_or_queue_command(command, &block)
552
+ end
553
+
502
554
  # Retrieves the metadata for the specified asset. Note that if the request
503
555
  # identifies an asset that has been merged with another asset, meaning that
504
556
  # YouTube identified the requested asset as a duplicate, then the request
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/youtube/v3
27
27
  module YoutubeV3
28
28
  VERSION = 'V3'
29
- REVISION = '20161017'
29
+ REVISION = '20161202'
30
30
 
31
31
  # Manage your YouTube account
32
32
  AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
@@ -2283,7 +2283,7 @@ module Google
2283
2283
  end
2284
2284
 
2285
2285
  # Ratings schemes. The country-specific ratings are mostly for movies and shows.
2286
- # NEXT_ID: 68
2286
+ # NEXT_ID: 69
2287
2287
  class ContentRating
2288
2288
  include Google::Apis::Core::Hashable
2289
2289
 
@@ -2519,6 +2519,11 @@ module Google
2519
2519
  # @return [String]
2520
2520
  attr_accessor :mccyp_rating
2521
2521
 
2522
+ # The video's rating system for Vietnam - MCST
2523
+ # Corresponds to the JSON property `mcstRating`
2524
+ # @return [String]
2525
+ attr_accessor :mcst_rating
2526
+
2522
2527
  # The video's rating from Singapore's Media Development Authority (MDA) and,
2523
2528
  # specifically, it's Board of Film Censors (BFC).
2524
2529
  # Corresponds to the JSON property `mdaRating`
@@ -2701,6 +2706,7 @@ module Google
2701
2706
  @lsf_rating = args[:lsf_rating] if args.key?(:lsf_rating)
2702
2707
  @mccaa_rating = args[:mccaa_rating] if args.key?(:mccaa_rating)
2703
2708
  @mccyp_rating = args[:mccyp_rating] if args.key?(:mccyp_rating)
2709
+ @mcst_rating = args[:mcst_rating] if args.key?(:mcst_rating)
2704
2710
  @mda_rating = args[:mda_rating] if args.key?(:mda_rating)
2705
2711
  @medietilsynet_rating = args[:medietilsynet_rating] if args.key?(:medietilsynet_rating)
2706
2712
  @meku_rating = args[:meku_rating] if args.key?(:meku_rating)
@@ -5538,6 +5544,12 @@ module Google
5538
5544
  # @return [String]
5539
5545
  attr_accessor :video_id
5540
5546
 
5547
+ # The date and time that the video was published to YouTube. The value is
5548
+ # specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
5549
+ # Corresponds to the JSON property `videoPublishedAt`
5550
+ # @return [DateTime]
5551
+ attr_accessor :video_published_at
5552
+
5541
5553
  def initialize(**args)
5542
5554
  update!(**args)
5543
5555
  end
@@ -5548,6 +5560,7 @@ module Google
5548
5560
  @note = args[:note] if args.key?(:note)
5549
5561
  @start_at = args[:start_at] if args.key?(:start_at)
5550
5562
  @video_id = args[:video_id] if args.key?(:video_id)
5563
+ @video_published_at = args[:video_published_at] if args.key?(:video_published_at)
5551
5564
  end
5552
5565
  end
5553
5566
 
@@ -7267,7 +7280,7 @@ module Google
7267
7280
  attr_accessor :caption
7268
7281
 
7269
7282
  # Ratings schemes. The country-specific ratings are mostly for movies and shows.
7270
- # NEXT_ID: 68
7283
+ # NEXT_ID: 69
7271
7284
  # Corresponds to the JSON property `contentRating`
7272
7285
  # @return [Google::Apis::YoutubeV3::ContentRating]
7273
7286
  attr_accessor :content_rating