Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2File

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2File

Returns a new instance of GoogleCloudSecuritycenterV2File.



7151
7152
7153
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7151

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

Instance Attribute Details

#contentsString

Corresponds to the JSON property contents

Returns:

  • (String)


7108
7109
7110
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7108

def contents
  @contents
end

#disk_pathGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2DiskPath

Corresponds to the JSON property diskPath



7113
7114
7115
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7113

def disk_path
  @disk_path
end

#file_load_stateString

Corresponds to the JSON property fileLoadState

Returns:

  • (String)


7118
7119
7120
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7118

def file_load_state
  @file_load_state
end

#hashed_sizeFixnum

Corresponds to the JSON property hashedSize

Returns:

  • (Fixnum)


7123
7124
7125
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7123

def hashed_size
  @hashed_size
end

#operationsArray<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2FileOperation>

Corresponds to the JSON property operations



7128
7129
7130
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7128

def operations
  @operations
end

#partially_hashedBoolean Also known as: partially_hashed?

Corresponds to the JSON property partiallyHashed

Returns:

  • (Boolean)


7133
7134
7135
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7133

def partially_hashed
  @partially_hashed
end

#pathString

Corresponds to the JSON property path

Returns:

  • (String)


7139
7140
7141
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7139

def path
  @path
end

#sha256String

Corresponds to the JSON property sha256

Returns:

  • (String)


7144
7145
7146
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7144

def sha256
  @sha256
end

#sizeFixnum

Corresponds to the JSON property size

Returns:

  • (Fixnum)


7149
7150
7151
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7149

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7156

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