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.



295
296
297
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 295

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)


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

def cluster
  @cluster
end

#cluster_uidString

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

Returns:

  • (String)


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

def cluster_uid
  @cluster_uid
end

#kms_keyString

Output only. The KMS key used to encrypt the backups under this backup collection. Corresponds to the JSON property kmsKey

Returns:

  • (String)


283
284
285
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 283

def kms_key
  @kms_key
end

#nameString

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

Returns:

  • (String)


288
289
290
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 288

def name
  @name
end

#uidString

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

Returns:

  • (String)


293
294
295
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 293

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



300
301
302
303
304
305
306
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 300

def update!(**args)
  @cluster = args[:cluster] if args.key?(:cluster)
  @cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
  @kms_key = args[:kms_key] if args.key?(:kms_key)
  @name = args[:name] if args.key?(:name)
  @uid = args[:uid] if args.key?(:uid)
end