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.



10573
10574
10575
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10573

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)


10566
10567
10568
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10566

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



10571
10572
10573
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10571

def 
  @upload_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10578
10579
10580
10581
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10578

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