Class: Google::Apis::ComputeV1::ResourcePolicyInstanceSchedulePolicySchedule

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

Overview

Schedule for an instance operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourcePolicyInstanceSchedulePolicySchedule

Returns a new instance of ResourcePolicyInstanceSchedulePolicySchedule.



49835
49836
49837
# File 'lib/google/apis/compute_v1/classes.rb', line 49835

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

Instance Attribute Details

#scheduleString

Specifies the frequency for the operation, using the unix-cron format. Corresponds to the JSON property schedule

Returns:

  • (String)


49833
49834
49835
# File 'lib/google/apis/compute_v1/classes.rb', line 49833

def schedule
  @schedule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49840
49841
49842
# File 'lib/google/apis/compute_v1/classes.rb', line 49840

def update!(**args)
  @schedule = args[:schedule] if args.key?(:schedule)
end