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.



1428
1429
1430
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1428

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)


1400
1401
1402
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1400

def description
  @description
end

#idString

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

Returns:

  • (String)


1405
1406
1407
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1405

def id
  @id
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1410
1411
1412
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1410

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


1415
1416
1417
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1415

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



1421
1422
1423
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1421

def schedules
  @schedules
end

#stateString

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

Returns:

  • (String)


1426
1427
1428
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1426

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1433
1434
1435
1436
1437
1438
1439
1440
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1433

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)
  @state = args[:state] if args.key?(:state)
end