Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1GcsFileSpec

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

Overview

Specification of a single file in Cloud Storage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1GcsFileSpec

Returns a new instance of GoogleCloudDatacatalogV1GcsFileSpec.



1241
1242
1243
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1241

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

Instance Attribute Details

#file_pathString

Required. Full file path. Example: gs://bucket_name/a/b.txt. Corresponds to the JSON property filePath

Returns:

  • (String)


1229
1230
1231
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1229

def file_path
  @file_path
end

#gcs_timestampsGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1SystemTimestamps

Timestamps associated with this resource in a particular system. Corresponds to the JSON property gcsTimestamps



1234
1235
1236
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1234

def gcs_timestamps
  @gcs_timestamps
end

#size_bytesFixnum

Output only. File size in bytes. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


1239
1240
1241
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1239

def size_bytes
  @size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1246
1247
1248
1249
1250
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1246

def update!(**args)
  @file_path = args[:file_path] if args.key?(:file_path)
  @gcs_timestamps = args[:gcs_timestamps] if args.key?(:gcs_timestamps)
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
end