Class: Google::Apis::CloudsearchV1::UploadMetadata

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

Annotation metadata for user Upload artifacts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UploadMetadata

Returns a new instance of UploadMetadata.



20603
20604
20605
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20603

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

Instance Attribute Details

#attachment_tokenString

Opaque token. Clients shall simply pass it back to the Backend. There is no guarantee the attachment_token returned on subsequent reads is the same even if nothing has changed. This field will NOT be saved into storage. Corresponds to the JSON property attachmentToken

Returns:

  • (String)


20530
20531
20532
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20530

def attachment_token
  @attachment_token
end

#backend_upload_metadataGoogle::Apis::CloudsearchV1::AppsDynamiteSharedBackendUploadMetadata

Metadata used only in Dynamite backend for uploaded attachments. Corresponds to the JSON property backendUploadMetadata



20535
20536
20537
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20535

def 
  @backend_upload_metadata
end

#cloned_authorized_item_idGoogle::Apis::CloudsearchV1::AuthorizedItemId

A combination of an identifier for a Drive resource (e.g. file, folder, or drive) and any secrets needed to access it. The secrets should never be logged, and this proto annotates those secret fields to ensure that they are not. Clients are encouraged to use this proto rather than defining their own, to ensure that secrets are correctly annotated. Corresponds to the JSON property clonedAuthorizedItemId



20544
20545
20546
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20544

def cloned_authorized_item_id
  @cloned_authorized_item_id
end

#cloned_drive_actionString

DriveAction for organizing the cloned version of this upload in Drive, if the file has been added to Drive. This field is not set if the file has not been added to Drive. Additionally, this field is only set when part of a FileResult in a ListFilesResponse. Corresponds to the JSON property clonedDriveAction

Returns:

  • (String)


20552
20553
20554
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20552

def cloned_drive_action
  @cloned_drive_action
end

#cloned_drive_idString

Reference to a Drive ID, if this upload file has been previously cloned to Drive. Note: this is deprecated in favor of the AuthorizedItemId below. Corresponds to the JSON property clonedDriveId

Returns:

  • (String)


20558
20559
20560
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20558

def cloned_drive_id
  @cloned_drive_id
end

#content_nameString

The original file name for the content, not the full path. Corresponds to the JSON property contentName

Returns:

  • (String)


20563
20564
20565
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20563

def content_name
  @content_name
end

#content_typeString

Type is from Scotty's best_guess by default: http://google3/uploader/agent/ scotty_agent.proto?l=51&rcl=140889785 Corresponds to the JSON property contentType

Returns:

  • (String)


20569
20570
20571
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20569

def content_type
  @content_type
end

#dlp_metrics_metadataGoogle::Apis::CloudsearchV1::AppsDynamiteSharedDlpMetricsMetadata

LINT.IfChange Corresponds to the JSON property dlpMetricsMetadata



20574
20575
20576
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20574

def 
  @dlp_metrics_metadata
end

#latest_virus_scan_timestampFixnum

The timestamp of the most recent virus scan completed (in microseconds). Corresponds to the JSON property latestVirusScanTimestamp

Returns:

  • (Fixnum)


20579
20580
20581
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20579

def latest_virus_scan_timestamp
  @latest_virus_scan_timestamp
end

#local_idString

A copy of the LocalId in Annotation. This field is supposed to be filled by server only. Corresponds to the JSON property localId

Returns:

  • (String)


20585
20586
20587
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20585

def local_id
  @local_id
end

#original_dimensionGoogle::Apis::CloudsearchV1::AppsDynamiteSharedDimension

Dimension for the uploaded attachments. Corresponds to the JSON property originalDimension



20590
20591
20592
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20590

def original_dimension
  @original_dimension
end

#video_referenceGoogle::Apis::CloudsearchV1::AppsDynamiteSharedVideoReference

Reference to a transcoded video attachment. Corresponds to the JSON property videoReference



20595
20596
20597
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20595

def video_reference
  @video_reference
end

#virus_scan_resultString

Result for a virus scan. It's duplicated in the above field apps.dynamite. shared.BackendUploadMetadata Corresponds to the JSON property virusScanResult

Returns:

  • (String)


20601
20602
20603
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20601

def virus_scan_result
  @virus_scan_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20608

def update!(**args)
  @attachment_token = args[:attachment_token] if args.key?(:attachment_token)
  @backend_upload_metadata = args[:backend_upload_metadata] if args.key?(:backend_upload_metadata)
  @cloned_authorized_item_id = args[:cloned_authorized_item_id] if args.key?(:cloned_authorized_item_id)
  @cloned_drive_action = args[:cloned_drive_action] if args.key?(:cloned_drive_action)
  @cloned_drive_id = args[:cloned_drive_id] if args.key?(:cloned_drive_id)
  @content_name = args[:content_name] if args.key?(:content_name)
  @content_type = args[:content_type] if args.key?(:content_type)
  @dlp_metrics_metadata = args[:dlp_metrics_metadata] if args.key?(:dlp_metrics_metadata)
  @latest_virus_scan_timestamp = args[:latest_virus_scan_timestamp] if args.key?(:latest_virus_scan_timestamp)
  @local_id = args[:local_id] if args.key?(:local_id)
  @original_dimension = args[:original_dimension] if args.key?(:original_dimension)
  @video_reference = args[:video_reference] if args.key?(:video_reference)
  @virus_scan_result = args[:virus_scan_result] if args.key?(:virus_scan_result)
end