Class: Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Schedule for an instance operation.
Instance Attribute Summary collapse
-
#schedule ⇒ String
Specifies the frequency for the operation, using the unix-cron format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourcePolicyInstanceSchedulePolicySchedule
constructor
A new instance of ResourcePolicyInstanceSchedulePolicySchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourcePolicyInstanceSchedulePolicySchedule
Returns a new instance of ResourcePolicyInstanceSchedulePolicySchedule.
39163 39164 39165 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39163 def initialize(**args) update!(**args) end |
Instance Attribute Details
#schedule ⇒ String
Specifies the frequency for the operation, using the unix-cron format.
Corresponds to the JSON property schedule
39161 39162 39163 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39161 def schedule @schedule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
39168 39169 39170 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39168 def update!(**args) @schedule = args[:schedule] if args.key?(:schedule) end |