Class: Google::Apis::GkebackupV1::RestorePlan

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb

Overview

The configuration of a potential series of Restore operations to be performed against Backups belong to a particular BackupPlan. Next id: 11

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RestorePlan

Returns a new instance of RestorePlan.



1628
1629
1630
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1628

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#backup_planString

Required. Immutable. The BackupPlan from which Backups may be used as the source for Restores created via this RestorePlan. Format: projects//locations/ */backupPlans/. Corresponds to the JSON property backupPlan

Returns:

  • (String)


1566
1567
1568
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1566

def backup_plan
  @backup_plan
end

#clusterString

Required. Immutable. The target cluster into which Restores created via this RestorePlan will restore data. NOTE: the cluster's region must be the same as the RestorePlan. Possible formats: 1. projects//locations//clusters/* 2. projects//zones//clusters/* Corresponds to the JSON property cluster

Returns:

  • (String)


1574
1575
1576
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1574

def cluster
  @cluster
end

#create_timeString

Output only. [Output Only] The timestamp when this RestorePlan resource was created - can be converted to and from RFC3339 Corresponds to the JSON property createTime

Returns:

  • (String)


1581
1582
1583
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1581

def create_time
  @create_time
end

#descriptionString

User specified descriptive string for this RestorePlan. Corresponds to the JSON property description

Returns:

  • (String)


1586
1587
1588
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1586

def description
  @description
end

#etagString

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify- write cycle to perform restore updates in order to avoid race conditions: An etag is returned in the response to GetRestorePlan, and systems are expected to put that etag in the request to UpdateRestorePlan to ensure that their change will be applied to the same version. Corresponds to the JSON property etag

Returns:

  • (String)


1597
1598
1599
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1597

def etag
  @etag
end

#labelsHash<String,String>

A set of custom labels supplied by user. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1602
1603
1604
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1602

def labels
  @labels
end

#nameString

Output only. [Output Only] The full name of the RestorePlan resource. Format: projects//locations//restorePlans/* Corresponds to the JSON property name

Returns:

  • (String)


1608
1609
1610
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1608

def name
  @name
end

#restore_configGoogle::Apis::GkebackupV1::RestoreConfig

Configuration of a restore. Next id: 9 Corresponds to the JSON property restoreConfig



1613
1614
1615
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1613

def restore_config
  @restore_config
end

#uidString

Output only. [Output Only] Server generated global unique identifier of UUID format. Corresponds to the JSON property uid

Returns:

  • (String)


1619
1620
1621
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1619

def uid
  @uid
end

#update_timeString

Output only. [Output Only] The timestamp when this RestorePlan resource was last updated - can be converted to and from RFC3339 Corresponds to the JSON property updateTime

Returns:

  • (String)


1626
1627
1628
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1626

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1633

def update!(**args)
  @backup_plan = args[:backup_plan] if args.key?(:backup_plan)
  @cluster = args[:cluster] if args.key?(:cluster)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @restore_config = args[:restore_config] if args.key?(:restore_config)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end