Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2ImportMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb

Overview

Metadata related to the progress of the Import operation. This is returned by the google.longrunning.Operation.metadata field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2ImportMetadata

Returns a new instance of GoogleCloudRetailV2ImportMetadata.



466
467
468
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 466

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Operation create time. Corresponds to the JSON property createTime

Returns:

  • (String)


435
436
437
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 435

def create_time
  @create_time
end

#failure_countFixnum

Count of entries that encountered errors while processing. Corresponds to the JSON property failureCount

Returns:

  • (Fixnum)


440
441
442
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 440

def failure_count
  @failure_count
end

#notification_pubsub_topicString

Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a Operation. Format of the Pub/Sub topic is projects/project/topics/topic`. Corresponds to the JSON propertynotificationPubsubTopic`

Returns:

  • (String)


448
449
450
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 448

def notification_pubsub_topic
  @notification_pubsub_topic
end

#request_idString

Deprecated. This field is never set. Corresponds to the JSON property requestId

Returns:

  • (String)


453
454
455
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 453

def request_id
  @request_id
end

#success_countFixnum

Count of entries that were processed successfully. Corresponds to the JSON property successCount

Returns:

  • (Fixnum)


458
459
460
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 458

def success_count
  @success_count
end

#update_timeString

Operation last update time. If the operation is done, this is also the finish time. Corresponds to the JSON property updateTime

Returns:

  • (String)


464
465
466
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 464

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



471
472
473
474
475
476
477
478
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 471

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @failure_count = args[:failure_count] if args.key?(:failure_count)
  @notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
  @request_id = args[:request_id] if args.key?(:request_id)
  @success_count = args[:success_count] if args.key?(:success_count)
  @update_time = args[:update_time] if args.key?(:update_time)
end