Class: Google::Apis::StreetviewpublishV1::PhotoId

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

Identifier for a Photo.

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) ⇒ PhotoId

Returns a new instance of PhotoId.



422
423
424
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 422

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

Instance Attribute Details

#idString

Required. A unique identifier for a photo. Corresponds to the JSON property id

Returns:

  • (String)


420
421
422
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 420

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



427
428
429
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 427

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