Class: HubSpotSDK::Models::Cms::BatchResponsePageWithErrors

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/hubspot_sdk/models/cms/batch_response_page_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:

  • completed_at (Time)

    Time of batch operation completion.

  • results (Array<HubSpotSDK::Models::Cms::PageData>)

    Results of batch operation.

  • started_at (Time)

    Time of batch operation start.

  • status (Symbol, HubSpotSDK::Models::Cms::BatchResponsePageWithErrors::Status)

    Status of batch operation.

  • errors (Array<HubSpotSDK::Models::StandardError>) (defaults to: nil)

    Errors in batch operation.

  • links (Hash{Symbol=>String}) (defaults to: nil)

    Links associated with batch operation.

  • num_errors (Integer) (defaults to: nil)

    Number of errors.

  • requested_at (Time) (defaults to: nil)

    Time of batch operation request.



# File 'lib/hubspot_sdk/models/cms/batch_response_page_with_errors.rb', line 55

Instance Attribute Details

#completed_atTime

Time of batch operation completion.

Returns:

  • (Time)


11
# File 'lib/hubspot_sdk/models/cms/batch_response_page_with_errors.rb', line 11

required :completed_at, Time, api_name: :completedAt

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

Errors in batch operation.

Returns:



35
# File 'lib/hubspot_sdk/models/cms/batch_response_page_with_errors.rb', line 35

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

Links associated with batch operation.

Returns:

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


41
# File 'lib/hubspot_sdk/models/cms/batch_response_page_with_errors.rb', line 41

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

#num_errorsInteger?

Number of errors.

Returns:

  • (Integer, nil)


47
# File 'lib/hubspot_sdk/models/cms/batch_response_page_with_errors.rb', line 47

optional :num_errors, Integer, api_name: :numErrors

#requested_atTime?

Time of batch operation request.

Returns:

  • (Time, nil)


53
# File 'lib/hubspot_sdk/models/cms/batch_response_page_with_errors.rb', line 53

optional :requested_at, Time, api_name: :requestedAt

#resultsArray<HubSpotSDK::Models::Cms::PageData>

Results of batch operation.



17
# File 'lib/hubspot_sdk/models/cms/batch_response_page_with_errors.rb', line 17

required :results, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Cms::PageData] }

#started_atTime

Time of batch operation start.

Returns:

  • (Time)


23
# File 'lib/hubspot_sdk/models/cms/batch_response_page_with_errors.rb', line 23

required :started_at, Time, api_name: :startedAt

#statusSymbol, HubSpotSDK::Models::Cms::BatchResponsePageWithErrors::Status

Status of batch operation.



29
# File 'lib/hubspot_sdk/models/cms/batch_response_page_with_errors.rb', line 29

required :status, enum: -> { HubSpotSDK::Cms::BatchResponsePageWithErrors::Status }