Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1GcsSource

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

Source of the Cloud Storage file to be imported.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1GcsSource

Returns a new instance of GoogleCloudDatalabelingV1beta1GcsSource.



2436
2437
2438
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2436

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

Instance Attribute Details

#input_uriString

Required. The input URI of source file. This must be a Cloud Storage path (gs: //...). Corresponds to the JSON property inputUri

Returns:

  • (String)


2429
2430
2431
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2429

def input_uri
  @input_uri
end

#mime_typeString

Required. The format of the source file. Only "text/csv" is supported. Corresponds to the JSON property mimeType

Returns:

  • (String)


2434
2435
2436
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2434

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2441
2442
2443
2444
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 2441

def update!(**args)
  @input_uri = args[:input_uri] if args.key?(:input_uri)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end