Class: Google::Apis::AppengineV1beta4::FileInfo
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta4::FileInfo
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/appengine_v1beta4/classes.rb,
generated/google/apis/appengine_v1beta4/representations.rb,
generated/google/apis/appengine_v1beta4/representations.rb
Overview
A single source file which is part of the application to be deployed.
Instance Attribute Summary collapse
-
#mime_type ⇒ String
The MIME type of the file; if unspecified, the value from Google Cloud Storage will be used.
-
#sha1_sum ⇒ String
The SHA1 (160 bits) hash of the file in hex.
-
#source_url ⇒ String
The URL source to use to fetch this file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FileInfo
constructor
A new instance of FileInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FileInfo
Returns a new instance of FileInfo.
1121 1122 1123 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1121 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mime_type ⇒ String
The MIME type of the file; if unspecified, the value from Google Cloud Storage
will be used.
Corresponds to the JSON property mimeType
1119 1120 1121 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1119 def mime_type @mime_type end |
#sha1_sum ⇒ String
The SHA1 (160 bits) hash of the file in hex.
Corresponds to the JSON property sha1Sum
1113 1114 1115 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1113 def sha1_sum @sha1_sum end |
#source_url ⇒ String
The 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
1108 1109 1110 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1108 def source_url @source_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1126 1127 1128 1129 1130 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1126 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 |