Class: Google::Apis::SecuritycenterV1::File
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::File
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb
Instance Attribute Summary collapse
-
#contents ⇒ String
Corresponds to the JSON property
contents. -
#disk_path ⇒ Google::Apis::SecuritycenterV1::DiskPath
Corresponds to the JSON property
diskPath. -
#file_load_state ⇒ String
Corresponds to the JSON property
fileLoadState. -
#hashed_size ⇒ Fixnum
Corresponds to the JSON property
hashedSize. -
#operations ⇒ Array<Google::Apis::SecuritycenterV1::FileOperation>
Corresponds to the JSON property
operations. -
#partially_hashed ⇒ Boolean
(also: #partially_hashed?)
Corresponds to the JSON property
partiallyHashed. -
#path ⇒ String
Corresponds to the JSON property
path. -
#sha256 ⇒ String
Corresponds to the JSON property
sha256. -
#size ⇒ Fixnum
Corresponds to the JSON property
size.
Instance Method Summary collapse
-
#initialize(**args) ⇒ File
constructor
A new instance of File.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ File
Returns a new instance of File.
2794 2795 2796 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2794 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ String
Corresponds to the JSON property contents
2751 2752 2753 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2751 def contents @contents end |
#disk_path ⇒ Google::Apis::SecuritycenterV1::DiskPath
Corresponds to the JSON property diskPath
2756 2757 2758 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2756 def disk_path @disk_path end |
#file_load_state ⇒ String
Corresponds to the JSON property fileLoadState
2761 2762 2763 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2761 def file_load_state @file_load_state end |
#hashed_size ⇒ Fixnum
Corresponds to the JSON property hashedSize
2766 2767 2768 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2766 def hashed_size @hashed_size end |
#operations ⇒ Array<Google::Apis::SecuritycenterV1::FileOperation>
Corresponds to the JSON property operations
2771 2772 2773 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2771 def operations @operations end |
#partially_hashed ⇒ Boolean Also known as: partially_hashed?
Corresponds to the JSON property partiallyHashed
2776 2777 2778 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2776 def partially_hashed @partially_hashed end |
#path ⇒ String
Corresponds to the JSON property path
2782 2783 2784 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2782 def path @path end |
#sha256 ⇒ String
Corresponds to the JSON property sha256
2787 2788 2789 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2787 def sha256 @sha256 end |
#size ⇒ Fixnum
Corresponds to the JSON property size
2792 2793 2794 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2792 def size @size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2799 def update!(**args) @contents = args[:contents] if args.key?(:contents) @disk_path = args[:disk_path] if args.key?(:disk_path) @file_load_state = args[:file_load_state] if args.key?(:file_load_state) @hashed_size = args[:hashed_size] if args.key?(:hashed_size) @operations = args[:operations] if args.key?(:operations) @partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed) @path = args[:path] if args.key?(:path) @sha256 = args[:sha256] if args.key?(:sha256) @size = args[:size] if args.key?(:size) end |