Class: Google::Apis::YoutubeAnalyticsV2::Errors
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeAnalyticsV2::Errors
- 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
-
#code ⇒ String
Global error code.
-
#error ⇒ Array<Google::Apis::YoutubeAnalyticsV2::ErrorProto>
Specific error description and codes Corresponds to the JSON property
error
. -
#request_id ⇒ String
Request identifier generated by the service, which can be used to identify the error in the logs Corresponds to the JSON property
requestId
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Errors
constructor
A new instance of Errors.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Errors
Returns a new instance of Errors.
134 135 136 |
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 134 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Global error code. Deprecated and ignored. Set custom error codes in
ErrorProto.domain and ErrorProto.code instead.
Corresponds to the JSON property code
121 122 123 |
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 121 def code @code end |
#error ⇒ Array<Google::Apis::YoutubeAnalyticsV2::ErrorProto>
Specific error description and codes
Corresponds to the JSON property error
126 127 128 |
# File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 126 def error @error end |
#request_id ⇒ String
Request identifier generated by the service, which can be used to identify the
error in the logs
Corresponds to the JSON property requestId
132 133 134 |
# File 'generated/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 'generated/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 |