Backup_ClusterMetadata constructor

Backup_ClusterMetadata({
  1. String? cluster,
  2. String? k8sVersion,
  3. Map<String, String>? backupCrdVersions,
  4. String? gkeVersion,
  5. String? anthosVersion,
})

Implementation

factory Backup_ClusterMetadata({
  $core.String? cluster,
  $core.String? k8sVersion,
  $core.Map<$core.String, $core.String>? backupCrdVersions,
  $core.String? gkeVersion,
  $core.String? anthosVersion,
}) {
  final $result = create();
  if (cluster != null) {
    $result.cluster = cluster;
  }
  if (k8sVersion != null) {
    $result.k8sVersion = k8sVersion;
  }
  if (backupCrdVersions != null) {
    $result.backupCrdVersions.addAll(backupCrdVersions);
  }
  if (gkeVersion != null) {
    $result.gkeVersion = gkeVersion;
  }
  if (anthosVersion != null) {
    $result.anthosVersion = anthosVersion;
  }
  return $result;
}