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.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#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
      132 133 134  | 
    
      # File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 132 def code @code end  | 
  
#error ⇒ Array<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_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
      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  |