Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugSession

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1DebugSession

Returns a new instance of GoogleCloudApigeeV1DebugSession.



2062
2063
2064
# File 'lib/google/apis/apigee_v1/classes.rb', line 2062

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

Instance Attribute Details

#countFixnum

Optional. The number of request to be traced. Min = 1, Max = 15, Default = 10. Corresponds to the JSON property count

Returns:

  • (Fixnum)


2029
2030
2031
# File 'lib/google/apis/apigee_v1/classes.rb', line 2029

def count
  @count
end

#filterString

Optional. A conditional statement which is evaluated against the request message to determine if it should be traced. Syntax matches that of on API Proxy bundle flow Condition. Corresponds to the JSON property filter

Returns:

  • (String)


2036
2037
2038
# File 'lib/google/apis/apigee_v1/classes.rb', line 2036

def filter
  @filter
end

#nameString

A unique ID for this DebugSession. Corresponds to the JSON property name

Returns:

  • (String)


2041
2042
2043
# File 'lib/google/apis/apigee_v1/classes.rb', line 2041

def name
  @name
end

#timeoutFixnum

Optional. The time in seconds after which this DebugSession should end. This value will override the value in query param, if both are provided. Corresponds to the JSON property timeout

Returns:

  • (Fixnum)


2047
2048
2049
# File 'lib/google/apis/apigee_v1/classes.rb', line 2047

def timeout
  @timeout
end

#tracesizeFixnum

Optional. The maximum number of bytes captured from the response payload. Min = 0, Max = 5120, Default = 5120. Corresponds to the JSON property tracesize

Returns:

  • (Fixnum)


2053
2054
2055
# File 'lib/google/apis/apigee_v1/classes.rb', line 2053

def tracesize
  @tracesize
end

#validityFixnum

Optional. The length of time, in seconds, that this debug session is valid, starting from when it's received in the control plane. Min = 1, Max = 15, Default = 10. Corresponds to the JSON property validity

Returns:

  • (Fixnum)


2060
2061
2062
# File 'lib/google/apis/apigee_v1/classes.rb', line 2060

def validity
  @validity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2067
2068
2069
2070
2071
2072
2073
2074
# File 'lib/google/apis/apigee_v1/classes.rb', line 2067

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @filter = args[:filter] if args.key?(:filter)
  @name = args[:name] if args.key?(:name)
  @timeout = args[:timeout] if args.key?(:timeout)
  @tracesize = args[:tracesize] if args.key?(:tracesize)
  @validity = args[:validity] if args.key?(:validity)
end