Class: Inttegro::Shared::TemplateOperatingPolicySource

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

Overview

Typed representation of the template 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.

Required in the API payload. Wire name: id.

Returns:

  • (String)


36
37
38
39
40
# File 'lib/inttegro/shared/template_operating_policy_source.rb', line 36

class TemplateOperatingPolicySource < T::Struct
  const :type, Inttegro::Shared::TemplateOperatingPolicySourceType
  const :id, String
  const :version, Integer
end

#type ⇒ Inttegro::Shared::TemplateOperatingPolicySourceType (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/template_operating_policy_source.rb', line 36

class TemplateOperatingPolicySource < T::Struct
  const :type, Inttegro::Shared::TemplateOperatingPolicySourceType
  const :id, String
  const :version, Integer
end

#version ⇒ Integer (readonly)

Template version.

Required in the API payload. Wire name: version.

Returns:

  • (Integer)


36
37
38
39
40
# File 'lib/inttegro/shared/template_operating_policy_source.rb', line 36

class TemplateOperatingPolicySource < T::Struct
  const :type, Inttegro::Shared::TemplateOperatingPolicySourceType
  const :id, String
  const :version, Integer
end