Class: Google::Apis::BackupdrV1::BackupPlanAssociation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_planString

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

Returns:

  • (String)


909
910
911
# File 'lib/google/apis/backupdr_v1/classes.rb', line 909

def backup_plan
  @backup_plan
end

#create_timeString

Output only. The time when the instance was created. Corresponds to the JSON property createTime

Returns:

  • (String)


914
915
916
# File 'lib/google/apis/backupdr_v1/classes.rb', line 914

def create_time
  @create_time
end

#data_sourceString

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

Returns:

  • (String)


921
922
923
# File 'lib/google/apis/backupdr_v1/classes.rb', line 921

def data_source
  @data_source
end

#nameString

Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/project/locations/location/backupPlanAssociations/ backupPlanAssociationId Corresponds to the JSON property name

Returns:

  • (String)


928
929
930
# File 'lib/google/apis/backupdr_v1/classes.rb', line 928

def name
  @name
end

#resourceString

Required. Immutable. Resource name of workload on which backupplan is applied Corresponds to the JSON property resource

Returns:

  • (String)


933
934
935
# File 'lib/google/apis/backupdr_v1/classes.rb', line 933

def resource
  @resource
end

#resource_typeString

Optional. Resource type of workload on which backupplan is applied Corresponds to the JSON property resourceType

Returns:

  • (String)


938
939
940
# File 'lib/google/apis/backupdr_v1/classes.rb', line 938

def resource_type
  @resource_type
end

#rules_config_infoArray<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

#stateString

Output only. The BackupPlanAssociation resource state. Corresponds to the JSON property state

Returns:

  • (String)


948
949
950
# File 'lib/google/apis/backupdr_v1/classes.rb', line 948

def state
  @state
end

#update_timeString

Output only. The time when the instance was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


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