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.



1003
1004
1005
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1003

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)


956
957
958
# File 'lib/google/apis/backupdr_v1/classes.rb', line 956

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)


961
962
963
# File 'lib/google/apis/backupdr_v1/classes.rb', line 961

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)


968
969
970
# File 'lib/google/apis/backupdr_v1/classes.rb', line 968

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)


975
976
977
# File 'lib/google/apis/backupdr_v1/classes.rb', line 975

def name
  @name
end

#resourceString

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

Returns:

  • (String)


980
981
982
# File 'lib/google/apis/backupdr_v1/classes.rb', line 980

def resource
  @resource
end

#resource_typeString

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

Returns:

  • (String)


986
987
988
# File 'lib/google/apis/backupdr_v1/classes.rb', line 986

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



991
992
993
# File 'lib/google/apis/backupdr_v1/classes.rb', line 991

def rules_config_info
  @rules_config_info
end

#stateString

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

Returns:

  • (String)


996
997
998
# File 'lib/google/apis/backupdr_v1/classes.rb', line 996

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


1001
1002
1003
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1001

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1008

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