Class: Google::Apis::DigitalassetlinksV1::BulkCheckResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/digitalassetlinks_v1/classes.rb,
lib/google/apis/digitalassetlinks_v1/representations.rb,
lib/google/apis/digitalassetlinks_v1/representations.rb

Overview

Response for BulkCheck call. Results are sent in a list in the same order in which they were sent. Individual check errors are described in the appropriate check_results entry. If the entire call fails, the response will include a bulk_error_code field describing the error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BulkCheckResponse

Returns a new instance of BulkCheckResponse.



159
160
161
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 159

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

Instance Attribute Details

#bulk_error_codeString

Error code for the entire request. Present only if the entire request failed. Individual check errors will not trigger the presence of this field. Corresponds to the JSON property bulkErrorCode

Returns:

  • (String)


151
152
153
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 151

def bulk_error_code
  @bulk_error_code
end

#check_resultsArray<Google::Apis::DigitalassetlinksV1::CheckResponse>

List of results for each check request. Results are returned in the same order in which they were sent in the request. Corresponds to the JSON property checkResults



157
158
159
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 157

def check_results
  @check_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



164
165
166
167
# File 'lib/google/apis/digitalassetlinks_v1/classes.rb', line 164

def update!(**args)
  @bulk_error_code = args[:bulk_error_code] if args.key?(:bulk_error_code)
  @check_results = args[:check_results] if args.key?(:check_results)
end