Class: Google::Cloud::BackupDR::V1::BackupPlan
- Inherits:
-
Object
- Object
- Google::Cloud::BackupDR::V1::BackupPlan
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/backupdr/v1/backupplan.rb
Overview
A BackupPlan
specifies some common fields, such as description
as well
as one or more BackupRule
messages. Each BackupRule
has a retention
policy and defines a schedule by which the system is to perform backup
workloads.
Defined Under Namespace
Modules: State Classes: LabelsEntry
Instance Attribute Summary collapse
-
#backup_rules ⇒ ::Array<::Google::Cloud::BackupDR::V1::BackupRule>
Required.
-
#backup_vault ⇒ ::String
Required.
-
#backup_vault_service_account ⇒ ::String
readonly
Output only.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#description ⇒ ::String
Optional.
-
#etag ⇒ ::String
Optional.
-
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Optional.
-
#name ⇒ ::String
readonly
Output only.
-
#resource_type ⇒ ::String
Required.
-
#state ⇒ ::Google::Cloud::BackupDR::V1::BackupPlan::State
readonly
Output only.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#backup_rules ⇒ ::Array<::Google::Cloud::BackupDR::V1::BackupRule>
Returns Required. The backup rules for this BackupPlan
. There must be at least
one BackupRule
message.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |
#backup_vault ⇒ ::String
Returns Required. Resource name of backup vault which will be used as storage location for backups. Format: projects/{project}/locations/{location}/backupVaults/{backupvault}.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |
#backup_vault_service_account ⇒ ::String (readonly)
Returns Output only. The Google Cloud Platform Service Account to be used by the BackupVault for taking backups. Specify the email address of the Backup Vault Service Account.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. When the BackupPlan
was created.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |
#description ⇒ ::String
Returns Optional. The description of the BackupPlan
resource.
The description allows for additional details about BackupPlan
and its
use cases to be provided. An example description is the following: "This
is a backup plan that performs a daily backup at 6pm and retains data for 3
months". The description must be at most 2048 characters.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |
#etag ⇒ ::String
Returns Optional. etag
is returned from the service in the response. As a user of
the service, you may provide an etag value in this field to prevent stale
resources.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Optional. This collection of key/value pairs allows for custom labels to be supplied by the user. Example, {"tag": "Weekly"}.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |
#name ⇒ ::String (readonly)
Returns Output only. Identifier. The resource name of the BackupPlan
.
Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}
.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |
#resource_type ⇒ ::String
Returns Required. The resource type to which the BackupPlan
will be applied.
Examples include, "compute.googleapis.com/Instance" and
"storage.googleapis.com/Bucket".
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |
#state ⇒ ::Google::Cloud::BackupDR::V1::BackupPlan::State (readonly)
Returns Output only. The State
for the BackupPlan
.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. When the BackupPlan
was last updated.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'proto_docs/google/cloud/backupdr/v1/backupplan.rb', line 78 class BackupPlan 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 # `State` enumerates the possible states for a `BackupPlan`. module State # State not set. STATE_UNSPECIFIED = 0 # The resource is being created. CREATING = 1 # The resource has been created and is fully usable. ACTIVE = 2 # The resource is being deleted. DELETING = 3 # The resource has been created but is not usable. INACTIVE = 4 end end |