Class: Google::Apis::YoutubePartnerV1::DownloadParameters

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/representations.rb

Overview

Parameters specific to media downloads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DownloadParameters

Returns a new instance of DownloadParameters.



1759
1760
1761
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1759

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_gzip_compressionBoolean Also known as: allow_gzip_compression?

A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it's advantageous ( hence, does not guarantee compression) which allows Scotty to GZip the response to the client. Corresponds to the JSON property allowGzipCompression

Returns:

  • (Boolean)


1749
1750
1751
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1749

def allow_gzip_compression
  @allow_gzip_compression
end

#ignore_rangeBoolean Also known as: ignore_range?

Determining whether or not Apiary should skip the inclusion of any Content- Range header on its response to Scotty. Corresponds to the JSON property ignoreRange

Returns:

  • (Boolean)


1756
1757
1758
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1756

def ignore_range
  @ignore_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1764
1765
1766
1767
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1764

def update!(**args)
  @allow_gzip_compression = args[:allow_gzip_compression] if args.key?(:allow_gzip_compression)
  @ignore_range = args[:ignore_range] if args.key?(:ignore_range)
end