(::Google::Protobuf::Timestamp) — 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Secret Manager V1 API - Class Google::Cloud::SecretManager::V1::SecretVersion (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion)\n- [1.3.0](/ruby/docs/reference/google-cloud-secret_manager-v1/1.3.0/Google-Cloud-SecretManager-V1-SecretVersion)\n- [1.2.1](/ruby/docs/reference/google-cloud-secret_manager-v1/1.2.1/Google-Cloud-SecretManager-V1-SecretVersion)\n- [1.1.0](/ruby/docs/reference/google-cloud-secret_manager-v1/1.1.0/Google-Cloud-SecretManager-V1-SecretVersion)\n- [1.0.1](/ruby/docs/reference/google-cloud-secret_manager-v1/1.0.1/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.21.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.21.0/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.20.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.20.0/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.19.2](/ruby/docs/reference/google-cloud-secret_manager-v1/0.19.2/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.18.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.18.0/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.17.2](/ruby/docs/reference/google-cloud-secret_manager-v1/0.17.2/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.16.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.16.0/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.15.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.15.0/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.14.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.14.0/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.13.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.13.0/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.12.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.12.0/Google-Cloud-SecretManager-V1-SecretVersion)\n- [0.11.3](/ruby/docs/reference/google-cloud-secret_manager-v1/0.11.3/Google-Cloud-SecretManager-V1-SecretVersion) \nReference documentation and code samples for the Secret Manager V1 API class Google::Cloud::SecretManager::V1::SecretVersion.\n\nA secret version resource in the Secret Manager API. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #client_specified_payload_checksum\n\n def client_specified_payload_checksum() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Output only. True if payload checksum specified in [SecretPayload](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretPayload \"Google::Cloud::SecretManager::V1::SecretPayload (class)\") object has been received by [SecretManagerService](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client \"Google::Cloud::SecretManager::V1::SecretManagerService::Client (class)\") on [SecretManagerService.AddSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_add_secret_version_instance_ \"Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version (method)\").\n\n### #create_time\n\n def create_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time at which the [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\") was created.\n\n### #customer_managed_encryption\n\n def customer_managed_encryption() -\u003e ::Google::Cloud::SecretManager::V1::CustomerManagedEncryptionStatus\n\n**Returns**\n\n- ([::Google::Cloud::SecretManager::V1::CustomerManagedEncryptionStatus](./Google-Cloud-SecretManager-V1-CustomerManagedEncryptionStatus)) --- Output only. The customer-managed encryption status of the [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\"). Only populated if customer-managed encryption is used and [Secret](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-Secret \"Google::Cloud::SecretManager::V1::Secret (class)\") is a regionalized secret.\n\n### #destroy_time\n\n def destroy_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time this [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\") was destroyed. Only present if [state](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion#Google__Cloud__SecretManager__V1__SecretVersion_state_instance_ \"Google::Cloud::SecretManager::V1::SecretVersion#state (method)\") is [DESTROYED](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion-State#Google__Cloud__SecretManager__V1__SecretVersion__State__DESTROYED \"Google::Cloud::SecretManager::V1::SecretVersion::State::DESTROYED (constant)\").\n\n### #etag\n\n def etag() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. Etag of the currently stored [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\").\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. The resource name of the [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\") in the format `projects/*/secrets/*/versions/*`.\n\n\n [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\") IDs in a\n [Secret](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-Secret \"Google::Cloud::SecretManager::V1::Secret (class)\") start at 1 and are\n incremented for each subsequent version of the secret.\n\n### #replication_status\n\n def replication_status() -\u003e ::Google::Cloud::SecretManager::V1::ReplicationStatus\n\n**Returns**\n\n- ([::Google::Cloud::SecretManager::V1::ReplicationStatus](./Google-Cloud-SecretManager-V1-ReplicationStatus)) --- The replication status of the [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\").\n\n### #replication_status=\n\n def replication_status=(value) -\u003e ::Google::Cloud::SecretManager::V1::ReplicationStatus\n\n**Parameter**\n\n- **value** ([::Google::Cloud::SecretManager::V1::ReplicationStatus](./Google-Cloud-SecretManager-V1-ReplicationStatus)) --- The replication status of the [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\"). \n**Returns**\n\n- ([::Google::Cloud::SecretManager::V1::ReplicationStatus](./Google-Cloud-SecretManager-V1-ReplicationStatus)) --- The replication status of the [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\").\n\n### #scheduled_destroy_time\n\n def scheduled_destroy_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- 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.\n\n### #state\n\n def state() -\u003e ::Google::Cloud::SecretManager::V1::SecretVersion::State\n\n**Returns**\n\n- ([::Google::Cloud::SecretManager::V1::SecretVersion::State](./Google-Cloud-SecretManager-V1-SecretVersion-State)) --- Output only. The current state of the [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\")."]]