Class: Google::Apis::BackupdrV1::RuleConfigInfo
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::RuleConfigInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
Message for rules config info.
Instance Attribute Summary collapse
-
#data_source ⇒ String
Output only.
-
#last_backup_error ⇒ Google::Apis::BackupdrV1::Status
The
Statustype defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. -
#last_backup_state ⇒ String
Output only.
-
#last_successful_backup_consistency_time ⇒ String
Output only.
-
#rule_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RuleConfigInfo
constructor
A new instance of RuleConfigInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RuleConfigInfo
Returns a new instance of RuleConfigInfo.
3741 3742 3743 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3741 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source ⇒ String
Output only. TODO b/341576760: Remove deprecated BV and Datasource field form
BP and BPA once UI removed all dependencies on them Output Only. Resource name
of data source which will be used as storage location for backups taken by
specified rule. Format : projects/project/locations/location/backupVaults/
backupvault/dataSources/datasource
Corresponds to the JSON property dataSource
3713 3714 3715 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3713 def data_source @data_source end |
#last_backup_error ⇒ Google::Apis::BackupdrV1::Status
The Status type defines a logical error model that is suitable for different
programming environments, including REST APIs and RPC APIs. It is used by
gRPC. Each Status message contains three pieces of
data: error code, error message, and error details. You can find out more
about this error model and how to work with it in the API Design Guide.
Corresponds to the JSON property lastBackupError
3723 3724 3725 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3723 def last_backup_error @last_backup_error end |
#last_backup_state ⇒ String
Output only. The last backup state for rule.
Corresponds to the JSON property lastBackupState
3728 3729 3730 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3728 def last_backup_state @last_backup_state end |
#last_successful_backup_consistency_time ⇒ String
Output only. The point in time when the last successful backup was captured
from the source.
Corresponds to the JSON property lastSuccessfulBackupConsistencyTime
3734 3735 3736 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3734 def last_successful_backup_consistency_time @last_successful_backup_consistency_time end |
#rule_id ⇒ String
Output only. Output Only. Backup Rule id fetched from backup plan.
Corresponds to the JSON property ruleId
3739 3740 3741 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3739 def rule_id @rule_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3746 3747 3748 3749 3750 3751 3752 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3746 def update!(**args) @data_source = args[:data_source] if args.key?(:data_source) @last_backup_error = args[:last_backup_error] if args.key?(:last_backup_error) @last_backup_state = args[:last_backup_state] if args.key?(:last_backup_state) @last_successful_backup_consistency_time = args[:last_successful_backup_consistency_time] if args.key?(:last_successful_backup_consistency_time) @rule_id = args[:rule_id] if args.key?(:rule_id) end |