Class: Amocrm::Models::SourceUpdateByIDResponse::SourceUpdateResponse::Embedded::Source

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amocrm/models/source_update_by_id_response.rb

Defined Under Namespace

Modules: ExternalID, Services

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id: nil, _links: nil, default: nil, external_id: nil, name: nil, origin_code: nil, pipeline_id: nil, request_id: nil, services: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • _links (Object) (defaults to: nil)
  • default (Boolean) (defaults to: nil)
  • external_id (String, Integer, Boolean) (defaults to: nil)
  • name (String) (defaults to: nil)
  • origin_code (String, nil) (defaults to: nil)
  • pipeline_id (Integer, nil) (defaults to: nil)
  • request_id (String) (defaults to: nil)
  • services (Array<Object>, Array<String>) (defaults to: nil)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# File 'lib/amocrm/models/source_update_by_id_response.rb', line 45

class Source < Amocrm::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [Integer, nil]
  optional :id, Integer

  # @!attribute _links
  #
  #   @return [Object, nil]
  optional :_links, Amocrm::Internal::Type::Unknown

  # @!attribute default
  #
  #   @return [Boolean, nil]
  optional :default, Amocrm::Internal::Type::Boolean

  # @!attribute external_id
  #
  #   @return [String, Integer, Boolean, nil]
  optional :external_id,
           union: -> { Amocrm::Models::SourceUpdateByIDResponse::SourceUpdateResponse::Embedded::Source::ExternalID }

  # @!attribute name
  #
  #   @return [String, nil]
  optional :name, String

  # @!attribute origin_code
  #
  #   @return [String, nil]
  optional :origin_code, String, nil?: true

  # @!attribute pipeline_id
  #
  #   @return [Integer, nil]
  optional :pipeline_id, Integer, nil?: true

  # @!attribute request_id
  #
  #   @return [String, nil]
  optional :request_id, String

  # @!attribute services
  #
  #   @return [Array<Object>, Array<String>, nil]
  optional :services,
           union: -> { Amocrm::Models::SourceUpdateByIDResponse::SourceUpdateResponse::Embedded::Source::Services }

  # @!method initialize(id: nil, _links: nil, default: nil, external_id: nil, name: nil, origin_code: nil, pipeline_id: nil, request_id: nil, services: nil)
  #   @param id [Integer]
  #   @param _links [Object]
  #   @param default [Boolean]
  #   @param external_id [String, Integer, Boolean]
  #   @param name [String]
  #   @param origin_code [String, nil]
  #   @param pipeline_id [Integer, nil]
  #   @param request_id [String]
  #   @param services [Array<Object>, Array<String>]

  # @see Amocrm::Models::SourceUpdateByIDResponse::SourceUpdateResponse::Embedded::Source#external_id
  module ExternalID
    extend Amocrm::Internal::Type::Union

    variant String

    variant Integer

    variant Amocrm::Internal::Type::Boolean

    # @!method self.variants
    #   @return [Array(String, Integer, Boolean)]
  end

  # @see Amocrm::Models::SourceUpdateByIDResponse::SourceUpdateResponse::Embedded::Source#services
  module Services
    extend Amocrm::Internal::Type::Union

    variant -> { Amocrm::Models::SourceUpdateByIDResponse::SourceUpdateResponse::Embedded::Source::Services::UnionMember0Array }

    variant -> { Amocrm::Models::SourceUpdateByIDResponse::SourceUpdateResponse::Embedded::Source::Services::StringArray }

    # @!method self.variants
    #   @return [Array(Array<Object>, Array<String>)]

    # @type [Amocrm::Internal::Type::Converter]
    UnionMember0Array = Amocrm::Internal::Type::ArrayOf[Amocrm::Internal::Type::Unknown]

    # @type [Amocrm::Internal::Type::Converter]
    StringArray = Amocrm::Internal::Type::ArrayOf[String]
  end
end

Instance Attribute Details

Returns:

  • (Object, nil)


54
# File 'lib/amocrm/models/source_update_by_id_response.rb', line 54

optional :_links, Amocrm::Internal::Type::Unknown

#defaultBoolean?

Returns:

  • (Boolean, nil)


59
# File 'lib/amocrm/models/source_update_by_id_response.rb', line 59

optional :default, Amocrm::Internal::Type::Boolean

#external_idString, ...

Returns:

  • (String, Integer, Boolean, nil)


64
65
# File 'lib/amocrm/models/source_update_by_id_response.rb', line 64

optional :external_id,
union: -> { Amocrm::Models::SourceUpdateByIDResponse::SourceUpdateResponse::Embedded::Source::ExternalID }

#idInteger?

Returns:

  • (Integer, nil)


49
# File 'lib/amocrm/models/source_update_by_id_response.rb', line 49

optional :id, Integer

#nameString?

Returns:

  • (String, nil)


70
# File 'lib/amocrm/models/source_update_by_id_response.rb', line 70

optional :name, String

#origin_codeString?

Returns:

  • (String, nil)


75
# File 'lib/amocrm/models/source_update_by_id_response.rb', line 75

optional :origin_code, String, nil?: true

#pipeline_idInteger?

Returns:

  • (Integer, nil)


80
# File 'lib/amocrm/models/source_update_by_id_response.rb', line 80

optional :pipeline_id, Integer, nil?: true

#request_idString?

Returns:

  • (String, nil)


85
# File 'lib/amocrm/models/source_update_by_id_response.rb', line 85

optional :request_id, String

#servicesArray<Object>, ...

Returns:

  • (Array<Object>, Array<String>, nil)


90
91
# File 'lib/amocrm/models/source_update_by_id_response.rb', line 90

optional :services,
union: -> { Amocrm::Models::SourceUpdateByIDResponse::SourceUpdateResponse::Embedded::Source::Services }

Class Method Details

.variantsArray(String, Integer, Boolean)

Returns:

  • (Array(String, Integer, Boolean))


# File 'lib/amocrm/models/source_update_by_id_response.rb', line 114