Class: Google::Apis::SecuresourcemanagerV1::TreeEntry
- Inherits:
-
Object
- Object
- Google::Apis::SecuresourcemanagerV1::TreeEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securesourcemanager_v1/classes.rb,
lib/google/apis/securesourcemanager_v1/representations.rb,
lib/google/apis/securesourcemanager_v1/representations.rb
Overview
Represents an entry within a tree structure (like a Git tree).
Instance Attribute Summary collapse
-
#mode ⇒ String
Output only.
-
#path ⇒ String
Output only.
-
#sha ⇒ String
Output only.
-
#size ⇒ Fixnum
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TreeEntry
constructor
A new instance of TreeEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TreeEntry
Returns a new instance of TreeEntry.
2238 2239 2240 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2238 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mode ⇒ String
Output only. The file mode as a string (e.g., "100644"). Indicates file type.
Output-only.
Corresponds to the JSON property mode
2215 2216 2217 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2215 def mode @mode end |
#path ⇒ String
Output only. The path of the file or directory within the tree (e.g., "src/
main/java/MyClass.java"). Output-only.
Corresponds to the JSON property path
2221 2222 2223 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2221 def path @path end |
#sha ⇒ String
Output only. The SHA-1 hash of the object (unique identifier). Output-only.
Corresponds to the JSON property sha
2226 2227 2228 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2226 def sha @sha end |
#size ⇒ Fixnum
Output only. The size of the object in bytes (only for blobs). Output-only.
Corresponds to the JSON property size
2231 2232 2233 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2231 def size @size end |
#type ⇒ String
Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.
Corresponds to the JSON property type
2236 2237 2238 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2236 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2243 2244 2245 2246 2247 2248 2249 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2243 def update!(**args) @mode = args[:mode] if args.key?(:mode) @path = args[:path] if args.key?(:path) @sha = args[:sha] if args.key?(:sha) @size = args[:size] if args.key?(:size) @type = args[:type] if args.key?(:type) end |