Class: Google::Apis::StreetviewpublishV1::UploadRef
- Inherits:
-
Object
- Object
- Google::Apis::StreetviewpublishV1::UploadRef
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/streetviewpublish_v1/classes.rb,
lib/google/apis/streetviewpublish_v1/representations.rb,
lib/google/apis/streetviewpublish_v1/representations.rb
Overview
Upload reference for media files.
Instance Attribute Summary collapse
-
#upload_url ⇒ String
An upload reference should be unique for each user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UploadRef
constructor
A new instance of UploadRef.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UploadRef
Returns a new instance of UploadRef.
1073 1074 1075 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 1073 def initialize(**args) update!(**args) end |
Instance Attribute Details
#upload_url ⇒ String
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 property
uploadUrl`
1071 1072 1073 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 1071 def upload_url @upload_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1078 1079 1080 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 1078 def update!(**args) @upload_url = args[:upload_url] if args.key?(:upload_url) end |