Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1BackupSchedule
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::GoogleFirestoreAdminV1BackupSchedule
- 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
A backup schedule for a Cloud Firestore Database. This resource is owned by the database it is backing up, and is deleted along with the database. The actual backups are not though.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#daily_recurrence ⇒ Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DailyRecurrence
Represent a recurring schedule that runs at a specific time every day.
-
#name ⇒ String
Output only.
-
#retention ⇒ String
At what relative time in the future, compared to its creation time, the backup should be deleted, e.g.
-
#update_time ⇒ String
Output only.
-
#weekly_recurrence ⇒ Google::Apis::FirestoreV1::GoogleFirestoreAdminV1WeeklyRecurrence
Represents a recurring schedule that runs on a specified day of the week.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFirestoreAdminV1BackupSchedule
constructor
A new instance of GoogleFirestoreAdminV1BackupSchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirestoreAdminV1BackupSchedule
Returns a new instance of GoogleFirestoreAdminV1BackupSchedule.
1114 1115 1116 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1114 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The timestamp at which this backup schedule was created and
effective since. No backups will be created for this schedule before this time.
Corresponds to the JSON property createTime
1080 1081 1082 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1080 def create_time @create_time end |
#daily_recurrence ⇒ Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DailyRecurrence
Represent a recurring schedule that runs at a specific time every day. The
time zone is UTC.
Corresponds to the JSON property dailyRecurrence
1086 1087 1088 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1086 def daily_recurrence @daily_recurrence end |
#name ⇒ String
Output only. The unique backup schedule identifier across all locations and
databases for the given project. This will be auto-assigned. Format is
projects/project/databases/database/backupSchedules/backup_schedule`
Corresponds to the JSON propertyname`
1093 1094 1095 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1093 def name @name end |
#retention ⇒ String
At what relative time in the future, compared to its creation time, the backup
should be deleted, e.g. keep backups for 7 days.
Corresponds to the JSON property retention
1099 1100 1101 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1099 def retention @retention end |
#update_time ⇒ String
Output only. The timestamp at which this backup schedule was most recently
updated. When a backup schedule is first created, this is the same as
create_time.
Corresponds to the JSON property updateTime
1106 1107 1108 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1106 def update_time @update_time end |
#weekly_recurrence ⇒ Google::Apis::FirestoreV1::GoogleFirestoreAdminV1WeeklyRecurrence
Represents a recurring schedule that runs on a specified day of the week. The
time zone is UTC.
Corresponds to the JSON property weeklyRecurrence
1112 1113 1114 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1112 def weekly_recurrence @weekly_recurrence end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1119 1120 1121 1122 1123 1124 1125 1126 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 1119 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @daily_recurrence = args[:daily_recurrence] if args.key?(:daily_recurrence) @name = args[:name] if args.key?(:name) @retention = args[:retention] if args.key?(:retention) @update_time = args[:update_time] if args.key?(:update_time) @weekly_recurrence = args[:weekly_recurrence] if args.key?(:weekly_recurrence) end |