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.



13141
13142
13143
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13141

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)


13134
13135
13136
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13134

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



13139
13140
13141
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13139

def 
  @upload_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13146
13147
13148
13149
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13146

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