Class: Google::Apis::SecretmanagerV1::SecretVersion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/secretmanager_v1/classes.rb,
lib/google/apis/secretmanager_v1/representations.rb,
lib/google/apis/secretmanager_v1/representations.rb

Overview

A secret version resource in the Secret Manager API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecretVersion

Returns a new instance of SecretVersion.



1016
1017
1018
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1016

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

Instance Attribute Details

#client_specified_payload_checksumBoolean Also known as: client_specified_payload_checksum?

Output only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion. Corresponds to the JSON property clientSpecifiedPayloadChecksum

Returns:

  • (Boolean)


980
981
982
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 980

def client_specified_payload_checksum
  @client_specified_payload_checksum
end

#create_timeString

Output only. The time at which the SecretVersion was created. Corresponds to the JSON property createTime

Returns:

  • (String)


986
987
988
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 986

def create_time
  @create_time
end

#destroy_timeString

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED. Corresponds to the JSON property destroyTime

Returns:

  • (String)


992
993
994
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 992

def destroy_time
  @destroy_time
end

#etagString

Output only. Etag of the currently stored SecretVersion. Corresponds to the JSON property etag

Returns:

  • (String)


997
998
999
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 997

def etag
  @etag
end

#nameString

Output only. The resource name of the SecretVersion in the format projects/*/ secrets/*/versions/*. SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret. Corresponds to the JSON property name

Returns:

  • (String)


1004
1005
1006
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1004

def name
  @name
end

#replication_statusGoogle::Apis::SecretmanagerV1::ReplicationStatus

The replication status of a SecretVersion. Corresponds to the JSON property replicationStatus



1009
1010
1011
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1009

def replication_status
  @replication_status
end

#stateString

Output only. The current state of the SecretVersion. Corresponds to the JSON property state

Returns:

  • (String)


1014
1015
1016
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1014

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1021
1022
1023
1024
1025
1026
1027
1028
1029
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1021

def update!(**args)
  @client_specified_payload_checksum = args[:client_specified_payload_checksum] if args.key?(:client_specified_payload_checksum)
  @create_time = args[:create_time] if args.key?(:create_time)
  @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
  @etag = args[:etag] if args.key?(:etag)
  @name = args[:name] if args.key?(:name)
  @replication_status = args[:replication_status] if args.key?(:replication_status)
  @state = args[:state] if args.key?(:state)
end