Class: Google::Apis::StreetviewpublishV1::UploadRef

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/streetviewpublish_v1/classes.rb,
generated/google/apis/streetviewpublish_v1/representations.rb,
generated/google/apis/streetviewpublish_v1/representations.rb

Overview

Upload reference for media files.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UploadRef

Returns a new instance of UploadRef



771
772
773
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 771

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

Instance Attribute Details

#upload_urlString

Required. An upload reference should be unique for each user. It follows the form: "https://streetviewpublish.googleapis.com/media/user/`account_id`/photo/` upload_reference" Corresponds to the JSON propertyuploadUrl`

Returns:

  • (String)


769
770
771
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 769

def upload_url
  @upload_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



776
777
778
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 776

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