Class: Google::Apis::SecuritycenterV1::SecretStatus

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

Overview

The status of the secret.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecretStatus

Returns a new instance of SecretStatus.



14168
14169
14170
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 14168

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

Instance Attribute Details

#last_updated_timeString

Time that the secret was found. Corresponds to the JSON property lastUpdatedTime

Returns:

  • (String)


14161
14162
14163
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 14161

def last_updated_time
  @last_updated_time
end

#validityString

The validity of the secret. Corresponds to the JSON property validity

Returns:

  • (String)


14166
14167
14168
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 14166

def validity
  @validity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14173
14174
14175
14176
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 14173

def update!(**args)
  @last_updated_time = args[:last_updated_time] if args.key?(:last_updated_time)
  @validity = args[:validity] if args.key?(:validity)
end