Class: Google::Apis::GkebackupV1::VolumeBackup
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::VolumeBackup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb
Overview
Represents the backup of a specific persistent volume as a component of a Backup - both the record of the operation and a pointer to the underlying storage-specific artifacts. Next id: 14
Instance Attribute Summary collapse
-
#complete_time ⇒ String
Output only.
-
#create_time ⇒ String
Output only.
-
#disk_size_bytes ⇒ Fixnum
Output only.
-
#etag ⇒ String
Output only.
-
#format ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#source_pvc ⇒ Google::Apis::GkebackupV1::NamespacedName
A reference to a namespaced resource in Kubernetes.
-
#state ⇒ String
Output only.
-
#state_message ⇒ String
Output only.
-
#storage_bytes ⇒ Fixnum
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#volume_backup_handle ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VolumeBackup
constructor
A new instance of VolumeBackup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VolumeBackup
Returns a new instance of VolumeBackup.
1983 1984 1985 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1983 def initialize(**args) update!(**args) end |
Instance Attribute Details
#complete_time ⇒ String
Output only. [Output Only] The timestamp when the associated underlying volume
backup operation completes - can be converted to and from RFC3339
Corresponds to the JSON property completeTime
1899 1900 1901 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1899 def complete_time @complete_time end |
#create_time ⇒ String
Output only. [Output Only] The timestamp when this VolumeBackup resource was
created - can be converted to and from RFC3339
Corresponds to the JSON property createTime
1906 1907 1908 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1906 def create_time @create_time end |
#disk_size_bytes ⇒ Fixnum
Output only. The minimum size of the disk to which this VolumeBackup can be
restored.
Corresponds to the JSON property diskSizeBytes
1912 1913 1914 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1912 def disk_size_bytes @disk_size_bytes end |
#etag ⇒ String
Output only. etag is used for optimistic concurrency control as a way to
help prevent simultaneous updates of a volume backup from overwriting each
other. It is strongly suggested that systems make use of the etag in the
read-modify-write cycle to perform volume backup updates in order to avoid
race conditions: An etag is returned in the response to GetVolumeBackup',
and systems are expected to put that etag in the request to
UpdateVolumeBackupto ensure that their change will be applied to the same
version.
Corresponds to the JSON propertyetag`
1924 1925 1926 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1924 def etag @etag end |
#format ⇒ String
Output only. The format used for the volume backup.
Corresponds to the JSON property format
1929 1930 1931 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1929 def format @format end |
#name ⇒ String
Output only. [Output Only] The full name of the VolumeBackup resource. Format:
projects//locations//backupPlans//backups//volumeBackups/* Note that the
last segment of the name will have the format: 'pvc-'.
Corresponds to the JSON property name
1936 1937 1938 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1936 def name @name end |
#source_pvc ⇒ Google::Apis::GkebackupV1::NamespacedName
A reference to a namespaced resource in Kubernetes.
Corresponds to the JSON property sourcePvc
1941 1942 1943 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1941 def source_pvc @source_pvc end |
#state ⇒ String
Output only. The current state of this VolumeBackup.
Corresponds to the JSON property state
1946 1947 1948 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1946 def state @state end |
#state_message ⇒ String
Output only. A human readable message explaining why the VolumeBackup is in
its current state.
Corresponds to the JSON property stateMessage
1952 1953 1954 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1952 def @state_message end |
#storage_bytes ⇒ Fixnum
Output only. The aggregate size of the underlying artifacts associated with
this VolumeBackup in the backup storage. This may change over time when
multiple backups of the same volume share the same backup storage location. In
particular, this is likely to increase in size when the immediately preceding
backup of the same volume is deleted.
Corresponds to the JSON property storageBytes
1961 1962 1963 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1961 def storage_bytes @storage_bytes end |
#uid ⇒ String
Output only. [Output Only] Server generated global unique identifier of UUID format.
Corresponds to the JSON property uid
1967 1968 1969 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1967 def uid @uid end |
#update_time ⇒ String
Output only. [Output Only] The timestamp when this VolumeBackup resource was
last updated - can be converted to and from RFC3339
Corresponds to the JSON property updateTime
1974 1975 1976 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1974 def update_time @update_time end |
#volume_backup_handle ⇒ String
Output only. A storage system-specific opaque handle to the underlying volume
backup. This field is interpreted by the volume backup and restore drivers
running in the GKE cluster and not by the service.
Corresponds to the JSON property volumeBackupHandle
1981 1982 1983 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1981 def volume_backup_handle @volume_backup_handle end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1988 def update!(**args) @complete_time = args[:complete_time] if args.key?(:complete_time) @create_time = args[:create_time] if args.key?(:create_time) @disk_size_bytes = args[:disk_size_bytes] if args.key?(:disk_size_bytes) @etag = args[:etag] if args.key?(:etag) @format = args[:format] if args.key?(:format) @name = args[:name] if args.key?(:name) @source_pvc = args[:source_pvc] if args.key?(:source_pvc) @state = args[:state] if args.key?(:state) @state_message = args[:state_message] if args.key?(:state_message) @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) @volume_backup_handle = args[:volume_backup_handle] if args.key?(:volume_backup_handle) end |