Class: Google::Apis::AppengineV1beta5::FileInfo

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

Overview

Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.

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

Returns a new instance of FileInfo.



1249
1250
1251
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1249

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

Instance Attribute Details

#mime_typeString

The MIME type of the file. Defaults to the value from Google Cloud Storage. Corresponds to the JSON property mimeType

Returns:

  • (String)


1247
1248
1249
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1247

def mime_type
  @mime_type
end

#sha1_sumString

The SHA1 hash of the file, in hex. Corresponds to the JSON property sha1Sum

Returns:

  • (String)


1242
1243
1244
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1242

def sha1_sum
  @sha1_sum
end

#source_urlString

URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. Corresponds to the JSON property sourceUrl

Returns:

  • (String)


1237
1238
1239
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1237

def source_url
  @source_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1254
1255
1256
1257
1258
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1254

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