Class: Google::Apis::StreetviewpublishV1::PhotoResponse
- Inherits:
-
Object
- Object
- Google::Apis::StreetviewpublishV1::PhotoResponse
- 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
Response payload for a single Photo in batch operations including BatchGetPhotos and BatchUpdatePhotos.
Instance Attribute Summary collapse
-
#photo ⇒ Google::Apis::StreetviewpublishV1::Photo
Photo is used to store 360 photos along with photo metadata.
-
#status ⇒ Google::Apis::StreetviewpublishV1::Status
The
Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PhotoResponse
constructor
A new instance of PhotoResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PhotoResponse
Returns a new instance of PhotoResponse.
434 435 436 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 434 def initialize(**args) update!(**args) end |
Instance Attribute Details
#photo ⇒ Google::Apis::StreetviewpublishV1::Photo
Photo is used to store 360 photos along with photo metadata.
Corresponds to the JSON property photo
422 423 424 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 422 def photo @photo end |
#status ⇒ Google::Apis::StreetviewpublishV1::Status
The Status
type defines a logical error model that is suitable for different
programming environments, including REST APIs and RPC APIs. It is used by
gRPC. Each Status
message contains three pieces of
data: error code, error message, and error details. You can find out more
about this error model and how to work with it in the API Design Guide.
Corresponds to the JSON property status
432 433 434 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 432 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
439 440 441 442 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 439 def update!(**args) @photo = args[:photo] if args.key?(:photo) @status = args[:status] if args.key?(:status) end |