Class: MetronomeSDK::Models::V1::AlertCreateParams::AlertSpecifier::CustomFieldFilter

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/alert_create_params.rb,
sig/metronome_sdk/models/v1/alert_create_params.rbs

Defined Under Namespace

Modules: Entity

Instance Attribute 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(entity:, key:, value: nil) ⇒ Object

Parameters:



211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
# File 'lib/metronome_sdk/models/v1/alert_create_params.rb', line 211

class CustomFieldFilter < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute entity
  #
  #   @return [Symbol, MetronomeSDK::Models::V1::AlertCreateParams::AlertSpecifier::CustomFieldFilter::Entity]
  required :entity,
           enum: -> { MetronomeSDK::V1::AlertCreateParams::AlertSpecifier::CustomFieldFilter::Entity }

  # @!attribute key
  #
  #   @return [String]
  required :key, String

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

  # @!method initialize(entity:, key:, value: nil)
  #   @param entity [Symbol, MetronomeSDK::Models::V1::AlertCreateParams::AlertSpecifier::CustomFieldFilter::Entity]
  #   @param key [String]
  #   @param value [String]

  # @see MetronomeSDK::Models::V1::AlertCreateParams::AlertSpecifier::CustomFieldFilter#entity
  module Entity
    extend MetronomeSDK::Internal::Type::Enum

    CONTRACT = :Contract
    COMMIT = :Commit
    CONTRACT_CREDIT = :ContractCredit
    CONTRACT_CREDIT_OR_COMMIT = :ContractCreditOrCommit

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#entitySymbol, MetronomeSDK::Models::V1::AlertCreateParams::AlertSpecifier::CustomFieldFilter::Entity

Parameters:

  • value (MetronomeSDK::Models::V1::AlertCreateParams::AlertSpecifier::CustomFieldFilter::entity)

Returns:



215
216
# File 'lib/metronome_sdk/models/v1/alert_create_params.rb', line 215

required :entity,
enum: -> { MetronomeSDK::V1::AlertCreateParams::AlertSpecifier::CustomFieldFilter::Entity }

#keyString

Parameters:

  • value (String)

Returns:

  • (String)


221
# File 'lib/metronome_sdk/models/v1/alert_create_params.rb', line 221

required :key, String

#valueString?

Parameters:

  • (String)

Returns:

  • (String, nil)


226
# File 'lib/metronome_sdk/models/v1/alert_create_params.rb', line 226

optional :value, String

Instance Method Details

#to_hash{

Returns:

  • ({)


218
# File 'sig/metronome_sdk/models/v1/alert_create_params.rbs', line 218

def to_hash: -> {