Class: Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy

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

Overview

A snapshot schedule policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotSchedulePolicy

Returns a new instance of SnapshotSchedulePolicy.



742
743
744
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 742

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

Instance Attribute Details

#descriptionString

The description of the snapshot schedule policy. Corresponds to the JSON property description

Returns:

  • (String)


719
720
721
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 719

def description
  @description
end

#idString

An identifier for the snapshot schedule policy, generated by the backend. Corresponds to the JSON property id

Returns:

  • (String)


724
725
726
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 724

def id
  @id
end

#labelsHash<String,String>

Labels as key value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


729
730
731
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 729

def labels
  @labels
end

#nameString

Output only. The name of the snapshot schedule policy. Corresponds to the JSON property name

Returns:

  • (String)


734
735
736
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 734

def name
  @name
end

#schedulesArray<Google::Apis::BaremetalsolutionV2::Schedule>

The snapshot schedules contained in this policy. You can specify a maximum of 5 schedules. Corresponds to the JSON property schedules



740
741
742
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 740

def schedules
  @schedules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



747
748
749
750
751
752
753
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 747

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @schedules = args[:schedules] if args.key?(:schedules)
end