Class: Google::Apis::CloudsearchV1::LegacyUploadMetadata

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

Overview

The original UploadMetadata that this DriveMetadata was converted from.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LegacyUploadMetadata

Returns a new instance of LegacyUploadMetadata.



10639
10640
10641
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10639

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

Instance Attribute Details

#legacy_unique_idString

A unique ID generated from legacy UploadMetadata. This is used for interopping URLs after uploading blob to shared drive. Links in Classic might break without this. go/drive-file-attachment-interop-from-dynamite. Corresponds to the JSON property legacyUniqueId

Returns:

  • (String)


10632
10633
10634
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10632

def legacy_unique_id
  @legacy_unique_id
end

#upload_metadataGoogle::Apis::CloudsearchV1::UploadMetadata

Annotation metadata for user Upload artifacts. Corresponds to the JSON property uploadMetadata



10637
10638
10639
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10637

def 
  @upload_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10644
10645
10646
10647
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10644

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