Class: Google::Apis::StoragetransferV1::Schedule
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::Schedule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storagetransfer_v1/classes.rb,
generated/google/apis/storagetransfer_v1/representations.rb,
generated/google/apis/storagetransfer_v1/representations.rb
Overview
Transfers can be scheduled to recur or to run just once.
Instance Attribute Summary collapse
-
#schedule_end_date ⇒ Google::Apis::StoragetransferV1::Date
Represents a whole calendar date, e.g.
-
#schedule_start_date ⇒ Google::Apis::StoragetransferV1::Date
Represents a whole calendar date, e.g.
-
#start_time_of_day ⇒ Google::Apis::StoragetransferV1::TimeOfDay
Represents a time of day.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Schedule
constructor
A new instance of Schedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Schedule
Returns a new instance of Schedule
163 164 165 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 163 def initialize(**args) update!(**args) end |
Instance Attribute Details
#schedule_end_date ⇒ Google::Apis::StoragetransferV1::Date
Represents a whole calendar date, e.g. date of birth. The time of day and
time zone are either specified elsewhere or are not significant. The date
is relative to the Proleptic Gregorian Calendar. The day may be 0 to
represent a year and month where the day is not significant, e.g. credit card
expiration date. The year may be 0 to represent a month and day independent
of year, e.g. anniversary date. Related types are google.type.TimeOfDay
and google.protobuf.Timestamp.
Corresponds to the JSON property scheduleEndDate
143 144 145 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 143 def schedule_end_date @schedule_end_date end |
#schedule_start_date ⇒ Google::Apis::StoragetransferV1::Date
Represents a whole calendar date, e.g. date of birth. The time of day and
time zone are either specified elsewhere or are not significant. The date
is relative to the Proleptic Gregorian Calendar. The day may be 0 to
represent a year and month where the day is not significant, e.g. credit card
expiration date. The year may be 0 to represent a month and day independent
of year, e.g. anniversary date. Related types are google.type.TimeOfDay
and google.protobuf.Timestamp.
Corresponds to the JSON property scheduleStartDate
161 162 163 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 161 def schedule_start_date @schedule_start_date end |
#start_time_of_day ⇒ Google::Apis::StoragetransferV1::TimeOfDay
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and google.protobuf.Timestamp.
Corresponds to the JSON property startTimeOfDay
150 151 152 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 150 def start_time_of_day @start_time_of_day end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
168 169 170 171 172 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 168 def update!(**args) @schedule_end_date = args[:schedule_end_date] if args.key?(:schedule_end_date) @start_time_of_day = args[:start_time_of_day] if args.key?(:start_time_of_day) @schedule_start_date = args[:schedule_start_date] if args.key?(:schedule_start_date) end |