Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainRetentionSettings
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainRetentionSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb
Overview
Disable validation warnings
Instance Attribute Summary collapse
-
#duration_based_retention ⇒ String
Disable validation warnings Corresponds to the JSON property
durationBasedRetention. -
#quantity_based_retention ⇒ Fixnum
Disable validation warnings Corresponds to the JSON property
quantityBasedRetention. -
#retention_unit ⇒ String
Disable validation warnings Corresponds to the JSON property
retentionUnit. -
#time_based_retention ⇒ String
Disable validation warnings Corresponds to the JSON property
timeBasedRetention. -
#timestamp_based_retention_time ⇒ String
Disable validation warnings Corresponds to the JSON property
timestampBasedRetentionTime.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainRetentionSettings
constructor
A new instance of StorageDatabasecenterPartnerapiV1mainRetentionSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainRetentionSettings
Returns a new instance of StorageDatabasecenterPartnerapiV1mainRetentionSettings.
5236 5237 5238 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5236 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration_based_retention ⇒ String
Disable validation warnings
Corresponds to the JSON property durationBasedRetention
5214 5215 5216 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5214 def duration_based_retention @duration_based_retention end |
#quantity_based_retention ⇒ Fixnum
Disable validation warnings
Corresponds to the JSON property quantityBasedRetention
5219 5220 5221 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5219 def quantity_based_retention @quantity_based_retention end |
#retention_unit ⇒ String
Disable validation warnings
Corresponds to the JSON property retentionUnit
5224 5225 5226 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5224 def retention_unit @retention_unit end |
#time_based_retention ⇒ String
Disable validation warnings
Corresponds to the JSON property timeBasedRetention
5229 5230 5231 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5229 def time_based_retention @time_based_retention end |
#timestamp_based_retention_time ⇒ String
Disable validation warnings
Corresponds to the JSON property timestampBasedRetentionTime
5234 5235 5236 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5234 def @timestamp_based_retention_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5241 5242 5243 5244 5245 5246 5247 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 5241 def update!(**args) @duration_based_retention = args[:duration_based_retention] if args.key?(:duration_based_retention) @quantity_based_retention = args[:quantity_based_retention] if args.key?(:quantity_based_retention) @retention_unit = args[:retention_unit] if args.key?(:retention_unit) @time_based_retention = args[:time_based_retention] if args.key?(:time_based_retention) @timestamp_based_retention_time = args[:timestamp_based_retention_time] if args.key?(:timestamp_based_retention_time) end |