Class: Google::Apis::RedisV1::BackupCollection
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::BackupCollection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Overview
BackupCollection of a cluster.
Instance Attribute Summary collapse
-
#cluster ⇒ String
Output only.
-
#cluster_uid ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#uid ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupCollection
constructor
A new instance of BackupCollection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupCollection
Returns a new instance of BackupCollection.
283 284 285 |
# File 'lib/google/apis/redis_v1/classes.rb', line 283 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster ⇒ String
Output only. The full resource path of the cluster the backup collection
belongs to. Example: projects/project/locations/location/clusters/cluster
Corresponds to the JSON property cluster
266 267 268 |
# File 'lib/google/apis/redis_v1/classes.rb', line 266 def cluster @cluster end |
#cluster_uid ⇒ String
Output only. The cluster uid of the backup collection.
Corresponds to the JSON property clusterUid
271 272 273 |
# File 'lib/google/apis/redis_v1/classes.rb', line 271 def cluster_uid @cluster_uid end |
#name ⇒ String
Identifier. Full resource path of the backup collection.
Corresponds to the JSON property name
276 277 278 |
# File 'lib/google/apis/redis_v1/classes.rb', line 276 def name @name end |
#uid ⇒ String
Output only. System assigned unique identifier of the backup collection.
Corresponds to the JSON property uid
281 282 283 |
# File 'lib/google/apis/redis_v1/classes.rb', line 281 def uid @uid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
288 289 290 291 292 293 |
# File 'lib/google/apis/redis_v1/classes.rb', line 288 def update!(**args) @cluster = args[:cluster] if args.key?(:cluster) @cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid) @name = args[:name] if args.key?(:name) @uid = args[:uid] if args.key?(:uid) end |