Class: Google::Apis::SecuritycenterV1beta2::SecretStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/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.



12035
12036
12037
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12035

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)


12028
12029
12030
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12028

def last_updated_time
  @last_updated_time
end

#validityString

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

Returns:

  • (String)


12033
12034
12035
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12033

def validity
  @validity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12040
12041
12042
12043
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 12040

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