@@ -465,6 +465,12 @@ class Backup
465465 # @return [String]
466466 attr_accessor :name
467467
468+ # Output only. The total number of user managed namespaces contained in the
469+ # Backup.
470+ # Corresponds to the JSON property `namespaceCount`
471+ # @return [Fixnum]
472+ attr_accessor :namespace_count
473+
468474 # Output only. If false, Backup will fail when Backup for GKE detects Kubernetes
469475 # configuration that is non-standard or requires additional setup to restore.
470476 # Inherited from the parent BackupPlan's permissive_mode value.
@@ -587,6 +593,7 @@ def update!(**args)
587593 @labels = args [ :labels ] if args . key? ( :labels )
588594 @manual = args [ :manual ] if args . key? ( :manual )
589595 @name = args [ :name ] if args . key? ( :name )
596+ @namespace_count = args [ :namespace_count ] if args . key? ( :namespace_count )
590597 @permissive_mode = args [ :permissive_mode ] if args . key? ( :permissive_mode )
591598 @pod_count = args [ :pod_count ] if args . key? ( :pod_count )
592599 @resource_count = args [ :resource_count ] if args . key? ( :resource_count )
@@ -894,6 +901,12 @@ class BackupPlan
894901 # @return [String]
895902 attr_accessor :name
896903
904+ # Output only. The number of user managed namespaces backed up in the last
905+ # successful Backup created via this BackupPlan.
906+ # Corresponds to the JSON property `protectedNamespaceCount`
907+ # @return [Fixnum]
908+ attr_accessor :protected_namespace_count
909+
897910 # Output only. The number of Kubernetes Pods backed up in the last successful
898911 # Backup created via this BackupPlan.
899912 # Corresponds to the JSON property `protectedPodCount`
@@ -959,6 +972,7 @@ def update!(**args)
959972 @labels = args [ :labels ] if args . key? ( :labels )
960973 @last_successful_backup_time = args [ :last_successful_backup_time ] if args . key? ( :last_successful_backup_time )
961974 @name = args [ :name ] if args . key? ( :name )
975+ @protected_namespace_count = args [ :protected_namespace_count ] if args . key? ( :protected_namespace_count )
962976 @protected_pod_count = args [ :protected_pod_count ] if args . key? ( :protected_pod_count )
963977 @retention_policy = args [ :retention_policy ] if args . key? ( :retention_policy )
964978 @rpo_risk_level = args [ :rpo_risk_level ] if args . key? ( :rpo_risk_level )
0 commit comments