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

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Errors

Returns a new instance of Errors



145
146
147
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 145

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)


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

def code
  @code
end

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

Specific error description and codes Corresponds to the JSON property error



137
138
139
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 137

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)


143
144
145
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 143

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



150
151
152
153
154
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 150

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