Class: Google::Apis::StoragetransferV1::Schedule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Schedule

Returns a new instance of Schedule.



552
553
554
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 552

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

Instance Attribute Details

#schedule_end_dateGoogle::Apis::StoragetransferV1::Date

Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent:

  • A full date, with non-zero year, month and day values
  • A month and day value, with a zero year, e.g. an anniversary
  • A year on its own, with zero month and day values
  • A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and google.protobuf.Timestamp. Corresponds to the JSON property scheduleEndDate


531
532
533
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 531

def schedule_end_date
  @schedule_end_date
end

#schedule_start_dateGoogle::Apis::StoragetransferV1::Date

Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent:

  • A full date, with non-zero year, month and day values
  • A month and day value, with a zero year, e.g. an anniversary
  • A year on its own, with zero month and day values
  • A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and google.protobuf.Timestamp. Corresponds to the JSON property scheduleStartDate


543
544
545
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 543

def schedule_start_date
  @schedule_start_date
end

#start_time_of_dayGoogle::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



550
551
552
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 550

def start_time_of_day
  @start_time_of_day
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



557
558
559
560
561
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 557

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