Class: Google::Apis::YoutubePartnerV1::PackageInsertResponse

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) ⇒ PackageInsertResponse

Returns a new instance of PackageInsertResponse.



2699
2700
2701
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2699

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

Instance Attribute Details

#errorsArray<Google::Apis::YoutubePartnerV1::ValidateError>

The list of errors and/or warnings. Corresponds to the JSON property errors



2677
2678
2679
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2677

def errors
  @errors
end

#kindString

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

Returns:

  • (String)


2683
2684
2685
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2683

def kind
  @kind
end

#resourceGoogle::Apis::YoutubePartnerV1::Package

The package resource. Corresponds to the JSON property resource



2688
2689
2690
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2688

def resource
  @resource
end

#statusString

The package insert status. Indicates whether the insert operation completed successfully or identifies the general cause of failure. For most cases where the insert operation failed, the errors are described in the API response's errors object. However, if the operation failed because the package contained non-metadata files, the errors object is not included in the response. Corresponds to the JSON property status

Returns:

  • (String)


2697
2698
2699
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2697

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2704
2705
2706
2707
2708
2709
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2704

def update!(**args)
  @errors = args[:errors] if args.key?(:errors)
  @kind = args[:kind] if args.key?(:kind)
  @resource = args[:resource] if args.key?(:resource)
  @status = args[:status] if args.key?(:status)
end