Class: Google::Apis::RedisV1::BackupCollection

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#clusterString

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

Returns:

  • (String)


266
267
268
# File 'lib/google/apis/redis_v1/classes.rb', line 266

def cluster
  @cluster
end

#cluster_uidString

Output only. The cluster uid of the backup collection. Corresponds to the JSON property clusterUid

Returns:

  • (String)


271
272
273
# File 'lib/google/apis/redis_v1/classes.rb', line 271

def cluster_uid
  @cluster_uid
end

#nameString

Identifier. Full resource path of the backup collection. Corresponds to the JSON property name

Returns:

  • (String)


276
277
278
# File 'lib/google/apis/redis_v1/classes.rb', line 276

def name
  @name
end

#uidString

Output only. System assigned unique identifier of the backup collection. Corresponds to the JSON property uid

Returns:

  • (String)


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