Class: Google::Apis::BackupdrV1::BackupPlanAssociation
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::BackupPlanAssociation
- 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
A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc
Instance Attribute Summary collapse
-
#backup_plan ⇒ String
Required.
-
#create_time ⇒ String
Output only.
-
#data_source ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#resource ⇒ String
Required.
-
#resource_type ⇒ String
Required.
-
#rules_config_info ⇒ Array<Google::Apis::BackupdrV1::RuleConfigInfo>
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupPlanAssociation
constructor
A new instance of BackupPlanAssociation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupPlanAssociation
Returns a new instance of BackupPlanAssociation.
969 970 971 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 969 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_plan ⇒ String
Required. Resource name of backup plan which needs to be applied on workload.
Format: projects/project/locations/location/backupPlans/backupPlanId
Corresponds to the JSON property backupPlan
923 924 925 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 923 def backup_plan @backup_plan end |
#create_time ⇒ String
Output only. The time when the instance was created.
Corresponds to the JSON property createTime
928 929 930 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 928 def create_time @create_time end |
#data_source ⇒ String
Output only. Resource name of data source which will be used as storage
location for backups taken. Format : projects/project/locations/location/
backupVaults/backupvault/dataSources/datasource
Corresponds to the JSON property dataSource
935 936 937 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 935 def data_source @data_source end |
#name ⇒ String
Output only. Identifier. The resource name of BackupPlanAssociation in below
format Format : projects/project/locations/location/backupPlanAssociations/
backupPlanAssociationId
Corresponds to the JSON property name
942 943 944 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 942 def name @name end |
#resource ⇒ String
Required. Immutable. Resource name of workload on which backupplan is applied
Corresponds to the JSON property resource
947 948 949 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 947 def resource @resource end |
#resource_type ⇒ String
Required. Immutable. Resource type of workload on which backupplan is applied
Corresponds to the JSON property resourceType
952 953 954 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 952 def resource_type @resource_type end |
#rules_config_info ⇒ Array<Google::Apis::BackupdrV1::RuleConfigInfo>
Output only. The config info related to backup rules.
Corresponds to the JSON property rulesConfigInfo
957 958 959 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 957 def rules_config_info @rules_config_info end |
#state ⇒ String
Output only. The BackupPlanAssociation resource state.
Corresponds to the JSON property state
962 963 964 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 962 def state @state end |
#update_time ⇒ String
Output only. The time when the instance was updated.
Corresponds to the JSON property updateTime
967 968 969 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 967 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
974 975 976 977 978 979 980 981 982 983 984 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 974 def update!(**args) @backup_plan = args[:backup_plan] if args.key?(:backup_plan) @create_time = args[:create_time] if args.key?(:create_time) @data_source = args[:data_source] if args.key?(:data_source) @name = args[:name] if args.key?(:name) @resource = args[:resource] if args.key?(:resource) @resource_type = args[:resource_type] if args.key?(:resource_type) @rules_config_info = args[:rules_config_info] if args.key?(:rules_config_info) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |