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.



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

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)


923
924
925
# File 'lib/google/apis/backupdr_v1/classes.rb', line 923

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)


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

def create_time
  @create_time
end

#data_sourceString

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)


935
936
937
# File 'lib/google/apis/backupdr_v1/classes.rb', line 935

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)


942
943
944
# File 'lib/google/apis/backupdr_v1/classes.rb', line 942

def name
  @name
end

#resourceString

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

Returns:

  • (String)


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

def resource
  @resource
end

#resource_typeString

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

Returns:

  • (String)


952
953
954
# File 'lib/google/apis/backupdr_v1/classes.rb', line 952

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



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

def rules_config_info
  @rules_config_info
end

#stateString

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

Returns:

  • (String)


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

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


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