Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Result
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeV1::GoogleCloudApigeeV1Result
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apigee_v1/classes.rb,
lib/google/apis/apigee_v1/representations.rb,
lib/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
-
#access_list ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Access>
A list of variable access actions agaist the api proxy.
-
#action_result ⇒ String
Type of the action result.
-
#content ⇒ String
Error message content.
-
#headers ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Property>
A list of HTTP headers.
-
#properties ⇒ Google::Apis::ApigeeV1::GoogleCloudApigeeV1Properties
Message for compatibility with legacy Edge specification for Java Properties object in JSON.
-
#reason_phrase ⇒ String
HTTP response phrase Corresponds to the JSON property
reasonPhrase. -
#status_code ⇒ String
HTTP response code Corresponds to the JSON property
statusCode. -
#timestamp ⇒ String
Timestamp of when the result is recorded.
-
#u_ri ⇒ String
The relative path of the api proxy.
-
#verb ⇒ String
HTTP method verb Corresponds to the JSON property
verb.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApigeeV1Result
constructor
A new instance of GoogleCloudApigeeV1Result.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApigeeV1Result
Returns a new instance of GoogleCloudApigeeV1Result.
6068 6069 6070 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6068 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_list ⇒ Array<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
6021 6022 6023 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6021 def access_list @access_list end |
#action_result ⇒ String
Type of the action result. Can be one of the five: DebugInfo, RequestMessage,
ResponseMessage, ErrorMessage, VariableAccess
Corresponds to the JSON property ActionResult
6015 6016 6017 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6015 def action_result @action_result end |
#content ⇒ String
Error message content. for example, "content" : "\"fault\":\"faultstring\":\"
API timed out\",\"detail\":\"errorcode\":\"flow.APITimedOut\"`"
Corresponds to the JSON propertycontent`
6027 6028 6029 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6027 def content @content end |
#headers ⇒ Array<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
6034 6035 6036 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6034 def headers @headers end |
#properties ⇒ Google::Apis::ApigeeV1::GoogleCloudApigeeV1Properties
Message for compatibility with legacy Edge specification for Java Properties
object in JSON.
Corresponds to the JSON property properties
6040 6041 6042 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6040 def properties @properties end |
#reason_phrase ⇒ String
HTTP response phrase
Corresponds to the JSON property reasonPhrase
6045 6046 6047 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6045 def reason_phrase @reason_phrase end |
#status_code ⇒ String
HTTP response code
Corresponds to the JSON property statusCode
6050 6051 6052 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6050 def status_code @status_code end |
#timestamp ⇒ String
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
6056 6057 6058 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6056 def @timestamp end |
#u_ri ⇒ String
The relative path of the api proxy. for example, "uRI" : "/iloveapis"
Corresponds to the JSON property uRI
6061 6062 6063 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6061 def u_ri @u_ri end |
#verb ⇒ String
HTTP method verb
Corresponds to the JSON property verb
6066 6067 6068 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6066 def verb @verb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 6073 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 |