Reference documentation and code samples for the Backup and DR Service V1BETA API class Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy.
An AutoprotectionPolicy is a policy resource designed to automate backup management, moving from manual per-resource protection to a bulk approach. The policy dynamically discovers and applies a specified backup plan to all eligible resources that match its defined scope and criteria.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#backup_plan_details
def backup_plan_details() -> ::Array<::Google::Cloud::BackupDR::V1beta::BackupPlanDetail>
Returns
- (::Array<::Google::Cloud::BackupDR::V1beta::BackupPlanDetail>) — Required. The backup plan details for matching resources.
#backup_plan_details=
def backup_plan_details=(value) -> ::Array<::Google::Cloud::BackupDR::V1beta::BackupPlanDetail>
Parameter
- value (::Array<::Google::Cloud::BackupDR::V1beta::BackupPlanDetail>) — Required. The backup plan details for matching resources.
Returns
- (::Array<::Google::Cloud::BackupDR::V1beta::BackupPlanDetail>) — Required. The backup plan details for matching resources.
#binding_summary
def binding_summary() -> ::Google::Cloud::BackupDR::V1beta::BindingSummary
Returns
- (::Google::Cloud::BackupDR::V1beta::BindingSummary) — Output only. Summary of total count of different containers covered through this policy.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when the policy was created.
#criteria
def criteria() -> ::Google::Cloud::BackupDR::V1beta::Criteria
Returns
- (::Google::Cloud::BackupDR::V1beta::Criteria) — Required. The criteria for matching resources.
#criteria=
def criteria=(value) -> ::Google::Cloud::BackupDR::V1beta::Criteria
Parameter
- value (::Google::Cloud::BackupDR::V1beta::Criteria) — Required. The criteria for matching resources.
Returns
- (::Google::Cloud::BackupDR::V1beta::Criteria) — Required. The criteria for matching resources.
#description
def description() -> ::String
Returns
- (::String) — Optional. A description of the policy.
#description=
def description=(value) -> ::String
Parameter
- value (::String) — Optional. A description of the policy.
Returns
- (::String) — Optional. A description of the policy.
#etag
def etag() -> ::String
Returns
- (::String) — Output only. The etag for the policy. If this is provided on update, it must match the server's etag, otherwise the request will be rejected with an ABORTED error.
#etag=
def etag=(value) -> ::String
Parameter
- value (::String) — Output only. The etag for the policy. If this is provided on update, it must match the server's etag, otherwise the request will be rejected with an ABORTED error.
Returns
- (::String) — Output only. The etag for the policy. If this is provided on update, it must match the server's etag, otherwise the request will be rejected with an ABORTED error.
#name
def name() -> ::String
Returns
-
(::String) — Identifier. The resource name of the AutoprotectionPolicy.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Identifier. The resource name of the AutoprotectionPolicy.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
Returns
-
(::String) — Identifier. The resource name of the AutoprotectionPolicy.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
#policy_evaluation_summary
def policy_evaluation_summary() -> ::Google::Cloud::BackupDR::V1beta::PolicyEvaluationSummary
Returns
- (::Google::Cloud::BackupDR::V1beta::PolicyEvaluationSummary) — Output only. Summary of last policy application when job was run per workload type.
#state
def state() -> ::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy::State
Returns
- (::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy::State) — Output only. The current state of the AutoprotectionPolicy.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when the policy was last updated.