Class: Google::Apis::YoutubeAnalyticsV2::Errors

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

Overview

Request Error information. The presence of an error field signals that the operation has failed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Errors

Returns a new instance of Errors.



134
135
136
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 134

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

Instance Attribute Details

#codeString

Global error code. Deprecated and ignored. Set custom error codes in ErrorProto.domain and ErrorProto.code instead. Corresponds to the JSON property code

Returns:

  • (String)


121
122
123
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 121

def code
  @code
end

#errorArray<Google::Apis::YoutubeAnalyticsV2::ErrorProto>

Specific error description and codes Corresponds to the JSON property error



126
127
128
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 126

def error
  @error
end

#request_idString

Request identifier generated by the service, which can be used to identify the error in the logs Corresponds to the JSON property requestId

Returns:

  • (String)


132
133
134
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 132

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



139
140
141
142
143
# File 'lib/google/apis/youtube_analytics_v2/classes.rb', line 139

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @error = args[:error] if args.key?(:error)
  @request_id = args[:request_id] if args.key?(:request_id)
end