lib/google/apis/backupdr_v1/classes.rb in google-apis-backupdr_v1-0.17.0 vs lib/google/apis/backupdr_v1/classes.rb in google-apis-backupdr_v1-0.18.0
- old
+ new
@@ -555,11 +555,14 @@
# currently defined.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
- # Output only. Identifier. Name of the resource.
+ # Output only. Identifier. Name of the backup to create. It must have the format`
+ # "projects//locations//backupVaults//dataSources/`datasource`/backups/`backup`"`
+ # . ``backup`` cannot be changed after creation. It must be between 3-63
+ # characters long and must be unique within the datasource.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. source resource size in bytes at the time of the backup.
@@ -1055,10 +1058,17 @@
# Message describing a BackupVault object.
class BackupVault
include Google::Apis::Core::Hashable
+ # Optional. Note: This field is added for future use case and will not be
+ # supported in the current release. Optional. Access restriction for the backup
+ # vault. Default value is WITHIN_ORGANIZATION if not provided during creation.
+ # Corresponds to the JSON property `accessRestriction`
+ # @return [String]
+ attr_accessor :access_restriction
+
# Optional. User annotations. See https://google.aip.dev/128#annotations Stores
# small amounts of arbitrary data.
# Corresponds to the JSON property `annotations`
# @return [Hash<String,String>]
attr_accessor :annotations
@@ -1106,11 +1116,14 @@
# currently defined:
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
- # Output only. Identifier. The resource name.
+ # 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 property `name`
# @return [String]
attr_accessor :name
# Output only. Service account used by the BackupVault Service for this
@@ -1145,10 +1158,11 @@
update!(**args)
end
# Update properties of this object
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)
@@ -1848,10 +1862,14 @@
# currently defined:
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
- # Output only. Identifier. The resource name.
+ # Output only. Identifier. Name of the datasource to create. It must have the
+ # format`"projects/`project`/locations/`location`/backupVaults/`backupvault`/
+ # dataSources/`datasource`"`. ``datasource`` cannot be changed after creation.
+ # It must be between 3-63 characters long and must be unique within the backup
+ # vault.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The DataSource resource instance state.