Class: Google::Apis::YoutubeAnalyticsV2::ErrorProto
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubeAnalyticsV2::ErrorProto
 
- 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
Describes one specific error.
Instance Attribute Summary collapse
- 
  
    
      #argument  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Error arguments, to be used when building user-friendly error messages given the error domain and code. 
- 
  
    
      #code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Error code in the error domain. 
- 
  
    
      #debug_info  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Debugging information, which should not be shared externally. 
- 
  
    
      #domain  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Error domain. 
- 
  
    
      #external_error_message  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A short explanation for the error, which can be shared outside Google. 
- 
  
    
      #location  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Location of the error, as specified by the location type. 
- 
  
    
      #location_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property locationType.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ErrorProto 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ErrorProto. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ErrorProto
Returns a new instance of ErrorProto
| 105 106 107 | # File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 105 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#argument ⇒ Array<String>
Error arguments, to be used when building user-friendly error messages
given the error domain and code.  Different error codes require different
arguments.
Corresponds to the JSON property argument
| 55 56 57 | # File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 55 def argument @argument end | 
#code ⇒ String
Error code in the error domain. This should correspond to
a value of the enum type whose name is in domain. See
the core error domain in error_domain.proto.
Corresponds to the JSON property code
| 62 63 64 | # File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 62 def code @code end | 
#debug_info ⇒ String
Debugging information, which should not be
shared externally.
Corresponds to the JSON property debugInfo
| 68 69 70 | # File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 68 def debug_info @debug_info end | 
#domain ⇒ String
Error domain. RoSy services can define their own
domain and error codes. This should normally be
the name of an enum type, such as: gdata.CoreErrorDomain
Corresponds to the JSON property domain
| 75 76 77 | # File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 75 def domain @domain end | 
#external_error_message ⇒ String
A short explanation for the error, which can be shared outside Google.
Please set domain, code and arguments whenever possible instead of this
error message so that external APIs can build safe error messages
themselves.
External messages built in a RoSy interface will most likely refer to
information and concepts that are not available externally and should not
be exposed. It is safer if external APIs can understand the errors and
decide what the error message should look like.
Corresponds to the JSON property externalErrorMessage
| 87 88 89 | # File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 87 def @external_error_message end | 
#location ⇒ String
Location of the error, as specified by the location type.
If location_type is PATH, this should be a path to a field that's
relative to the request, using FieldPath notation
(net/proto2/util/public/field_path.h).
Examples:
authenticated_user.gaia_id
resource.address[2].country
Corresponds to the JSON property location
| 98 99 100 | # File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 98 def location @location end | 
#location_type ⇒ String
Corresponds to the JSON property locationType
| 103 104 105 | # File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 103 def location_type @location_type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 110 111 112 113 114 115 116 117 118 | # File 'generated/google/apis/youtube_analytics_v2/classes.rb', line 110 def update!(**args) @argument = args[:argument] if args.key?(:argument) @code = args[:code] if args.key?(:code) @debug_info = args[:debug_info] if args.key?(:debug_info) @domain = args[:domain] if args.key?(:domain) @external_error_message = args[:external_error_message] if args.key?(:external_error_message) @location = args[:location] if args.key?(:location) @location_type = args[:location_type] if args.key?(:location_type) end |