Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Result

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

Overview

Result is short for "action result", could be different types identified by " action_result" field. Supported types: 1. DebugInfo : generic debug info collected by runtime recorded as a list of properties. For example, the contents could be virtual host info, state change result, or execution metadata. Required fields : properties, timestamp 2. RequestMessage: information of a http request. Contains headers, request URI and http methods type.Required fields : headers, uri, verb 3. ResponseMessage: information of a http response. Contains headers, reason phrase and http status code. Required fields : headers, reasonPhrase, statusCode 4. ErrorMessage: information of a http error message. Contains detail error message, reason phrase and status code. Required fields : content, headers, reasonPhrase, statusCode 5. VariableAccess: a list of variable access actions, can be Get, Set and Remove. Required fields : accessList

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1Result

Returns a new instance of GoogleCloudApigeeV1Result.


4574
4575
4576
# File 'generated/google/apis/apigee_v1/classes.rb', line 4574

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

Instance Attribute Details

#access_listArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Access>

A list of variable access actions agaist the api proxy. Supported values: Get, Set, Remove. Corresponds to the JSON property accessList


4527
4528
4529
# File 'generated/google/apis/apigee_v1/classes.rb', line 4527

def access_list
  @access_list
end

#action_resultString

Type of the action result. Can be one of the five: DebugInfo, RequestMessage, ResponseMessage, ErrorMessage, VariableAccess Corresponds to the JSON property ActionResult

Returns:

  • (String)

4521
4522
4523
# File 'generated/google/apis/apigee_v1/classes.rb', line 4521

def action_result
  @action_result
end

#contentString

Error message content. for example, "content" : "\"fault\":\"faultstring\":\" API timed out\",\"detail\":\"errorcode\":\"flow.APITimedOut\"`" Corresponds to the JSON propertycontent`

Returns:

  • (String)

4533
4534
4535
# File 'generated/google/apis/apigee_v1/classes.rb', line 4533

def content
  @content
end

#headersArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Property>

A list of HTTP headers. for example, '"headers" : [ "name" : "Content-Length" , "value" : "83", "name" : "Content-Type", "value" : "application/json" ] ' Corresponds to the JSON property headers


4540
4541
4542
# File 'generated/google/apis/apigee_v1/classes.rb', line 4540

def headers
  @headers
end

#propertiesGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1Properties

Message for compatibility with legacy Edge specification for Java Properties object in JSON. Corresponds to the JSON property properties


4546
4547
4548
# File 'generated/google/apis/apigee_v1/classes.rb', line 4546

def properties
  @properties
end

#reason_phraseString

HTTP response phrase Corresponds to the JSON property reasonPhrase

Returns:

  • (String)

4551
4552
4553
# File 'generated/google/apis/apigee_v1/classes.rb', line 4551

def reason_phrase
  @reason_phrase
end

#status_codeString

HTTP response code Corresponds to the JSON property statusCode

Returns:

  • (String)

4556
4557
4558
# File 'generated/google/apis/apigee_v1/classes.rb', line 4556

def status_code
  @status_code
end

#timestampString

Timestamp of when the result is recorded. Its format is dd-mm-yy hh:mm:ss:xxx. For example, "timestamp" : "12-08-19 00:31:59:960" Corresponds to the JSON property timestamp

Returns:

  • (String)

4562
4563
4564
# File 'generated/google/apis/apigee_v1/classes.rb', line 4562

def timestamp
  @timestamp
end

#u_riString

The relative path of the api proxy. for example, "uRI" : "/iloveapis" Corresponds to the JSON property uRI

Returns:

  • (String)

4567
4568
4569
# File 'generated/google/apis/apigee_v1/classes.rb', line 4567

def u_ri
  @u_ri
end

#verbString

HTTP method verb Corresponds to the JSON property verb

Returns:

  • (String)

4572
4573
4574
# File 'generated/google/apis/apigee_v1/classes.rb', line 4572

def verb
  @verb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
# File 'generated/google/apis/apigee_v1/classes.rb', line 4579

def update!(**args)
  @action_result = args[:action_result] if args.key?(:action_result)
  @access_list = args[:access_list] if args.key?(:access_list)
  @content = args[:content] if args.key?(:content)
  @headers = args[:headers] if args.key?(:headers)
  @properties = args[:properties] if args.key?(:properties)
  @reason_phrase = args[:reason_phrase] if args.key?(:reason_phrase)
  @status_code = args[:status_code] if args.key?(:status_code)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
  @u_ri = args[:u_ri] if args.key?(:u_ri)
  @verb = args[:verb] if args.key?(:verb)
end