Class: Google::Apis::BackupdrV1::BackupVault

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb

Overview

Message describing a BackupVault object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupVault

Returns a new instance of BackupVault.



1126
1127
1128
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1126

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#access_restrictionString

Optional. Note: This field is added for future use case and will not be supported in the current release. Access restriction for the backup vault. Default value is WITHIN_ORGANIZATION if not provided during creation. Corresponds to the JSON property accessRestriction

Returns:

  • (String)


1038
1039
1040
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1038

def access_restriction
  @access_restriction
end

#annotationsHash<String,String>

Optional. User annotations. See https://google.aip.dev/128#annotations Stores small amounts of arbitrary data. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


1044
1045
1046
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1044

def annotations
  @annotations
end

#backup_countFixnum

Output only. The number of backups in this backup vault. Corresponds to the JSON property backupCount

Returns:

  • (Fixnum)


1049
1050
1051
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1049

def backup_count
  @backup_count
end

#backup_minimum_enforced_retention_durationString

Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended. Corresponds to the JSON property backupMinimumEnforcedRetentionDuration

Returns:

  • (String)


1055
1056
1057
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1055

def backup_minimum_enforced_retention_duration
  @backup_minimum_enforced_retention_duration
end

#create_timeString

Output only. The time when the instance was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1060
1061
1062
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1060

def create_time
  @create_time
end

#deletableBoolean Also known as: deletable?

Output only. Set to true when there are no backups nested under this resource. Corresponds to the JSON property deletable

Returns:

  • (Boolean)


1065
1066
1067
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1065

def deletable
  @deletable
end

#descriptionString

Optional. The description of the BackupVault instance (2048 characters or less) . Corresponds to the JSON property description

Returns:

  • (String)


1072
1073
1074
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1072

def description
  @description
end

#effective_timeString

Optional. Time after which the BackupVault resource is locked. Corresponds to the JSON property effectiveTime

Returns:

  • (String)


1077
1078
1079
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1077

def effective_time
  @effective_time
end

#etagString

Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other. Corresponds to the JSON property etag

Returns:

  • (String)


1083
1084
1085
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1083

def etag
  @etag
end

#labelsHash<String,String>

Optional. Resource labels to represent user provided metadata. No labels currently defined: Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1089
1090
1091
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1089

def labels
  @labels
end

#nameString

Output only. Identifier. Name of the backup vault to create. It must have the format"projects/project/locations/location/backupVaults/backupvault". backupvault`cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location. Corresponds to the JSON propertyname`

Returns:

  • (String)


1097
1098
1099
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1097

def name
  @name
end

#service_accountString

Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1104
1105
1106
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1104

def 
  @service_account
end

#stateString

Output only. The BackupVault resource instance state. Corresponds to the JSON property state

Returns:

  • (String)


1109
1110
1111
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1109

def state
  @state
end

#total_stored_bytesFixnum

Output only. Total size of the storage used by all backup resources. Corresponds to the JSON property totalStoredBytes

Returns:

  • (Fixnum)


1114
1115
1116
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1114

def total_stored_bytes
  @total_stored_bytes
end

#uidString

Output only. Immutable after resource creation until resource deletion. Corresponds to the JSON property uid

Returns:

  • (String)


1119
1120
1121
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1119

def uid
  @uid
end

#update_timeString

Output only. The time when the instance was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1124
1125
1126
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1124

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1131

def update!(**args)
  @access_restriction = args[:access_restriction] if args.key?(:access_restriction)
  @annotations = args[:annotations] if args.key?(:annotations)
  @backup_count = args[:backup_count] if args.key?(:backup_count)
  @backup_minimum_enforced_retention_duration = args[:backup_minimum_enforced_retention_duration] if args.key?(:backup_minimum_enforced_retention_duration)
  @create_time = args[:create_time] if args.key?(:create_time)
  @deletable = args[:deletable] if args.key?(:deletable)
  @description = args[:description] if args.key?(:description)
  @effective_time = args[:effective_time] if args.key?(:effective_time)
  @etag = args[:etag] if args.key?(:etag)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @service_account = args[:service_account] if args.key?(:service_account)
  @state = args[:state] if args.key?(:state)
  @total_stored_bytes = args[:total_stored_bytes] if args.key?(:total_stored_bytes)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end