Reference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata.
Free instance specific metadata that is kept even after an instance has been
upgraded for tracking purposes.
(::Google::Protobuf::Timestamp) — Output only. Timestamp after which the instance will either be upgraded or
scheduled for deletion after a grace period. ExpireBehavior is used to
choose between upgrading or scheduling the free instance for deletion. This
timestamp is set during the creation of a free instance.
#upgrade_time
defupgrade_time()->::Google::Protobuf::Timestamp
Returns
(::Google::Protobuf::Timestamp) — Output only. If present, the timestamp at which the free instance was
upgraded to a provisioned instance.
[[["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-08-28 UTC."],[],[],null,["# Cloud Spanner Instance Admin V1 API - Class Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [2.0.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/2.0.1/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [1.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.6.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [1.5.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.5.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [1.4.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.4.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [1.3.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.3.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [1.2.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.2.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [1.1.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.1.1/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [1.0.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.0.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.16.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.16.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.15.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.15.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.14.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.14.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.13.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.13.2/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.12.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.12.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.11.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.11.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.10.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.10.2/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.9.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.9.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.8.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.8.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.7.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.7.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.6.0/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata)\n- [0.5.5](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.5.5/Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata) \nReference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata.\n\nFree instance specific metadata that is kept even after an instance has been\nupgraded for tracking purposes. \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### #expire_behavior\n\n def expire_behavior() -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata::ExpireBehavior\n\n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata::ExpireBehavior](./Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata-ExpireBehavior)) --- Specifies the expiration behavior of a free instance. The default of ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during or after creation, and before expiration.\n\n### #expire_behavior=\n\n def expire_behavior=(value) -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata::ExpireBehavior\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata::ExpireBehavior](./Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata-ExpireBehavior)) --- Specifies the expiration behavior of a free instance. The default of ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during or after creation, and before expiration. \n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata::ExpireBehavior](./Google-Cloud-Spanner-Admin-Instance-V1-FreeInstanceMetadata-ExpireBehavior)) --- Specifies the expiration behavior of a free instance. The default of ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during or after creation, and before expiration.\n\n### #expire_time\n\n def expire_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.\n\n### #upgrade_time\n\n def upgrade_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance."]]