Class: Google::Apis::CloudsearchV1::RepositoryError

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb

Overview

Errors when the connector is communicating to the source repository.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RepositoryError

Returns a new instance of RepositoryError.



3500
3501
3502
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3500

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

Instance Attribute Details

#error_messageString

Message that describes the error. The maximum allowable length of the message is 8192 characters. Corresponds to the JSON property errorMessage

Returns:

  • (String)


3488
3489
3490
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3488

def error_message
  @error_message
end

#http_status_codeFixnum

Error codes. Matches the definition of HTTP status codes. Corresponds to the JSON property httpStatusCode

Returns:

  • (Fixnum)


3493
3494
3495
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3493

def http_status_code
  @http_status_code
end

#typeString

Type of error. Corresponds to the JSON property type

Returns:

  • (String)


3498
3499
3500
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3498

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3505
3506
3507
3508
3509
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3505

def update!(**args)
  @error_message = args[:error_message] if args.key?(:error_message)
  @http_status_code = args[:http_status_code] if args.key?(:http_status_code)
  @type = args[:type] if args.key?(:type)
end