Class: Google::Apis::SecretmanagerV1::SecretVersion
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1::SecretVersion
- 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
-
#client_specified_payload_checksum ⇒ Boolean
(also: #client_specified_payload_checksum?)
Output only.
-
#create_time ⇒ String
Output only.
-
#customer_managed_encryption ⇒ Google::Apis::SecretmanagerV1::CustomerManagedEncryptionStatus
Describes the status of customer-managed encryption.
-
#destroy_time ⇒ String
Output only.
-
#etag ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#replication_status ⇒ Google::Apis::SecretmanagerV1::ReplicationStatus
The replication status of a SecretVersion.
-
#scheduled_destroy_time ⇒ String
Optional.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecretVersion
constructor
A new instance of SecretVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecretVersion
Returns a new instance of SecretVersion.
1049 1050 1051 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1049 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_specified_payload_checksum ⇒ Boolean 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
999 1000 1001 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 999 def client_specified_payload_checksum @client_specified_payload_checksum end |
#create_time ⇒ String
Output only. The time at which the SecretVersion was created.
Corresponds to the JSON property createTime
1005 1006 1007 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1005 def create_time @create_time end |
#customer_managed_encryption ⇒ Google::Apis::SecretmanagerV1::CustomerManagedEncryptionStatus
Describes the status of customer-managed encryption.
Corresponds to the JSON property customerManagedEncryption
1010 1011 1012 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1010 def customer_managed_encryption @customer_managed_encryption end |
#destroy_time ⇒ String
Output only. The time this SecretVersion was destroyed. Only present if state
is DESTROYED.
Corresponds to the JSON property destroyTime
1016 1017 1018 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1016 def destroy_time @destroy_time end |
#etag ⇒ String
Output only. Etag of the currently stored SecretVersion.
Corresponds to the JSON property etag
1021 1022 1023 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1021 def etag @etag end |
#name ⇒ String
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
1028 1029 1030 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1028 def name @name end |
#replication_status ⇒ Google::Apis::SecretmanagerV1::ReplicationStatus
The replication status of a SecretVersion.
Corresponds to the JSON property replicationStatus
1033 1034 1035 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1033 def replication_status @replication_status end |
#scheduled_destroy_time ⇒ String
Optional. Output only. Scheduled destroy time for secret version. This is a
part of the Delayed secret version destroy feature. For a Secret with a valid
version destroy TTL, when a secert version is destroyed, version is moved to
disabled state and it is scheduled for destruction Version is destroyed only
after the scheduled_destroy_time.
Corresponds to the JSON property scheduledDestroyTime
1042 1043 1044 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1042 def scheduled_destroy_time @scheduled_destroy_time end |
#state ⇒ String
Output only. The current state of the SecretVersion.
Corresponds to the JSON property state
1047 1048 1049 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1047 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 1054 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) @customer_managed_encryption = args[:customer_managed_encryption] if args.key?(:customer_managed_encryption) @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) @scheduled_destroy_time = args[:scheduled_destroy_time] if args.key?(:scheduled_destroy_time) @state = args[:state] if args.key?(:state) end |