Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1GcsSource
- Inherits:
-
Object
- Object
- Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1GcsSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datalabeling_v1beta1/classes.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb
Overview
Source of the Cloud Storage file to be imported.
Instance Attribute Summary collapse
-
#input_uri ⇒ String
Required.
-
#mime_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1GcsSource
constructor
A new instance of GoogleCloudDatalabelingV1beta1GcsSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1GcsSource
Returns a new instance of GoogleCloudDatalabelingV1beta1GcsSource.
2436 2437 2438 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2436 def initialize(**args) update!(**args) end |
Instance Attribute Details
#input_uri ⇒ String
Required. The input URI of source file. This must be a Cloud Storage path (gs:
//...
).
Corresponds to the JSON property inputUri
2429 2430 2431 |
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2429 def input_uri @input_uri end |
#mime_type ⇒ String
Required. The format of the source file. Only "text/csv" is supported.
Corresponds to the JSON property mimeType
2434 2435 2436 |
# File 'lib/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 'lib/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 |