Class: Google::Apis::CloudsearchV1::UploadItemRef

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

Represents an upload session reference. This reference is created via upload method. This reference is valid for 30 days after its creation. Updating of item content may refer to this uploaded content via contentDataRef.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UploadItemRef

Returns a new instance of UploadItemRef.



20511
20512
20513
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20511

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

Instance Attribute Details

#nameString

The name of the content reference. The maximum length is 2048 characters. Corresponds to the JSON property name

Returns:

  • (String)


20509
20510
20511
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20509

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20516
20517
20518
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20516

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