Class: Google::Apis::YoutubeV3::VideoAbuseReport

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/google/apis/youtube_v3/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) ⇒ VideoAbuseReport

Returns a new instance of VideoAbuseReport



7109
7110
7111
# File 'generated/google/apis/youtube_v3/classes.rb', line 7109

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

Instance Attribute Details

#commentsString

Additional comments regarding the abuse report. Corresponds to the JSON property comments

Returns:

  • (String)


7084
7085
7086
# File 'generated/google/apis/youtube_v3/classes.rb', line 7084

def comments
  @comments
end

#languageString

The language that the content was viewed in. Corresponds to the JSON property language

Returns:

  • (String)


7089
7090
7091
# File 'generated/google/apis/youtube_v3/classes.rb', line 7089

def language
  @language
end

#reason_idString

The high-level, or primary, reason that the content is abusive. The value is an abuse report reason ID. Corresponds to the JSON property reasonId

Returns:

  • (String)


7095
7096
7097
# File 'generated/google/apis/youtube_v3/classes.rb', line 7095

def reason_id
  @reason_id
end

#secondary_reason_idString

The specific, or secondary, reason that this content is abusive (if available). The value is an abuse report reason ID that is a valid secondary reason for the primary reason. Corresponds to the JSON property secondaryReasonId

Returns:

  • (String)


7102
7103
7104
# File 'generated/google/apis/youtube_v3/classes.rb', line 7102

def secondary_reason_id
  @secondary_reason_id
end

#video_idString

The ID that YouTube uses to uniquely identify the video. Corresponds to the JSON property videoId

Returns:

  • (String)


7107
7108
7109
# File 'generated/google/apis/youtube_v3/classes.rb', line 7107

def video_id
  @video_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7114
7115
7116
7117
7118
7119
7120
# File 'generated/google/apis/youtube_v3/classes.rb', line 7114

def update!(**args)
  @comments = args[:comments] if args.key?(:comments)
  @language = args[:language] if args.key?(:language)
  @reason_id = args[:reason_id] if args.key?(:reason_id)
  @secondary_reason_id = args[:secondary_reason_id] if args.key?(:secondary_reason_id)
  @video_id = args[:video_id] if args.key?(:video_id)
end