Class: Google::Apis::MirrorV1::ListAttachmentsResponse

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

Overview

A list of Attachments. This is the response from the server to GET requests on the attachments collection.

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

Returns a new instance of ListAttachmentsResponse.


118
119
120
# File 'generated/google/apis/mirror_v1/classes.rb', line 118

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

Instance Attribute Details

#itemsArray<Google::Apis::MirrorV1::Attachment>

The list of attachments. Corresponds to the JSON property items


111
112
113
# File 'generated/google/apis/mirror_v1/classes.rb', line 111

def items
  @items
end

#kindString

The type of resource. This is always mirror#attachmentsList. Corresponds to the JSON property kind

Returns:

  • (String)

116
117
118
# File 'generated/google/apis/mirror_v1/classes.rb', line 116

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


123
124
125
126
# File 'generated/google/apis/mirror_v1/classes.rb', line 123

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