Class: Google::Apis::ContactcenteraiplatformV1alpha1::WeeklySchedule
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContactcenteraiplatformV1alpha1::WeeklySchedule
 
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb,
 lib/google/apis/contactcenteraiplatform_v1alpha1/representations.rb,
 lib/google/apis/contactcenteraiplatform_v1alpha1/representations.rb
Overview
Message representing a weekly schedule.
Instance Attribute Summary collapse
- 
  
    
      #days  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #duration  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #end_time  ⇒ Google::Apis::ContactcenteraiplatformV1alpha1::TimeOfDay 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a time of day. 
- 
  
    
      #start_time  ⇒ Google::Apis::ContactcenteraiplatformV1alpha1::TimeOfDay 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a time of day. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ WeeklySchedule 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of WeeklySchedule. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ WeeklySchedule
Returns a new instance of WeeklySchedule.
| 936 937 938 | # File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 936 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#days ⇒ Array<String>
Required. Days of the week this schedule applies to.
Corresponds to the JSON property days
| 915 916 917 | # File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 915 def days @days end | 
#duration ⇒ String
Optional. Duration of the schedule.
Corresponds to the JSON property duration
| 920 921 922 | # File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 920 def duration @duration end | 
#end_time ⇒ Google::Apis::ContactcenteraiplatformV1alpha1::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 endTime
| 927 928 929 | # File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 927 def end_time @end_time end | 
#start_time ⇒ Google::Apis::ContactcenteraiplatformV1alpha1::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 startTime
| 934 935 936 | # File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 934 def start_time @start_time end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 941 942 943 944 945 946 | # File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 941 def update!(**args) @days = args[:days] if args.key?(:days) @duration = args[:duration] if args.key?(:duration) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end |