Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1WeeklyRecurrence
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::GoogleFirestoreAdminV1WeeklyRecurrence
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1/classes.rb,
lib/google/apis/firestore_v1/representations.rb,
lib/google/apis/firestore_v1/representations.rb
Overview
Represents a recurring schedule that runs on a specified day of the week. The time zone is UTC.
Instance Attribute Summary collapse
-
#day ⇒ String
The day of week to run.
-
#time ⇒ Google::Apis::FirestoreV1::TimeOfDay
Represents a time of day.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFirestoreAdminV1WeeklyRecurrence
constructor
A new instance of GoogleFirestoreAdminV1WeeklyRecurrence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirestoreAdminV1WeeklyRecurrence
Returns a new instance of GoogleFirestoreAdminV1WeeklyRecurrence.
2537 2538 2539 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 2537 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day ⇒ String
The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
Corresponds to the JSON property day
2528 2529 2530 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 2528 def day @day end |
#time ⇒ Google::Apis::FirestoreV1::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 time
2535 2536 2537 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 2535 def time @time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2542 2543 2544 2545 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 2542 def update!(**args) @day = args[:day] if args.key?(:day) @time = args[:time] if args.key?(:time) end |