Class: HubSpotSDK::Models::Webhooks::SnapshotStatusResponse

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

Overview

Defined Under Namespace

Modules: ErrorCode, Status

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:, initiated_at:, status:, completed_at: nil, error_code: nil, message: nil) ⇒ Object

Parameters:



# File 'lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb', line 40

Instance Attribute Details

#completed_atInteger?

Returns:

  • (Integer, nil)


26
# File 'lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb', line 26

optional :completed_at, Integer, api_name: :completedAt

#error_codeSymbol, ...



31
32
33
# File 'lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb', line 31

optional :error_code,
enum: -> { HubSpotSDK::Webhooks::SnapshotStatusResponse::ErrorCode },
api_name: :errorCode

#idString

Returns:

  • (String)


11
# File 'lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb', line 11

required :id, String

#initiated_atInteger

Returns:

  • (Integer)


16
# File 'lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb', line 16

required :initiated_at, Integer, api_name: :initiatedAt

#messageString?

Returns:

  • (String, nil)


38
# File 'lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb', line 38

optional :message, String

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



21
# File 'lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb', line 21

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/hubspot_sdk/models/webhooks/snapshot_status_response.rb', line 58