Class: Google::Apis::YoutubePartnerV1::ValidateRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ValidateRequest

Returns a new instance of ValidateRequest.



3861
3862
3863
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3861

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

Instance Attribute Details

#contentString

The metadata file contents. Corresponds to the JSON property content

Returns:

  • (String)


3841
3842
3843
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3841

def content
  @content
end

#kindString

The type of the API resource. For this operation, the value is youtubePartner# validateRequest. Corresponds to the JSON property kind

Returns:

  • (String)


3847
3848
3849
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3847

def kind
  @kind
end

#localeString

The desired locale of the error messages as defined in BCP 47 (http://tools. ietf.org/html/bcp47). For example, "en-US" or "de". If not specified we will return the error messages in English ("en"). Corresponds to the JSON property locale

Returns:

  • (String)


3854
3855
3856
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3854

def locale
  @locale
end

#uploader_nameString

The uploader name. Corresponds to the JSON property uploaderName

Returns:

  • (String)


3859
3860
3861
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3859

def uploader_name
  @uploader_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3866
3867
3868
3869
3870
3871
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3866

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @kind = args[:kind] if args.key?(:kind)
  @locale = args[:locale] if args.key?(:locale)
  @uploader_name = args[:uploader_name] if args.key?(:uploader_name)
end