Class: Inttegro::Shared::LookupOperatingPolicyRequest

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/shared/lookup_operating_policy_request.rb

Overview

Typed representation of the lookup operating policy request object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#operating_policy_id ⇒ String (readonly)

Value of the operating_policy_id field in the Inttegro API payload.

Required in the API payload. Wire name: operating_policy_id.

Returns:

  • (String)


29
30
31
32
# File 'lib/inttegro/shared/lookup_operating_policy_request.rb', line 29

class LookupOperatingPolicyRequest < T::Struct
  const :operating_policy_id, String
  const :version, T.nilable(Integer), default: nil
end

#version ⇒ Integer? (readonly)

Immutable version to return. Omit to return the latest active version.

Optional in the API payload; omitted values default to nil. Wire name: version.

Returns:

  • (Integer, nil)


29
30
31
32
# File 'lib/inttegro/shared/lookup_operating_policy_request.rb', line 29

class LookupOperatingPolicyRequest < T::Struct
  const :operating_policy_id, String
  const :version, T.nilable(Integer), default: nil
end