Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata

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

Overview

Metadata of a CreateInstruction operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata

Returns a new instance of GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata.



5382
5383
5384
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5382

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

Instance Attribute Details

#create_timeString

Timestamp when create instruction request was created. Corresponds to the JSON property createTime

Returns:

  • (String)


5368
5369
5370
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5368

def create_time
  @create_time
end

#instructionString

The name of the created Instruction. projects/project_id/instructions/ instruction_id Corresponds to the JSON property instruction

Returns:

  • (String)


5374
5375
5376
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5374

def instruction
  @instruction
end

#partial_failuresArray<Google::Apis::DatalabelingV1beta1::GoogleRpcStatus>

Partial failures encountered. E.g. single files that couldn't be read. Status details field will contain standard GCP error details. Corresponds to the JSON property partialFailures



5380
5381
5382
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5380

def partial_failures
  @partial_failures
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5387
5388
5389
5390
5391
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 5387

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @instruction = args[:instruction] if args.key?(:instruction)
  @partial_failures = args[:partial_failures] if args.key?(:partial_failures)
end