Class: Inttegro::Shared::OperatingPolicySource
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Shared::OperatingPolicySource
- Defined in:
- lib/inttegro/shared/operating_policy_source.rb
Overview
Typed representation of the operating policy source 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
-
#id ⇒ String?
readonly
Template identifier when
typeistemplate. -
#type ⇒ Inttegro::Shared::OperatingPolicySourceType
readonly
Value of the
typefield in the Inttegro API payload. -
#version ⇒ Integer?
readonly
Template version when
typeistemplate.
Instance Attribute Details
#id ⇒ String? (readonly)
Template identifier when type is template.
Optional in the API payload; omitted values default to nil. Wire name: id.
36 37 38 39 40 |
# File 'lib/inttegro/shared/operating_policy_source.rb', line 36 class OperatingPolicySource < T::Struct const :type, Inttegro::Shared::OperatingPolicySourceType const :id, T.nilable(String), default: nil const :version, T.nilable(Integer), default: nil end |
#type ⇒ Inttegro::Shared::OperatingPolicySourceType (readonly)
Value of the type field in the Inttegro API payload.
Required in the API payload. Wire name: type.
36 37 38 39 40 |
# File 'lib/inttegro/shared/operating_policy_source.rb', line 36 class OperatingPolicySource < T::Struct const :type, Inttegro::Shared::OperatingPolicySourceType const :id, T.nilable(String), default: nil const :version, T.nilable(Integer), default: nil end |
#version ⇒ Integer? (readonly)
Template version when type is template.
Optional in the API payload; omitted values default to nil. Wire name: version.
36 37 38 39 40 |
# File 'lib/inttegro/shared/operating_policy_source.rb', line 36 class OperatingPolicySource < T::Struct const :type, Inttegro::Shared::OperatingPolicySourceType const :id, T.nilable(String), default: nil const :version, T.nilable(Integer), default: nil end |