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
Optional.
-
#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.
955 956 957 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 955 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
909 910 911 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 909 def backup_plan @backup_plan end |
#create_time ⇒ String
Output only. The time when the instance was created.
Corresponds to the JSON property createTime
914 915 916 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 914 def create_time @create_time end |
#data_source ⇒ String
Output only. 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
921 922 923 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 921 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
928 929 930 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 928 def name @name end |
#resource ⇒ String
Required. Immutable. Resource name of workload on which backupplan is applied
Corresponds to the JSON property resource
933 934 935 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 933 def resource @resource end |
#resource_type ⇒ String
Optional. Resource type of workload on which backupplan is applied
Corresponds to the JSON property resourceType
938 939 940 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 938 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
943 944 945 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 943 def rules_config_info @rules_config_info end |
#state ⇒ String
Output only. The BackupPlanAssociation resource state.
Corresponds to the JSON property state
948 949 950 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 948 def state @state end |
#update_time ⇒ String
Output only. The time when the instance was updated.
Corresponds to the JSON property updateTime
953 954 955 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 953 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
960 961 962 963 964 965 966 967 968 969 970 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 960 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 |