Class: Inttegro::Shared::OperatingPolicySource

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

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.

Returns:

  • (String, nil)


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.

Returns:

  • (Integer, nil)


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