2015-12-03 01:10:07 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module YoutubereportingV1
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Empty
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-12-13 00:35:45 +00:00
|
|
|
class GdataBlobstore2Info
|
2017-06-02 06:11:31 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-12-13 00:35:45 +00:00
|
|
|
class GdataCompositeMedia
|
2015-12-03 01:10:07 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-12-13 00:35:45 +00:00
|
|
|
class GdataContentTypeInfo
|
2015-12-03 01:10:07 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-12-13 00:35:45 +00:00
|
|
|
class GdataDiffChecksumsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDiffDownloadResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDiffUploadRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDiffUploadResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDiffVersionResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDownloadParameters
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataMedia
|
2015-12-03 01:10:07 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-12-13 00:35:45 +00:00
|
|
|
class GdataObjectId
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Job
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListJobsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListReportTypesResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListReportsResponse
|
2015-12-03 01:10:07 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Report
|
2015-12-03 01:10:07 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ReportType
|
2015-12-03 01:10:07 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Empty
|
2017-06-02 06:11:31 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
2017-03-27 22:14:47 +00:00
|
|
|
end
|
|
|
|
|
2017-12-13 00:35:45 +00:00
|
|
|
class GdataBlobstore2Info
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :blob_generation, :numeric_string => true, as: 'blobGeneration'
|
|
|
|
property :blob_id, as: 'blobId'
|
|
|
|
property :download_read_handle, :base64 => true, as: 'downloadReadHandle'
|
|
|
|
property :read_token, as: 'readToken'
|
|
|
|
property :upload_metadata_container, :base64 => true, as: 'uploadMetadataContainer'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataCompositeMedia
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :blob_ref, :base64 => true, as: 'blobRef'
|
|
|
|
property :blobstore2_info, as: 'blobstore2Info', class: Google::Apis::YoutubereportingV1::GdataBlobstore2Info, decorator: Google::Apis::YoutubereportingV1::GdataBlobstore2Info::Representation
|
|
|
|
|
|
|
|
property :cosmo_binary_reference, :base64 => true, as: 'cosmoBinaryReference'
|
|
|
|
property :crc32c_hash, as: 'crc32cHash'
|
|
|
|
property :inline, :base64 => true, as: 'inline'
|
|
|
|
property :length, :numeric_string => true, as: 'length'
|
|
|
|
property :md5_hash, :base64 => true, as: 'md5Hash'
|
|
|
|
property :object_id_prop, as: 'objectId', class: Google::Apis::YoutubereportingV1::GdataObjectId, decorator: Google::Apis::YoutubereportingV1::GdataObjectId::Representation
|
|
|
|
|
|
|
|
property :path, as: 'path'
|
|
|
|
property :reference_type, as: 'referenceType'
|
|
|
|
property :sha1_hash, :base64 => true, as: 'sha1Hash'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataContentTypeInfo
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :best_guess, as: 'bestGuess'
|
|
|
|
property :from_bytes, as: 'fromBytes'
|
|
|
|
property :from_file_name, as: 'fromFileName'
|
|
|
|
property :from_header, as: 'fromHeader'
|
|
|
|
property :from_url_path, as: 'fromUrlPath'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDiffChecksumsResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :checksums_location, as: 'checksumsLocation', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
|
|
|
|
|
|
|
property :chunk_size_bytes, :numeric_string => true, as: 'chunkSizeBytes'
|
|
|
|
property :object_location, as: 'objectLocation', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
|
|
|
|
|
|
|
property :object_size_bytes, :numeric_string => true, as: 'objectSizeBytes'
|
|
|
|
property :object_version, as: 'objectVersion'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDiffDownloadResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :object_location, as: 'objectLocation', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDiffUploadRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :checksums_info, as: 'checksumsInfo', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
|
|
|
|
|
|
|
property :object_info, as: 'objectInfo', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
|
|
|
|
|
|
|
property :object_version, as: 'objectVersion'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDiffUploadResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :object_version, as: 'objectVersion'
|
|
|
|
property :original_object, as: 'originalObject', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDiffVersionResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :object_size_bytes, :numeric_string => true, as: 'objectSizeBytes'
|
|
|
|
property :object_version, as: 'objectVersion'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataDownloadParameters
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :allow_gzip_compression, as: 'allowGzipCompression'
|
|
|
|
property :ignore_range, as: 'ignoreRange'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataMedia
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :algorithm, as: 'algorithm'
|
|
|
|
property :bigstore_object_ref, :base64 => true, as: 'bigstoreObjectRef'
|
|
|
|
property :blob_ref, :base64 => true, as: 'blobRef'
|
|
|
|
property :blobstore2_info, as: 'blobstore2Info', class: Google::Apis::YoutubereportingV1::GdataBlobstore2Info, decorator: Google::Apis::YoutubereportingV1::GdataBlobstore2Info::Representation
|
|
|
|
|
|
|
|
collection :composite_media, as: 'compositeMedia', class: Google::Apis::YoutubereportingV1::GdataCompositeMedia, decorator: Google::Apis::YoutubereportingV1::GdataCompositeMedia::Representation
|
|
|
|
|
|
|
|
property :content_type, as: 'contentType'
|
|
|
|
property :content_type_info, as: 'contentTypeInfo', class: Google::Apis::YoutubereportingV1::GdataContentTypeInfo, decorator: Google::Apis::YoutubereportingV1::GdataContentTypeInfo::Representation
|
|
|
|
|
|
|
|
property :cosmo_binary_reference, :base64 => true, as: 'cosmoBinaryReference'
|
|
|
|
property :crc32c_hash, as: 'crc32cHash'
|
|
|
|
property :diff_checksums_response, as: 'diffChecksumsResponse', class: Google::Apis::YoutubereportingV1::GdataDiffChecksumsResponse, decorator: Google::Apis::YoutubereportingV1::GdataDiffChecksumsResponse::Representation
|
|
|
|
|
|
|
|
property :diff_download_response, as: 'diffDownloadResponse', class: Google::Apis::YoutubereportingV1::GdataDiffDownloadResponse, decorator: Google::Apis::YoutubereportingV1::GdataDiffDownloadResponse::Representation
|
|
|
|
|
|
|
|
property :diff_upload_request, as: 'diffUploadRequest', class: Google::Apis::YoutubereportingV1::GdataDiffUploadRequest, decorator: Google::Apis::YoutubereportingV1::GdataDiffUploadRequest::Representation
|
|
|
|
|
|
|
|
property :diff_upload_response, as: 'diffUploadResponse', class: Google::Apis::YoutubereportingV1::GdataDiffUploadResponse, decorator: Google::Apis::YoutubereportingV1::GdataDiffUploadResponse::Representation
|
|
|
|
|
|
|
|
property :diff_version_response, as: 'diffVersionResponse', class: Google::Apis::YoutubereportingV1::GdataDiffVersionResponse, decorator: Google::Apis::YoutubereportingV1::GdataDiffVersionResponse::Representation
|
|
|
|
|
|
|
|
property :download_parameters, as: 'downloadParameters', class: Google::Apis::YoutubereportingV1::GdataDownloadParameters, decorator: Google::Apis::YoutubereportingV1::GdataDownloadParameters::Representation
|
|
|
|
|
|
|
|
property :filename, as: 'filename'
|
|
|
|
property :hash_prop, as: 'hash'
|
|
|
|
property :hash_verified, as: 'hashVerified'
|
|
|
|
property :inline, :base64 => true, as: 'inline'
|
|
|
|
property :is_potential_retry, as: 'isPotentialRetry'
|
|
|
|
property :length, :numeric_string => true, as: 'length'
|
|
|
|
property :md5_hash, :base64 => true, as: 'md5Hash'
|
|
|
|
property :media_id, :base64 => true, as: 'mediaId'
|
|
|
|
property :object_id_prop, as: 'objectId', class: Google::Apis::YoutubereportingV1::GdataObjectId, decorator: Google::Apis::YoutubereportingV1::GdataObjectId::Representation
|
|
|
|
|
|
|
|
property :path, as: 'path'
|
|
|
|
property :reference_type, as: 'referenceType'
|
|
|
|
property :sha1_hash, :base64 => true, as: 'sha1Hash'
|
|
|
|
property :sha256_hash, :base64 => true, as: 'sha256Hash'
|
|
|
|
property :timestamp, :numeric_string => true, as: 'timestamp'
|
|
|
|
property :token, as: 'token'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class GdataObjectId
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :bucket_name, as: 'bucketName'
|
|
|
|
property :generation, :numeric_string => true, as: 'generation'
|
|
|
|
property :object_name, as: 'objectName'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Job
|
2015-12-03 01:10:07 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :create_time, as: 'createTime'
|
|
|
|
property :expire_time, as: 'expireTime'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :report_type_id, as: 'reportTypeId'
|
|
|
|
property :system_managed, as: 'systemManaged'
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListJobsResponse
|
2015-12-03 01:10:07 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :jobs, as: 'jobs', class: Google::Apis::YoutubereportingV1::Job, decorator: Google::Apis::YoutubereportingV1::Job::Representation
|
|
|
|
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
class ListReportTypesResponse
|
2017-03-30 22:30:51 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-07-12 20:10:42 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2017-04-03 20:18:48 +00:00
|
|
|
collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListReportsResponse
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :reports, as: 'reports', class: Google::Apis::YoutubereportingV1::Report, decorator: Google::Apis::YoutubereportingV1::Report::Representation
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Report
|
2015-12-03 01:10:07 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :create_time, as: 'createTime'
|
|
|
|
property :download_url, as: 'downloadUrl'
|
|
|
|
property :end_time, as: 'endTime'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :job_expire_time, as: 'jobExpireTime'
|
|
|
|
property :job_id, as: 'jobId'
|
|
|
|
property :start_time, as: 'startTime'
|
2017-06-14 17:02:03 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ReportType
|
2017-06-14 17:02:03 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :deprecate_time, as: 'deprecateTime'
|
|
|
|
property :id, as: 'id'
|
2017-07-12 20:10:42 +00:00
|
|
|
property :name, as: 'name'
|
|
|
|
property :system_managed, as: 'systemManaged'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|