Class: HubSpotSDK::Models::Webhooks::BatchResponseSubscriptionResponseWithErrors

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors.rb

Defined Under Namespace

Modules: Status

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(completed_at:, results:, started_at:, status:, errors: nil, links: nil, num_errors: nil, requested_at: nil) ⇒ Object

Parameters:



# File 'lib/hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors.rb', line 48

Instance Attribute Details

#completed_atTime

Returns:

  • (Time)


10
# File 'lib/hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors.rb', line 10

required :completed_at, Time, api_name: :completedAt

#errorsArray<HubSpotSDK::Models::StandardError>?

Returns:



30
# File 'lib/hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors.rb', line 30

optional :errors, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::StandardError] }

Returns:

  • (Hash{Symbol=>String}, nil)


35
# File 'lib/hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors.rb', line 35

optional :links, HubSpotSDK::Internal::Type::HashOf[String]

#num_errorsInteger?

The number of errors that occurred during the batch operation.

Returns:

  • (Integer, nil)


41
# File 'lib/hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors.rb', line 41

optional :num_errors, Integer, api_name: :numErrors

#requested_atTime?

Returns:

  • (Time, nil)


46
# File 'lib/hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors.rb', line 46

optional :requested_at, Time, api_name: :requestedAt

#resultsArray<HubSpotSDK::Models::Webhooks::SubscriptionResponse>



15
# File 'lib/hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors.rb', line 15

required :results, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Webhooks::SubscriptionResponse] }

#started_atTime

Returns:

  • (Time)


20
# File 'lib/hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors.rb', line 20

required :started_at, Time, api_name: :startedAt

#statusSymbol, HubSpotSDK::Models::Webhooks::BatchResponseSubscriptionResponseWithErrors::Status



25
# File 'lib/hubspot_sdk/models/webhooks/batch_response_subscription_response_with_errors.rb', line 25

required :status, enum: -> { HubSpotSDK::Webhooks::BatchResponseSubscriptionResponseWithErrors::Status }