Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2SecretStatus

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) ⇒ GoogleCloudSecuritycenterV2SecretStatus

Returns a new instance of GoogleCloudSecuritycenterV2SecretStatus.



10084
10085
10086
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10084

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)


10077
10078
10079
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10077

def last_updated_time
  @last_updated_time
end

#validityString

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

Returns:

  • (String)


10082
10083
10084
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10082

def validity
  @validity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10089
10090
10091
10092
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10089

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