Class: Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb
Overview
Free instance specific metadata that is kept even after an instance has been upgraded for tracking purposes.
Defined Under Namespace
Modules: ExpireBehavior
Instance Attribute Summary collapse
-
#expire_behavior ⇒ ::Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata::ExpireBehavior
Specifies the expiration behavior of a free instance.
-
#expire_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#upgrade_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#expire_behavior ⇒ ::Google::Cloud::Spanner::Admin::Instance::V1::FreeInstanceMetadata::ExpireBehavior
Returns 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.
1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb', line 1085 class FreeInstanceMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Allows users to change behavior when a free instance expires. module ExpireBehavior # Not specified. EXPIRE_BEHAVIOR_UNSPECIFIED = 0 # When the free instance expires, upgrade the instance to a provisioned # instance. FREE_TO_PROVISIONED = 1 # When the free instance expires, disable the instance, and delete it # after the grace period passes if it has not been upgraded. REMOVE_AFTER_GRACE_PERIOD = 2 end end |
#expire_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns 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.
1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb', line 1085 class FreeInstanceMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Allows users to change behavior when a free instance expires. module ExpireBehavior # Not specified. EXPIRE_BEHAVIOR_UNSPECIFIED = 0 # When the free instance expires, upgrade the instance to a provisioned # instance. FREE_TO_PROVISIONED = 1 # When the free instance expires, disable the instance, and delete it # after the grace period passes if it has not been upgraded. REMOVE_AFTER_GRACE_PERIOD = 2 end end |
#upgrade_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.
1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb', line 1085 class FreeInstanceMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Allows users to change behavior when a free instance expires. module ExpireBehavior # Not specified. EXPIRE_BEHAVIOR_UNSPECIFIED = 0 # When the free instance expires, upgrade the instance to a provisioned # instance. FREE_TO_PROVISIONED = 1 # When the free instance expires, disable the instance, and delete it # after the grace period passes if it has not been upgraded. REMOVE_AFTER_GRACE_PERIOD = 2 end end |