google-api-client 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/api_names.yaml +395 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +39 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
- data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +32 -37
- data/generated/google/apis/bigquery_v2/service.rb +10 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +205 -0
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
- data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
- data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
- data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
- data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
- data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
- data/generated/google/apis/cloudkms_v1/service.rb +228 -228
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
- data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
- data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +116 -0
- data/generated/google/apis/compute_beta/representations.rb +48 -0
- data/generated/google/apis/compute_beta/service.rb +46 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
- data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
- data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
- data/generated/google/apis/dataproc_v1/representations.rb +255 -253
- data/generated/google/apis/dataproc_v1/service.rb +100 -100
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +3 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +959 -959
- data/generated/google/apis/genomics_v1/representations.rb +238 -238
- data/generated/google/apis/genomics_v1/service.rb +996 -996
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +170 -173
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +427 -427
- data/generated/google/apis/language_v1beta1/representations.rb +113 -113
- data/generated/google/apis/language_v1beta1/service.rb +25 -24
- data/generated/google/apis/licensing_v1.rb +2 -2
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
- data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
- data/generated/google/apis/logging_v2beta1/service.rb +261 -261
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
- data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
- data/generated/google/apis/manufacturers_v1/service.rb +11 -11
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +7 -7
- data/generated/google/apis/monitoring_v3/classes.rb +668 -670
- data/generated/google/apis/monitoring_v3/representations.rb +140 -140
- data/generated/google/apis/monitoring_v3/service.rb +208 -208
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +505 -505
- data/generated/google/apis/partners_v2/representations.rb +118 -118
- data/generated/google/apis/partners_v2/service.rb +275 -275
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +1037 -1031
- data/generated/google/apis/people_v1/representations.rb +247 -246
- data/generated/google/apis/people_v1/service.rb +20 -20
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +131 -132
- data/generated/google/apis/pubsub_v1/representations.rb +35 -35
- data/generated/google/apis/pubsub_v1/service.rb +399 -408
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +9 -0
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +110 -110
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
- data/generated/google/apis/sheets_v4/representations.rb +856 -856
- data/generated/google/apis/sheets_v4/service.rb +106 -106
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2923 -2841
- data/generated/google/apis/slides_v1/representations.rb +722 -691
- data/generated/google/apis/slides_v1/service.rb +58 -15
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
- data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
- data/generated/google/apis/speech_v1beta1/service.rb +70 -70
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +151 -0
- data/generated/google/apis/storage_v1/representations.rb +45 -0
- data/generated/google/apis/storage_v1/service.rb +248 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1227 -1221
- data/generated/google/apis/vision_v1/representations.rb +217 -215
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/webmaster-tools/
|
26
26
|
module WebmastersV3
|
27
27
|
VERSION = 'V3'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170322'
|
29
29
|
|
30
30
|
# View and manage Search Console data for your verified sites
|
31
31
|
AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see http://developers.google.com/youtube/analytics/
|
26
26
|
module YoutubeAnalyticsV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170322'
|
29
29
|
|
30
30
|
# Manage your YouTube account
|
31
31
|
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/youtube/partner/
|
26
26
|
module YoutubePartnerV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170321'
|
29
29
|
|
30
30
|
# View and manage your assets and associated content on YouTube
|
31
31
|
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
@@ -2609,6 +2609,84 @@ module Google
|
|
2609
2609
|
end
|
2610
2610
|
end
|
2611
2611
|
|
2612
|
+
#
|
2613
|
+
class Package
|
2614
|
+
include Google::Apis::Core::Hashable
|
2615
|
+
|
2616
|
+
# The package's metadata file contents.
|
2617
|
+
# Corresponds to the JSON property `content`
|
2618
|
+
# @return [String]
|
2619
|
+
attr_accessor :content
|
2620
|
+
|
2621
|
+
# An ID that YouTube assigns and uses to uniquely identify the package.
|
2622
|
+
# Corresponds to the JSON property `id`
|
2623
|
+
# @return [String]
|
2624
|
+
attr_accessor :id
|
2625
|
+
|
2626
|
+
# The type of the API resource. For package resources, this value is
|
2627
|
+
# youtubePartner#package.
|
2628
|
+
# Corresponds to the JSON property `kind`
|
2629
|
+
# @return [String]
|
2630
|
+
attr_accessor :kind
|
2631
|
+
|
2632
|
+
# The desired locale of the error messages as defined in BCP 47 (http://tools.
|
2633
|
+
# ietf.org/html/bcp47). For example, "en-US" or "de". If not specified we will
|
2634
|
+
# return the error messages in English ("en").
|
2635
|
+
# Corresponds to the JSON property `locale`
|
2636
|
+
# @return [String]
|
2637
|
+
attr_accessor :locale
|
2638
|
+
|
2639
|
+
# The uploader name.
|
2640
|
+
# Corresponds to the JSON property `uploaderName`
|
2641
|
+
# @return [String]
|
2642
|
+
attr_accessor :uploader_name
|
2643
|
+
|
2644
|
+
def initialize(**args)
|
2645
|
+
update!(**args)
|
2646
|
+
end
|
2647
|
+
|
2648
|
+
# Update properties of this object
|
2649
|
+
def update!(**args)
|
2650
|
+
@content = args[:content] if args.key?(:content)
|
2651
|
+
@id = args[:id] if args.key?(:id)
|
2652
|
+
@kind = args[:kind] if args.key?(:kind)
|
2653
|
+
@locale = args[:locale] if args.key?(:locale)
|
2654
|
+
@uploader_name = args[:uploader_name] if args.key?(:uploader_name)
|
2655
|
+
end
|
2656
|
+
end
|
2657
|
+
|
2658
|
+
#
|
2659
|
+
class PackageInsertResponse
|
2660
|
+
include Google::Apis::Core::Hashable
|
2661
|
+
|
2662
|
+
# The list of errors and/or warnings.
|
2663
|
+
# Corresponds to the JSON property `errors`
|
2664
|
+
# @return [Array<Google::Apis::YoutubePartnerV1::ValidateError>]
|
2665
|
+
attr_accessor :errors
|
2666
|
+
|
2667
|
+
# The type of the API response. For this operation, the value is youtubePartner#
|
2668
|
+
# packageInsert.
|
2669
|
+
# Corresponds to the JSON property `kind`
|
2670
|
+
# @return [String]
|
2671
|
+
attr_accessor :kind
|
2672
|
+
|
2673
|
+
# The package resource.
|
2674
|
+
# Corresponds to the JSON property `resource`
|
2675
|
+
# @return [Google::Apis::YoutubePartnerV1::Package]
|
2676
|
+
attr_accessor :resource
|
2677
|
+
|
2678
|
+
def initialize(**args)
|
2679
|
+
update!(**args)
|
2680
|
+
end
|
2681
|
+
|
2682
|
+
# Update properties of this object
|
2683
|
+
def update!(**args)
|
2684
|
+
@errors = args[:errors] if args.key?(:errors)
|
2685
|
+
@kind = args[:kind] if args.key?(:kind)
|
2686
|
+
@resource = args[:resource] if args.key?(:resource)
|
2687
|
+
end
|
2688
|
+
end
|
2689
|
+
|
2612
2690
|
#
|
2613
2691
|
class PageInfo
|
2614
2692
|
include Google::Apis::Core::Hashable
|
@@ -346,6 +346,18 @@ module Google
|
|
346
346
|
include Google::Apis::Core::JsonObjectSupport
|
347
347
|
end
|
348
348
|
|
349
|
+
class Package
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
|
+
|
352
|
+
include Google::Apis::Core::JsonObjectSupport
|
353
|
+
end
|
354
|
+
|
355
|
+
class PackageInsertResponse
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
349
361
|
class PageInfo
|
350
362
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
363
|
|
@@ -1201,6 +1213,28 @@ module Google
|
|
1201
1213
|
end
|
1202
1214
|
end
|
1203
1215
|
|
1216
|
+
class Package
|
1217
|
+
# @private
|
1218
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1219
|
+
property :content, as: 'content'
|
1220
|
+
property :id, as: 'id'
|
1221
|
+
property :kind, as: 'kind'
|
1222
|
+
property :locale, as: 'locale'
|
1223
|
+
property :uploader_name, as: 'uploaderName'
|
1224
|
+
end
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
class PackageInsertResponse
|
1228
|
+
# @private
|
1229
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1230
|
+
collection :errors, as: 'errors', class: Google::Apis::YoutubePartnerV1::ValidateError, decorator: Google::Apis::YoutubePartnerV1::ValidateError::Representation
|
1231
|
+
|
1232
|
+
property :kind, as: 'kind'
|
1233
|
+
property :resource, as: 'resource', class: Google::Apis::YoutubePartnerV1::Package, decorator: Google::Apis::YoutubePartnerV1::Package::Representation
|
1234
|
+
|
1235
|
+
end
|
1236
|
+
end
|
1237
|
+
|
1204
1238
|
class PageInfo
|
1205
1239
|
# @private
|
1206
1240
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2219,6 +2219,46 @@ module Google
|
|
2219
2219
|
execute_or_queue_command(command, &block)
|
2220
2220
|
end
|
2221
2221
|
|
2222
|
+
# Inserts a metadata-only package.
|
2223
|
+
# @param [Google::Apis::YoutubePartnerV1::Package] package_object
|
2224
|
+
# @param [String] on_behalf_of_content_owner
|
2225
|
+
# The onBehalfOfContentOwner parameter identifies the content owner that the
|
2226
|
+
# user is acting on behalf of. This parameter supports users whose accounts are
|
2227
|
+
# associated with multiple content owners.
|
2228
|
+
# @param [String] fields
|
2229
|
+
# Selector specifying which fields to include in a partial response.
|
2230
|
+
# @param [String] quota_user
|
2231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2233
|
+
# Overrides userIp if both are provided.
|
2234
|
+
# @param [String] user_ip
|
2235
|
+
# IP address of the site where the request originates. Use this if you want to
|
2236
|
+
# enforce per-user limits.
|
2237
|
+
# @param [Google::Apis::RequestOptions] options
|
2238
|
+
# Request-specific options
|
2239
|
+
#
|
2240
|
+
# @yield [result, err] Result & error if block supplied
|
2241
|
+
# @yieldparam result [Google::Apis::YoutubePartnerV1::PackageInsertResponse] parsed result object
|
2242
|
+
# @yieldparam err [StandardError] error object if request failed
|
2243
|
+
#
|
2244
|
+
# @return [Google::Apis::YoutubePartnerV1::PackageInsertResponse]
|
2245
|
+
#
|
2246
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2247
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2248
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2249
|
+
def insert_package(package_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2250
|
+
command = make_simple_command(:post, 'package', options)
|
2251
|
+
command.request_representation = Google::Apis::YoutubePartnerV1::Package::Representation
|
2252
|
+
command.request_object = package_object
|
2253
|
+
command.response_representation = Google::Apis::YoutubePartnerV1::PackageInsertResponse::Representation
|
2254
|
+
command.response_class = Google::Apis::YoutubePartnerV1::PackageInsertResponse
|
2255
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
2256
|
+
command.query['fields'] = fields unless fields.nil?
|
2257
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2258
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2259
|
+
execute_or_queue_command(command, &block)
|
2260
|
+
end
|
2261
|
+
|
2222
2262
|
# Retrieves the specified saved policy.
|
2223
2263
|
# @param [String] policy_id
|
2224
2264
|
# The policyId parameter specifies a value that uniquely identifies the policy
|
@@ -26,13 +26,13 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/youtube/reporting/v1/reports/
|
27
27
|
module YoutubereportingV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
30
|
-
|
31
|
-
# View monetary and non-monetary YouTube Analytics reports for your YouTube content
|
32
|
-
AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
|
29
|
+
REVISION = '20170326'
|
33
30
|
|
34
31
|
# View YouTube Analytics reports for your YouTube content
|
35
32
|
AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
|
33
|
+
|
34
|
+
# View monetary and non-monetary YouTube Analytics reports for your YouTube content
|
35
|
+
AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -41,27 +41,72 @@ module Google
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
# A report type.
|
45
|
+
class ReportType
|
46
|
+
include Google::Apis::Core::Hashable
|
47
|
+
|
48
|
+
# The date/time when this report type was/will be deprecated.
|
49
|
+
# Corresponds to the JSON property `deprecateTime`
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :deprecate_time
|
52
|
+
|
53
|
+
# The name of the report type (max. 100 characters).
|
54
|
+
# Corresponds to the JSON property `name`
|
55
|
+
# @return [String]
|
56
|
+
attr_accessor :name
|
57
|
+
|
58
|
+
# The ID of the report type (max. 100 characters).
|
59
|
+
# Corresponds to the JSON property `id`
|
60
|
+
# @return [String]
|
61
|
+
attr_accessor :id
|
62
|
+
|
63
|
+
# True if this a system-managed report type; otherwise false. Reporting jobs
|
64
|
+
# for system-managed report types are created automatically and can thus not
|
65
|
+
# be used in the `CreateJob` method.
|
66
|
+
# Corresponds to the JSON property `systemManaged`
|
67
|
+
# @return [Boolean]
|
68
|
+
attr_accessor :system_managed
|
69
|
+
alias_method :system_managed?, :system_managed
|
70
|
+
|
71
|
+
def initialize(**args)
|
72
|
+
update!(**args)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Update properties of this object
|
76
|
+
def update!(**args)
|
77
|
+
@deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
|
78
|
+
@name = args[:name] if args.key?(:name)
|
79
|
+
@id = args[:id] if args.key?(:id)
|
80
|
+
@system_managed = args[:system_managed] if args.key?(:system_managed)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
44
84
|
# A report's metadata including the URL from which the report itself can be
|
45
85
|
# downloaded.
|
46
86
|
class Report
|
47
87
|
include Google::Apis::Core::Hashable
|
48
88
|
|
89
|
+
# The ID of the job that created this report.
|
90
|
+
# Corresponds to the JSON property `jobId`
|
91
|
+
# @return [String]
|
92
|
+
attr_accessor :job_id
|
93
|
+
|
49
94
|
# The server-generated ID of the report.
|
50
95
|
# Corresponds to the JSON property `id`
|
51
96
|
# @return [String]
|
52
97
|
attr_accessor :id
|
53
98
|
|
54
|
-
# The date/time when the job this report belongs to will expire/expired.
|
55
|
-
# Corresponds to the JSON property `jobExpireTime`
|
56
|
-
# @return [String]
|
57
|
-
attr_accessor :job_expire_time
|
58
|
-
|
59
99
|
# The end of the time period that the report instance covers. The value is
|
60
100
|
# exclusive.
|
61
101
|
# Corresponds to the JSON property `endTime`
|
62
102
|
# @return [String]
|
63
103
|
attr_accessor :end_time
|
64
104
|
|
105
|
+
# The date/time when the job this report belongs to will expire/expired.
|
106
|
+
# Corresponds to the JSON property `jobExpireTime`
|
107
|
+
# @return [String]
|
108
|
+
attr_accessor :job_expire_time
|
109
|
+
|
65
110
|
# The URL from which the report can be downloaded (max. 1000 characters).
|
66
111
|
# Corresponds to the JSON property `downloadUrl`
|
67
112
|
# @return [String]
|
@@ -78,24 +123,19 @@ module Google
|
|
78
123
|
# @return [String]
|
79
124
|
attr_accessor :create_time
|
80
125
|
|
81
|
-
# The ID of the job that created this report.
|
82
|
-
# Corresponds to the JSON property `jobId`
|
83
|
-
# @return [String]
|
84
|
-
attr_accessor :job_id
|
85
|
-
|
86
126
|
def initialize(**args)
|
87
127
|
update!(**args)
|
88
128
|
end
|
89
129
|
|
90
130
|
# Update properties of this object
|
91
131
|
def update!(**args)
|
132
|
+
@job_id = args[:job_id] if args.key?(:job_id)
|
92
133
|
@id = args[:id] if args.key?(:id)
|
93
|
-
@job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
|
94
134
|
@end_time = args[:end_time] if args.key?(:end_time)
|
135
|
+
@job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
|
95
136
|
@download_url = args[:download_url] if args.key?(:download_url)
|
96
137
|
@start_time = args[:start_time] if args.key?(:start_time)
|
97
138
|
@create_time = args[:create_time] if args.key?(:create_time)
|
98
|
-
@job_id = args[:job_id] if args.key?(:job_id)
|
99
139
|
end
|
100
140
|
end
|
101
141
|
|
@@ -147,46 +187,6 @@ module Google
|
|
147
187
|
end
|
148
188
|
end
|
149
189
|
|
150
|
-
# A report type.
|
151
|
-
class ReportType
|
152
|
-
include Google::Apis::Core::Hashable
|
153
|
-
|
154
|
-
# The date/time when this report type was/will be deprecated.
|
155
|
-
# Corresponds to the JSON property `deprecateTime`
|
156
|
-
# @return [String]
|
157
|
-
attr_accessor :deprecate_time
|
158
|
-
|
159
|
-
# The name of the report type (max. 100 characters).
|
160
|
-
# Corresponds to the JSON property `name`
|
161
|
-
# @return [String]
|
162
|
-
attr_accessor :name
|
163
|
-
|
164
|
-
# The ID of the report type (max. 100 characters).
|
165
|
-
# Corresponds to the JSON property `id`
|
166
|
-
# @return [String]
|
167
|
-
attr_accessor :id
|
168
|
-
|
169
|
-
# True if this a system-managed report type; otherwise false. Reporting jobs
|
170
|
-
# for system-managed report types are created automatically and can thus not
|
171
|
-
# be used in the `CreateJob` method.
|
172
|
-
# Corresponds to the JSON property `systemManaged`
|
173
|
-
# @return [Boolean]
|
174
|
-
attr_accessor :system_managed
|
175
|
-
alias_method :system_managed?, :system_managed
|
176
|
-
|
177
|
-
def initialize(**args)
|
178
|
-
update!(**args)
|
179
|
-
end
|
180
|
-
|
181
|
-
# Update properties of this object
|
182
|
-
def update!(**args)
|
183
|
-
@deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
|
184
|
-
@name = args[:name] if args.key?(:name)
|
185
|
-
@id = args[:id] if args.key?(:id)
|
186
|
-
@system_managed = args[:system_managed] if args.key?(:system_managed)
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
190
|
# Response message for ReportingService.ListJobs.
|
191
191
|
class ListJobsResponse
|
192
192
|
include Google::Apis::Core::Hashable
|
@@ -225,18 +225,18 @@ module Google
|
|
225
225
|
# @return [String]
|
226
226
|
attr_accessor :create_time
|
227
227
|
|
228
|
-
# The date/time when this job will expire/expired. After a job expired, no
|
229
|
-
# new reports are generated.
|
230
|
-
# Corresponds to the JSON property `expireTime`
|
231
|
-
# @return [String]
|
232
|
-
attr_accessor :expire_time
|
233
|
-
|
234
228
|
# The type of reports this job creates. Corresponds to the ID of a
|
235
229
|
# ReportType.
|
236
230
|
# Corresponds to the JSON property `reportTypeId`
|
237
231
|
# @return [String]
|
238
232
|
attr_accessor :report_type_id
|
239
233
|
|
234
|
+
# The date/time when this job will expire/expired. After a job expired, no
|
235
|
+
# new reports are generated.
|
236
|
+
# Corresponds to the JSON property `expireTime`
|
237
|
+
# @return [String]
|
238
|
+
attr_accessor :expire_time
|
239
|
+
|
240
240
|
# The name of the job (max. 100 characters).
|
241
241
|
# Corresponds to the JSON property `name`
|
242
242
|
# @return [String]
|
@@ -261,8 +261,8 @@ module Google
|
|
261
261
|
# Update properties of this object
|
262
262
|
def update!(**args)
|
263
263
|
@create_time = args[:create_time] if args.key?(:create_time)
|
264
|
-
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
265
264
|
@report_type_id = args[:report_type_id] if args.key?(:report_type_id)
|
265
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
266
266
|
@name = args[:name] if args.key?(:name)
|
267
267
|
@system_managed = args[:system_managed] if args.key?(:system_managed)
|
268
268
|
@id = args[:id] if args.key?(:id)
|
@@ -273,11 +273,6 @@ module Google
|
|
273
273
|
class ListReportsResponse
|
274
274
|
include Google::Apis::Core::Hashable
|
275
275
|
|
276
|
-
# The list of report types.
|
277
|
-
# Corresponds to the JSON property `reports`
|
278
|
-
# @return [Array<Google::Apis::YoutubereportingV1::Report>]
|
279
|
-
attr_accessor :reports
|
280
|
-
|
281
276
|
# A token to retrieve next page of results.
|
282
277
|
# Pass this value in the
|
283
278
|
# ListReportsRequest.page_token
|
@@ -287,14 +282,19 @@ module Google
|
|
287
282
|
# @return [String]
|
288
283
|
attr_accessor :next_page_token
|
289
284
|
|
285
|
+
# The list of report types.
|
286
|
+
# Corresponds to the JSON property `reports`
|
287
|
+
# @return [Array<Google::Apis::YoutubereportingV1::Report>]
|
288
|
+
attr_accessor :reports
|
289
|
+
|
290
290
|
def initialize(**args)
|
291
291
|
update!(**args)
|
292
292
|
end
|
293
293
|
|
294
294
|
# Update properties of this object
|
295
295
|
def update!(**args)
|
296
|
-
@reports = args[:reports] if args.key?(:reports)
|
297
296
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
297
|
+
@reports = args[:reports] if args.key?(:reports)
|
298
298
|
end
|
299
299
|
end
|
300
300
|
end
|
@@ -28,25 +28,25 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class ReportType
|
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
|
37
|
+
class Report
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class Empty
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class ListReportTypesResponse
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -77,16 +77,26 @@ module Google
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
+
class ReportType
|
81
|
+
# @private
|
82
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
83
|
+
property :deprecate_time, as: 'deprecateTime'
|
84
|
+
property :name, as: 'name'
|
85
|
+
property :id, as: 'id'
|
86
|
+
property :system_managed, as: 'systemManaged'
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
80
90
|
class Report
|
81
91
|
# @private
|
82
92
|
class Representation < Google::Apis::Core::JsonRepresentation
|
93
|
+
property :job_id, as: 'jobId'
|
83
94
|
property :id, as: 'id'
|
84
|
-
property :job_expire_time, as: 'jobExpireTime'
|
85
95
|
property :end_time, as: 'endTime'
|
96
|
+
property :job_expire_time, as: 'jobExpireTime'
|
86
97
|
property :download_url, as: 'downloadUrl'
|
87
98
|
property :start_time, as: 'startTime'
|
88
99
|
property :create_time, as: 'createTime'
|
89
|
-
property :job_id, as: 'jobId'
|
90
100
|
end
|
91
101
|
end
|
92
102
|
|
@@ -105,16 +115,6 @@ module Google
|
|
105
115
|
end
|
106
116
|
end
|
107
117
|
|
108
|
-
class ReportType
|
109
|
-
# @private
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
111
|
-
property :deprecate_time, as: 'deprecateTime'
|
112
|
-
property :name, as: 'name'
|
113
|
-
property :id, as: 'id'
|
114
|
-
property :system_managed, as: 'systemManaged'
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
118
|
class ListJobsResponse
|
119
119
|
# @private
|
120
120
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -128,8 +128,8 @@ module Google
|
|
128
128
|
# @private
|
129
129
|
class Representation < Google::Apis::Core::JsonRepresentation
|
130
130
|
property :create_time, as: 'createTime'
|
131
|
-
property :expire_time, as: 'expireTime'
|
132
131
|
property :report_type_id, as: 'reportTypeId'
|
132
|
+
property :expire_time, as: 'expireTime'
|
133
133
|
property :name, as: 'name'
|
134
134
|
property :system_managed, as: 'systemManaged'
|
135
135
|
property :id, as: 'id'
|
@@ -139,9 +139,9 @@ module Google
|
|
139
139
|
class ListReportsResponse
|
140
140
|
# @private
|
141
141
|
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
+
property :next_page_token, as: 'nextPageToken'
|
142
143
|
collection :reports, as: 'reports', class: Google::Apis::YoutubereportingV1::Report, decorator: Google::Apis::YoutubereportingV1::Report::Representation
|
143
144
|
|
144
|
-
property :next_page_token, as: 'nextPageToken'
|
145
145
|
end
|
146
146
|
end
|
147
147
|
end
|