Class: Google::Apis::RedisV1beta1::BackupCollection

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/redis_v1beta1/classes.rb,
lib/google/apis/redis_v1beta1/representations.rb,
lib/google/apis/redis_v1beta1/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.



272
273
274
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 272

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)


260
261
262
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 260

def cluster
  @cluster
end

#cluster_uidString

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

Returns:

  • (String)


265
266
267
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 265

def cluster_uid
  @cluster_uid
end

#nameString

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

Returns:

  • (String)


270
271
272
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 270

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



277
278
279
280
281
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 277

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)
end