Class: Google::Apis::CloudsupportV2beta::Attachment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsupport_v2beta/classes.rb,
lib/google/apis/cloudsupport_v2beta/representations.rb,
lib/google/apis/cloudsupport_v2beta/representations.rb

Overview

Represents a file attached to a support case.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Attachment

Returns a new instance of Attachment.



109
110
111
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 109

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

Instance Attribute Details

#create_timeString

Output only. The time at which the attachment was created. Corresponds to the JSON property createTime

Returns:

  • (String)


81
82
83
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 81

def create_time
  @create_time
end

#creatorGoogle::Apis::CloudsupportV2beta::Actor

An object containing information about the effective user and authenticated principal responsible for an action. Corresponds to the JSON property creator



87
88
89
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 87

def creator
  @creator
end

#filenameString

The filename of the attachment (e.g. "graph.jpg"). Corresponds to the JSON property filename

Returns:

  • (String)


92
93
94
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 92

def filename
  @filename
end

#mime_typeString

Output only. The MIME type of the attachment (e.g. text/plain). Corresponds to the JSON property mimeType

Returns:

  • (String)


97
98
99
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 97

def mime_type
  @mime_type
end

#nameString

Output only. The resource name of the attachment. Corresponds to the JSON property name

Returns:

  • (String)


102
103
104
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 102

def name
  @name
end

#size_bytesFixnum

Output only. The size of the attachment in bytes. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


107
108
109
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 107

def size_bytes
  @size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
118
119
120
121
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 114

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creator = args[:creator] if args.key?(:creator)
  @filename = args[:filename] if args.key?(:filename)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @name = args[:name] if args.key?(:name)
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
end