Class: Google::Cloud::NetApp::V1::BackupPolicy
- Inherits:
-
Object
- Object
- Google::Cloud::NetApp::V1::BackupPolicy
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/netapp/v1/backup_policy.rb
Overview
Backup Policy.
Defined Under Namespace
Modules: State Classes: LabelsEntry
Instance Attribute Summary collapse
-
#assigned_volume_count ⇒ ::Integer
readonly
Output only.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#daily_backup_limit ⇒ ::Integer
Number of daily backups to keep.
-
#description ⇒ ::String
Description of the backup policy.
-
#enabled ⇒ ::Boolean
If enabled, make backups automatically according to the schedules.
-
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Resource labels to represent user provided metadata.
-
#monthly_backup_limit ⇒ ::Integer
Number of monthly backups to keep.
-
#name ⇒ ::String
Identifier.
-
#state ⇒ ::Google::Cloud::NetApp::V1::BackupPolicy::State
readonly
Output only.
-
#weekly_backup_limit ⇒ ::Integer
Number of weekly backups to keep.
Instance Attribute Details
#assigned_volume_count ⇒ ::Integer (readonly)
Returns Output only. The total number of volumes assigned by this backup policy.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'proto_docs/google/cloud/netapp/v1/backup_policy.rb', line 62 class BackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module State # State not set. STATE_UNSPECIFIED = 0 # BackupPolicy is being created. CREATING = 1 # BackupPolicy is available for use. READY = 2 # BackupPolicy is being deleted. DELETING = 3 # BackupPolicy is not valid and cannot be used. ERROR = 4 # BackupPolicy is being updated. UPDATING = 5 end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The time when the backup policy was created.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'proto_docs/google/cloud/netapp/v1/backup_policy.rb', line 62 class BackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module State # State not set. STATE_UNSPECIFIED = 0 # BackupPolicy is being created. CREATING = 1 # BackupPolicy is available for use. READY = 2 # BackupPolicy is being deleted. DELETING = 3 # BackupPolicy is not valid and cannot be used. ERROR = 4 # BackupPolicy is being updated. UPDATING = 5 end end |
#daily_backup_limit ⇒ ::Integer
Returns Number of daily backups to keep. Note that the minimum daily backup limit is 2.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'proto_docs/google/cloud/netapp/v1/backup_policy.rb', line 62 class BackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module State # State not set. STATE_UNSPECIFIED = 0 # BackupPolicy is being created. CREATING = 1 # BackupPolicy is available for use. READY = 2 # BackupPolicy is being deleted. DELETING = 3 # BackupPolicy is not valid and cannot be used. ERROR = 4 # BackupPolicy is being updated. UPDATING = 5 end end |
#description ⇒ ::String
Returns Description of the backup policy.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'proto_docs/google/cloud/netapp/v1/backup_policy.rb', line 62 class BackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module State # State not set. STATE_UNSPECIFIED = 0 # BackupPolicy is being created. CREATING = 1 # BackupPolicy is available for use. READY = 2 # BackupPolicy is being deleted. DELETING = 3 # BackupPolicy is not valid and cannot be used. ERROR = 4 # BackupPolicy is being updated. UPDATING = 5 end end |
#enabled ⇒ ::Boolean
Returns If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'proto_docs/google/cloud/netapp/v1/backup_policy.rb', line 62 class BackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module State # State not set. STATE_UNSPECIFIED = 0 # BackupPolicy is being created. CREATING = 1 # BackupPolicy is available for use. READY = 2 # BackupPolicy is being deleted. DELETING = 3 # BackupPolicy is not valid and cannot be used. ERROR = 4 # BackupPolicy is being updated. UPDATING = 5 end end |
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Resource labels to represent user provided metadata.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'proto_docs/google/cloud/netapp/v1/backup_policy.rb', line 62 class BackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module State # State not set. STATE_UNSPECIFIED = 0 # BackupPolicy is being created. CREATING = 1 # BackupPolicy is available for use. READY = 2 # BackupPolicy is being deleted. DELETING = 3 # BackupPolicy is not valid and cannot be used. ERROR = 4 # BackupPolicy is being updated. UPDATING = 5 end end |
#monthly_backup_limit ⇒ ::Integer
Returns Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'proto_docs/google/cloud/netapp/v1/backup_policy.rb', line 62 class BackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module State # State not set. STATE_UNSPECIFIED = 0 # BackupPolicy is being created. CREATING = 1 # BackupPolicy is available for use. READY = 2 # BackupPolicy is being deleted. DELETING = 3 # BackupPolicy is not valid and cannot be used. ERROR = 4 # BackupPolicy is being updated. UPDATING = 5 end end |
#name ⇒ ::String
Returns Identifier. The resource name of the backup policy.
Format:
projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}
.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'proto_docs/google/cloud/netapp/v1/backup_policy.rb', line 62 class BackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module State # State not set. STATE_UNSPECIFIED = 0 # BackupPolicy is being created. CREATING = 1 # BackupPolicy is available for use. READY = 2 # BackupPolicy is being deleted. DELETING = 3 # BackupPolicy is not valid and cannot be used. ERROR = 4 # BackupPolicy is being updated. UPDATING = 5 end end |
#state ⇒ ::Google::Cloud::NetApp::V1::BackupPolicy::State (readonly)
Returns Output only. The backup policy state.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'proto_docs/google/cloud/netapp/v1/backup_policy.rb', line 62 class BackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module State # State not set. STATE_UNSPECIFIED = 0 # BackupPolicy is being created. CREATING = 1 # BackupPolicy is available for use. READY = 2 # BackupPolicy is being deleted. DELETING = 3 # BackupPolicy is not valid and cannot be used. ERROR = 4 # BackupPolicy is being updated. UPDATING = 5 end end |
#weekly_backup_limit ⇒ ::Integer
Returns Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'proto_docs/google/cloud/netapp/v1/backup_policy.rb', line 62 class BackupPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module State # State not set. STATE_UNSPECIFIED = 0 # BackupPolicy is being created. CREATING = 1 # BackupPolicy is available for use. READY = 2 # BackupPolicy is being deleted. DELETING = 3 # BackupPolicy is not valid and cannot be used. ERROR = 4 # BackupPolicy is being updated. UPDATING = 5 end end |