Constants
BackupForGKE_CreateBackupPlan_FullMethodName, BackupForGKE_ListBackupPlans_FullMethodName, BackupForGKE_GetBackupPlan_FullMethodName, BackupForGKE_UpdateBackupPlan_FullMethodName, BackupForGKE_DeleteBackupPlan_FullMethodName, BackupForGKE_CreateBackupChannel_FullMethodName, BackupForGKE_ListBackupChannels_FullMethodName, BackupForGKE_GetBackupChannel_FullMethodName, BackupForGKE_UpdateBackupChannel_FullMethodName, BackupForGKE_DeleteBackupChannel_FullMethodName, BackupForGKE_ListBackupPlanBindings_FullMethodName, BackupForGKE_GetBackupPlanBinding_FullMethodName, BackupForGKE_CreateBackup_FullMethodName, BackupForGKE_ListBackups_FullMethodName, BackupForGKE_GetBackup_FullMethodName, BackupForGKE_UpdateBackup_FullMethodName, BackupForGKE_DeleteBackup_FullMethodName, BackupForGKE_ListVolumeBackups_FullMethodName, BackupForGKE_GetVolumeBackup_FullMethodName, BackupForGKE_CreateRestorePlan_FullMethodName, BackupForGKE_ListRestorePlans_FullMethodName, BackupForGKE_GetRestorePlan_FullMethodName, BackupForGKE_UpdateRestorePlan_FullMethodName, BackupForGKE_DeleteRestorePlan_FullMethodName, BackupForGKE_CreateRestoreChannel_FullMethodName, BackupForGKE_ListRestoreChannels_FullMethodName, BackupForGKE_GetRestoreChannel_FullMethodName, BackupForGKE_UpdateRestoreChannel_FullMethodName, BackupForGKE_DeleteRestoreChannel_FullMethodName, BackupForGKE_ListRestorePlanBindings_FullMethodName, BackupForGKE_GetRestorePlanBinding_FullMethodName, BackupForGKE_CreateRestore_FullMethodName, BackupForGKE_ListRestores_FullMethodName, BackupForGKE_GetRestore_FullMethodName, BackupForGKE_UpdateRestore_FullMethodName, BackupForGKE_DeleteRestore_FullMethodName, BackupForGKE_ListVolumeRestores_FullMethodName, BackupForGKE_GetVolumeRestore_FullMethodName, BackupForGKE_GetBackupIndexDownloadUrl_FullMethodName
const (
BackupForGKE_CreateBackupPlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateBackupPlan"
BackupForGKE_ListBackupPlans_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListBackupPlans"
BackupForGKE_GetBackupPlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetBackupPlan"
BackupForGKE_UpdateBackupPlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateBackupPlan"
BackupForGKE_DeleteBackupPlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteBackupPlan"
BackupForGKE_CreateBackupChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateBackupChannel"
BackupForGKE_ListBackupChannels_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListBackupChannels"
BackupForGKE_GetBackupChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetBackupChannel"
BackupForGKE_UpdateBackupChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateBackupChannel"
BackupForGKE_DeleteBackupChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteBackupChannel"
BackupForGKE_ListBackupPlanBindings_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListBackupPlanBindings"
BackupForGKE_GetBackupPlanBinding_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetBackupPlanBinding"
BackupForGKE_CreateBackup_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateBackup"
BackupForGKE_ListBackups_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListBackups"
BackupForGKE_GetBackup_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetBackup"
BackupForGKE_UpdateBackup_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateBackup"
BackupForGKE_DeleteBackup_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteBackup"
BackupForGKE_ListVolumeBackups_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListVolumeBackups"
BackupForGKE_GetVolumeBackup_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetVolumeBackup"
BackupForGKE_CreateRestorePlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateRestorePlan"
BackupForGKE_ListRestorePlans_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListRestorePlans"
BackupForGKE_GetRestorePlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetRestorePlan"
BackupForGKE_UpdateRestorePlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateRestorePlan"
BackupForGKE_DeleteRestorePlan_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteRestorePlan"
BackupForGKE_CreateRestoreChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateRestoreChannel"
BackupForGKE_ListRestoreChannels_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListRestoreChannels"
BackupForGKE_GetRestoreChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetRestoreChannel"
BackupForGKE_UpdateRestoreChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateRestoreChannel"
BackupForGKE_DeleteRestoreChannel_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteRestoreChannel"
BackupForGKE_ListRestorePlanBindings_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListRestorePlanBindings"
BackupForGKE_GetRestorePlanBinding_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetRestorePlanBinding"
BackupForGKE_CreateRestore_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/CreateRestore"
BackupForGKE_ListRestores_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListRestores"
BackupForGKE_GetRestore_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetRestore"
BackupForGKE_UpdateRestore_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/UpdateRestore"
BackupForGKE_DeleteRestore_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/DeleteRestore"
BackupForGKE_ListVolumeRestores_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/ListVolumeRestores"
BackupForGKE_GetVolumeRestore_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetVolumeRestore"
BackupForGKE_GetBackupIndexDownloadUrl_FullMethodName = "/google.cloud.gkebackup.v1.BackupForGKE/GetBackupIndexDownloadUrl"
)Variables
Backup_State_name, Backup_State_value
var (
Backup_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "IN_PROGRESS",
3: "SUCCEEDED",
4: "FAILED",
5: "DELETING",
}
Backup_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"IN_PROGRESS": 2,
"SUCCEEDED": 3,
"FAILED": 4,
"DELETING": 5,
}
)Enum value maps for Backup_State.
BackupPlan_State_name, BackupPlan_State_value
var (
BackupPlan_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CLUSTER_PENDING",
2: "PROVISIONING",
3: "READY",
4: "FAILED",
5: "DEACTIVATED",
6: "DELETING",
}
BackupPlan_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CLUSTER_PENDING": 1,
"PROVISIONING": 2,
"READY": 3,
"FAILED": 4,
"DEACTIVATED": 5,
"DELETING": 6,
}
)Enum value maps for BackupPlan_State.
BackupPlanBinding_BackupPlanDetails_State_name, BackupPlanBinding_BackupPlanDetails_State_value
var (
BackupPlanBinding_BackupPlanDetails_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CLUSTER_PENDING",
2: "PROVISIONING",
3: "READY",
4: "FAILED",
5: "DEACTIVATED",
6: "DELETING",
}
BackupPlanBinding_BackupPlanDetails_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CLUSTER_PENDING": 1,
"PROVISIONING": 2,
"READY": 3,
"FAILED": 4,
"DEACTIVATED": 5,
"DELETING": 6,
}
)Enum value maps for BackupPlanBinding_BackupPlanDetails_State.
VolumeTypeEnum_VolumeType_name, VolumeTypeEnum_VolumeType_value
var (
VolumeTypeEnum_VolumeType_name = map[int32]string{
0: "VOLUME_TYPE_UNSPECIFIED",
1: "GCE_PERSISTENT_DISK",
}
VolumeTypeEnum_VolumeType_value = map[string]int32{
"VOLUME_TYPE_UNSPECIFIED": 0,
"GCE_PERSISTENT_DISK": 1,
}
)Enum value maps for VolumeTypeEnum_VolumeType.
Restore_State_name, Restore_State_value
var (
Restore_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "IN_PROGRESS",
3: "SUCCEEDED",
4: "FAILED",
5: "DELETING",
6: "VALIDATING",
}
Restore_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"IN_PROGRESS": 2,
"SUCCEEDED": 3,
"FAILED": 4,
"DELETING": 5,
"VALIDATING": 6,
}
)Enum value maps for Restore_State.
RestoreConfig_VolumeDataRestorePolicy_name, RestoreConfig_VolumeDataRestorePolicy_value
var (
RestoreConfig_VolumeDataRestorePolicy_name = map[int32]string{
0: "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED",
1: "RESTORE_VOLUME_DATA_FROM_BACKUP",
2: "REUSE_VOLUME_HANDLE_FROM_BACKUP",
3: "NO_VOLUME_DATA_RESTORATION",
}
RestoreConfig_VolumeDataRestorePolicy_value = map[string]int32{
"VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED": 0,
"RESTORE_VOLUME_DATA_FROM_BACKUP": 1,
"REUSE_VOLUME_HANDLE_FROM_BACKUP": 2,
"NO_VOLUME_DATA_RESTORATION": 3,
}
)Enum value maps for RestoreConfig_VolumeDataRestorePolicy.
RestoreConfig_ClusterResourceConflictPolicy_name, RestoreConfig_ClusterResourceConflictPolicy_value
var (
RestoreConfig_ClusterResourceConflictPolicy_name = map[int32]string{
0: "CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED",
1: "USE_EXISTING_VERSION",
2: "USE_BACKUP_VERSION",
}
RestoreConfig_ClusterResourceConflictPolicy_value = map[string]int32{
"CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED": 0,
"USE_EXISTING_VERSION": 1,
"USE_BACKUP_VERSION": 2,
}
)Enum value maps for RestoreConfig_ClusterResourceConflictPolicy.
RestoreConfig_NamespacedResourceRestoreMode_name, RestoreConfig_NamespacedResourceRestoreMode_value
var (
RestoreConfig_NamespacedResourceRestoreMode_name = map[int32]string{
0: "NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED",
1: "DELETE_AND_RESTORE",
2: "FAIL_ON_CONFLICT",
3: "MERGE_SKIP_ON_CONFLICT",
4: "MERGE_REPLACE_VOLUME_ON_CONFLICT",
5: "MERGE_REPLACE_ON_CONFLICT",
}
RestoreConfig_NamespacedResourceRestoreMode_value = map[string]int32{
"NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED": 0,
"DELETE_AND_RESTORE": 1,
"FAIL_ON_CONFLICT": 2,
"MERGE_SKIP_ON_CONFLICT": 3,
"MERGE_REPLACE_VOLUME_ON_CONFLICT": 4,
"MERGE_REPLACE_ON_CONFLICT": 5,
}
)Enum value maps for RestoreConfig_NamespacedResourceRestoreMode.
RestoreConfig_TransformationRuleAction_Op_name, RestoreConfig_TransformationRuleAction_Op_value
var (
RestoreConfig_TransformationRuleAction_Op_name = map[int32]string{
0: "OP_UNSPECIFIED",
1: "REMOVE",
2: "MOVE",
3: "COPY",
4: "ADD",
5: "TEST",
6: "REPLACE",
}
RestoreConfig_TransformationRuleAction_Op_value = map[string]int32{
"OP_UNSPECIFIED": 0,
"REMOVE": 1,
"MOVE": 2,
"COPY": 3,
"ADD": 4,
"TEST": 5,
"REPLACE": 6,
}
)Enum value maps for RestoreConfig_TransformationRuleAction_Op.
RestorePlan_State_name, RestorePlan_State_value
var (
RestorePlan_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CLUSTER_PENDING",
2: "READY",
3: "FAILED",
4: "DELETING",
}
RestorePlan_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CLUSTER_PENDING": 1,
"READY": 2,
"FAILED": 3,
"DELETING": 4,
}
)Enum value maps for RestorePlan_State.
VolumeBackup_VolumeBackupFormat_name, VolumeBackup_VolumeBackupFormat_value
var (
VolumeBackup_VolumeBackupFormat_name = map[int32]string{
0: "VOLUME_BACKUP_FORMAT_UNSPECIFIED",
1: "GCE_PERSISTENT_DISK",
}
VolumeBackup_VolumeBackupFormat_value = map[string]int32{
"VOLUME_BACKUP_FORMAT_UNSPECIFIED": 0,
"GCE_PERSISTENT_DISK": 1,
}
)Enum value maps for VolumeBackup_VolumeBackupFormat.
VolumeBackup_State_name, VolumeBackup_State_value
var (
VolumeBackup_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "SNAPSHOTTING",
3: "UPLOADING",
4: "SUCCEEDED",
5: "FAILED",
6: "DELETING",
7: "CLEANED_UP",
}
VolumeBackup_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"SNAPSHOTTING": 2,
"UPLOADING": 3,
"SUCCEEDED": 4,
"FAILED": 5,
"DELETING": 6,
"CLEANED_UP": 7,
}
)Enum value maps for VolumeBackup_State.
VolumeRestore_VolumeType_name, VolumeRestore_VolumeType_value
var (
VolumeRestore_VolumeType_name = map[int32]string{
0: "VOLUME_TYPE_UNSPECIFIED",
1: "GCE_PERSISTENT_DISK",
}
VolumeRestore_VolumeType_value = map[string]int32{
"VOLUME_TYPE_UNSPECIFIED": 0,
"GCE_PERSISTENT_DISK": 1,
}
)Enum value maps for VolumeRestore_VolumeType.
VolumeRestore_State_name, VolumeRestore_State_value
var (
VolumeRestore_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "RESTORING",
3: "SUCCEEDED",
4: "FAILED",
5: "DELETING",
}
VolumeRestore_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"RESTORING": 2,
"SUCCEEDED": 3,
"FAILED": 4,
"DELETING": 5,
}
)Enum value maps for VolumeRestore_State.
BackupForGKE_ServiceDesc
var BackupForGKE_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.gkebackup.v1.BackupForGKE",
HandlerType: (*BackupForGKEServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateBackupPlan",
Handler: _BackupForGKE_CreateBackupPlan_Handler,
},
{
MethodName: "ListBackupPlans",
Handler: _BackupForGKE_ListBackupPlans_Handler,
},
{
MethodName: "GetBackupPlan",
Handler: _BackupForGKE_GetBackupPlan_Handler,
},
{
MethodName: "UpdateBackupPlan",
Handler: _BackupForGKE_UpdateBackupPlan_Handler,
},
{
MethodName: "DeleteBackupPlan",
Handler: _BackupForGKE_DeleteBackupPlan_Handler,
},
{
MethodName: "CreateBackupChannel",
Handler: _BackupForGKE_CreateBackupChannel_Handler,
},
{
MethodName: "ListBackupChannels",
Handler: _BackupForGKE_ListBackupChannels_Handler,
},
{
MethodName: "GetBackupChannel",
Handler: _BackupForGKE_GetBackupChannel_Handler,
},
{
MethodName: "UpdateBackupChannel",
Handler: _BackupForGKE_UpdateBackupChannel_Handler,
},
{
MethodName: "DeleteBackupChannel",
Handler: _BackupForGKE_DeleteBackupChannel_Handler,
},
{
MethodName: "ListBackupPlanBindings",
Handler: _BackupForGKE_ListBackupPlanBindings_Handler,
},
{
MethodName: "GetBackupPlanBinding",
Handler: _BackupForGKE_GetBackupPlanBinding_Handler,
},
{
MethodName: "CreateBackup",
Handler: _BackupForGKE_CreateBackup_Handler,
},
{
MethodName: "ListBackups",
Handler: _BackupForGKE_ListBackups_Handler,
},
{
MethodName: "GetBackup",
Handler: _BackupForGKE_GetBackup_Handler,
},
{
MethodName: "UpdateBackup",
Handler: _BackupForGKE_UpdateBackup_Handler,
},
{
MethodName: "DeleteBackup",
Handler: _BackupForGKE_DeleteBackup_Handler,
},
{
MethodName: "ListVolumeBackups",
Handler: _BackupForGKE_ListVolumeBackups_Handler,
},
{
MethodName: "GetVolumeBackup",
Handler: _BackupForGKE_GetVolumeBackup_Handler,
},
{
MethodName: "CreateRestorePlan",
Handler: _BackupForGKE_CreateRestorePlan_Handler,
},
{
MethodName: "ListRestorePlans",
Handler: _BackupForGKE_ListRestorePlans_Handler,
},
{
MethodName: "GetRestorePlan",
Handler: _BackupForGKE_GetRestorePlan_Handler,
},
{
MethodName: "UpdateRestorePlan",
Handler: _BackupForGKE_UpdateRestorePlan_Handler,
},
{
MethodName: "DeleteRestorePlan",
Handler: _BackupForGKE_DeleteRestorePlan_Handler,
},
{
MethodName: "CreateRestoreChannel",
Handler: _BackupForGKE_CreateRestoreChannel_Handler,
},
{
MethodName: "ListRestoreChannels",
Handler: _BackupForGKE_ListRestoreChannels_Handler,
},
{
MethodName: "GetRestoreChannel",
Handler: _BackupForGKE_GetRestoreChannel_Handler,
},
{
MethodName: "UpdateRestoreChannel",
Handler: _BackupForGKE_UpdateRestoreChannel_Handler,
},
{
MethodName: "DeleteRestoreChannel",
Handler: _BackupForGKE_DeleteRestoreChannel_Handler,
},
{
MethodName: "ListRestorePlanBindings",
Handler: _BackupForGKE_ListRestorePlanBindings_Handler,
},
{
MethodName: "GetRestorePlanBinding",
Handler: _BackupForGKE_GetRestorePlanBinding_Handler,
},
{
MethodName: "CreateRestore",
Handler: _BackupForGKE_CreateRestore_Handler,
},
{
MethodName: "ListRestores",
Handler: _BackupForGKE_ListRestores_Handler,
},
{
MethodName: "GetRestore",
Handler: _BackupForGKE_GetRestore_Handler,
},
{
MethodName: "UpdateRestore",
Handler: _BackupForGKE_UpdateRestore_Handler,
},
{
MethodName: "DeleteRestore",
Handler: _BackupForGKE_DeleteRestore_Handler,
},
{
MethodName: "ListVolumeRestores",
Handler: _BackupForGKE_ListVolumeRestores_Handler,
},
{
MethodName: "GetVolumeRestore",
Handler: _BackupForGKE_GetVolumeRestore_Handler,
},
{
MethodName: "GetBackupIndexDownloadUrl",
Handler: _BackupForGKE_GetBackupIndexDownloadUrl_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/gkebackup/v1/gkebackup.proto",
}BackupForGKE_ServiceDesc is the grpc.ServiceDesc for BackupForGKE service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_gkebackup_v1_backup_channel_proto
var File_google_cloud_gkebackup_v1_backup_channel_proto protoreflect.FileDescriptorFile_google_cloud_gkebackup_v1_backup_plan_binding_proto
var File_google_cloud_gkebackup_v1_backup_plan_binding_proto protoreflect.FileDescriptorFile_google_cloud_gkebackup_v1_backup_plan_proto
var File_google_cloud_gkebackup_v1_backup_plan_proto protoreflect.FileDescriptorFile_google_cloud_gkebackup_v1_backup_proto
var File_google_cloud_gkebackup_v1_backup_proto protoreflect.FileDescriptorFile_google_cloud_gkebackup_v1_common_proto
var File_google_cloud_gkebackup_v1_common_proto protoreflect.FileDescriptorFile_google_cloud_gkebackup_v1_gkebackup_proto
var File_google_cloud_gkebackup_v1_gkebackup_proto protoreflect.FileDescriptorFile_google_cloud_gkebackup_v1_restore_channel_proto
var File_google_cloud_gkebackup_v1_restore_channel_proto protoreflect.FileDescriptorFile_google_cloud_gkebackup_v1_restore_plan_binding_proto
var File_google_cloud_gkebackup_v1_restore_plan_binding_proto protoreflect.FileDescriptorFile_google_cloud_gkebackup_v1_restore_plan_proto
var File_google_cloud_gkebackup_v1_restore_plan_proto protoreflect.FileDescriptorFile_google_cloud_gkebackup_v1_restore_proto
var File_google_cloud_gkebackup_v1_restore_proto protoreflect.FileDescriptorFile_google_cloud_gkebackup_v1_volume_proto
var File_google_cloud_gkebackup_v1_volume_proto protoreflect.FileDescriptorFunctions
func RegisterBackupForGKEServer
func RegisterBackupForGKEServer(s grpc.ServiceRegistrar, srv BackupForGKEServer)Backup
type Backup struct {
// Output only. The fully qualified name of the Backup.
// `projects/*/locations/*/backupPlans/*/backups/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server generated global unique identifier of
// [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. The timestamp when this Backup resource was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when this Backup resource was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. This flag indicates whether this Backup resource was created
// manually by a user or via a schedule in the BackupPlan. A value of True
// means that the Backup was created manually.
Manual bool `protobuf:"varint,5,opt,name=manual,proto3" json:"manual,omitempty"`
// Optional. A set of custom labels supplied by user.
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Minimum age for this Backup (in days). If this field is set to a
// non-zero value, the Backup will be "locked" against deletion (either manual
// or automatic deletion) for the number of days provided (measured from the
// creation time of the Backup). MUST be an integer value between 0-90
// (inclusive).
//
// Defaults to parent BackupPlan's
// [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]
// setting and may only be increased
// (either at creation time or in a subsequent update).
DeleteLockDays int32 `protobuf:"varint,7,opt,name=delete_lock_days,json=deleteLockDays,proto3" json:"delete_lock_days,omitempty"`
// Output only. The time at which an existing delete lock will expire for this
// backup (calculated from create_time +
// [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
DeleteLockExpireTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=delete_lock_expire_time,json=deleteLockExpireTime,proto3" json:"delete_lock_expire_time,omitempty"`
// Optional. The age (in days) after which this Backup will be automatically
// deleted. Must be an integer value >= 0:
//
// - If 0, no automatic deletion will occur for this Backup.
// - If not 0, this must be >=
// [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days] and
// <= 365.="" once="" a="" backup="" is="" created,="" this="" value="" may="" only="" be="" increased.="" defaults="" to="" the="" parent="" backupplan's="" [backup_retain_days][google.cloud.gkebackup.v1.backupplan.retentionpolicy.backup_retain_days]="" value.="" retaindays="">int32 `protobuf:"varint,9,opt,name=retain_days,json=retainDays,proto3" json:"retain_days,omitempty"`
// Output only. The time at which this Backup will be automatically deleted
// (calculated from create_time +
// [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
RetainExpireTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=retain_expire_time,json=retainExpireTime,proto3" json:"retain_expire_time,omitempty"`
// Output only. The customer managed encryption key that was used to encrypt
// the Backup's artifacts. Inherited from the parent BackupPlan's
// [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
// value.
EncryptionKey *EncryptionKey `protobuf:"bytes,11,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"`
// Defines the "scope" of the Backup - which namespaced resources in the
// cluster were included in the Backup. Inherited from the parent
// BackupPlan's
// [backup_scope][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.backup_scope]
// value.
//
// Types that are assignable to BackupScope:
//
// *Backup_AllNamespaces
// *Backup_SelectedNamespaces
// *Backup_SelectedApplications
BackupScope isBackup_BackupScope `protobuf_oneof:"backup_scope"`
// Output only. Whether or not the Backup contains volume data. Controlled by
// the parent BackupPlan's
// [include_volume_data][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_volume_data]
// value.
ContainsVolumeData bool `protobuf:"varint,15,opt,name=contains_volume_data,json=containsVolumeData,proto3" json:"contains_volume_data,omitempty"`
// Output only. Whether or not the Backup contains Kubernetes Secrets.
// Controlled by the parent BackupPlan's
// [include_secrets][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_secrets]
// value.
ContainsSecrets bool `protobuf:"varint,16,opt,name=contains_secrets,json=containsSecrets,proto3" json:"contains_secrets,omitempty"`
// Output only. Information about the GKE cluster from which this Backup was
// created.
ClusterMetadata *Backup_ClusterMetadata `protobuf:"bytes,17,opt,name=cluster_metadata,json=clusterMetadata,proto3" json:"cluster_metadata,omitempty"`
// Output only. Current state of the Backup
State Backup_State `protobuf:"varint,18,opt,name=state,proto3,enum=google.cloud.gkebackup.v1.Backup_State" json:"state,omitempty"`
// Output only. Human-readable description of why the backup is in the current
// `state`. This field is only meant for human readability and should not be
// used programmatically as this field is not guaranteed to be consistent.
StateReason string `protobuf:"bytes,19,opt,name=state_reason,json=stateReason,proto3" json:"state_reason,omitempty"`
// Output only. Completion time of the Backup
CompleteTime *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"`
// Output only. The total number of Kubernetes resources included in the
// Backup.
ResourceCount int32 `protobuf:"varint,21,opt,name=resource_count,json=resourceCount,proto3" json:"resource_count,omitempty"`
// Output only. The total number of volume backups contained in the Backup.
VolumeCount int32 `protobuf:"varint,22,opt,name=volume_count,json=volumeCount,proto3" json:"volume_count,omitempty"`
// Output only. The total size of the Backup in bytes = config backup size +
// sum(volume backup sizes)
SizeBytes int64 `protobuf:"varint,23,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
// Output only. `etag` is used for optimistic concurrency control as a way to
// help prevent simultaneous updates of a backup from overwriting each other.
// It is strongly suggested that systems make use of the `etag` in the
// read-modify-write cycle to perform backup updates in order to avoid
// race conditions: An `etag` is returned in the response to `GetBackup`,
// and systems are expected to put that etag in the request to
// `UpdateBackup` or `DeleteBackup` to ensure that their change will be
// applied to the same version of the resource.
Etag string `protobuf:"bytes,24,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. User specified descriptive string for this Backup.
Description string `protobuf:"bytes,25,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The total number of Kubernetes Pods contained in the Backup.
PodCount int32 `protobuf:"varint,26,opt,name=pod_count,json=podCount,proto3" json:"pod_count,omitempty"`
// Output only. The size of the config backup in bytes.
ConfigBackupSizeBytes int64 `protobuf:"varint,27,opt,name=config_backup_size_bytes,json=configBackupSizeBytes,proto3" json:"config_backup_size_bytes,omitempty"`
// Output only. If false, Backup will fail when Backup for GKE detects
// Kubernetes configuration that is non-standard or
// requires additional setup to restore.
//
// Inherited from the parent BackupPlan's
// [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode]
// value.
PermissiveMode bool `protobuf:"varint,28,opt,name=permissive_mode,json=permissiveMode,proto3" json:"permissive_mode,omitempty"`
// Output only. [Output Only] Reserved for future use.
SatisfiesPzs bool `protobuf:"varint,29,opt,name=satisfies_pzs,json=satisfiesPzs,proto3" json:"satisfies_pzs,omitempty"`
// Output only. [Output Only] Reserved for future use.
SatisfiesPzi bool `protobuf:"varint,30,opt,name=satisfies_pzi,json=satisfiesPzi,proto3" json:"satisfies_pzi,omitempty"`
// contains filtered or unexported fields
}Represents a request to perform a single point-in-time capture of some portion of the state of a GKE cluster, the record of the backup operation itself, and an anchor for the underlying artifacts that comprise the Backup (the config backup and VolumeBackups).
func (*Backup) Descriptor
Deprecated: Use Backup.ProtoReflect.Descriptor instead.
func (*Backup) GetAllNamespaces
func (*Backup) GetBackupScope
func (m *Backup) GetBackupScope() isBackup_BackupScopefunc (*Backup) GetClusterMetadata
func (x *Backup) GetClusterMetadata() *Backup_ClusterMetadatafunc (*Backup) GetCompleteTime
func (x *Backup) GetCompleteTime() *timestamppb.Timestampfunc (*Backup) GetConfigBackupSizeBytes
func (*Backup) GetContainsSecrets
func (*Backup) GetContainsVolumeData
func (*Backup) GetCreateTime
func (x *Backup) GetCreateTime() *timestamppb.Timestampfunc (*Backup) GetDeleteLockDays
func (*Backup) GetDeleteLockExpireTime
func (x *Backup) GetDeleteLockExpireTime() *timestamppb.Timestampfunc (*Backup) GetDescription
func (*Backup) GetEncryptionKey
func (x *Backup) GetEncryptionKey() *EncryptionKeyfunc (*Backup) GetEtag
func (*Backup) GetLabels
func (*Backup) GetManual
func (*Backup) GetName
func (*Backup) GetPermissiveMode
func (*Backup) GetPodCount
func (*Backup) GetResourceCount
func (*Backup) GetRetainDays
func (*Backup) GetRetainExpireTime
func (x *Backup) GetRetainExpireTime() *timestamppb.Timestampfunc (*Backup) GetSatisfiesPzi
func (*Backup) GetSatisfiesPzs
func (*Backup) GetSelectedApplications
func (x *Backup) GetSelectedApplications() *NamespacedNamesfunc (*Backup) GetSelectedNamespaces
func (x *Backup) GetSelectedNamespaces() *Namespacesfunc (*Backup) GetSizeBytes
func (*Backup) GetState
func (x *Backup) GetState() Backup_Statefunc (*Backup) GetStateReason
func (*Backup) GetUid
func (*Backup) GetUpdateTime
func (x *Backup) GetUpdateTime() *timestamppb.Timestampfunc (*Backup) GetVolumeCount
func (*Backup) ProtoMessage
func (*Backup) ProtoMessage()func (*Backup) ProtoReflect
func (x *Backup) ProtoReflect() protoreflect.Messagefunc (*Backup) Reset
func (x *Backup) Reset()func (*Backup) String
BackupChannel
type BackupChannel struct {
// Identifier. The fully qualified name of the BackupChannel.
// `projects/*/locations/*/backupChannels/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Immutable. The project where Backups are allowed to be stored.
// The format is `projects/{projectId}` or `projects/{projectNumber}`.
DestinationProject string `protobuf:"bytes,2,opt,name=destination_project,json=destinationProject,proto3" json:"destination_project,omitempty"`
// Output only. Server generated global unique identifier of
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. The timestamp when this BackupChannel resource was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when this BackupChannel resource was last
// updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. A set of custom labels supplied by user.
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. User specified descriptive string for this BackupChannel.
Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
// Output only. `etag` is used for optimistic concurrency control as a way to
// help prevent simultaneous updates of a BackupChannel from overwriting each
// other. It is strongly suggested that systems make use of the 'etag' in the
// read-modify-write cycle to perform BackupChannel updates in order to
// avoid race conditions: An `etag` is returned in the response to
// `GetBackupChannel`, and systems are expected to put that etag in the
// request to `UpdateBackupChannel` or `DeleteBackupChannel` to
// ensure that their change will be applied to the same version of the
// resource.
Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"`
// Output only. The project_id where Backups are allowed to be stored.
// Example Project ID: "my-project-id".
// This will be an OUTPUT_ONLY field to return the project_id of the
// destination project.
DestinationProjectId string `protobuf:"bytes,9,opt,name=destination_project_id,json=destinationProjectId,proto3" json:"destination_project_id,omitempty"`
// contains filtered or unexported fields
}A BackupChannel imposes constraints on where clusters can be backed up. The BackupChannel should be in the same project and region as the cluster being backed up. The backup can be created only in destination_project.
func (*BackupChannel) Descriptor
func (*BackupChannel) Descriptor() ([]byte, []int)Deprecated: Use BackupChannel.ProtoReflect.Descriptor instead.
func (*BackupChannel) GetCreateTime
func (x *BackupChannel) GetCreateTime() *timestamppb.Timestampfunc (*BackupChannel) GetDescription
func (x *BackupChannel) GetDescription() stringfunc (*BackupChannel) GetDestinationProject
func (x *BackupChannel) GetDestinationProject() stringfunc (*BackupChannel) GetDestinationProjectId
func (x *BackupChannel) GetDestinationProjectId() stringfunc (*BackupChannel) GetEtag
func (x *BackupChannel) GetEtag() stringfunc (*BackupChannel) GetLabels
func (x *BackupChannel) GetLabels() map[string]stringfunc (*BackupChannel) GetName
func (x *BackupChannel) GetName() stringfunc (*BackupChannel) GetUid
func (x *BackupChannel) GetUid() stringfunc (*BackupChannel) GetUpdateTime
func (x *BackupChannel) GetUpdateTime() *timestamppb.Timestampfunc (*BackupChannel) ProtoMessage
func (*BackupChannel) ProtoMessage()func (*BackupChannel) ProtoReflect
func (x *BackupChannel) ProtoReflect() protoreflect.Messagefunc (*BackupChannel) Reset
func (x *BackupChannel) Reset()func (*BackupChannel) String
func (x *BackupChannel) String() stringBackupForGKEClient
type BackupForGKEClient interface {
// Creates a new BackupPlan in a given location.
CreateBackupPlan(ctx context.Context, in *CreateBackupPlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists BackupPlans in a given location.
ListBackupPlans(ctx context.Context, in *ListBackupPlansRequest, opts ...grpc.CallOption) (*ListBackupPlansResponse, error)
// Retrieve the details of a single BackupPlan.
GetBackupPlan(ctx context.Context, in *GetBackupPlanRequest, opts ...grpc.CallOption) (*BackupPlan, error)
// Update a BackupPlan.
UpdateBackupPlan(ctx context.Context, in *UpdateBackupPlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes an existing BackupPlan.
DeleteBackupPlan(ctx context.Context, in *DeleteBackupPlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Creates a new BackupChannel in a given location.
CreateBackupChannel(ctx context.Context, in *CreateBackupChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists BackupChannels in a given location.
ListBackupChannels(ctx context.Context, in *ListBackupChannelsRequest, opts ...grpc.CallOption) (*ListBackupChannelsResponse, error)
// Retrieve the details of a single BackupChannel.
GetBackupChannel(ctx context.Context, in *GetBackupChannelRequest, opts ...grpc.CallOption) (*BackupChannel, error)
// Update a BackupChannel.
UpdateBackupChannel(ctx context.Context, in *UpdateBackupChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes an existing BackupChannel.
DeleteBackupChannel(ctx context.Context, in *DeleteBackupChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists BackupPlanBindings in a given location.
ListBackupPlanBindings(ctx context.Context, in *ListBackupPlanBindingsRequest, opts ...grpc.CallOption) (*ListBackupPlanBindingsResponse, error)
// Retrieve the details of a single BackupPlanBinding.
GetBackupPlanBinding(ctx context.Context, in *GetBackupPlanBindingRequest, opts ...grpc.CallOption) (*BackupPlanBinding, error)
// Creates a Backup for the given BackupPlan.
CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists the Backups for a given BackupPlan.
ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error)
// Retrieve the details of a single Backup.
GetBackup(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error)
// Update a Backup.
UpdateBackup(ctx context.Context, in *UpdateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes an existing Backup.
DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists the VolumeBackups for a given Backup.
ListVolumeBackups(ctx context.Context, in *ListVolumeBackupsRequest, opts ...grpc.CallOption) (*ListVolumeBackupsResponse, error)
// Retrieve the details of a single VolumeBackup.
GetVolumeBackup(ctx context.Context, in *GetVolumeBackupRequest, opts ...grpc.CallOption) (*VolumeBackup, error)
// Creates a new RestorePlan in a given location.
CreateRestorePlan(ctx context.Context, in *CreateRestorePlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists RestorePlans in a given location.
ListRestorePlans(ctx context.Context, in *ListRestorePlansRequest, opts ...grpc.CallOption) (*ListRestorePlansResponse, error)
// Retrieve the details of a single RestorePlan.
GetRestorePlan(ctx context.Context, in *GetRestorePlanRequest, opts ...grpc.CallOption) (*RestorePlan, error)
// Update a RestorePlan.
UpdateRestorePlan(ctx context.Context, in *UpdateRestorePlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes an existing RestorePlan.
DeleteRestorePlan(ctx context.Context, in *DeleteRestorePlanRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Creates a new RestoreChannel in a given location.
CreateRestoreChannel(ctx context.Context, in *CreateRestoreChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists RestoreChannels in a given location.
ListRestoreChannels(ctx context.Context, in *ListRestoreChannelsRequest, opts ...grpc.CallOption) (*ListRestoreChannelsResponse, error)
// Retrieve the details of a single RestoreChannel.
GetRestoreChannel(ctx context.Context, in *GetRestoreChannelRequest, opts ...grpc.CallOption) (*RestoreChannel, error)
// Update a RestoreChannel.
UpdateRestoreChannel(ctx context.Context, in *UpdateRestoreChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes an existing RestoreChannel.
DeleteRestoreChannel(ctx context.Context, in *DeleteRestoreChannelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists RestorePlanBindings in a given location.
ListRestorePlanBindings(ctx context.Context, in *ListRestorePlanBindingsRequest, opts ...grpc.CallOption) (*ListRestorePlanBindingsResponse, error)
// Retrieve the details of a single RestorePlanBinding.
GetRestorePlanBinding(ctx context.Context, in *GetRestorePlanBindingRequest, opts ...grpc.CallOption) (*RestorePlanBinding, error)
// Creates a new Restore for the given RestorePlan.
CreateRestore(ctx context.Context, in *CreateRestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists the Restores for a given RestorePlan.
ListRestores(ctx context.Context, in *ListRestoresRequest, opts ...grpc.CallOption) (*ListRestoresResponse, error)
// Retrieves the details of a single Restore.
GetRestore(ctx context.Context, in *GetRestoreRequest, opts ...grpc.CallOption) (*Restore, error)
// Update a Restore.
UpdateRestore(ctx context.Context, in *UpdateRestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes an existing Restore.
DeleteRestore(ctx context.Context, in *DeleteRestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists the VolumeRestores for a given Restore.
ListVolumeRestores(ctx context.Context, in *ListVolumeRestoresRequest, opts ...grpc.CallOption) (*ListVolumeRestoresResponse, error)
// Retrieve the details of a single VolumeRestore.
GetVolumeRestore(ctx context.Context, in *GetVolumeRestoreRequest, opts ...grpc.CallOption) (*VolumeRestore, error)
// Retrieve the link to the backupIndex.
GetBackupIndexDownloadUrl(ctx context.Context, in *GetBackupIndexDownloadUrlRequest, opts ...grpc.CallOption) (*GetBackupIndexDownloadUrlResponse, error)
}BackupForGKEClient is the client API for BackupForGKE service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBackupForGKEClient
func NewBackupForGKEClient(cc grpc.ClientConnInterface) BackupForGKEClientBackupForGKEServer
type BackupForGKEServer interface {
// Creates a new BackupPlan in a given location.
CreateBackupPlan(context.Context, *CreateBackupPlanRequest) (*longrunningpb.Operation, error)
// Lists BackupPlans in a given location.
ListBackupPlans(context.Context, *ListBackupPlansRequest) (*ListBackupPlansResponse, error)
// Retrieve the details of a single BackupPlan.
GetBackupPlan(context.Context, *GetBackupPlanRequest) (*BackupPlan, error)
// Update a BackupPlan.
UpdateBackupPlan(context.Context, *UpdateBackupPlanRequest) (*longrunningpb.Operation, error)
// Deletes an existing BackupPlan.
DeleteBackupPlan(context.Context, *DeleteBackupPlanRequest) (*longrunningpb.Operation, error)
// Creates a new BackupChannel in a given location.
CreateBackupChannel(context.Context, *CreateBackupChannelRequest) (*longrunningpb.Operation, error)
// Lists BackupChannels in a given location.
ListBackupChannels(context.Context, *ListBackupChannelsRequest) (*ListBackupChannelsResponse, error)
// Retrieve the details of a single BackupChannel.
GetBackupChannel(context.Context, *GetBackupChannelRequest) (*BackupChannel, error)
// Update a BackupChannel.
UpdateBackupChannel(context.Context, *UpdateBackupChannelRequest) (*longrunningpb.Operation, error)
// Deletes an existing BackupChannel.
DeleteBackupChannel(context.Context, *DeleteBackupChannelRequest) (*longrunningpb.Operation, error)
// Lists BackupPlanBindings in a given location.
ListBackupPlanBindings(context.Context, *ListBackupPlanBindingsRequest) (*ListBackupPlanBindingsResponse, error)
// Retrieve the details of a single BackupPlanBinding.
GetBackupPlanBinding(context.Context, *GetBackupPlanBindingRequest) (*BackupPlanBinding, error)
// Creates a Backup for the given BackupPlan.
CreateBackup(context.Context, *CreateBackupRequest) (*longrunningpb.Operation, error)
// Lists the Backups for a given BackupPlan.
ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error)
// Retrieve the details of a single Backup.
GetBackup(context.Context, *GetBackupRequest) (*Backup, error)
// Update a Backup.
UpdateBackup(context.Context, *UpdateBackupRequest) (*longrunningpb.Operation, error)
// Deletes an existing Backup.
DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error)
// Lists the VolumeBackups for a given Backup.
ListVolumeBackups(context.Context, *ListVolumeBackupsRequest) (*ListVolumeBackupsResponse, error)
// Retrieve the details of a single VolumeBackup.
GetVolumeBackup(context.Context, *GetVolumeBackupRequest) (*VolumeBackup, error)
// Creates a new RestorePlan in a given location.
CreateRestorePlan(context.Context, *CreateRestorePlanRequest) (*longrunningpb.Operation, error)
// Lists RestorePlans in a given location.
ListRestorePlans(context.Context, *ListRestorePlansRequest) (*ListRestorePlansResponse, error)
// Retrieve the details of a single RestorePlan.
GetRestorePlan(context.Context, *GetRestorePlanRequest) (*RestorePlan, error)
// Update a RestorePlan.
UpdateRestorePlan(context.Context, *UpdateRestorePlanRequest) (*longrunningpb.Operation, error)
// Deletes an existing RestorePlan.
DeleteRestorePlan(context.Context, *DeleteRestorePlanRequest) (*longrunningpb.Operation, error)
// Creates a new RestoreChannel in a given location.
CreateRestoreChannel(context.Context, *CreateRestoreChannelRequest) (*longrunningpb.Operation, error)
// Lists RestoreChannels in a given location.
ListRestoreChannels(context.Context, *ListRestoreChannelsRequest) (*ListRestoreChannelsResponse, error)
// Retrieve the details of a single RestoreChannel.
GetRestoreChannel(context.Context, *GetRestoreChannelRequest) (*RestoreChannel, error)
// Update a RestoreChannel.
UpdateRestoreChannel(context.Context, *UpdateRestoreChannelRequest) (*longrunningpb.Operation, error)
// Deletes an existing RestoreChannel.
DeleteRestoreChannel(context.Context, *DeleteRestoreChannelRequest) (*longrunningpb.Operation, error)
// Lists RestorePlanBindings in a given location.
ListRestorePlanBindings(context.Context, *ListRestorePlanBindingsRequest) (*ListRestorePlanBindingsResponse, error)
// Retrieve the details of a single RestorePlanBinding.
GetRestorePlanBinding(context.Context, *GetRestorePlanBindingRequest) (*RestorePlanBinding, error)
// Creates a new Restore for the given RestorePlan.
CreateRestore(context.Context, *CreateRestoreRequest) (*longrunningpb.Operation, error)
// Lists the Restores for a given RestorePlan.
ListRestores(context.Context, *ListRestoresRequest) (*ListRestoresResponse, error)
// Retrieves the details of a single Restore.
GetRestore(context.Context, *GetRestoreRequest) (*Restore, error)
// Update a Restore.
UpdateRestore(context.Context, *UpdateRestoreRequest) (*longrunningpb.Operation, error)
// Deletes an existing Restore.
DeleteRestore(context.Context, *DeleteRestoreRequest) (*longrunningpb.Operation, error)
// Lists the VolumeRestores for a given Restore.
ListVolumeRestores(context.Context, *ListVolumeRestoresRequest) (*ListVolumeRestoresResponse, error)
// Retrieve the details of a single VolumeRestore.
GetVolumeRestore(context.Context, *GetVolumeRestoreRequest) (*VolumeRestore, error)
// Retrieve the link to the backupIndex.
GetBackupIndexDownloadUrl(context.Context, *GetBackupIndexDownloadUrlRequest) (*GetBackupIndexDownloadUrlResponse, error)
}BackupForGKEServer is the server API for BackupForGKE service. All implementations should embed UnimplementedBackupForGKEServer for forward compatibility
BackupPlan
type BackupPlan struct {
// Output only. The full name of the BackupPlan resource.
// Format: `projects/*/locations/*/backupPlans/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server generated global unique identifier of
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. The timestamp when this BackupPlan resource was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when this BackupPlan resource was last
// updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. User specified descriptive string for this BackupPlan.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Required. Immutable. The source cluster from which Backups will be created
// via this BackupPlan. Valid formats:
//
// - `projects/*/locations/*/clusters/*`
// - `projects/*/zones/*/clusters/*`
Cluster string `protobuf:"bytes,6,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Optional. RetentionPolicy governs lifecycle of Backups created under this
// plan.
RetentionPolicy *BackupPlan_RetentionPolicy `protobuf:"bytes,7,opt,name=retention_policy,json=retentionPolicy,proto3" json:"retention_policy,omitempty"`
// Optional. A set of custom labels supplied by user.
Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Defines a schedule for automatic Backup creation via this
// BackupPlan.
BackupSchedule *BackupPlan_Schedule `protobuf:"bytes,9,opt,name=backup_schedule,json=backupSchedule,proto3" json:"backup_schedule,omitempty"`
// Output only. `etag` is used for optimistic concurrency control as a way to
// help prevent simultaneous updates of a backup plan from overwriting each
// other. It is strongly suggested that systems make use of the 'etag' in the
// read-modify-write cycle to perform BackupPlan updates in order to avoid
// race conditions: An `etag` is returned in the response to `GetBackupPlan`,
// and systems are expected to put that etag in the request to
// `UpdateBackupPlan` or `DeleteBackupPlan` to ensure that their change
// will be applied to the same version of the resource.
Etag string `protobuf:"bytes,10,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. This flag indicates whether this BackupPlan has been deactivated.
// Setting this field to True locks the BackupPlan such that no further
// updates will be allowed (except deletes), including the deactivated field
// itself. It also prevents any new Backups from being created via this
// BackupPlan (including scheduled Backups).
//
// Default: False
Deactivated bool `protobuf:"varint,11,opt,name=deactivated,proto3" json:"deactivated,omitempty"`
// Optional. Defines the configuration of Backups created via this BackupPlan.
BackupConfig *BackupPlan_BackupConfig `protobuf:"bytes,12,opt,name=backup_config,json=backupConfig,proto3" json:"backup_config,omitempty"`
// Output only. The number of Kubernetes Pods backed up in the
// last successful Backup created via this BackupPlan.
ProtectedPodCount int32 `protobuf:"varint,13,opt,name=protected_pod_count,json=protectedPodCount,proto3" json:"protected_pod_count,omitempty"`
// Output only. State of the BackupPlan. This State field reflects the
// various stages a BackupPlan can be in
// during the Create operation. It will be set to "DEACTIVATED"
// if the BackupPlan is deactivated on an Update
State BackupPlan_State `protobuf:"varint,14,opt,name=state,proto3,enum=google.cloud.gkebackup.v1.BackupPlan_State" json:"state,omitempty"`
// Output only. Human-readable description of why BackupPlan is in the current
// `state`. This field is only meant for human readability and should not be
// used programmatically as this field is not guaranteed to be consistent.
StateReason string `protobuf:"bytes,15,opt,name=state_reason,json=stateReason,proto3" json:"state_reason,omitempty"`
// Output only. A number that represents the current risk level of this
// BackupPlan from RPO perspective with 1 being no risk and 5 being highest
// risk.
RpoRiskLevel int32 `protobuf:"varint,16,opt,name=rpo_risk_level,json=rpoRiskLevel,proto3" json:"rpo_risk_level,omitempty"`
// Output only. Human-readable description of why the BackupPlan is in the
// current rpo_risk_level and action items if any.
RpoRiskReason string `protobuf:"bytes,17,opt,name=rpo_risk_reason,json=rpoRiskReason,proto3" json:"rpo_risk_reason,omitempty"`
// Output only. The fully qualified name of the BackupChannel to be used to
// create a backup. This field is set only if the cluster being backed up is
// in a different project.
// `projects/*/locations/*/backupChannels/*`
BackupChannel string `protobuf:"bytes,18,opt,name=backup_channel,json=backupChannel,proto3" json:"backup_channel,omitempty"`
// Output only. Completion time of the last successful Backup. This is sourced
// from a successful Backup's complete_time field. This field is added to
// maintain consistency with BackupPlanBinding to display last successful
// backup time.
LastSuccessfulBackupTime *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=last_successful_backup_time,json=lastSuccessfulBackupTime,proto3" json:"last_successful_backup_time,omitempty"`
// contains filtered or unexported fields
}Defines the configuration and scheduling for a "line" of Backups.
func (*BackupPlan) Descriptor
func (*BackupPlan) Descriptor() ([]byte, []int)Deprecated: Use BackupPlan.ProtoReflect.Descriptor instead.
func (*BackupPlan) GetBackupChannel
func (x *BackupPlan) GetBackupChannel() stringfunc (*BackupPlan) GetBackupConfig
func (x *BackupPlan) GetBackupConfig() *BackupPlan_BackupConfigfunc (*BackupPlan) GetBackupSchedule
func (x *BackupPlan) GetBackupSchedule() *BackupPlan_Schedulefunc (*BackupPlan) GetCluster
func (x *BackupPlan) GetCluster() stringfunc (*BackupPlan) GetCreateTime
func (x *BackupPlan) GetCreateTime() *timestamppb.Timestampfunc (*BackupPlan) GetDeactivated
func (x *BackupPlan) GetDeactivated() boolfunc (*BackupPlan) GetDescription
func (x *BackupPlan) GetDescription() stringfunc (*BackupPlan) GetEtag
func (x *BackupPlan) GetEtag() stringfunc (*BackupPlan) GetLabels
func (x *BackupPlan) GetLabels() map[string]stringfunc (*BackupPlan) GetLastSuccessfulBackupTime
func (x *BackupPlan) GetLastSuccessfulBackupTime() *timestamppb.Timestampfunc (*BackupPlan) GetName
func (x *BackupPlan) GetName() stringfunc (*BackupPlan) GetProtectedPodCount
func (x *BackupPlan) GetProtectedPodCount() int32func (*BackupPlan) GetRetentionPolicy
func (x *BackupPlan) GetRetentionPolicy() *BackupPlan_RetentionPolicyfunc (*BackupPlan) GetRpoRiskLevel
func (x *BackupPlan) GetRpoRiskLevel() int32func (*BackupPlan) GetRpoRiskReason
func (x *BackupPlan) GetRpoRiskReason() stringfunc (*BackupPlan) GetState
func (x *BackupPlan) GetState() BackupPlan_Statefunc (*BackupPlan) GetStateReason
func (x *BackupPlan) GetStateReason() stringfunc (*BackupPlan) GetUid
func (x *BackupPlan) GetUid() stringfunc (*BackupPlan) GetUpdateTime
func (x *BackupPlan) GetUpdateTime() *timestamppb.Timestampfunc (*BackupPlan) ProtoMessage
func (*BackupPlan) ProtoMessage()func (*BackupPlan) ProtoReflect
func (x *BackupPlan) ProtoReflect() protoreflect.Messagefunc (*BackupPlan) Reset
func (x *BackupPlan) Reset()func (*BackupPlan) String
func (x *BackupPlan) String() stringBackupPlanBinding
type BackupPlanBinding struct {
// Identifier. The fully qualified name of the BackupPlanBinding.
// `projects/*/locations/*/backupChannels/*/backupPlanBindings/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server generated global unique identifier of
// [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. The timestamp when this binding was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when this binding was created.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. Immutable. The fully qualified name of the BackupPlan bound
// with the parent BackupChannel.
// `projects/*/locations/*/backupPlans/{backup_plan}`
BackupPlan string `protobuf:"bytes,5,opt,name=backup_plan,json=backupPlan,proto3" json:"backup_plan,omitempty"`
// Output only. Immutable. The fully qualified name of the cluster that is
// being backed up Valid formats:
//
// - `projects/*/locations/*/clusters/*`
// - `projects/*/zones/*/clusters/*`
Cluster string `protobuf:"bytes,6,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Output only. Contains details about the backup plan/backup.
BackupPlanDetails *BackupPlanBinding_BackupPlanDetails `protobuf:"bytes,7,opt,name=backup_plan_details,json=backupPlanDetails,proto3" json:"backup_plan_details,omitempty"`
// Output only. `etag` is used for optimistic concurrency control as a way to
// help prevent simultaneous updates of a BackupPlanBinding from overwriting
// each other. It is strongly suggested that systems make use of the 'etag' in
// the read-modify-write cycle to perform BackupPlanBinding updates in
// order to avoid race conditions: An `etag` is returned in the response to
// `GetBackupPlanBinding`, and systems are expected to put that etag in
// the request to `UpdateBackupPlanBinding` or
// `DeleteBackupPlanBinding` to ensure that their change will be applied
// to the same version of the resource.
Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}A BackupPlanBinding binds a BackupPlan with a BackupChannel. This resource is created automatically when a BackupPlan is created using a BackupChannel. This also serves as a holder for cross-project fields that need to be displayed in the current project.
func (*BackupPlanBinding) Descriptor
func (*BackupPlanBinding) Descriptor() ([]byte, []int)Deprecated: Use BackupPlanBinding.ProtoReflect.Descriptor instead.
func (*BackupPlanBinding) GetBackupPlan
func (x *BackupPlanBinding) GetBackupPlan() stringfunc (*BackupPlanBinding) GetBackupPlanDetails
func (x *BackupPlanBinding) GetBackupPlanDetails() *BackupPlanBinding_BackupPlanDetailsfunc (*BackupPlanBinding) GetCluster
func (x *BackupPlanBinding) GetCluster() stringfunc (*BackupPlanBinding) GetCreateTime
func (x *BackupPlanBinding) GetCreateTime() *timestamppb.Timestampfunc (*BackupPlanBinding) GetEtag
func (x *BackupPlanBinding) GetEtag() stringfunc (*BackupPlanBinding) GetName
func (x *BackupPlanBinding) GetName() stringfunc (*BackupPlanBinding) GetUid
func (x *BackupPlanBinding) GetUid() stringfunc (*BackupPlanBinding) GetUpdateTime
func (x *BackupPlanBinding) GetUpdateTime() *timestamppb.Timestampfunc (*BackupPlanBinding) ProtoMessage
func (*BackupPlanBinding) ProtoMessage()func (*BackupPlanBinding) ProtoReflect
func (x *BackupPlanBinding) ProtoReflect() protoreflect.Messagefunc (*BackupPlanBinding) Reset
func (x *BackupPlanBinding) Reset()func (*BackupPlanBinding) String
func (x *BackupPlanBinding) String() stringBackupPlanBinding_BackupPlanDetails
type BackupPlanBinding_BackupPlanDetails struct {
// Output only. The number of Kubernetes Pods backed up in the
// last successful Backup created via this BackupPlan.
ProtectedPodCount int32 `protobuf:"varint,1,opt,name=protected_pod_count,json=protectedPodCount,proto3" json:"protected_pod_count,omitempty"`
// Output only. State of the BackupPlan.
State BackupPlanBinding_BackupPlanDetails_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.gkebackup.v1.BackupPlanBinding_BackupPlanDetails_State" json:"state,omitempty"`
// Output only. Completion time of the last successful Backup. This is
// sourced from a successful Backup's complete_time field.
LastSuccessfulBackupTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_successful_backup_time,json=lastSuccessfulBackupTime,proto3" json:"last_successful_backup_time,omitempty"`
// Output only. Start time of next scheduled backup under this BackupPlan by
// either cron_schedule or rpo config. This is sourced from BackupPlan.
NextScheduledBackupTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=next_scheduled_backup_time,json=nextScheduledBackupTime,proto3" json:"next_scheduled_backup_time,omitempty"`
// Output only. A number that represents the current risk level of this
// BackupPlan from RPO perspective with 1 being no risk and 5 being highest
// risk.
RpoRiskLevel int32 `protobuf:"varint,5,opt,name=rpo_risk_level,json=rpoRiskLevel,proto3" json:"rpo_risk_level,omitempty"`
// Output only. The fully qualified name of the last successful Backup
// created under this BackupPlan.
// `projects/*/locations/*/backupPlans/*/backups/*`
LastSuccessfulBackup string `protobuf:"bytes,6,opt,name=last_successful_backup,json=lastSuccessfulBackup,proto3" json:"last_successful_backup,omitempty"`
// Output only. Contains details about the BackupConfig of Backups created
// via this BackupPlan.
BackupConfigDetails *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails `protobuf:"bytes,7,opt,name=backup_config_details,json=backupConfigDetails,proto3" json:"backup_config_details,omitempty"`
// Output only. Contains details about the RetentionPolicy of Backups
// created via this BackupPlan.
RetentionPolicyDetails *BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails `protobuf:"bytes,8,opt,name=retention_policy_details,json=retentionPolicyDetails,proto3" json:"retention_policy_details,omitempty"`
// contains filtered or unexported fields
}Contains metadata about the backup plan/backup.
func (*BackupPlanBinding_BackupPlanDetails) Descriptor
func (*BackupPlanBinding_BackupPlanDetails) Descriptor() ([]byte, []int)Deprecated: Use BackupPlanBinding_BackupPlanDetails.ProtoReflect.Descriptor instead.
func (*BackupPlanBinding_BackupPlanDetails) GetBackupConfigDetails
func (x *BackupPlanBinding_BackupPlanDetails) GetBackupConfigDetails() *BackupPlanBinding_BackupPlanDetails_BackupConfigDetailsfunc (*BackupPlanBinding_BackupPlanDetails) GetLastSuccessfulBackup
func (x *BackupPlanBinding_BackupPlanDetails) GetLastSuccessfulBackup() stringfunc (*BackupPlanBinding_BackupPlanDetails) GetLastSuccessfulBackupTime
func (x *BackupPlanBinding_BackupPlanDetails) GetLastSuccessfulBackupTime() *timestamppb.Timestampfunc (*BackupPlanBinding_BackupPlanDetails) GetNextScheduledBackupTime
func (x *BackupPlanBinding_BackupPlanDetails) GetNextScheduledBackupTime() *timestamppb.Timestampfunc (*BackupPlanBinding_BackupPlanDetails) GetProtectedPodCount
func (x *BackupPlanBinding_BackupPlanDetails) GetProtectedPodCount() int32func (*BackupPlanBinding_BackupPlanDetails) GetRetentionPolicyDetails
func (x *BackupPlanBinding_BackupPlanDetails) GetRetentionPolicyDetails() *BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetailsfunc (*BackupPlanBinding_BackupPlanDetails) GetRpoRiskLevel
func (x *BackupPlanBinding_BackupPlanDetails) GetRpoRiskLevel() int32func (*BackupPlanBinding_BackupPlanDetails) GetState
func (x *BackupPlanBinding_BackupPlanDetails) GetState() BackupPlanBinding_BackupPlanDetails_Statefunc (*BackupPlanBinding_BackupPlanDetails) ProtoMessage
func (*BackupPlanBinding_BackupPlanDetails) ProtoMessage()func (*BackupPlanBinding_BackupPlanDetails) ProtoReflect
func (x *BackupPlanBinding_BackupPlanDetails) ProtoReflect() protoreflect.Messagefunc (*BackupPlanBinding_BackupPlanDetails) Reset
func (x *BackupPlanBinding_BackupPlanDetails) Reset()func (*BackupPlanBinding_BackupPlanDetails) String
func (x *BackupPlanBinding_BackupPlanDetails) String() stringBackupPlanBinding_BackupPlanDetails_BackupConfigDetails
type BackupPlanBinding_BackupPlanDetails_BackupConfigDetails struct {
// This defines the "scope" of the Backup - which namespaced
// resources in the cluster will be included in a Backup.
// Exactly one of the fields of backup_scope MUST be specified.
//
// Types that are assignable to BackupScope:
//
// *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails_AllNamespaces
// *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails_SelectedNamespaces
// *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails_SelectedApplications
BackupScope isBackupPlanBinding_BackupPlanDetails_BackupConfigDetails_BackupScope `protobuf_oneof:"backup_scope"`
// Output only. This flag specifies whether volume data should be backed
// up when PVCs are included in the scope of a Backup.
//
// Default: False
IncludeVolumeData bool `protobuf:"varint,5,opt,name=include_volume_data,json=includeVolumeData,proto3" json:"include_volume_data,omitempty"`
// Output only. This flag specifies whether Kubernetes Secret resources
// should be included when they fall into the scope of Backups.
//
// Default: False
IncludeSecrets bool `protobuf:"varint,6,opt,name=include_secrets,json=includeSecrets,proto3" json:"include_secrets,omitempty"`
// Output only. This defines a customer managed encryption key that will
// be used to encrypt the "config" portion (the Kubernetes resources) of
// Backups created via this plan.
//
// Default (empty): Config backup artifacts will not be encrypted.
EncryptionKey *EncryptionKey `protobuf:"bytes,7,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"`
// contains filtered or unexported fields
}BackupConfigDetails defines the configuration of Backups created via this BackupPlan.
func (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) Descriptor
func (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) Descriptor() ([]byte, []int)Deprecated: Use BackupPlanBinding_BackupPlanDetails_BackupConfigDetails.ProtoReflect.Descriptor instead.
func (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetAllNamespaces
func (x *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetAllNamespaces() boolfunc (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetBackupScope
func (m *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetBackupScope() isBackupPlanBinding_BackupPlanDetails_BackupConfigDetails_BackupScopefunc (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetEncryptionKey
func (x *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetEncryptionKey() *EncryptionKeyfunc (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetIncludeSecrets
func (x *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetIncludeSecrets() boolfunc (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetIncludeVolumeData
func (x *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetIncludeVolumeData() boolfunc (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetSelectedApplications
func (x *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetSelectedApplications() *NamespacedNamesfunc (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetSelectedNamespaces
func (x *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) GetSelectedNamespaces() *Namespacesfunc (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) ProtoMessage
func (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) ProtoMessage()func (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) ProtoReflect
func (x *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) ProtoReflect() protoreflect.Messagefunc (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) Reset
func (x *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) Reset()func (*BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) String
func (x *BackupPlanBinding_BackupPlanDetails_BackupConfigDetails) String() stringBackupPlanBinding_BackupPlanDetails_BackupConfigDetails_AllNamespaces
type BackupPlanBinding_BackupPlanDetails_BackupConfigDetails_AllNamespaces struct {
// Output only. If True, include all namespaced resources
AllNamespaces bool `protobuf:"varint,1,opt,name=all_namespaces,json=allNamespaces,proto3,oneof"`
}BackupPlanBinding_BackupPlanDetails_BackupConfigDetails_SelectedApplications
type BackupPlanBinding_BackupPlanDetails_BackupConfigDetails_SelectedApplications struct {
// Output only. If set, include just the resources referenced by the
// listed ProtectedApplications.
SelectedApplications *NamespacedNames `protobuf:"bytes,3,opt,name=selected_applications,json=selectedApplications,proto3,oneof"`
}BackupPlanBinding_BackupPlanDetails_BackupConfigDetails_SelectedNamespaces
type BackupPlanBinding_BackupPlanDetails_BackupConfigDetails_SelectedNamespaces struct {
// Output only. If set, include just the resources in the listed
// namespaces.
SelectedNamespaces *Namespaces `protobuf:"bytes,2,opt,name=selected_namespaces,json=selectedNamespaces,proto3,oneof"`
}BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails
type BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails struct {
// Optional. Minimum age for Backups created via this BackupPlan (in
// days). This field MUST be an integer value between 0-90 (inclusive). A
// Backup created under this BackupPlan will NOT be deletable until it
// reaches Backup's (create_time + backup_delete_lock_days).
// Updating this field of a BackupPlan does NOT affect existing Backups
// under it. Backups created AFTER a successful update will inherit
// the new value.
//
// Default: 0 (no delete blocking)
BackupDeleteLockDays int32 `protobuf:"varint,1,opt,name=backup_delete_lock_days,json=backupDeleteLockDays,proto3" json:"backup_delete_lock_days,omitempty"`
// Optional. The default maximum age of a Backup created via this
// BackupPlan. This field MUST be an integer value >= 0 and <= 365.="" if="" specified,="" a="" backup="" created="" under="" this="" backupplan="" will="" be="" automatically="" deleted="" after="" its="" age="" reaches="" (create_time="" +="" backup_retain_days).="" if="" not="" specified,="" backups="" created="" under="" this="" backupplan="" will="" not="" be="" subject="" to="" automatic="" deletion.="" default:="" 0="" (no="" automatic="" deletion)="" backupretaindays="">int32 `protobuf:"varint,2,opt,name=backup_retain_days,json=backupRetainDays,proto3" json:"backup_retain_days,omitempty"`
// contains filtered or unexported fields
}RetentionPolicyDetails defines a Backup retention policy for a BackupPlan.
func (*BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) Descriptor
func (*BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) Descriptor() ([]byte, []int)Deprecated: Use BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails.ProtoReflect.Descriptor instead.
func (*BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) GetBackupDeleteLockDays
func (x *BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) GetBackupDeleteLockDays() int32func (*BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) GetBackupRetainDays
func (x *BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) GetBackupRetainDays() int32func (*BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) ProtoMessage
func (*BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) ProtoMessage()func (*BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) ProtoReflect
func (x *BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) ProtoReflect() protoreflect.Messagefunc (*BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) Reset
func (x *BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) Reset()func (*BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) String
func (x *BackupPlanBinding_BackupPlanDetails_RetentionPolicyDetails) String() stringBackupPlanBinding_BackupPlanDetails_State
type BackupPlanBinding_BackupPlanDetails_State int32State
BackupPlanBinding_BackupPlanDetails_STATE_UNSPECIFIED, BackupPlanBinding_BackupPlanDetails_CLUSTER_PENDING, BackupPlanBinding_BackupPlanDetails_PROVISIONING, BackupPlanBinding_BackupPlanDetails_READY, BackupPlanBinding_BackupPlanDetails_FAILED, BackupPlanBinding_BackupPlanDetails_DEACTIVATED, BackupPlanBinding_BackupPlanDetails_DELETING
const (
// Default first value for Enums.
BackupPlanBinding_BackupPlanDetails_STATE_UNSPECIFIED BackupPlanBinding_BackupPlanDetails_State = 0
// Waiting for cluster state to be RUNNING.
BackupPlanBinding_BackupPlanDetails_CLUSTER_PENDING BackupPlanBinding_BackupPlanDetails_State = 1
// The BackupPlan is in the process of being created.
BackupPlanBinding_BackupPlanDetails_PROVISIONING BackupPlanBinding_BackupPlanDetails_State = 2
// The BackupPlan has successfully been created and is ready for Backups.
BackupPlanBinding_BackupPlanDetails_READY BackupPlanBinding_BackupPlanDetails_State = 3
// BackupPlan creation has failed.
BackupPlanBinding_BackupPlanDetails_FAILED BackupPlanBinding_BackupPlanDetails_State = 4
// The BackupPlan has been deactivated.
BackupPlanBinding_BackupPlanDetails_DEACTIVATED BackupPlanBinding_BackupPlanDetails_State = 5
// The BackupPlan is in the process of being deleted.
BackupPlanBinding_BackupPlanDetails_DELETING BackupPlanBinding_BackupPlanDetails_State = 6
)func (BackupPlanBinding_BackupPlanDetails_State) Descriptor
func (BackupPlanBinding_BackupPlanDetails_State) Descriptor() protoreflect.EnumDescriptorfunc (BackupPlanBinding_BackupPlanDetails_State) Enum
func (x BackupPlanBinding_BackupPlanDetails_State) Enum() *BackupPlanBinding_BackupPlanDetails_Statefunc (BackupPlanBinding_BackupPlanDetails_State) EnumDescriptor
func (BackupPlanBinding_BackupPlanDetails_State) EnumDescriptor() ([]byte, []int)Deprecated: Use BackupPlanBinding_BackupPlanDetails_State.Descriptor instead.
func (BackupPlanBinding_BackupPlanDetails_State) Number
func (x BackupPlanBinding_BackupPlanDetails_State) Number() protoreflect.EnumNumberfunc (BackupPlanBinding_BackupPlanDetails_State) String
func (x BackupPlanBinding_BackupPlanDetails_State) String() stringfunc (BackupPlanBinding_BackupPlanDetails_State) Type
func (BackupPlanBinding_BackupPlanDetails_State) Type() protoreflect.EnumTypeBackupPlan_BackupConfig
type BackupPlan_BackupConfig struct {
// This defines the "scope" of the Backup - which namespaced
// resources in the cluster will be included in a Backup.
// Exactly one of the fields of backup_scope MUST be specified.
//
// Types that are assignable to BackupScope:
//
// *BackupPlan_BackupConfig_AllNamespaces
// *BackupPlan_BackupConfig_SelectedNamespaces
// *BackupPlan_BackupConfig_SelectedApplications
BackupScope isBackupPlan_BackupConfig_BackupScope `protobuf_oneof:"backup_scope"`
// Optional. This flag specifies whether volume data should be backed up
// when PVCs are included in the scope of a Backup.
//
// Default: False
IncludeVolumeData bool `protobuf:"varint,4,opt,name=include_volume_data,json=includeVolumeData,proto3" json:"include_volume_data,omitempty"`
// Optional. This flag specifies whether Kubernetes Secret resources should
// be included when they fall into the scope of Backups.
//
// Default: False
IncludeSecrets bool `protobuf:"varint,5,opt,name=include_secrets,json=includeSecrets,proto3" json:"include_secrets,omitempty"`
// Optional. This defines a customer managed encryption key that will be
// used to encrypt the "config" portion (the Kubernetes resources) of
// Backups created via this plan.
//
// Default (empty): Config backup artifacts will not be encrypted.
EncryptionKey *EncryptionKey `protobuf:"bytes,6,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"`
// Optional. If false, Backups will fail when Backup for GKE detects
// Kubernetes configuration that is non-standard or
// requires additional setup to restore.
//
// Default: False
PermissiveMode bool `protobuf:"varint,7,opt,name=permissive_mode,json=permissiveMode,proto3" json:"permissive_mode,omitempty"`
// contains filtered or unexported fields
}BackupConfig defines the configuration of Backups created via this BackupPlan.
func (*BackupPlan_BackupConfig) Descriptor
func (*BackupPlan_BackupConfig) Descriptor() ([]byte, []int)Deprecated: Use BackupPlan_BackupConfig.ProtoReflect.Descriptor instead.
func (*BackupPlan_BackupConfig) GetAllNamespaces
func (x *BackupPlan_BackupConfig) GetAllNamespaces() boolfunc (*BackupPlan_BackupConfig) GetBackupScope
func (m *BackupPlan_BackupConfig) GetBackupScope() isBackupPlan_BackupConfig_BackupScopefunc (*BackupPlan_BackupConfig) GetEncryptionKey
func (x *BackupPlan_BackupConfig) GetEncryptionKey() *EncryptionKeyfunc (*BackupPlan_BackupConfig) GetIncludeSecrets
func (x *BackupPlan_BackupConfig) GetIncludeSecrets() boolfunc (*BackupPlan_BackupConfig) GetIncludeVolumeData
func (x *BackupPlan_BackupConfig) GetIncludeVolumeData() boolfunc (*BackupPlan_BackupConfig) GetPermissiveMode
func (x *BackupPlan_BackupConfig) GetPermissiveMode() boolfunc (*BackupPlan_BackupConfig) GetSelectedApplications
func (x *BackupPlan_BackupConfig) GetSelectedApplications() *NamespacedNamesfunc (*BackupPlan_BackupConfig) GetSelectedNamespaces
func (x *BackupPlan_BackupConfig) GetSelectedNamespaces() *Namespacesfunc (*BackupPlan_BackupConfig) ProtoMessage
func (*BackupPlan_BackupConfig) ProtoMessage()func (*BackupPlan_BackupConfig) ProtoReflect
func (x *BackupPlan_BackupConfig) ProtoReflect() protoreflect.Messagefunc (*BackupPlan_BackupConfig) Reset
func (x *BackupPlan_BackupConfig) Reset()func (*BackupPlan_BackupConfig) String
func (x *BackupPlan_BackupConfig) String() stringBackupPlan_BackupConfig_AllNamespaces
type BackupPlan_BackupConfig_AllNamespaces struct {
// If True, include all namespaced resources
AllNamespaces bool `protobuf:"varint,1,opt,name=all_namespaces,json=allNamespaces,proto3,oneof"`
}BackupPlan_BackupConfig_SelectedApplications
type BackupPlan_BackupConfig_SelectedApplications struct {
// If set, include just the resources referenced by the listed
// ProtectedApplications.
SelectedApplications *NamespacedNames `protobuf:"bytes,3,opt,name=selected_applications,json=selectedApplications,proto3,oneof"`
}BackupPlan_BackupConfig_SelectedNamespaces
type BackupPlan_BackupConfig_SelectedNamespaces struct {
// If set, include just the resources in the listed namespaces.
SelectedNamespaces *Namespaces `protobuf:"bytes,2,opt,name=selected_namespaces,json=selectedNamespaces,proto3,oneof"`
}BackupPlan_RetentionPolicy
type BackupPlan_RetentionPolicy struct {
// Optional. Minimum age for Backups created via this BackupPlan (in days).
// This field MUST be an integer value between 0-90 (inclusive).
// A Backup created under this BackupPlan will NOT be deletable until it
// reaches Backup's (create_time + backup_delete_lock_days).
// Updating this field of a BackupPlan does NOT affect existing Backups
// under it. Backups created AFTER a successful update will inherit
// the new value.
//
// Default: 0 (no delete blocking)
BackupDeleteLockDays int32 `protobuf:"varint,1,opt,name=backup_delete_lock_days,json=backupDeleteLockDays,proto3" json:"backup_delete_lock_days,omitempty"`
// Optional. The default maximum age of a Backup created via this
// BackupPlan. This field MUST be an integer value >= 0 and <= 365.="" if="" specified,="" a="" backup="" created="" under="" this="" backupplan="" will="" be="" automatically="" deleted="" after="" its="" age="" reaches="" (create_time="" +="" backup_retain_days).="" if="" not="" specified,="" backups="" created="" under="" this="" backupplan="" will="" not="" be="" subject="" to="" automatic="" deletion.="" updating="" this="" field="" does="" not="" affect="" existing="" backups="" under="" it.="" backups="" created="" after="" a="" successful="" update="" will="" automatically="" pick="" up="" the="" new="" value.="" note:="" backup_retain_days="" must="" be="">=
// [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days].
// If
// [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule]
// is defined, then this must be
// <= 360="" *="" the="" creation="" interval.="" if="" [rpo_config][google.cloud.gkebackup.v1.backupplan.schedule.rpo_config]="" is="" defined,="" then="" this="" must="" be=""><= 360="" *="" [target_rpo_minutes][schedule.rpo_config.target_rpo_minutes]="" (1440minutes/day).="" default:="" 0="" (no="" automatic="" deletion)="" backupretaindays="">int32 `protobuf:"varint,2,opt,name=backup_retain_days,json=backupRetainDays,proto3" json:"backup_retain_days,omitempty"`
// Optional. This flag denotes whether the retention policy of this
// BackupPlan is locked. If set to True, no further update is allowed on
// this policy, including the `locked` field itself.
//
// Default: False
Locked bool `protobuf:"varint,3,opt,name=locked,proto3" json:"locked,omitempty"`
// contains filtered or unexported fields
}RetentionPolicy defines a Backup retention policy for a BackupPlan.
func (*BackupPlan_RetentionPolicy) Descriptor
func (*BackupPlan_RetentionPolicy) Descriptor() ([]byte, []int)Deprecated: Use BackupPlan_RetentionPolicy.ProtoReflect.Descriptor instead.
func (*BackupPlan_RetentionPolicy) GetBackupDeleteLockDays
func (x *BackupPlan_RetentionPolicy) GetBackupDeleteLockDays() int32func (*BackupPlan_RetentionPolicy) GetBackupRetainDays
func (x *BackupPlan_RetentionPolicy) GetBackupRetainDays() int32func (*BackupPlan_RetentionPolicy) GetLocked
func (x *BackupPlan_RetentionPolicy) GetLocked() boolfunc (*BackupPlan_RetentionPolicy) ProtoMessage
func (*BackupPlan_RetentionPolicy) ProtoMessage()func (*BackupPlan_RetentionPolicy) ProtoReflect
func (x *BackupPlan_RetentionPolicy) ProtoReflect() protoreflect.Messagefunc (*BackupPlan_RetentionPolicy) Reset
func (x *BackupPlan_RetentionPolicy) Reset()func (*BackupPlan_RetentionPolicy) String
func (x *BackupPlan_RetentionPolicy) String() stringBackupPlan_Schedule
type BackupPlan_Schedule struct {
// Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that
// defines a repeating schedule for creating Backups via this BackupPlan.
// This is mutually exclusive with the
// [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config]
// field since at most one schedule can be defined for a BackupPlan. If this
// is defined, then
// [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
// must also be defined.
//
// Default (empty): no automatic backup creation will occur.
CronSchedule string `protobuf:"bytes,1,opt,name=cron_schedule,json=cronSchedule,proto3" json:"cron_schedule,omitempty"`
// Optional. This flag denotes whether automatic Backup creation is paused
// for this BackupPlan.
//
// Default: False
Paused bool `protobuf:"varint,2,opt,name=paused,proto3" json:"paused,omitempty"`
// Optional. Defines the RPO schedule configuration for this BackupPlan.
// This is mutually exclusive with the
// [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule]
// field since at most one schedule can be defined for a BackupPLan. If this
// is defined, then
// [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
// must also be defined.
//
// Default (empty): no automatic backup creation will occur.
RpoConfig *RpoConfig `protobuf:"bytes,3,opt,name=rpo_config,json=rpoConfig,proto3" json:"rpo_config,omitempty"`
// Output only. Start time of next scheduled backup under this BackupPlan by
// either cron_schedule or rpo config.
NextScheduledBackupTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=next_scheduled_backup_time,json=nextScheduledBackupTime,proto3" json:"next_scheduled_backup_time,omitempty"`
// contains filtered or unexported fields
}Defines scheduling parameters for automatically creating Backups via this BackupPlan.
func (*BackupPlan_Schedule) Descriptor
func (*BackupPlan_Schedule) Descriptor() ([]byte, []int)Deprecated: Use BackupPlan_Schedule.ProtoReflect.Descriptor instead.
func (*BackupPlan_Schedule) GetCronSchedule
func (x *BackupPlan_Schedule) GetCronSchedule() stringfunc (*BackupPlan_Schedule) GetNextScheduledBackupTime
func (x *BackupPlan_Schedule) GetNextScheduledBackupTime() *timestamppb.Timestampfunc (*BackupPlan_Schedule) GetPaused
func (x *BackupPlan_Schedule) GetPaused() boolfunc (*BackupPlan_Schedule) GetRpoConfig
func (x *BackupPlan_Schedule) GetRpoConfig() *RpoConfigfunc (*BackupPlan_Schedule) ProtoMessage
func (*BackupPlan_Schedule) ProtoMessage()func (*BackupPlan_Schedule) ProtoReflect
func (x *BackupPlan_Schedule) ProtoReflect() protoreflect.Messagefunc (*BackupPlan_Schedule) Reset
func (x *BackupPlan_Schedule) Reset()func (*BackupPlan_Schedule) String
func (x *BackupPlan_Schedule) String() stringBackupPlan_State
type BackupPlan_State int32State
BackupPlan_STATE_UNSPECIFIED, BackupPlan_CLUSTER_PENDING, BackupPlan_PROVISIONING, BackupPlan_READY, BackupPlan_FAILED, BackupPlan_DEACTIVATED, BackupPlan_DELETING
const (
// Default first value for Enums.
BackupPlan_STATE_UNSPECIFIED BackupPlan_State = 0
// Waiting for cluster state to be RUNNING.
BackupPlan_CLUSTER_PENDING BackupPlan_State = 1
// The BackupPlan is in the process of being created.
BackupPlan_PROVISIONING BackupPlan_State = 2
// The BackupPlan has successfully been created and is ready for Backups.
BackupPlan_READY BackupPlan_State = 3
// BackupPlan creation has failed.
BackupPlan_FAILED BackupPlan_State = 4
// The BackupPlan has been deactivated.
BackupPlan_DEACTIVATED BackupPlan_State = 5
// The BackupPlan is in the process of being deleted.
BackupPlan_DELETING BackupPlan_State = 6
)func (BackupPlan_State) Descriptor
func (BackupPlan_State) Descriptor() protoreflect.EnumDescriptorfunc (BackupPlan_State) Enum
func (x BackupPlan_State) Enum() *BackupPlan_Statefunc (BackupPlan_State) EnumDescriptor
func (BackupPlan_State) EnumDescriptor() ([]byte, []int)Deprecated: Use BackupPlan_State.Descriptor instead.
func (BackupPlan_State) Number
func (x BackupPlan_State) Number() protoreflect.EnumNumberfunc (BackupPlan_State) String
func (x BackupPlan_State) String() stringfunc (BackupPlan_State) Type
func (BackupPlan_State) Type() protoreflect.EnumTypeBackup_AllNamespaces
type Backup_AllNamespaces struct {
// Output only. If True, all namespaces were included in the Backup.
AllNamespaces bool `protobuf:"varint,12,opt,name=all_namespaces,json=allNamespaces,proto3,oneof"`
}Backup_ClusterMetadata
type Backup_ClusterMetadata struct {
// Output only. The source cluster from which this Backup was created.
// Valid formats:
//
// - `projects/*/locations/*/clusters/*`
// - `projects/*/zones/*/clusters/*`
//
// This is inherited from the parent BackupPlan's
// [cluster][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Output only. The Kubernetes server version of the source cluster.
K8SVersion string `protobuf:"bytes,2,opt,name=k8s_version,json=k8sVersion,proto3" json:"k8s_version,omitempty"`
// Output only. A list of the Backup for GKE CRD versions found in the
// cluster.
BackupCrdVersions map[string]string `protobuf:"bytes,3,rep,name=backup_crd_versions,json=backupCrdVersions,proto3" json:"backup_crd_versions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Platform-specific version
//
// Types that are assignable to PlatformVersion:
//
// *Backup_ClusterMetadata_GkeVersion
// *Backup_ClusterMetadata_AnthosVersion
PlatformVersion isBackup_ClusterMetadata_PlatformVersion `protobuf_oneof:"platform_version"`
// contains filtered or unexported fields
}Information about the GKE cluster from which this Backup was created.
func (*Backup_ClusterMetadata) Descriptor
func (*Backup_ClusterMetadata) Descriptor() ([]byte, []int)Deprecated: Use Backup_ClusterMetadata.ProtoReflect.Descriptor instead.
func (*Backup_ClusterMetadata) GetAnthosVersion
func (x *Backup_ClusterMetadata) GetAnthosVersion() stringfunc (*Backup_ClusterMetadata) GetBackupCrdVersions
func (x *Backup_ClusterMetadata) GetBackupCrdVersions() map[string]stringfunc (*Backup_ClusterMetadata) GetCluster
func (x *Backup_ClusterMetadata) GetCluster() stringfunc (*Backup_ClusterMetadata) GetGkeVersion
func (x *Backup_ClusterMetadata) GetGkeVersion() stringfunc (*Backup_ClusterMetadata) GetK8SVersion
func (x *Backup_ClusterMetadata) GetK8SVersion() stringfunc (*Backup_ClusterMetadata) GetPlatformVersion
func (m *Backup_ClusterMetadata) GetPlatformVersion() isBackup_ClusterMetadata_PlatformVersionfunc (*Backup_ClusterMetadata) ProtoMessage
func (*Backup_ClusterMetadata) ProtoMessage()func (*Backup_ClusterMetadata) ProtoReflect
func (x *Backup_ClusterMetadata) ProtoReflect() protoreflect.Messagefunc (*Backup_ClusterMetadata) Reset
func (x *Backup_ClusterMetadata) Reset()func (*Backup_ClusterMetadata) String
func (x *Backup_ClusterMetadata) String() stringBackup_ClusterMetadata_AnthosVersion
type Backup_ClusterMetadata_AnthosVersion struct {
// Output only. Anthos version
AnthosVersion string `protobuf:"bytes,5,opt,name=anthos_version,json=anthosVersion,proto3,oneof"`
}Backup_ClusterMetadata_GkeVersion
type Backup_ClusterMetadata_GkeVersion struct {
// Output only. GKE version
GkeVersion string `protobuf:"bytes,4,opt,name=gke_version,json=gkeVersion,proto3,oneof"`
}Backup_SelectedApplications
type Backup_SelectedApplications struct {
// Output only. If set, the list of ProtectedApplications whose resources
// were included in the Backup.
SelectedApplications *NamespacedNames `protobuf:"bytes,14,opt,name=selected_applications,json=selectedApplications,proto3,oneof"`
}Backup_SelectedNamespaces
type Backup_SelectedNamespaces struct {
// Output only. If set, the list of namespaces that were included in the
// Backup.
SelectedNamespaces *Namespaces `protobuf:"bytes,13,opt,name=selected_namespaces,json=selectedNamespaces,proto3,oneof"`
}Backup_State
type Backup_State int32State
Backup_STATE_UNSPECIFIED, Backup_CREATING, Backup_IN_PROGRESS, Backup_SUCCEEDED, Backup_FAILED, Backup_DELETING
const (
// The Backup resource is in the process of being created.
Backup_STATE_UNSPECIFIED Backup_State = 0
// The Backup resource has been created and the associated BackupJob
// Kubernetes resource has been injected into the source cluster.
Backup_CREATING Backup_State = 1
// The gkebackup agent in the cluster has begun executing the backup
// operation.
Backup_IN_PROGRESS Backup_State = 2
// The backup operation has completed successfully.
Backup_SUCCEEDED Backup_State = 3
// The backup operation has failed.
Backup_FAILED Backup_State = 4
// This Backup resource (and its associated artifacts) is in the process
// of being deleted.
Backup_DELETING Backup_State = 5
)func (Backup_State) Descriptor
func (Backup_State) Descriptor() protoreflect.EnumDescriptorfunc (Backup_State) Enum
func (x Backup_State) Enum() *Backup_Statefunc (Backup_State) EnumDescriptor
func (Backup_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Backup_State.Descriptor instead.
func (Backup_State) Number
func (x Backup_State) Number() protoreflect.EnumNumberfunc (Backup_State) String
func (x Backup_State) String() stringfunc (Backup_State) Type
func (Backup_State) Type() protoreflect.EnumTypeCreateBackupChannelRequest
type CreateBackupChannelRequest struct {
// Required. The location within which to create the BackupChannel.
// Format: `projects/*/locations/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The BackupChannel resource object to create.
BackupChannel *BackupChannel `protobuf:"bytes,2,opt,name=backup_channel,json=backupChannel,proto3" json:"backup_channel,omitempty"`
// Optional. The client-provided short name for the BackupChannel resource.
// This name must:
//
// - be between 1 and 63 characters long (inclusive)
// - consist of only lower-case ASCII letters, numbers, and dashes
// - start with a lower-case letter
// - end with a lower-case letter or number
// - be unique within the set of BackupChannels in this location
// If the user does not provide a name, a uuid will be used as the name.
BackupChannelId string `protobuf:"bytes,3,opt,name=backup_channel_id,json=backupChannelId,proto3" json:"backup_channel_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateBackupChannel.
func (*CreateBackupChannelRequest) Descriptor
func (*CreateBackupChannelRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateBackupChannelRequest.ProtoReflect.Descriptor instead.
func (*CreateBackupChannelRequest) GetBackupChannel
func (x *CreateBackupChannelRequest) GetBackupChannel() *BackupChannelfunc (*CreateBackupChannelRequest) GetBackupChannelId
func (x *CreateBackupChannelRequest) GetBackupChannelId() stringfunc (*CreateBackupChannelRequest) GetParent
func (x *CreateBackupChannelRequest) GetParent() stringfunc (*CreateBackupChannelRequest) ProtoMessage
func (*CreateBackupChannelRequest) ProtoMessage()func (*CreateBackupChannelRequest) ProtoReflect
func (x *CreateBackupChannelRequest) ProtoReflect() protoreflect.Messagefunc (*CreateBackupChannelRequest) Reset
func (x *CreateBackupChannelRequest) Reset()func (*CreateBackupChannelRequest) String
func (x *CreateBackupChannelRequest) String() stringCreateBackupPlanRequest
type CreateBackupPlanRequest struct {
// Required. The location within which to create the BackupPlan.
// Format: `projects/*/locations/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The BackupPlan resource object to create.
BackupPlan *BackupPlan `protobuf:"bytes,2,opt,name=backup_plan,json=backupPlan,proto3" json:"backup_plan,omitempty"`
// Required. The client-provided short name for the BackupPlan resource.
// This name must:
//
// - be between 1 and 63 characters long (inclusive)
// - consist of only lower-case ASCII letters, numbers, and dashes
// - start with a lower-case letter
// - end with a lower-case letter or number
// - be unique within the set of BackupPlans in this location
BackupPlanId string `protobuf:"bytes,3,opt,name=backup_plan_id,json=backupPlanId,proto3" json:"backup_plan_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateBackupPlan.
func (*CreateBackupPlanRequest) Descriptor
func (*CreateBackupPlanRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateBackupPlanRequest.ProtoReflect.Descriptor instead.
func (*CreateBackupPlanRequest) GetBackupPlan
func (x *CreateBackupPlanRequest) GetBackupPlan() *BackupPlanfunc (*CreateBackupPlanRequest) GetBackupPlanId
func (x *CreateBackupPlanRequest) GetBackupPlanId() stringfunc (*CreateBackupPlanRequest) GetParent
func (x *CreateBackupPlanRequest) GetParent() stringfunc (*CreateBackupPlanRequest) ProtoMessage
func (*CreateBackupPlanRequest) ProtoMessage()func (*CreateBackupPlanRequest) ProtoReflect
func (x *CreateBackupPlanRequest) ProtoReflect() protoreflect.Messagefunc (*CreateBackupPlanRequest) Reset
func (x *CreateBackupPlanRequest) Reset()func (*CreateBackupPlanRequest) String
func (x *CreateBackupPlanRequest) String() stringCreateBackupRequest
type CreateBackupRequest struct {
// Required. The BackupPlan within which to create the Backup.
// Format: `projects/*/locations/*/backupPlans/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The Backup resource to create.
Backup *Backup `protobuf:"bytes,2,opt,name=backup,proto3" json:"backup,omitempty"`
// Optional. The client-provided short name for the Backup resource.
// This name must:
//
// - be between 1 and 63 characters long (inclusive)
// - consist of only lower-case ASCII letters, numbers, and dashes
// - start with a lower-case letter
// - end with a lower-case letter or number
// - be unique within the set of Backups in this BackupPlan
BackupId string `protobuf:"bytes,3,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateBackup.
func (*CreateBackupRequest) Descriptor
func (*CreateBackupRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateBackupRequest.ProtoReflect.Descriptor instead.
func (*CreateBackupRequest) GetBackup
func (x *CreateBackupRequest) GetBackup() *Backupfunc (*CreateBackupRequest) GetBackupId
func (x *CreateBackupRequest) GetBackupId() stringfunc (*CreateBackupRequest) GetParent
func (x *CreateBackupRequest) GetParent() stringfunc (*CreateBackupRequest) ProtoMessage
func (*CreateBackupRequest) ProtoMessage()func (*CreateBackupRequest) ProtoReflect
func (x *CreateBackupRequest) ProtoReflect() protoreflect.Messagefunc (*CreateBackupRequest) Reset
func (x *CreateBackupRequest) Reset()func (*CreateBackupRequest) String
func (x *CreateBackupRequest) String() stringCreateRestoreChannelRequest
type CreateRestoreChannelRequest struct {
// Required. The location within which to create the RestoreChannel.
// Format: `projects/*/locations/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The RestoreChannel resource object to create.
RestoreChannel *RestoreChannel `protobuf:"bytes,2,opt,name=restore_channel,json=restoreChannel,proto3" json:"restore_channel,omitempty"`
// Optional. The client-provided short name for the RestoreChannel resource.
// This name must:
//
// - be between 1 and 63 characters long (inclusive)
// - consist of only lower-case ASCII letters, numbers, and dashes
// - start with a lower-case letter
// - end with a lower-case letter or number
// - be unique within the set of RestoreChannels in this location
// If the user does not provide a name, a uuid will be used as the name.
RestoreChannelId string `protobuf:"bytes,3,opt,name=restore_channel_id,json=restoreChannelId,proto3" json:"restore_channel_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateRestoreChannel.
func (*CreateRestoreChannelRequest) Descriptor
func (*CreateRestoreChannelRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateRestoreChannelRequest.ProtoReflect.Descriptor instead.
func (*CreateRestoreChannelRequest) GetParent
func (x *CreateRestoreChannelRequest) GetParent() stringfunc (*CreateRestoreChannelRequest) GetRestoreChannel
func (x *CreateRestoreChannelRequest) GetRestoreChannel() *RestoreChannelfunc (*CreateRestoreChannelRequest) GetRestoreChannelId
func (x *CreateRestoreChannelRequest) GetRestoreChannelId() stringfunc (*CreateRestoreChannelRequest) ProtoMessage
func (*CreateRestoreChannelRequest) ProtoMessage()func (*CreateRestoreChannelRequest) ProtoReflect
func (x *CreateRestoreChannelRequest) ProtoReflect() protoreflect.Messagefunc (*CreateRestoreChannelRequest) Reset
func (x *CreateRestoreChannelRequest) Reset()func (*CreateRestoreChannelRequest) String
func (x *CreateRestoreChannelRequest) String() stringCreateRestorePlanRequest
type CreateRestorePlanRequest struct {
// Required. The location within which to create the RestorePlan.
// Format: `projects/*/locations/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The RestorePlan resource object to create.
RestorePlan *RestorePlan `protobuf:"bytes,2,opt,name=restore_plan,json=restorePlan,proto3" json:"restore_plan,omitempty"`
// Required. The client-provided short name for the RestorePlan resource.
// This name must:
//
// - be between 1 and 63 characters long (inclusive)
// - consist of only lower-case ASCII letters, numbers, and dashes
// - start with a lower-case letter
// - end with a lower-case letter or number
// - be unique within the set of RestorePlans in this location
RestorePlanId string `protobuf:"bytes,3,opt,name=restore_plan_id,json=restorePlanId,proto3" json:"restore_plan_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateRestorePlan.
func (*CreateRestorePlanRequest) Descriptor
func (*CreateRestorePlanRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateRestorePlanRequest.ProtoReflect.Descriptor instead.
func (*CreateRestorePlanRequest) GetParent
func (x *CreateRestorePlanRequest) GetParent() stringfunc (*CreateRestorePlanRequest) GetRestorePlan
func (x *CreateRestorePlanRequest) GetRestorePlan() *RestorePlanfunc (*CreateRestorePlanRequest) GetRestorePlanId
func (x *CreateRestorePlanRequest) GetRestorePlanId() stringfunc (*CreateRestorePlanRequest) ProtoMessage
func (*CreateRestorePlanRequest) ProtoMessage()func (*CreateRestorePlanRequest) ProtoReflect
func (x *CreateRestorePlanRequest) ProtoReflect() protoreflect.Messagefunc (*CreateRestorePlanRequest) Reset
func (x *CreateRestorePlanRequest) Reset()func (*CreateRestorePlanRequest) String
func (x *CreateRestorePlanRequest) String() stringCreateRestoreRequest
type CreateRestoreRequest struct {
// Required. The RestorePlan within which to create the Restore.
// Format: `projects/*/locations/*/restorePlans/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The restore resource to create.
Restore *Restore `protobuf:"bytes,2,opt,name=restore,proto3" json:"restore,omitempty"`
// Required. The client-provided short name for the Restore resource.
// This name must:
//
// - be between 1 and 63 characters long (inclusive)
// - consist of only lower-case ASCII letters, numbers, and dashes
// - start with a lower-case letter
// - end with a lower-case letter or number
// - be unique within the set of Restores in this RestorePlan.
RestoreId string `protobuf:"bytes,3,opt,name=restore_id,json=restoreId,proto3" json:"restore_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateRestore.
func (*CreateRestoreRequest) Descriptor
func (*CreateRestoreRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateRestoreRequest.ProtoReflect.Descriptor instead.
func (*CreateRestoreRequest) GetParent
func (x *CreateRestoreRequest) GetParent() stringfunc (*CreateRestoreRequest) GetRestore
func (x *CreateRestoreRequest) GetRestore() *Restorefunc (*CreateRestoreRequest) GetRestoreId
func (x *CreateRestoreRequest) GetRestoreId() stringfunc (*CreateRestoreRequest) ProtoMessage
func (*CreateRestoreRequest) ProtoMessage()func (*CreateRestoreRequest) ProtoReflect
func (x *CreateRestoreRequest) ProtoReflect() protoreflect.Messagefunc (*CreateRestoreRequest) Reset
func (x *CreateRestoreRequest) Reset()func (*CreateRestoreRequest) String
func (x *CreateRestoreRequest) String() stringDeleteBackupChannelRequest
type DeleteBackupChannelRequest struct {
// Required. Fully qualified BackupChannel name.
// Format: `projects/*/locations/*/backupChannels/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. If provided, this value must match the current value of the
// target BackupChannel's [etag][google.cloud.gkebackup.v1.BackupChannel.etag]
// field or the request is rejected.
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. If set to true, any BackupPlanAssociations below this
// BackupChannel will also be deleted. Otherwise, the request will only
// succeed if the BackupChannel has no BackupPlanAssociations.
Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteBackupChannel.
func (*DeleteBackupChannelRequest) Descriptor
func (*DeleteBackupChannelRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteBackupChannelRequest.ProtoReflect.Descriptor instead.
func (*DeleteBackupChannelRequest) GetEtag
func (x *DeleteBackupChannelRequest) GetEtag() stringfunc (*DeleteBackupChannelRequest) GetForce
func (x *DeleteBackupChannelRequest) GetForce() boolfunc (*DeleteBackupChannelRequest) GetName
func (x *DeleteBackupChannelRequest) GetName() stringfunc (*DeleteBackupChannelRequest) ProtoMessage
func (*DeleteBackupChannelRequest) ProtoMessage()func (*DeleteBackupChannelRequest) ProtoReflect
func (x *DeleteBackupChannelRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteBackupChannelRequest) Reset
func (x *DeleteBackupChannelRequest) Reset()func (*DeleteBackupChannelRequest) String
func (x *DeleteBackupChannelRequest) String() stringDeleteBackupPlanRequest
type DeleteBackupPlanRequest struct {
// Required. Fully qualified BackupPlan name.
// Format: `projects/*/locations/*/backupPlans/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. If provided, this value must match the current value of the
// target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field
// or the request is rejected.
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteBackupPlan.
func (*DeleteBackupPlanRequest) Descriptor
func (*DeleteBackupPlanRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteBackupPlanRequest.ProtoReflect.Descriptor instead.
func (*DeleteBackupPlanRequest) GetEtag
func (x *DeleteBackupPlanRequest) GetEtag() stringfunc (*DeleteBackupPlanRequest) GetName
func (x *DeleteBackupPlanRequest) GetName() stringfunc (*DeleteBackupPlanRequest) ProtoMessage
func (*DeleteBackupPlanRequest) ProtoMessage()func (*DeleteBackupPlanRequest) ProtoReflect
func (x *DeleteBackupPlanRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteBackupPlanRequest) Reset
func (x *DeleteBackupPlanRequest) Reset()func (*DeleteBackupPlanRequest) String
func (x *DeleteBackupPlanRequest) String() stringDeleteBackupRequest
type DeleteBackupRequest struct {
// Required. Name of the Backup resource.
// Format: `projects/*/locations/*/backupPlans/*/backups/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. If provided, this value must match the current value of the
// target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the
// request is rejected.
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. If set to true, any VolumeBackups below this Backup will also be
// deleted. Otherwise, the request will only succeed if the Backup has no
// VolumeBackups.
Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteBackup.
func (*DeleteBackupRequest) Descriptor
func (*DeleteBackupRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteBackupRequest.ProtoReflect.Descriptor instead.
func (*DeleteBackupRequest) GetEtag
func (x *DeleteBackupRequest) GetEtag() stringfunc (*DeleteBackupRequest) GetForce
func (x *DeleteBackupRequest) GetForce() boolfunc (*DeleteBackupRequest) GetName
func (x *DeleteBackupRequest) GetName() stringfunc (*DeleteBackupRequest) ProtoMessage
func (*DeleteBackupRequest) ProtoMessage()func (*DeleteBackupRequest) ProtoReflect
func (x *DeleteBackupRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteBackupRequest) Reset
func (x *DeleteBackupRequest) Reset()func (*DeleteBackupRequest) String
func (x *DeleteBackupRequest) String() stringDeleteRestoreChannelRequest
type DeleteRestoreChannelRequest struct {
// Required. Fully qualified RestoreChannel name.
// Format: `projects/*/locations/*/restoreChannels/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. If provided, this value must match the current value of the
// target RestoreChannel's
// [etag][google.cloud.gkebackup.v1.RestoreChannel.etag] field or the request
// is rejected.
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteRestoreChannel.
func (*DeleteRestoreChannelRequest) Descriptor
func (*DeleteRestoreChannelRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteRestoreChannelRequest.ProtoReflect.Descriptor instead.
func (*DeleteRestoreChannelRequest) GetEtag
func (x *DeleteRestoreChannelRequest) GetEtag() stringfunc (*DeleteRestoreChannelRequest) GetName
func (x *DeleteRestoreChannelRequest) GetName() stringfunc (*DeleteRestoreChannelRequest) ProtoMessage
func (*DeleteRestoreChannelRequest) ProtoMessage()func (*DeleteRestoreChannelRequest) ProtoReflect
func (x *DeleteRestoreChannelRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteRestoreChannelRequest) Reset
func (x *DeleteRestoreChannelRequest) Reset()func (*DeleteRestoreChannelRequest) String
func (x *DeleteRestoreChannelRequest) String() stringDeleteRestorePlanRequest
type DeleteRestorePlanRequest struct {
// Required. Fully qualified RestorePlan name.
// Format: `projects/*/locations/*/restorePlans/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. If provided, this value must match the current value of the
// target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag]
// field or the request is rejected.
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. If set to true, any Restores below this RestorePlan will also be
// deleted. Otherwise, the request will only succeed if the RestorePlan has no
// Restores.
Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteRestorePlan.
func (*DeleteRestorePlanRequest) Descriptor
func (*DeleteRestorePlanRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteRestorePlanRequest.ProtoReflect.Descriptor instead.
func (*DeleteRestorePlanRequest) GetEtag
func (x *DeleteRestorePlanRequest) GetEtag() stringfunc (*DeleteRestorePlanRequest) GetForce
func (x *DeleteRestorePlanRequest) GetForce() boolfunc (*DeleteRestorePlanRequest) GetName
func (x *DeleteRestorePlanRequest) GetName() stringfunc (*DeleteRestorePlanRequest) ProtoMessage
func (*DeleteRestorePlanRequest) ProtoMessage()func (*DeleteRestorePlanRequest) ProtoReflect
func (x *DeleteRestorePlanRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteRestorePlanRequest) Reset
func (x *DeleteRestorePlanRequest) Reset()func (*DeleteRestorePlanRequest) String
func (x *DeleteRestorePlanRequest) String() stringDeleteRestoreRequest
type DeleteRestoreRequest struct {
// Required. Full name of the Restore
// Format: `projects/*/locations/*/restorePlans/*/restores/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. If provided, this value must match the current value of the
// target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or
// the request is rejected.
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. If set to true, any VolumeRestores below this restore will also
// be deleted. Otherwise, the request will only succeed if the restore has no
// VolumeRestores.
Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteRestore.
func (*DeleteRestoreRequest) Descriptor
func (*DeleteRestoreRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteRestoreRequest.ProtoReflect.Descriptor instead.
func (*DeleteRestoreRequest) GetEtag
func (x *DeleteRestoreRequest) GetEtag() stringfunc (*DeleteRestoreRequest) GetForce
func (x *DeleteRestoreRequest) GetForce() boolfunc (*DeleteRestoreRequest) GetName
func (x *DeleteRestoreRequest) GetName() stringfunc (*DeleteRestoreRequest) ProtoMessage
func (*DeleteRestoreRequest) ProtoMessage()func (*DeleteRestoreRequest) ProtoReflect
func (x *DeleteRestoreRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteRestoreRequest) Reset
func (x *DeleteRestoreRequest) Reset()func (*DeleteRestoreRequest) String
func (x *DeleteRestoreRequest) String() stringEncryptionKey
type EncryptionKey struct {
// Optional. Google Cloud KMS encryption key. Format:
// `projects/*/locations/*/keyRings/*/cryptoKeys/*`
GcpKmsEncryptionKey string `protobuf:"bytes,1,opt,name=gcp_kms_encryption_key,json=gcpKmsEncryptionKey,proto3" json:"gcp_kms_encryption_key,omitempty"`
// contains filtered or unexported fields
}Defined a customer managed encryption key that will be used to encrypt Backup artifacts.
func (*EncryptionKey) Descriptor
func (*EncryptionKey) Descriptor() ([]byte, []int)Deprecated: Use EncryptionKey.ProtoReflect.Descriptor instead.
func (*EncryptionKey) GetGcpKmsEncryptionKey
func (x *EncryptionKey) GetGcpKmsEncryptionKey() stringfunc (*EncryptionKey) ProtoMessage
func (*EncryptionKey) ProtoMessage()func (*EncryptionKey) ProtoReflect
func (x *EncryptionKey) ProtoReflect() protoreflect.Messagefunc (*EncryptionKey) Reset
func (x *EncryptionKey) Reset()func (*EncryptionKey) String
func (x *EncryptionKey) String() stringExclusionWindow
type ExclusionWindow struct {
// Required. Specifies the start time of the window using time of the day in
// UTC.
StartTime *timeofday.TimeOfDay `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Required. Specifies duration of the window.
// Duration must be >= 5 minutes and < (target="" rpo="" -="" 20="" minutes).="" additional="" restrictions="" based="" on="" the="" recurrence="" type="" to="" allow="" some="" time="" for="" backup="" to="" happen:="" -="" single_occurrence_date:="" no="" restriction,="" but="" ui="" may="" warn="" about="" this="" when="" duration="">= target RPO
// - daily window: duration < 24="" hours="" -="" weekly="" window:="" -="" days="" of="" week="" includes="" all="" seven="" days="" of="" a="" week:="" duration="">< 24="" hours="" -="" all="" other="" weekly="" window:="" duration="">< 168="" hours="" (i.e.,="" 24="" *="" 7="" hours)="" duration="">durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
// Required. Specifies the day(s) on which the exclusion window takes
// effect. Exactly one of the fields MUST be specified.
//
// Types that are assignable to Recurrence:
//
// *ExclusionWindow_SingleOccurrenceDate
// *ExclusionWindow_Daily
// *ExclusionWindow_DaysOfWeek
Recurrence isExclusionWindow_Recurrence `protobuf_oneof:"recurrence"`
// contains filtered or unexported fields
}Defines a time window during which no backup should happen. All time and date are in UTC.
func (*ExclusionWindow) Descriptor
func (*ExclusionWindow) Descriptor() ([]byte, []int)Deprecated: Use ExclusionWindow.ProtoReflect.Descriptor instead.
func (*ExclusionWindow) GetDaily
func (x *ExclusionWindow) GetDaily() boolfunc (*ExclusionWindow) GetDaysOfWeek
func (x *ExclusionWindow) GetDaysOfWeek() *ExclusionWindow_DayOfWeekListfunc (*ExclusionWindow) GetDuration
func (x *ExclusionWindow) GetDuration() *durationpb.Durationfunc (*ExclusionWindow) GetRecurrence
func (m *ExclusionWindow) GetRecurrence() isExclusionWindow_Recurrencefunc (*ExclusionWindow) GetSingleOccurrenceDate
func (x *ExclusionWindow) GetSingleOccurrenceDate() *date.Datefunc (*ExclusionWindow) GetStartTime
func (x *ExclusionWindow) GetStartTime() *timeofday.TimeOfDayfunc (*ExclusionWindow) ProtoMessage
func (*ExclusionWindow) ProtoMessage()func (*ExclusionWindow) ProtoReflect
func (x *ExclusionWindow) ProtoReflect() protoreflect.Messagefunc (*ExclusionWindow) Reset
func (x *ExclusionWindow) Reset()func (*ExclusionWindow) String
func (x *ExclusionWindow) String() stringExclusionWindow_Daily
type ExclusionWindow_Daily struct {
// The exclusion window occurs every day if set to "True".
// Specifying this field to "False" is an error.
Daily bool `protobuf:"varint,4,opt,name=daily,proto3,oneof"`
}ExclusionWindow_DayOfWeekList
type ExclusionWindow_DayOfWeekList struct {
// Optional. A list of days of week.
DaysOfWeek []dayofweek.DayOfWeek `protobuf:"varint,1,rep,packed,name=days_of_week,json=daysOfWeek,proto3,enum=google.type.DayOfWeek" json:"days_of_week,omitempty"`
// contains filtered or unexported fields
}Holds repeated DaysOfWeek values as a container.
func (*ExclusionWindow_DayOfWeekList) Descriptor
func (*ExclusionWindow_DayOfWeekList) Descriptor() ([]byte, []int)Deprecated: Use ExclusionWindow_DayOfWeekList.ProtoReflect.Descriptor instead.
func (*ExclusionWindow_DayOfWeekList) GetDaysOfWeek
func (x *ExclusionWindow_DayOfWeekList) GetDaysOfWeek() []dayofweek.DayOfWeekfunc (*ExclusionWindow_DayOfWeekList) ProtoMessage
func (*ExclusionWindow_DayOfWeekList) ProtoMessage()func (*ExclusionWindow_DayOfWeekList) ProtoReflect
func (x *ExclusionWindow_DayOfWeekList) ProtoReflect() protoreflect.Messagefunc (*ExclusionWindow_DayOfWeekList) Reset
func (x *ExclusionWindow_DayOfWeekList) Reset()func (*ExclusionWindow_DayOfWeekList) String
func (x *ExclusionWindow_DayOfWeekList) String() stringExclusionWindow_DaysOfWeek
type ExclusionWindow_DaysOfWeek struct {
// The exclusion window occurs on these days of each week in UTC.
DaysOfWeek *ExclusionWindow_DayOfWeekList `protobuf:"bytes,5,opt,name=days_of_week,json=daysOfWeek,proto3,oneof"`
}ExclusionWindow_SingleOccurrenceDate
type ExclusionWindow_SingleOccurrenceDate struct {
// No recurrence. The exclusion window occurs only once and on this
// date in UTC.
SingleOccurrenceDate *date.Date `protobuf:"bytes,3,opt,name=single_occurrence_date,json=singleOccurrenceDate,proto3,oneof"`
}GetBackupChannelRequest
type GetBackupChannelRequest struct {
// Required. Fully qualified BackupChannel name.
// Format: `projects/*/locations/*/backupChannels/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetBackupChannel.
func (*GetBackupChannelRequest) Descriptor
func (*GetBackupChannelRequest) Descriptor() ([]byte, []int)Deprecated: Use GetBackupChannelRequest.ProtoReflect.Descriptor instead.
func (*GetBackupChannelRequest) GetName
func (x *GetBackupChannelRequest) GetName() stringfunc (*GetBackupChannelRequest) ProtoMessage
func (*GetBackupChannelRequest) ProtoMessage()func (*GetBackupChannelRequest) ProtoReflect
func (x *GetBackupChannelRequest) ProtoReflect() protoreflect.Messagefunc (*GetBackupChannelRequest) Reset
func (x *GetBackupChannelRequest) Reset()func (*GetBackupChannelRequest) String
func (x *GetBackupChannelRequest) String() stringGetBackupIndexDownloadUrlRequest
type GetBackupIndexDownloadUrlRequest struct {
// Required. Full name of Backup resource.
// Format:
// projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}
Backup string `protobuf:"bytes,1,opt,name=backup,proto3" json:"backup,omitempty"`
// contains filtered or unexported fields
}Request message for GetBackupIndexDownloadUrl.
func (*GetBackupIndexDownloadUrlRequest) Descriptor
func (*GetBackupIndexDownloadUrlRequest) Descriptor() ([]byte, []int)Deprecated: Use GetBackupIndexDownloadUrlRequest.ProtoReflect.Descriptor instead.
func (*GetBackupIndexDownloadUrlRequest) GetBackup
func (x *GetBackupIndexDownloadUrlRequest) GetBackup() stringfunc (*GetBackupIndexDownloadUrlRequest) ProtoMessage
func (*GetBackupIndexDownloadUrlRequest) ProtoMessage()func (*GetBackupIndexDownloadUrlRequest) ProtoReflect
func (x *GetBackupIndexDownloadUrlRequest) ProtoReflect() protoreflect.Messagefunc (*GetBackupIndexDownloadUrlRequest) Reset
func (x *GetBackupIndexDownloadUrlRequest) Reset()func (*GetBackupIndexDownloadUrlRequest) String
func (x *GetBackupIndexDownloadUrlRequest) String() stringGetBackupIndexDownloadUrlResponse
type GetBackupIndexDownloadUrlResponse struct {
// Required. The signed URL for downloading the backup index.
SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"`
// contains filtered or unexported fields
}Response message for GetBackupIndexDownloadUrl.
func (*GetBackupIndexDownloadUrlResponse) Descriptor
func (*GetBackupIndexDownloadUrlResponse) Descriptor() ([]byte, []int)Deprecated: Use GetBackupIndexDownloadUrlResponse.ProtoReflect.Descriptor instead.
func (*GetBackupIndexDownloadUrlResponse) GetSignedUrl
func (x *GetBackupIndexDownloadUrlResponse) GetSignedUrl() stringfunc (*GetBackupIndexDownloadUrlResponse) ProtoMessage
func (*GetBackupIndexDownloadUrlResponse) ProtoMessage()func (*GetBackupIndexDownloadUrlResponse) ProtoReflect
func (x *GetBackupIndexDownloadUrlResponse) ProtoReflect() protoreflect.Messagefunc (*GetBackupIndexDownloadUrlResponse) Reset
func (x *GetBackupIndexDownloadUrlResponse) Reset()func (*GetBackupIndexDownloadUrlResponse) String
func (x *GetBackupIndexDownloadUrlResponse) String() stringGetBackupPlanBindingRequest
type GetBackupPlanBindingRequest struct {
// Required. Fully qualified BackupPlanBinding name.
// Format:
// `projects/*/locations/*/backupChannels/*/backupPlanBindings/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetBackupPlanBinding.
func (*GetBackupPlanBindingRequest) Descriptor
func (*GetBackupPlanBindingRequest) Descriptor() ([]byte, []int)Deprecated: Use GetBackupPlanBindingRequest.ProtoReflect.Descriptor instead.
func (*GetBackupPlanBindingRequest) GetName
func (x *GetBackupPlanBindingRequest) GetName() stringfunc (*GetBackupPlanBindingRequest) ProtoMessage
func (*GetBackupPlanBindingRequest) ProtoMessage()func (*GetBackupPlanBindingRequest) ProtoReflect
func (x *GetBackupPlanBindingRequest) ProtoReflect() protoreflect.Messagefunc (*GetBackupPlanBindingRequest) Reset
func (x *GetBackupPlanBindingRequest) Reset()func (*GetBackupPlanBindingRequest) String
func (x *GetBackupPlanBindingRequest) String() stringGetBackupPlanRequest
type GetBackupPlanRequest struct {
// Required. Fully qualified BackupPlan name.
// Format: `projects/*/locations/*/backupPlans/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetBackupPlan.
func (*GetBackupPlanRequest) Descriptor
func (*GetBackupPlanRequest) Descriptor() ([]byte, []int)Deprecated: Use GetBackupPlanRequest.ProtoReflect.Descriptor instead.
func (*GetBackupPlanRequest) GetName
func (x *GetBackupPlanRequest) GetName() stringfunc (*GetBackupPlanRequest) ProtoMessage
func (*GetBackupPlanRequest) ProtoMessage()func (*GetBackupPlanRequest) ProtoReflect
func (x *GetBackupPlanRequest) ProtoReflect() protoreflect.Messagefunc (*GetBackupPlanRequest) Reset
func (x *GetBackupPlanRequest) Reset()func (*GetBackupPlanRequest) String
func (x *GetBackupPlanRequest) String() stringGetBackupRequest
type GetBackupRequest struct {
// Required. Full name of the Backup resource.
// Format: `projects/*/locations/*/backupPlans/*/backups/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetBackup.
func (*GetBackupRequest) Descriptor
func (*GetBackupRequest) Descriptor() ([]byte, []int)Deprecated: Use GetBackupRequest.ProtoReflect.Descriptor instead.
func (*GetBackupRequest) GetName
func (x *GetBackupRequest) GetName() stringfunc (*GetBackupRequest) ProtoMessage
func (*GetBackupRequest) ProtoMessage()func (*GetBackupRequest) ProtoReflect
func (x *GetBackupRequest) ProtoReflect() protoreflect.Messagefunc (*GetBackupRequest) Reset
func (x *GetBackupRequest) Reset()func (*GetBackupRequest) String
func (x *GetBackupRequest) String() stringGetRestoreChannelRequest
type GetRestoreChannelRequest struct {
// Required. Fully qualified RestoreChannel name.
// Format: `projects/*/locations/*/restoreChannels/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetRestoreChannel.
func (*GetRestoreChannelRequest) Descriptor
func (*GetRestoreChannelRequest) Descriptor() ([]byte, []int)Deprecated: Use GetRestoreChannelRequest.ProtoReflect.Descriptor instead.
func (*GetRestoreChannelRequest) GetName
func (x *GetRestoreChannelRequest) GetName() stringfunc (*GetRestoreChannelRequest) ProtoMessage
func (*GetRestoreChannelRequest) ProtoMessage()func (*GetRestoreChannelRequest) ProtoReflect
func (x *GetRestoreChannelRequest) ProtoReflect() protoreflect.Messagefunc (*GetRestoreChannelRequest) Reset
func (x *GetRestoreChannelRequest) Reset()func (*GetRestoreChannelRequest) String
func (x *GetRestoreChannelRequest) String() stringGetRestorePlanBindingRequest
type GetRestorePlanBindingRequest struct {
// Required. Fully qualified RestorePlanBinding name.
// Format:
// `projects/*/locations/*/restoreChannels/*/restorePlanBindings/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetRestorePlanBinding.
func (*GetRestorePlanBindingRequest) Descriptor
func (*GetRestorePlanBindingRequest) Descriptor() ([]byte, []int)Deprecated: Use GetRestorePlanBindingRequest.ProtoReflect.Descriptor instead.
func (*GetRestorePlanBindingRequest) GetName
func (x *GetRestorePlanBindingRequest) GetName() stringfunc (*GetRestorePlanBindingRequest) ProtoMessage
func (*GetRestorePlanBindingRequest) ProtoMessage()func (*GetRestorePlanBindingRequest) ProtoReflect
func (x *GetRestorePlanBindingRequest) ProtoReflect() protoreflect.Messagefunc (*GetRestorePlanBindingRequest) Reset
func (x *GetRestorePlanBindingRequest) Reset()func (*GetRestorePlanBindingRequest) String
func (x *GetRestorePlanBindingRequest) String() stringGetRestorePlanRequest
type GetRestorePlanRequest struct {
// Required. Fully qualified RestorePlan name.
// Format: `projects/*/locations/*/restorePlans/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetRestorePlan.
func (*GetRestorePlanRequest) Descriptor
func (*GetRestorePlanRequest) Descriptor() ([]byte, []int)Deprecated: Use GetRestorePlanRequest.ProtoReflect.Descriptor instead.
func (*GetRestorePlanRequest) GetName
func (x *GetRestorePlanRequest) GetName() stringfunc (*GetRestorePlanRequest) ProtoMessage
func (*GetRestorePlanRequest) ProtoMessage()func (*GetRestorePlanRequest) ProtoReflect
func (x *GetRestorePlanRequest) ProtoReflect() protoreflect.Messagefunc (*GetRestorePlanRequest) Reset
func (x *GetRestorePlanRequest) Reset()func (*GetRestorePlanRequest) String
func (x *GetRestorePlanRequest) String() stringGetRestoreRequest
type GetRestoreRequest struct {
// Required. Name of the restore resource.
// Format: `projects/*/locations/*/restorePlans/*/restores/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetRestore.
func (*GetRestoreRequest) Descriptor
func (*GetRestoreRequest) Descriptor() ([]byte, []int)Deprecated: Use GetRestoreRequest.ProtoReflect.Descriptor instead.
func (*GetRestoreRequest) GetName
func (x *GetRestoreRequest) GetName() stringfunc (*GetRestoreRequest) ProtoMessage
func (*GetRestoreRequest) ProtoMessage()func (*GetRestoreRequest) ProtoReflect
func (x *GetRestoreRequest) ProtoReflect() protoreflect.Messagefunc (*GetRestoreRequest) Reset
func (x *GetRestoreRequest) Reset()func (*GetRestoreRequest) String
func (x *GetRestoreRequest) String() stringGetVolumeBackupRequest
type GetVolumeBackupRequest struct {
// Required. Full name of the VolumeBackup resource.
// Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetVolumeBackup.
func (*GetVolumeBackupRequest) Descriptor
func (*GetVolumeBackupRequest) Descriptor() ([]byte, []int)Deprecated: Use GetVolumeBackupRequest.ProtoReflect.Descriptor instead.
func (*GetVolumeBackupRequest) GetName
func (x *GetVolumeBackupRequest) GetName() stringfunc (*GetVolumeBackupRequest) ProtoMessage
func (*GetVolumeBackupRequest) ProtoMessage()func (*GetVolumeBackupRequest) ProtoReflect
func (x *GetVolumeBackupRequest) ProtoReflect() protoreflect.Messagefunc (*GetVolumeBackupRequest) Reset
func (x *GetVolumeBackupRequest) Reset()func (*GetVolumeBackupRequest) String
func (x *GetVolumeBackupRequest) String() stringGetVolumeRestoreRequest
type GetVolumeRestoreRequest struct {
// Required. Full name of the VolumeRestore resource.
// Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetVolumeRestore.
func (*GetVolumeRestoreRequest) Descriptor
func (*GetVolumeRestoreRequest) Descriptor() ([]byte, []int)Deprecated: Use GetVolumeRestoreRequest.ProtoReflect.Descriptor instead.
func (*GetVolumeRestoreRequest) GetName
func (x *GetVolumeRestoreRequest) GetName() stringfunc (*GetVolumeRestoreRequest) ProtoMessage
func (*GetVolumeRestoreRequest) ProtoMessage()func (*GetVolumeRestoreRequest) ProtoReflect
func (x *GetVolumeRestoreRequest) ProtoReflect() protoreflect.Messagefunc (*GetVolumeRestoreRequest) Reset
func (x *GetVolumeRestoreRequest) Reset()func (*GetVolumeRestoreRequest) String
func (x *GetVolumeRestoreRequest) String() stringListBackupChannelsRequest
type ListBackupChannelsRequest struct {
// Required. The location that contains the BackupChannels to list.
// Format: `projects/*/locations/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The target number of results to return in a single response.
// If not specified, a default value will be chosen by the service.
// Note that the response may include a partial list and a caller should
// only rely on the response's
// [next_page_token][google.cloud.gkebackup.v1.ListBackupChannelsResponse.next_page_token]
// to determine if there are more instances left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The value of
// [next_page_token][google.cloud.gkebackup.v1.ListBackupChannelsResponse.next_page_token]
// received from a previous `ListBackupChannels` call.
// Provide this to retrieve the subsequent page in a multi-page list of
// results. When paginating, all other parameters provided to
// `ListBackupChannels` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Field match expression used to filter the results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field by which to sort the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for ListBackupChannels.
func (*ListBackupChannelsRequest) Descriptor
func (*ListBackupChannelsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListBackupChannelsRequest.ProtoReflect.Descriptor instead.
func (*ListBackupChannelsRequest) GetFilter
func (x *ListBackupChannelsRequest) GetFilter() stringfunc (*ListBackupChannelsRequest) GetOrderBy
func (x *ListBackupChannelsRequest) GetOrderBy() stringfunc (*ListBackupChannelsRequest) GetPageSize
func (x *ListBackupChannelsRequest) GetPageSize() int32func (*ListBackupChannelsRequest) GetPageToken
func (x *ListBackupChannelsRequest) GetPageToken() stringfunc (*ListBackupChannelsRequest) GetParent
func (x *ListBackupChannelsRequest) GetParent() stringfunc (*ListBackupChannelsRequest) ProtoMessage
func (*ListBackupChannelsRequest) ProtoMessage()func (*ListBackupChannelsRequest) ProtoReflect
func (x *ListBackupChannelsRequest) ProtoReflect() protoreflect.Messagefunc (*ListBackupChannelsRequest) Reset
func (x *ListBackupChannelsRequest) Reset()func (*ListBackupChannelsRequest) String
func (x *ListBackupChannelsRequest) String() stringListBackupChannelsResponse
type ListBackupChannelsResponse struct {
// The list of BackupChannels matching the given criteria.
BackupChannels []*BackupChannel `protobuf:"bytes,1,rep,name=backup_channels,json=backupChannels,proto3" json:"backup_channels,omitempty"`
// A token which may be sent as
// [page_token][google.cloud.gkebackup.v1.ListBackupChannelsRequest.page_token]
// in a subsequent `ListBackupChannels` call to retrieve the next page of
// results. If this field is omitted or empty, then there are no more results
// to return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response message for ListBackupChannels.
func (*ListBackupChannelsResponse) Descriptor
func (*ListBackupChannelsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListBackupChannelsResponse.ProtoReflect.Descriptor instead.
func (*ListBackupChannelsResponse) GetBackupChannels
func (x *ListBackupChannelsResponse) GetBackupChannels() []*BackupChannelfunc (*ListBackupChannelsResponse) GetNextPageToken
func (x *ListBackupChannelsResponse) GetNextPageToken() stringfunc (*ListBackupChannelsResponse) GetUnreachable
func (x *ListBackupChannelsResponse) GetUnreachable() []stringfunc (*ListBackupChannelsResponse) ProtoMessage
func (*ListBackupChannelsResponse) ProtoMessage()func (*ListBackupChannelsResponse) ProtoReflect
func (x *ListBackupChannelsResponse) ProtoReflect() protoreflect.Messagefunc (*ListBackupChannelsResponse) Reset
func (x *ListBackupChannelsResponse) Reset()func (*ListBackupChannelsResponse) String
func (x *ListBackupChannelsResponse) String() stringListBackupPlanBindingsRequest
type ListBackupPlanBindingsRequest struct {
// Required. The BackupChannel that contains the BackupPlanBindings to list.
// Format: `projects/*/locations/*/backupChannels/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The target number of results to return in a single response.
// If not specified, a default value will be chosen by the service.
// Note that the response may include a partial list and a caller should
// only rely on the response's
// [next_page_token][google.cloud.gkebackup.v1.ListBackupPlanBindingsResponse.next_page_token]
// to determine if there are more instances left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The value of
// [next_page_token][google.cloud.gkebackup.v1.ListBackupPlanBindingsResponse.next_page_token]
// received from a previous `ListBackupPlanBindings` call.
// Provide this to retrieve the subsequent page in a multi-page list of
// results. When paginating, all other parameters provided to
// `ListBackupPlanBindings` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Field match expression used to filter the results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field by which to sort the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for ListBackupPlanBindings.
func (*ListBackupPlanBindingsRequest) Descriptor
func (*ListBackupPlanBindingsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListBackupPlanBindingsRequest.ProtoReflect.Descriptor instead.
func (*ListBackupPlanBindingsRequest) GetFilter
func (x *ListBackupPlanBindingsRequest) GetFilter() stringfunc (*ListBackupPlanBindingsRequest) GetOrderBy
func (x *ListBackupPlanBindingsRequest) GetOrderBy() stringfunc (*ListBackupPlanBindingsRequest) GetPageSize
func (x *ListBackupPlanBindingsRequest) GetPageSize() int32func (*ListBackupPlanBindingsRequest) GetPageToken
func (x *ListBackupPlanBindingsRequest) GetPageToken() stringfunc (*ListBackupPlanBindingsRequest) GetParent
func (x *ListBackupPlanBindingsRequest) GetParent() stringfunc (*ListBackupPlanBindingsRequest) ProtoMessage
func (*ListBackupPlanBindingsRequest) ProtoMessage()func (*ListBackupPlanBindingsRequest) ProtoReflect
func (x *ListBackupPlanBindingsRequest) ProtoReflect() protoreflect.Messagefunc (*ListBackupPlanBindingsRequest) Reset
func (x *ListBackupPlanBindingsRequest) Reset()func (*ListBackupPlanBindingsRequest) String
func (x *ListBackupPlanBindingsRequest) String() stringListBackupPlanBindingsResponse
type ListBackupPlanBindingsResponse struct {
// The list of BackupPlanBindings matching the given criteria.
BackupPlanBindings []*BackupPlanBinding `protobuf:"bytes,1,rep,name=backup_plan_bindings,json=backupPlanBindings,proto3" json:"backup_plan_bindings,omitempty"`
// A token which may be sent as
// [page_token][google.cloud.gkebackup.v1.ListBackupPlanBindingsRequest.page_token]
// in a subsequent `ListBackupPlanBindingss` call to retrieve the next page of
// results. If this field is omitted or empty, then there are no more results
// to return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response message for ListBackupPlanBindings.
func (*ListBackupPlanBindingsResponse) Descriptor
func (*ListBackupPlanBindingsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListBackupPlanBindingsResponse.ProtoReflect.Descriptor instead.
func (*ListBackupPlanBindingsResponse) GetBackupPlanBindings
func (x *ListBackupPlanBindingsResponse) GetBackupPlanBindings() []*BackupPlanBindingfunc (*ListBackupPlanBindingsResponse) GetNextPageToken
func (x *ListBackupPlanBindingsResponse) GetNextPageToken() stringfunc (*ListBackupPlanBindingsResponse) GetUnreachable
func (x *ListBackupPlanBindingsResponse) GetUnreachable() []stringfunc (*ListBackupPlanBindingsResponse) ProtoMessage
func (*ListBackupPlanBindingsResponse) ProtoMessage()func (*ListBackupPlanBindingsResponse) ProtoReflect
func (x *ListBackupPlanBindingsResponse) ProtoReflect() protoreflect.Messagefunc (*ListBackupPlanBindingsResponse) Reset
func (x *ListBackupPlanBindingsResponse) Reset()func (*ListBackupPlanBindingsResponse) String
func (x *ListBackupPlanBindingsResponse) String() stringListBackupPlansRequest
type ListBackupPlansRequest struct {
// Required. The location that contains the BackupPlans to list.
// Format: `projects/*/locations/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The target number of results to return in a single response.
// If not specified, a default value will be chosen by the service.
// Note that the response may include a partial list and a caller should
// only rely on the response's
// [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
// to determine if there are more instances left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The value of
// [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
// received from a previous `ListBackupPlans` call.
// Provide this to retrieve the subsequent page in a multi-page list of
// results. When paginating, all other parameters provided to
// `ListBackupPlans` must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Field match expression used to filter the results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field by which to sort the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for ListBackupPlans.
func (*ListBackupPlansRequest) Descriptor
func (*ListBackupPlansRequest) Descriptor() ([]byte, []int)Deprecated: Use ListBackupPlansRequest.ProtoReflect.Descriptor instead.
func (*ListBackupPlansRequest) GetFilter
func (x *ListBackupPlansRequest) GetFilter() stringfunc (*ListBackupPlansRequest) GetOrderBy
func (x *ListBackupPlansRequest) GetOrderBy() stringfunc (*ListBackupPlansRequest) GetPageSize
func (x *ListBackupPlansRequest) GetPageSize() int32func (*ListBackupPlansRequest) GetPageToken
func (x *ListBackupPlansRequest) GetPageToken() stringfunc (*ListBackupPlansRequest) GetParent
func (x *ListBackupPlansRequest) GetParent() stringfunc (*ListBackupPlansRequest) ProtoMessage
func (*ListBackupPlansRequest) ProtoMessage()func (*ListBackupPlansRequest) ProtoReflect
func (x *ListBackupPlansRequest) ProtoReflect() protoreflect.Messagefunc (*ListBackupPlansRequest) Reset
func (x *ListBackupPlansRequest) Reset()func (*ListBackupPlansRequest) String
func (x *ListBackupPlansRequest) String() stringListBackupPlansResponse
type ListBackupPlansResponse struct {
// The list of BackupPlans matching the given criteria.
BackupPlans []*BackupPlan `protobuf:"bytes,1,rep,name=backup_plans,json=backupPlans,proto3" json:"backup_plans,omitempty"`
// A token which may be sent as
// [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token]
// in a subsequent `ListBackupPlans` call to retrieve the next page of
// results. If this field is omitted or empty, then there are no more results
// to return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response message for ListBackupPlans.
func (*ListBackupPlansResponse) Descriptor
func (*ListBackupPlansResponse) Descriptor() ([]byte, []int)Deprecated: Use ListBackupPlansResponse.ProtoReflect.Descriptor instead.
func (*ListBackupPlansResponse) GetBackupPlans
func (x *ListBackupPlansResponse) GetBackupPlans() []*BackupPlanfunc (*ListBackupPlansResponse) GetNextPageToken
func (x *ListBackupPlansResponse) GetNextPageToken() stringfunc (*ListBackupPlansResponse) GetUnreachable
func (x *ListBackupPlansResponse) GetUnreachable() []stringfunc (*ListBackupPlansResponse) ProtoMessage
func (*ListBackupPlansResponse) ProtoMessage()func (*ListBackupPlansResponse) ProtoReflect
func (x *ListBackupPlansResponse) ProtoReflect() protoreflect.Messagefunc (*ListBackupPlansResponse) Reset
func (x *ListBackupPlansResponse) Reset()func (*ListBackupPlansResponse) String
func (x *ListBackupPlansResponse) String() stringListBackupsRequest
type ListBackupsRequest struct {
// Required. The BackupPlan that contains the Backups to list.
// Format: `projects/*/locations/*/backupPlans/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The target number of results to return in a single response.
// If not specified, a default value will be chosen by the service.
// Note that the response may include a partial list and a caller should
// only rely on the response's
// [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
// to determine if there are more instances left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The value of
// [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
// received from a previous `ListBackups` call.
// Provide this to retrieve the subsequent page in a multi-page list of
// results. When paginating, all other parameters provided to
// `ListBackups` must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Field match expression used to filter the results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field by which to sort the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Optional. If set to true, the response will return partial results when
// some regions are unreachable and the unreachable field will be populated.
ReturnPartialSuccess bool `protobuf:"varint,6,opt,name=return_partial_success,json=returnPartialSuccess,proto3" json:"return_partial_success,omitempty"`
// contains filtered or unexported fields
}Request message for ListBackups.
func (*ListBackupsRequest) Descriptor
func (*ListBackupsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListBackupsRequest.ProtoReflect.Descriptor instead.
func (*ListBackupsRequest) GetFilter
func (x *ListBackupsRequest) GetFilter() stringfunc (*ListBackupsRequest) GetOrderBy
func (x *ListBackupsRequest) GetOrderBy() stringfunc (*ListBackupsRequest) GetPageSize
func (x *ListBackupsRequest) GetPageSize() int32func (*ListBackupsRequest) GetPageToken
func (x *ListBackupsRequest) GetPageToken() stringfunc (*ListBackupsRequest) GetParent
func (x *ListBackupsRequest) GetParent() stringfunc (*ListBackupsRequest) GetReturnPartialSuccess
func (x *ListBackupsRequest) GetReturnPartialSuccess() boolfunc (*ListBackupsRequest) ProtoMessage
func (*ListBackupsRequest) ProtoMessage()func (*ListBackupsRequest) ProtoReflect
func (x *ListBackupsRequest) ProtoReflect() protoreflect.Messagefunc (*ListBackupsRequest) Reset
func (x *ListBackupsRequest) Reset()func (*ListBackupsRequest) String
func (x *ListBackupsRequest) String() stringListBackupsResponse
type ListBackupsResponse struct {
// The list of Backups matching the given criteria.
Backups []*Backup `protobuf:"bytes,1,rep,name=backups,proto3" json:"backups,omitempty"`
// A token which may be sent as
// [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in a
// subsequent `ListBackups` call to retrieve the next page of results. If this
// field is omitted or empty, then there are no more results to return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response message for ListBackups.
func (*ListBackupsResponse) Descriptor
func (*ListBackupsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListBackupsResponse.ProtoReflect.Descriptor instead.
func (*ListBackupsResponse) GetBackups
func (x *ListBackupsResponse) GetBackups() []*Backupfunc (*ListBackupsResponse) GetNextPageToken
func (x *ListBackupsResponse) GetNextPageToken() stringfunc (*ListBackupsResponse) GetUnreachable
func (x *ListBackupsResponse) GetUnreachable() []stringfunc (*ListBackupsResponse) ProtoMessage
func (*ListBackupsResponse) ProtoMessage()func (*ListBackupsResponse) ProtoReflect
func (x *ListBackupsResponse) ProtoReflect() protoreflect.Messagefunc (*ListBackupsResponse) Reset
func (x *ListBackupsResponse) Reset()func (*ListBackupsResponse) String
func (x *ListBackupsResponse) String() stringListRestoreChannelsRequest
type ListRestoreChannelsRequest struct {
// Required. The location that contains the RestoreChannels to list.
// Format: `projects/*/locations/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The target number of results to return in a single response.
// If not specified, a default value will be chosen by the service.
// Note that the response may include a partial list and a caller should
// only rely on the response's
// [next_page_token][google.cloud.gkebackup.v1.ListRestoreChannelsResponse.next_page_token]
// to determine if there are more instances left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The value of
// [next_page_token][google.cloud.gkebackup.v1.ListRestoreChannelsResponse.next_page_token]
// received from a previous `ListRestoreChannels` call.
// Provide this to retrieve the subsequent page in a multi-page list of
// results. When paginating, all other parameters provided to
// `ListRestoreChannels` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Field match expression used to filter the results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field by which to sort the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for ListRestoreChannels.
func (*ListRestoreChannelsRequest) Descriptor
func (*ListRestoreChannelsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListRestoreChannelsRequest.ProtoReflect.Descriptor instead.
func (*ListRestoreChannelsRequest) GetFilter
func (x *ListRestoreChannelsRequest) GetFilter() stringfunc (*ListRestoreChannelsRequest) GetOrderBy
func (x *ListRestoreChannelsRequest) GetOrderBy() stringfunc (*ListRestoreChannelsRequest) GetPageSize
func (x *ListRestoreChannelsRequest) GetPageSize() int32func (*ListRestoreChannelsRequest) GetPageToken
func (x *ListRestoreChannelsRequest) GetPageToken() stringfunc (*ListRestoreChannelsRequest) GetParent
func (x *ListRestoreChannelsRequest) GetParent() stringfunc (*ListRestoreChannelsRequest) ProtoMessage
func (*ListRestoreChannelsRequest) ProtoMessage()func (*ListRestoreChannelsRequest) ProtoReflect
func (x *ListRestoreChannelsRequest) ProtoReflect() protoreflect.Messagefunc (*ListRestoreChannelsRequest) Reset
func (x *ListRestoreChannelsRequest) Reset()func (*ListRestoreChannelsRequest) String
func (x *ListRestoreChannelsRequest) String() stringListRestoreChannelsResponse
type ListRestoreChannelsResponse struct {
// The list of RestoreChannels matching the given criteria.
RestoreChannels []*RestoreChannel `protobuf:"bytes,1,rep,name=restore_channels,json=restoreChannels,proto3" json:"restore_channels,omitempty"`
// A token which may be sent as
// [page_token][google.cloud.gkebackup.v1.ListRestoreChannelsRequest.page_token]
// in a subsequent `ListRestoreChannels` call to retrieve the next page of
// results. If this field is omitted or empty, then there are no more results
// to return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response message for ListRestoreChannels.
func (*ListRestoreChannelsResponse) Descriptor
func (*ListRestoreChannelsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListRestoreChannelsResponse.ProtoReflect.Descriptor instead.
func (*ListRestoreChannelsResponse) GetNextPageToken
func (x *ListRestoreChannelsResponse) GetNextPageToken() stringfunc (*ListRestoreChannelsResponse) GetRestoreChannels
func (x *ListRestoreChannelsResponse) GetRestoreChannels() []*RestoreChannelfunc (*ListRestoreChannelsResponse) GetUnreachable
func (x *ListRestoreChannelsResponse) GetUnreachable() []stringfunc (*ListRestoreChannelsResponse) ProtoMessage
func (*ListRestoreChannelsResponse) ProtoMessage()func (*ListRestoreChannelsResponse) ProtoReflect
func (x *ListRestoreChannelsResponse) ProtoReflect() protoreflect.Messagefunc (*ListRestoreChannelsResponse) Reset
func (x *ListRestoreChannelsResponse) Reset()func (*ListRestoreChannelsResponse) String
func (x *ListRestoreChannelsResponse) String() stringListRestorePlanBindingsRequest
type ListRestorePlanBindingsRequest struct {
// Required. The RestoreChannel that contains the ListRestorePlanBindings to
// list. Format: `projects/*/locations/*/restoreChannels/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The target number of results to return in a single response.
// If not specified, a default value will be chosen by the service.
// Note that the response may include a partial list and a caller should
// only rely on the response's
// [next_page_token][google.cloud.gkebackup.v1.ListRestorePlanBindingsResponse.next_page_token]
// to determine if there are more instances left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The value of
// [next_page_token][google.cloud.gkebackup.v1.ListRestorePlanBindingsResponse.next_page_token]
// received from a previous `ListRestorePlanBindings` call.
// Provide this to retrieve the subsequent page in a multi-page list of
// results. When paginating, all other parameters provided to
// `ListRestorePlanBindings` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Field match expression used to filter the results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field by which to sort the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for ListRestorePlanBindings.
func (*ListRestorePlanBindingsRequest) Descriptor
func (*ListRestorePlanBindingsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListRestorePlanBindingsRequest.ProtoReflect.Descriptor instead.
func (*ListRestorePlanBindingsRequest) GetFilter
func (x *ListRestorePlanBindingsRequest) GetFilter() stringfunc (*ListRestorePlanBindingsRequest) GetOrderBy
func (x *ListRestorePlanBindingsRequest) GetOrderBy() stringfunc (*ListRestorePlanBindingsRequest) GetPageSize
func (x *ListRestorePlanBindingsRequest) GetPageSize() int32func (*ListRestorePlanBindingsRequest) GetPageToken
func (x *ListRestorePlanBindingsRequest) GetPageToken() stringfunc (*ListRestorePlanBindingsRequest) GetParent
func (x *ListRestorePlanBindingsRequest) GetParent() stringfunc (*ListRestorePlanBindingsRequest) ProtoMessage
func (*ListRestorePlanBindingsRequest) ProtoMessage()func (*ListRestorePlanBindingsRequest) ProtoReflect
func (x *ListRestorePlanBindingsRequest) ProtoReflect() protoreflect.Messagefunc (*ListRestorePlanBindingsRequest) Reset
func (x *ListRestorePlanBindingsRequest) Reset()func (*ListRestorePlanBindingsRequest) String
func (x *ListRestorePlanBindingsRequest) String() stringListRestorePlanBindingsResponse
type ListRestorePlanBindingsResponse struct {
// The list of RestorePlanBindings matching the given criteria.
RestorePlanBindings []*RestorePlanBinding `protobuf:"bytes,1,rep,name=restore_plan_bindings,json=restorePlanBindings,proto3" json:"restore_plan_bindings,omitempty"`
// A token which may be sent as
// [page_token][google.cloud.gkebackup.v1.ListRestorePlanBindingsRequest.page_token]
// in a subsequent `ListRestorePlanBindings` call to retrieve the next page of
// results. If this field is omitted or empty, then there are no more results
// to return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Unordered list. Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response message for ListRestorePlanBindings.
func (*ListRestorePlanBindingsResponse) Descriptor
func (*ListRestorePlanBindingsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListRestorePlanBindingsResponse.ProtoReflect.Descriptor instead.
func (*ListRestorePlanBindingsResponse) GetNextPageToken
func (x *ListRestorePlanBindingsResponse) GetNextPageToken() stringfunc (*ListRestorePlanBindingsResponse) GetRestorePlanBindings
func (x *ListRestorePlanBindingsResponse) GetRestorePlanBindings() []*RestorePlanBindingfunc (*ListRestorePlanBindingsResponse) GetUnreachable
func (x *ListRestorePlanBindingsResponse) GetUnreachable() []stringfunc (*ListRestorePlanBindingsResponse) ProtoMessage
func (*ListRestorePlanBindingsResponse) ProtoMessage()func (*ListRestorePlanBindingsResponse) ProtoReflect
func (x *ListRestorePlanBindingsResponse) ProtoReflect() protoreflect.Messagefunc (*ListRestorePlanBindingsResponse) Reset
func (x *ListRestorePlanBindingsResponse) Reset()func (*ListRestorePlanBindingsResponse) String
func (x *ListRestorePlanBindingsResponse) String() stringListRestorePlansRequest
type ListRestorePlansRequest struct {
// Required. The location that contains the RestorePlans to list.
// Format: `projects/*/locations/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The target number of results to return in a single response.
// If not specified, a default value will be chosen by the service.
// Note that the response may include a partial list and a caller should
// only rely on the response's
// [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
// to determine if there are more instances left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The value of
// [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
// received from a previous `ListRestorePlans` call.
// Provide this to retrieve the subsequent page in a multi-page list of
// results. When paginating, all other parameters provided to
// `ListRestorePlans` must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Field match expression used to filter the results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field by which to sort the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for ListRestorePlans.
func (*ListRestorePlansRequest) Descriptor
func (*ListRestorePlansRequest) Descriptor() ([]byte, []int)Deprecated: Use ListRestorePlansRequest.ProtoReflect.Descriptor instead.
func (*ListRestorePlansRequest) GetFilter
func (x *ListRestorePlansRequest) GetFilter() stringfunc (*ListRestorePlansRequest) GetOrderBy
func (x *ListRestorePlansRequest) GetOrderBy() stringfunc (*ListRestorePlansRequest) GetPageSize
func (x *ListRestorePlansRequest) GetPageSize() int32func (*ListRestorePlansRequest) GetPageToken
func (x *ListRestorePlansRequest) GetPageToken() stringfunc (*ListRestorePlansRequest) GetParent
func (x *ListRestorePlansRequest) GetParent() stringfunc (*ListRestorePlansRequest) ProtoMessage
func (*ListRestorePlansRequest) ProtoMessage()func (*ListRestorePlansRequest) ProtoReflect
func (x *ListRestorePlansRequest) ProtoReflect() protoreflect.Messagefunc (*ListRestorePlansRequest) Reset
func (x *ListRestorePlansRequest) Reset()func (*ListRestorePlansRequest) String
func (x *ListRestorePlansRequest) String() stringListRestorePlansResponse
type ListRestorePlansResponse struct {
// The list of RestorePlans matching the given criteria.
RestorePlans []*RestorePlan `protobuf:"bytes,1,rep,name=restore_plans,json=restorePlans,proto3" json:"restore_plans,omitempty"`
// A token which may be sent as
// [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token]
// in a subsequent `ListRestorePlans` call to retrieve the next page of
// results. If this field is omitted or empty, then there are no more results
// to return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response message for ListRestorePlans.
func (*ListRestorePlansResponse) Descriptor
func (*ListRestorePlansResponse) Descriptor() ([]byte, []int)Deprecated: Use ListRestorePlansResponse.ProtoReflect.Descriptor instead.
func (*ListRestorePlansResponse) GetNextPageToken
func (x *ListRestorePlansResponse) GetNextPageToken() stringfunc (*ListRestorePlansResponse) GetRestorePlans
func (x *ListRestorePlansResponse) GetRestorePlans() []*RestorePlanfunc (*ListRestorePlansResponse) GetUnreachable
func (x *ListRestorePlansResponse) GetUnreachable() []stringfunc (*ListRestorePlansResponse) ProtoMessage
func (*ListRestorePlansResponse) ProtoMessage()func (*ListRestorePlansResponse) ProtoReflect
func (x *ListRestorePlansResponse) ProtoReflect() protoreflect.Messagefunc (*ListRestorePlansResponse) Reset
func (x *ListRestorePlansResponse) Reset()func (*ListRestorePlansResponse) String
func (x *ListRestorePlansResponse) String() stringListRestoresRequest
type ListRestoresRequest struct {
// Required. The RestorePlan that contains the Restores to list.
// Format: `projects/*/locations/*/restorePlans/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The target number of results to return in a single response.
// If not specified, a default value will be chosen by the service.
// Note that the response may include a partial list and a caller should
// only rely on the response's
// [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
// to determine if there are more instances left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The value of
// [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
// received from a previous `ListRestores` call.
// Provide this to retrieve the subsequent page in a multi-page list of
// results. When paginating, all other parameters provided to `ListRestores`
// must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Field match expression used to filter the results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field by which to sort the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for ListRestores.
func (*ListRestoresRequest) Descriptor
func (*ListRestoresRequest) Descriptor() ([]byte, []int)Deprecated: Use ListRestoresRequest.ProtoReflect.Descriptor instead.
func (*ListRestoresRequest) GetFilter
func (x *ListRestoresRequest) GetFilter() stringfunc (*ListRestoresRequest) GetOrderBy
func (x *ListRestoresRequest) GetOrderBy() stringfunc (*ListRestoresRequest) GetPageSize
func (x *ListRestoresRequest) GetPageSize() int32func (*ListRestoresRequest) GetPageToken
func (x *ListRestoresRequest) GetPageToken() stringfunc (*ListRestoresRequest) GetParent
func (x *ListRestoresRequest) GetParent() stringfunc (*ListRestoresRequest) ProtoMessage
func (*ListRestoresRequest) ProtoMessage()func (*ListRestoresRequest) ProtoReflect
func (x *ListRestoresRequest) ProtoReflect() protoreflect.Messagefunc (*ListRestoresRequest) Reset
func (x *ListRestoresRequest) Reset()func (*ListRestoresRequest) String
func (x *ListRestoresRequest) String() stringListRestoresResponse
type ListRestoresResponse struct {
// The list of Restores matching the given criteria.
Restores []*Restore `protobuf:"bytes,1,rep,name=restores,proto3" json:"restores,omitempty"`
// A token which may be sent as
// [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token] in a
// subsequent `ListRestores` call to retrieve the next page of results. If
// this field is omitted or empty, then there are no more results to return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response message for ListRestores.
func (*ListRestoresResponse) Descriptor
func (*ListRestoresResponse) Descriptor() ([]byte, []int)Deprecated: Use ListRestoresResponse.ProtoReflect.Descriptor instead.
func (*ListRestoresResponse) GetNextPageToken
func (x *ListRestoresResponse) GetNextPageToken() stringfunc (*ListRestoresResponse) GetRestores
func (x *ListRestoresResponse) GetRestores() []*Restorefunc (*ListRestoresResponse) GetUnreachable
func (x *ListRestoresResponse) GetUnreachable() []stringfunc (*ListRestoresResponse) ProtoMessage
func (*ListRestoresResponse) ProtoMessage()func (*ListRestoresResponse) ProtoReflect
func (x *ListRestoresResponse) ProtoReflect() protoreflect.Messagefunc (*ListRestoresResponse) Reset
func (x *ListRestoresResponse) Reset()func (*ListRestoresResponse) String
func (x *ListRestoresResponse) String() stringListVolumeBackupsRequest
type ListVolumeBackupsRequest struct {
// Required. The Backup that contains the VolumeBackups to list.
// Format: `projects/*/locations/*/backupPlans/*/backups/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The target number of results to return in a single response.
// If not specified, a default value will be chosen by the service.
// Note that the response may include a partial list and a caller should
// only rely on the response's
// [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
// to determine if there are more instances left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The value of
// [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
// received from a previous `ListVolumeBackups` call.
// Provide this to retrieve the subsequent page in a multi-page list of
// results. When paginating, all other parameters provided to
// `ListVolumeBackups` must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Field match expression used to filter the results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field by which to sort the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for ListVolumeBackups.
func (*ListVolumeBackupsRequest) Descriptor
func (*ListVolumeBackupsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListVolumeBackupsRequest.ProtoReflect.Descriptor instead.
func (*ListVolumeBackupsRequest) GetFilter
func (x *ListVolumeBackupsRequest) GetFilter() stringfunc (*ListVolumeBackupsRequest) GetOrderBy
func (x *ListVolumeBackupsRequest) GetOrderBy() stringfunc (*ListVolumeBackupsRequest) GetPageSize
func (x *ListVolumeBackupsRequest) GetPageSize() int32func (*ListVolumeBackupsRequest) GetPageToken
func (x *ListVolumeBackupsRequest) GetPageToken() stringfunc (*ListVolumeBackupsRequest) GetParent
func (x *ListVolumeBackupsRequest) GetParent() stringfunc (*ListVolumeBackupsRequest) ProtoMessage
func (*ListVolumeBackupsRequest) ProtoMessage()func (*ListVolumeBackupsRequest) ProtoReflect
func (x *ListVolumeBackupsRequest) ProtoReflect() protoreflect.Messagefunc (*ListVolumeBackupsRequest) Reset
func (x *ListVolumeBackupsRequest) Reset()func (*ListVolumeBackupsRequest) String
func (x *ListVolumeBackupsRequest) String() stringListVolumeBackupsResponse
type ListVolumeBackupsResponse struct {
// The list of VolumeBackups matching the given criteria.
VolumeBackups []*VolumeBackup `protobuf:"bytes,1,rep,name=volume_backups,json=volumeBackups,proto3" json:"volume_backups,omitempty"`
// A token which may be sent as
// [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token]
// in a subsequent `ListVolumeBackups` call to retrieve the next page of
// results. If this field is omitted or empty, then there are no more results
// to return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for ListVolumeBackups.
func (*ListVolumeBackupsResponse) Descriptor
func (*ListVolumeBackupsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListVolumeBackupsResponse.ProtoReflect.Descriptor instead.
func (*ListVolumeBackupsResponse) GetNextPageToken
func (x *ListVolumeBackupsResponse) GetNextPageToken() stringfunc (*ListVolumeBackupsResponse) GetVolumeBackups
func (x *ListVolumeBackupsResponse) GetVolumeBackups() []*VolumeBackupfunc (*ListVolumeBackupsResponse) ProtoMessage
func (*ListVolumeBackupsResponse) ProtoMessage()func (*ListVolumeBackupsResponse) ProtoReflect
func (x *ListVolumeBackupsResponse) ProtoReflect() protoreflect.Messagefunc (*ListVolumeBackupsResponse) Reset
func (x *ListVolumeBackupsResponse) Reset()func (*ListVolumeBackupsResponse) String
func (x *ListVolumeBackupsResponse) String() stringListVolumeRestoresRequest
type ListVolumeRestoresRequest struct {
// Required. The Restore that contains the VolumeRestores to list.
// Format: `projects/*/locations/*/restorePlans/*/restores/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The target number of results to return in a single response.
// If not specified, a default value will be chosen by the service.
// Note that the response may include a partial list and a caller should
// only rely on the response's
// [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
// to determine if there are more instances left to be queried.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The value of
// [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
// received from a previous `ListVolumeRestores` call.
// Provide this to retrieve the subsequent page in a multi-page list of
// results. When paginating, all other parameters provided to
// `ListVolumeRestores` must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Field match expression used to filter the results.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field by which to sort the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for ListVolumeRestores.
func (*ListVolumeRestoresRequest) Descriptor
func (*ListVolumeRestoresRequest) Descriptor() ([]byte, []int)Deprecated: Use ListVolumeRestoresRequest.ProtoReflect.Descriptor instead.
func (*ListVolumeRestoresRequest) GetFilter
func (x *ListVolumeRestoresRequest) GetFilter() stringfunc (*ListVolumeRestoresRequest) GetOrderBy
func (x *ListVolumeRestoresRequest) GetOrderBy() stringfunc (*ListVolumeRestoresRequest) GetPageSize
func (x *ListVolumeRestoresRequest) GetPageSize() int32func (*ListVolumeRestoresRequest) GetPageToken
func (x *ListVolumeRestoresRequest) GetPageToken() stringfunc (*ListVolumeRestoresRequest) GetParent
func (x *ListVolumeRestoresRequest) GetParent() stringfunc (*ListVolumeRestoresRequest) ProtoMessage
func (*ListVolumeRestoresRequest) ProtoMessage()func (*ListVolumeRestoresRequest) ProtoReflect
func (x *ListVolumeRestoresRequest) ProtoReflect() protoreflect.Messagefunc (*ListVolumeRestoresRequest) Reset
func (x *ListVolumeRestoresRequest) Reset()func (*ListVolumeRestoresRequest) String
func (x *ListVolumeRestoresRequest) String() stringListVolumeRestoresResponse
type ListVolumeRestoresResponse struct {
// The list of VolumeRestores matching the given criteria.
VolumeRestores []*VolumeRestore `protobuf:"bytes,1,rep,name=volume_restores,json=volumeRestores,proto3" json:"volume_restores,omitempty"`
// A token which may be sent as
// [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token]
// in a subsequent `ListVolumeRestores` call to retrieve the next page of
// results. If this field is omitted or empty, then there are no more results
// to return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for ListVolumeRestores.
func (*ListVolumeRestoresResponse) Descriptor
func (*ListVolumeRestoresResponse) Descriptor() ([]byte, []int)Deprecated: Use ListVolumeRestoresResponse.ProtoReflect.Descriptor instead.
func (*ListVolumeRestoresResponse) GetNextPageToken
func (x *ListVolumeRestoresResponse) GetNextPageToken() stringfunc (*ListVolumeRestoresResponse) GetVolumeRestores
func (x *ListVolumeRestoresResponse) GetVolumeRestores() []*VolumeRestorefunc (*ListVolumeRestoresResponse) ProtoMessage
func (*ListVolumeRestoresResponse) ProtoMessage()func (*ListVolumeRestoresResponse) ProtoReflect
func (x *ListVolumeRestoresResponse) ProtoReflect() protoreflect.Messagefunc (*ListVolumeRestoresResponse) Reset
func (x *ListVolumeRestoresResponse) Reset()func (*ListVolumeRestoresResponse) String
func (x *ListVolumeRestoresResponse) String() stringNamespacedName
type NamespacedName struct {
// Optional. The Namespace of the Kubernetes resource.
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// Optional. The name of the Kubernetes resource.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}A reference to a namespaced resource in Kubernetes.
func (*NamespacedName) Descriptor
func (*NamespacedName) Descriptor() ([]byte, []int)Deprecated: Use NamespacedName.ProtoReflect.Descriptor instead.
func (*NamespacedName) GetName
func (x *NamespacedName) GetName() stringfunc (*NamespacedName) GetNamespace
func (x *NamespacedName) GetNamespace() stringfunc (*NamespacedName) ProtoMessage
func (*NamespacedName) ProtoMessage()func (*NamespacedName) ProtoReflect
func (x *NamespacedName) ProtoReflect() protoreflect.Messagefunc (*NamespacedName) Reset
func (x *NamespacedName) Reset()func (*NamespacedName) String
func (x *NamespacedName) String() stringNamespacedNames
type NamespacedNames struct {
// Optional. A list of namespaced Kubernetes resources.
NamespacedNames []*NamespacedName `protobuf:"bytes,1,rep,name=namespaced_names,json=namespacedNames,proto3" json:"namespaced_names,omitempty"`
// contains filtered or unexported fields
}A list of namespaced Kubernetes resources.
func (*NamespacedNames) Descriptor
func (*NamespacedNames) Descriptor() ([]byte, []int)Deprecated: Use NamespacedNames.ProtoReflect.Descriptor instead.
func (*NamespacedNames) GetNamespacedNames
func (x *NamespacedNames) GetNamespacedNames() []*NamespacedNamefunc (*NamespacedNames) ProtoMessage
func (*NamespacedNames) ProtoMessage()func (*NamespacedNames) ProtoReflect
func (x *NamespacedNames) ProtoReflect() protoreflect.Messagefunc (*NamespacedNames) Reset
func (x *NamespacedNames) Reset()func (*NamespacedNames) String
func (x *NamespacedNames) String() stringNamespaces
type Namespaces struct {
// Optional. A list of Kubernetes Namespaces.
Namespaces []string `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
// contains filtered or unexported fields
}A list of Kubernetes Namespaces.
func (*Namespaces) Descriptor
func (*Namespaces) Descriptor() ([]byte, []int)Deprecated: Use Namespaces.ProtoReflect.Descriptor instead.
func (*Namespaces) GetNamespaces
func (x *Namespaces) GetNamespaces() []stringfunc (*Namespaces) ProtoMessage
func (*Namespaces) ProtoMessage()func (*Namespaces) ProtoReflect
func (x *Namespaces) ProtoReflect() protoreflect.Messagefunc (*Namespaces) Reset
func (x *Namespaces) Reset()func (*Namespaces) String
func (x *Namespaces) String() stringOperationMetadata
type OperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have
// [google.longrunning.Operation.error][google.longrunning.Operation.error]
// value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
// corresponding to `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
func (*OperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func (x *OperationMetadata) GetApiVersion() stringfunc (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() boolfunc (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() stringfunc (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() stringfunc (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() stringfunc (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Messagefunc (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()func (*OperationMetadata) String
func (x *OperationMetadata) String() stringResourceSelector
type ResourceSelector struct {
// Optional. Selects resources using their Kubernetes GroupKinds. If
// specified, only resources of provided GroupKind will be selected.
GroupKind *RestoreConfig_GroupKind `protobuf:"bytes,1,opt,name=group_kind,json=groupKind,proto3" json:"group_kind,omitempty"`
// Optional. Selects resources using their resource names. If specified,
// only resources with the provided name will be selected.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Selects resources using their namespaces. This only applies to
// namespace scoped resources and cannot be used for selecting
// cluster scoped resources. If specified, only resources in the provided
// namespace will be selected. If not specified, the filter will apply to
// both cluster scoped and namespace scoped resources (e.g. name or label).
// The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
// itself will be restored if and only if any resources within the namespace
// are restored.
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
// Optional. Selects resources using Kubernetes
// [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
// If specified, a resource will be selected if and only if the resource
// has all of the provided labels and all the label values match.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}Defines a selector to identify a single or a group of resources. Conditions in the selector are optional, but at least one field should be set to a non-empty value. If a condition is not specified, no restrictions will be applied on that dimension. If more than one condition is specified, a resource will be selected if and only if all conditions are met.
func (*ResourceSelector) Descriptor
func (*ResourceSelector) Descriptor() ([]byte, []int)Deprecated: Use ResourceSelector.ProtoReflect.Descriptor instead.
func (*ResourceSelector) GetGroupKind
func (x *ResourceSelector) GetGroupKind() *RestoreConfig_GroupKindfunc (*ResourceSelector) GetLabels
func (x *ResourceSelector) GetLabels() map[string]stringfunc (*ResourceSelector) GetName
func (x *ResourceSelector) GetName() stringfunc (*ResourceSelector) GetNamespace
func (x *ResourceSelector) GetNamespace() stringfunc (*ResourceSelector) ProtoMessage
func (*ResourceSelector) ProtoMessage()func (*ResourceSelector) ProtoReflect
func (x *ResourceSelector) ProtoReflect() protoreflect.Messagefunc (*ResourceSelector) Reset
func (x *ResourceSelector) Reset()func (*ResourceSelector) String
func (x *ResourceSelector) String() stringRestore
type Restore struct {
// Output only. The full name of the Restore resource.
// Format: `projects/*/locations/*/restorePlans/*/restores/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server generated global unique identifier of
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. The timestamp when this Restore resource was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when this Restore resource was last
// updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. User specified descriptive string for this Restore.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Required. Immutable. A reference to the
// [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
// this Restore will restore. Note that this Backup must be a sub-resource of
// the RestorePlan's
// [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
// `projects/*/locations/*/backupPlans/*/backups/*`.
Backup string `protobuf:"bytes,6,opt,name=backup,proto3" json:"backup,omitempty"`
// Output only. The target cluster into which this Restore will restore data.
// Valid formats:
//
// - `projects/*/locations/*/clusters/*`
// - `projects/*/zones/*/clusters/*`
//
// Inherited from parent RestorePlan's
// [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
Cluster string `protobuf:"bytes,7,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Output only. Configuration of the Restore. Inherited from parent
// RestorePlan's
// [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
RestoreConfig *RestoreConfig `protobuf:"bytes,8,opt,name=restore_config,json=restoreConfig,proto3" json:"restore_config,omitempty"`
// A set of custom labels supplied by user.
Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. The current state of the Restore.
State Restore_State `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.gkebackup.v1.Restore_State" json:"state,omitempty"`
// Output only. Human-readable description of why the Restore is in its
// current state. This field is only meant for human readability and should
// not be used programmatically as this field is not guaranteed to be
// consistent.
StateReason string `protobuf:"bytes,11,opt,name=state_reason,json=stateReason,proto3" json:"state_reason,omitempty"`
// Output only. Timestamp of when the restore operation completed.
CompleteTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"`
// Output only. Number of resources restored during the restore execution.
ResourcesRestoredCount int32 `protobuf:"varint,13,opt,name=resources_restored_count,json=resourcesRestoredCount,proto3" json:"resources_restored_count,omitempty"`
// Output only. Number of resources excluded during the restore execution.
ResourcesExcludedCount int32 `protobuf:"varint,14,opt,name=resources_excluded_count,json=resourcesExcludedCount,proto3" json:"resources_excluded_count,omitempty"`
// Output only. Number of resources that failed to be restored during the
// restore execution.
ResourcesFailedCount int32 `protobuf:"varint,15,opt,name=resources_failed_count,json=resourcesFailedCount,proto3" json:"resources_failed_count,omitempty"`
// Output only. Number of volumes restored during the restore execution.
VolumesRestoredCount int32 `protobuf:"varint,16,opt,name=volumes_restored_count,json=volumesRestoredCount,proto3" json:"volumes_restored_count,omitempty"`
// Output only. `etag` is used for optimistic concurrency control as a way to
// help prevent simultaneous updates of a restore from overwriting each other.
// It is strongly suggested that systems make use of the `etag` in the
// read-modify-write cycle to perform restore updates in order to avoid
// race conditions: An `etag` is returned in the response to `GetRestore`,
// and systems are expected to put that etag in the request to
// `UpdateRestore` or `DeleteRestore` to ensure that their change will be
// applied to the same version of the resource.
Etag string `protobuf:"bytes,17,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. Immutable. Filters resources for `Restore`. If not specified, the
// scope of the restore will remain the same as defined in the `RestorePlan`.
// If this is specified and no resources are matched by the
// `inclusion_filters` or everything is excluded by the `exclusion_filters`,
// nothing will be restored. This filter can only be specified if the value of
// [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
// is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
// `MERGE_REPLACE_ON_CONFLICT`.
Filter *Restore_Filter `protobuf:"bytes,18,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Immutable. Overrides the volume data restore policies selected in
// the Restore Config for override-scoped resources.
VolumeDataRestorePolicyOverrides []*VolumeDataRestorePolicyOverride `protobuf:"bytes,19,rep,name=volume_data_restore_policy_overrides,json=volumeDataRestorePolicyOverrides,proto3" json:"volume_data_restore_policy_overrides,omitempty"`
// contains filtered or unexported fields
}Represents both a request to Restore some portion of a Backup into a target GKE cluster and a record of the restore operation itself.
func (*Restore) Descriptor
Deprecated: Use Restore.ProtoReflect.Descriptor instead.
func (*Restore) GetBackup
func (*Restore) GetCluster
func (*Restore) GetCompleteTime
func (x *Restore) GetCompleteTime() *timestamppb.Timestampfunc (*Restore) GetCreateTime
func (x *Restore) GetCreateTime() *timestamppb.Timestampfunc (*Restore) GetDescription
func (*Restore) GetEtag
func (*Restore) GetFilter
func (x *Restore) GetFilter() *Restore_Filterfunc (*Restore) GetLabels
func (*Restore) GetName
func (*Restore) GetResourcesExcludedCount
func (*Restore) GetResourcesFailedCount
func (*Restore) GetResourcesRestoredCount
func (*Restore) GetRestoreConfig
func (x *Restore) GetRestoreConfig() *RestoreConfigfunc (*Restore) GetState
func (x *Restore) GetState() Restore_Statefunc (*Restore) GetStateReason
func (*Restore) GetUid
func (*Restore) GetUpdateTime
func (x *Restore) GetUpdateTime() *timestamppb.Timestampfunc (*Restore) GetVolumeDataRestorePolicyOverrides
func (x *Restore) GetVolumeDataRestorePolicyOverrides() []*VolumeDataRestorePolicyOverridefunc (*Restore) GetVolumesRestoredCount
func (*Restore) ProtoMessage
func (*Restore) ProtoMessage()func (*Restore) ProtoReflect
func (x *Restore) ProtoReflect() protoreflect.Messagefunc (*Restore) Reset
func (x *Restore) Reset()func (*Restore) String
RestoreChannel
type RestoreChannel struct {
// Identifier. The fully qualified name of the RestoreChannel.
// `projects/*/locations/*/restoreChannels/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Immutable. The project into which the backups will be restored.
// The format is `projects/{projectId}` or `projects/{projectNumber}`.
DestinationProject string `protobuf:"bytes,2,opt,name=destination_project,json=destinationProject,proto3" json:"destination_project,omitempty"`
// Output only. Server generated global unique identifier of
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. The timestamp when this RestoreChannel was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when this RestoreChannel was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. A set of custom labels supplied by user.
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. User specified descriptive string for this RestoreChannel.
Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
// Output only. `etag` is used for optimistic concurrency control as a way to
// help prevent simultaneous updates of a RestoreChannel from overwriting each
// other. It is strongly suggested that systems make use of the 'etag' in the
// read-modify-write cycle to perform RestoreChannel updates in order to
// avoid race conditions: An `etag` is returned in the response to
// `GetRestoreChannel`, and systems are expected to put that etag in the
// request to `UpdateRestoreChannel` or `DeleteRestoreChannel` to
// ensure that their change will be applied to the same version of the
// resource.
Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"`
// Output only. The project_id where backups will be restored.
// Example Project ID: "my-project-id".
// This will be an OUTPUT_ONLY field to return the project_id of the
// destination project.
DestinationProjectId string `protobuf:"bytes,9,opt,name=destination_project_id,json=destinationProjectId,proto3" json:"destination_project_id,omitempty"`
// contains filtered or unexported fields
}A RestoreChannel imposes constraints on where backups can be restored.
The RestoreChannel should be in the same project and region
as the backups. The backups can only be restored in the
destination_project.
func (*RestoreChannel) Descriptor
func (*RestoreChannel) Descriptor() ([]byte, []int)Deprecated: Use RestoreChannel.ProtoReflect.Descriptor instead.
func (*RestoreChannel) GetCreateTime
func (x *RestoreChannel) GetCreateTime() *timestamppb.Timestampfunc (*RestoreChannel) GetDescription
func (x *RestoreChannel) GetDescription() stringfunc (*RestoreChannel) GetDestinationProject
func (x *RestoreChannel) GetDestinationProject() stringfunc (*RestoreChannel) GetDestinationProjectId
func (x *RestoreChannel) GetDestinationProjectId() stringfunc (*RestoreChannel) GetEtag
func (x *RestoreChannel) GetEtag() stringfunc (*RestoreChannel) GetLabels
func (x *RestoreChannel) GetLabels() map[string]stringfunc (*RestoreChannel) GetName
func (x *RestoreChannel) GetName() stringfunc (*RestoreChannel) GetUid
func (x *RestoreChannel) GetUid() stringfunc (*RestoreChannel) GetUpdateTime
func (x *RestoreChannel) GetUpdateTime() *timestamppb.Timestampfunc (*RestoreChannel) ProtoMessage
func (*RestoreChannel) ProtoMessage()func (*RestoreChannel) ProtoReflect
func (x *RestoreChannel) ProtoReflect() protoreflect.Messagefunc (*RestoreChannel) Reset
func (x *RestoreChannel) Reset()func (*RestoreChannel) String
func (x *RestoreChannel) String() stringRestoreConfig
type RestoreConfig struct {
// Optional. Specifies the mechanism to be used to restore volume data.
// Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
// NO_VOLUME_DATA_RESTORATION).
VolumeDataRestorePolicy RestoreConfig_VolumeDataRestorePolicy `protobuf:"varint,1,opt,name=volume_data_restore_policy,json=volumeDataRestorePolicy,proto3,enum=google.cloud.gkebackup.v1.RestoreConfig_VolumeDataRestorePolicy" json:"volume_data_restore_policy,omitempty"`
// Optional. Defines the behavior for handling the situation where
// cluster-scoped resources being restored already exist in the target
// cluster. This MUST be set to a value other than
// CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
// [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
// is not empty.
ClusterResourceConflictPolicy RestoreConfig_ClusterResourceConflictPolicy `protobuf:"varint,2,opt,name=cluster_resource_conflict_policy,json=clusterResourceConflictPolicy,proto3,enum=google.cloud.gkebackup.v1.RestoreConfig_ClusterResourceConflictPolicy" json:"cluster_resource_conflict_policy,omitempty"`
// Optional. Defines the behavior for handling the situation where sets of
// namespaced resources being restored already exist in the target cluster.
// This MUST be set to a value other than
// NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
NamespacedResourceRestoreMode RestoreConfig_NamespacedResourceRestoreMode `protobuf:"varint,3,opt,name=namespaced_resource_restore_mode,json=namespacedResourceRestoreMode,proto3,enum=google.cloud.gkebackup.v1.RestoreConfig_NamespacedResourceRestoreMode" json:"namespaced_resource_restore_mode,omitempty"`
// Optional. Identifies the cluster-scoped resources to restore from the
// Backup. Not specifying it means NO cluster resource will be restored.
ClusterResourceRestoreScope *RestoreConfig_ClusterResourceRestoreScope `protobuf:"bytes,4,opt,name=cluster_resource_restore_scope,json=clusterResourceRestoreScope,proto3" json:"cluster_resource_restore_scope,omitempty"`
// Specifies the namespaced resources to restore from the Backup.
// Only one of the entries may be specified. If not specified, NO namespaced
// resources will be restored.
//
// Note: Resources will never be restored into *managed* namespaces such as
// `kube-system`, `kube-public`, or `kube-node-lease`. These namespaces
// are silently skipped when
// [all_namespaces][google.cloud.gkebackup.v1.RestoreConfig.all_namespaces] is
// selected. Listing them explicitly will result in an error.
//
// Types that are assignable to NamespacedResourceRestoreScope:
//
// *RestoreConfig_AllNamespaces
// *RestoreConfig_SelectedNamespaces
// *RestoreConfig_SelectedApplications
// *RestoreConfig_NoNamespaces
// *RestoreConfig_ExcludedNamespaces
NamespacedResourceRestoreScope isRestoreConfig_NamespacedResourceRestoreScope `protobuf_oneof:"namespaced_resource_restore_scope"`
// Optional. A list of transformation rules to be applied against Kubernetes
// resources as they are selected for restoration from a Backup. Rules are
// executed in order defined - this order matters, as changes made by a rule
// may impact the filtering logic of subsequent rules. An empty list means no
// substitution will occur.
SubstitutionRules []*RestoreConfig_SubstitutionRule `protobuf:"bytes,8,rep,name=substitution_rules,json=substitutionRules,proto3" json:"substitution_rules,omitempty"`
// Optional. A list of transformation rules to be applied against Kubernetes
// resources as they are selected for restoration from a Backup. Rules are
// executed in order defined - this order matters, as changes made by a rule
// may impact the filtering logic of subsequent rules. An empty list means no
// transformation will occur.
TransformationRules []*RestoreConfig_TransformationRule `protobuf:"bytes,11,rep,name=transformation_rules,json=transformationRules,proto3" json:"transformation_rules,omitempty"`
// Optional. A table that binds volumes by their scope to a restore policy.
// Bindings must have a unique scope. Any volumes not scoped in the bindings
// are subject to the policy defined in volume_data_restore_policy.
VolumeDataRestorePolicyBindings []*RestoreConfig_VolumeDataRestorePolicyBinding `protobuf:"bytes,12,rep,name=volume_data_restore_policy_bindings,json=volumeDataRestorePolicyBindings,proto3" json:"volume_data_restore_policy_bindings,omitempty"`
// Optional. RestoreOrder contains custom ordering to use on a Restore.
RestoreOrder *RestoreConfig_RestoreOrder `protobuf:"bytes,13,opt,name=restore_order,json=restoreOrder,proto3" json:"restore_order,omitempty"`
// contains filtered or unexported fields
}Configuration of a restore.
func (*RestoreConfig) Descriptor
func (*RestoreConfig) Descriptor() ([]byte, []int)Deprecated: Use RestoreConfig.ProtoReflect.Descriptor instead.
func (*RestoreConfig) GetAllNamespaces
func (x *RestoreConfig) GetAllNamespaces() boolfunc (*RestoreConfig) GetClusterResourceConflictPolicy
func (x *RestoreConfig) GetClusterResourceConflictPolicy() RestoreConfig_ClusterResourceConflictPolicyfunc (*RestoreConfig) GetClusterResourceRestoreScope
func (x *RestoreConfig) GetClusterResourceRestoreScope() *RestoreConfig_ClusterResourceRestoreScopefunc (*RestoreConfig) GetExcludedNamespaces
func (x *RestoreConfig) GetExcludedNamespaces() *Namespacesfunc (*RestoreConfig) GetNamespacedResourceRestoreMode
func (x *RestoreConfig) GetNamespacedResourceRestoreMode() RestoreConfig_NamespacedResourceRestoreModefunc (*RestoreConfig) GetNamespacedResourceRestoreScope
func (m *RestoreConfig) GetNamespacedResourceRestoreScope() isRestoreConfig_NamespacedResourceRestoreScopefunc (*RestoreConfig) GetNoNamespaces
func (x *RestoreConfig) GetNoNamespaces() boolfunc (*RestoreConfig) GetRestoreOrder
func (x *RestoreConfig) GetRestoreOrder() *RestoreConfig_RestoreOrderfunc (*RestoreConfig) GetSelectedApplications
func (x *RestoreConfig) GetSelectedApplications() *NamespacedNamesfunc (*RestoreConfig) GetSelectedNamespaces
func (x *RestoreConfig) GetSelectedNamespaces() *Namespacesfunc (*RestoreConfig) GetSubstitutionRules
func (x *RestoreConfig) GetSubstitutionRules() []*RestoreConfig_SubstitutionRulefunc (*RestoreConfig) GetTransformationRules
func (x *RestoreConfig) GetTransformationRules() []*RestoreConfig_TransformationRulefunc (*RestoreConfig) GetVolumeDataRestorePolicy
func (x *RestoreConfig) GetVolumeDataRestorePolicy() RestoreConfig_VolumeDataRestorePolicyfunc (*RestoreConfig) GetVolumeDataRestorePolicyBindings
func (x *RestoreConfig) GetVolumeDataRestorePolicyBindings() []*RestoreConfig_VolumeDataRestorePolicyBindingfunc (*RestoreConfig) ProtoMessage
func (*RestoreConfig) ProtoMessage()func (*RestoreConfig) ProtoReflect
func (x *RestoreConfig) ProtoReflect() protoreflect.Messagefunc (*RestoreConfig) Reset
func (x *RestoreConfig) Reset()func (*RestoreConfig) String
func (x *RestoreConfig) String() stringRestoreConfig_AllNamespaces
type RestoreConfig_AllNamespaces struct {
// Restore all namespaced resources in the Backup if set to "True".
// Specifying this field to "False" is an error.
AllNamespaces bool `protobuf:"varint,5,opt,name=all_namespaces,json=allNamespaces,proto3,oneof"`
}RestoreConfig_ClusterResourceConflictPolicy
type RestoreConfig_ClusterResourceConflictPolicy int32Defines the behavior for handling the situation where cluster-scoped resources being restored already exist in the target cluster.
RestoreConfig_CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED, RestoreConfig_USE_EXISTING_VERSION, RestoreConfig_USE_BACKUP_VERSION
const (
// Unspecified. Only allowed if no cluster-scoped resources will be
// restored.
RestoreConfig_CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED RestoreConfig_ClusterResourceConflictPolicy = 0
// Do not attempt to restore the conflicting resource.
RestoreConfig_USE_EXISTING_VERSION RestoreConfig_ClusterResourceConflictPolicy = 1
// Delete the existing version before re-creating it from the Backup.
// This is a dangerous option which could cause unintentional
// data loss if used inappropriately. For example, deleting a CRD will
// cause Kubernetes to delete all CRs of that type.
RestoreConfig_USE_BACKUP_VERSION RestoreConfig_ClusterResourceConflictPolicy = 2
)func (RestoreConfig_ClusterResourceConflictPolicy) Descriptor
func (RestoreConfig_ClusterResourceConflictPolicy) Descriptor() protoreflect.EnumDescriptorfunc (RestoreConfig_ClusterResourceConflictPolicy) Enum
func (x RestoreConfig_ClusterResourceConflictPolicy) Enum() *RestoreConfig_ClusterResourceConflictPolicyfunc (RestoreConfig_ClusterResourceConflictPolicy) EnumDescriptor
func (RestoreConfig_ClusterResourceConflictPolicy) EnumDescriptor() ([]byte, []int)Deprecated: Use RestoreConfig_ClusterResourceConflictPolicy.Descriptor instead.
func (RestoreConfig_ClusterResourceConflictPolicy) Number
func (x RestoreConfig_ClusterResourceConflictPolicy) Number() protoreflect.EnumNumberfunc (RestoreConfig_ClusterResourceConflictPolicy) String
func (x RestoreConfig_ClusterResourceConflictPolicy) String() stringfunc (RestoreConfig_ClusterResourceConflictPolicy) Type
func (RestoreConfig_ClusterResourceConflictPolicy) Type() protoreflect.EnumTypeRestoreConfig_ClusterResourceRestoreScope
type RestoreConfig_ClusterResourceRestoreScope struct {
// Optional. A list of cluster-scoped resource group kinds to restore from
// the backup. If specified, only the selected resources will be restored.
// Mutually exclusive to any other field in the message.
SelectedGroupKinds []*RestoreConfig_GroupKind `protobuf:"bytes,1,rep,name=selected_group_kinds,json=selectedGroupKinds,proto3" json:"selected_group_kinds,omitempty"`
// Optional. A list of cluster-scoped resource group kinds to NOT restore
// from the backup. If specified, all valid cluster-scoped resources will be
// restored except for those specified in the list.
// Mutually exclusive to any other field in the message.
ExcludedGroupKinds []*RestoreConfig_GroupKind `protobuf:"bytes,2,rep,name=excluded_group_kinds,json=excludedGroupKinds,proto3" json:"excluded_group_kinds,omitempty"`
// Optional. If True, all valid cluster-scoped resources will be restored.
// Mutually exclusive to any other field in the message.
AllGroupKinds bool `protobuf:"varint,3,opt,name=all_group_kinds,json=allGroupKinds,proto3" json:"all_group_kinds,omitempty"`
// Optional. If True, no cluster-scoped resources will be restored.
// This has the same restore scope as if the message is not defined.
// Mutually exclusive to any other field in the message.
NoGroupKinds bool `protobuf:"varint,4,opt,name=no_group_kinds,json=noGroupKinds,proto3" json:"no_group_kinds,omitempty"`
// contains filtered or unexported fields
}Defines the scope of cluster-scoped resources to restore.
Some group kinds are not reasonable choices for a restore, and will cause an error if selected here. Any scope selection that would restore "all valid" resources automatically excludes these group kinds.
- Node
- ComponentStatus
- gkebackup.gke.io/BackupJob
- gkebackup.gke.io/RestoreJob
- metrics.k8s.io/NodeMetrics
- migration.k8s.io/StorageState
- migration.k8s.io/StorageVersionMigration
- snapshot.storage.k8s.io/VolumeSnapshotContent
- storage.k8s.io/CSINode
- storage.k8s.io/VolumeAttachment
Some group kinds are driven by restore configuration elsewhere, and will cause an error if selected here.
- Namespace
- PersistentVolume
func (*RestoreConfig_ClusterResourceRestoreScope) Descriptor
func (*RestoreConfig_ClusterResourceRestoreScope) Descriptor() ([]byte, []int)Deprecated: Use RestoreConfig_ClusterResourceRestoreScope.ProtoReflect.Descriptor instead.
func (*RestoreConfig_ClusterResourceRestoreScope) GetAllGroupKinds
func (x *RestoreConfig_ClusterResourceRestoreScope) GetAllGroupKinds() boolfunc (*RestoreConfig_ClusterResourceRestoreScope) GetExcludedGroupKinds
func (x *RestoreConfig_ClusterResourceRestoreScope) GetExcludedGroupKinds() []*RestoreConfig_GroupKindfunc (*RestoreConfig_ClusterResourceRestoreScope) GetNoGroupKinds
func (x *RestoreConfig_ClusterResourceRestoreScope) GetNoGroupKinds() boolfunc (*RestoreConfig_ClusterResourceRestoreScope) GetSelectedGroupKinds
func (x *RestoreConfig_ClusterResourceRestoreScope) GetSelectedGroupKinds() []*RestoreConfig_GroupKindfunc (*RestoreConfig_ClusterResourceRestoreScope) ProtoMessage
func (*RestoreConfig_ClusterResourceRestoreScope) ProtoMessage()func (*RestoreConfig_ClusterResourceRestoreScope) ProtoReflect
func (x *RestoreConfig_ClusterResourceRestoreScope) ProtoReflect() protoreflect.Messagefunc (*RestoreConfig_ClusterResourceRestoreScope) Reset
func (x *RestoreConfig_ClusterResourceRestoreScope) Reset()func (*RestoreConfig_ClusterResourceRestoreScope) String
func (x *RestoreConfig_ClusterResourceRestoreScope) String() stringRestoreConfig_ExcludedNamespaces
type RestoreConfig_ExcludedNamespaces struct {
// A list of selected namespaces excluded from restoration. All
// namespaces except those in this list will be restored.
ExcludedNamespaces *Namespaces `protobuf:"bytes,10,opt,name=excluded_namespaces,json=excludedNamespaces,proto3,oneof"`
}RestoreConfig_GroupKind
type RestoreConfig_GroupKind struct {
// Optional. API group string of a Kubernetes resource, e.g.
// "apiextensions.k8s.io", "storage.k8s.io", etc.
// Note: use empty string for core API group.
ResourceGroup string `protobuf:"bytes,1,opt,name=resource_group,json=resourceGroup,proto3" json:"resource_group,omitempty"`
// Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
// (PascalCase) and singular form. E.g. "CustomResourceDefinition",
// "StorageClass", etc.
ResourceKind string `protobuf:"bytes,2,opt,name=resource_kind,json=resourceKind,proto3" json:"resource_kind,omitempty"`
// contains filtered or unexported fields
}This is a direct map to the Kubernetes GroupKind type GroupKind and is used for identifying specific "types" of resources to restore.
func (*RestoreConfig_GroupKind) Descriptor
func (*RestoreConfig_GroupKind) Descriptor() ([]byte, []int)Deprecated: Use RestoreConfig_GroupKind.ProtoReflect.Descriptor instead.
func (*RestoreConfig_GroupKind) GetResourceGroup
func (x *RestoreConfig_GroupKind) GetResourceGroup() stringfunc (*RestoreConfig_GroupKind) GetResourceKind
func (x *RestoreConfig_GroupKind) GetResourceKind() stringfunc (*RestoreConfig_GroupKind) ProtoMessage
func (*RestoreConfig_GroupKind) ProtoMessage()func (*RestoreConfig_GroupKind) ProtoReflect
func (x *RestoreConfig_GroupKind) ProtoReflect() protoreflect.Messagefunc (*RestoreConfig_GroupKind) Reset
func (x *RestoreConfig_GroupKind) Reset()func (*RestoreConfig_GroupKind) String
func (x *RestoreConfig_GroupKind) String() stringRestoreConfig_NamespacedResourceRestoreMode
type RestoreConfig_NamespacedResourceRestoreMode int32Defines the behavior for handling the situation where sets of namespaced resources being restored already exist in the target cluster.
RestoreConfig_NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED, RestoreConfig_DELETE_AND_RESTORE, RestoreConfig_FAIL_ON_CONFLICT, RestoreConfig_MERGE_SKIP_ON_CONFLICT, RestoreConfig_MERGE_REPLACE_VOLUME_ON_CONFLICT, RestoreConfig_MERGE_REPLACE_ON_CONFLICT
const (
// Unspecified (invalid).
RestoreConfig_NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED RestoreConfig_NamespacedResourceRestoreMode = 0
// When conflicting top-level resources (either Namespaces or
// ProtectedApplications, depending upon the scope) are encountered, this
// will first trigger a delete of the conflicting resource AND ALL OF ITS
// REFERENCED RESOURCES (e.g., all resources in the Namespace or all
// resources referenced by the ProtectedApplication) before restoring the
// resources from the Backup. This mode should only be used when you are
// intending to revert some portion of a cluster to an earlier state.
RestoreConfig_DELETE_AND_RESTORE RestoreConfig_NamespacedResourceRestoreMode = 1
// If conflicting top-level resources (either Namespaces or
// ProtectedApplications, depending upon the scope) are encountered at the
// beginning of a restore process, the Restore will fail. If a conflict
// occurs during the restore process itself (e.g., because an out of band
// process creates conflicting resources), a conflict will be reported.
RestoreConfig_FAIL_ON_CONFLICT RestoreConfig_NamespacedResourceRestoreMode = 2
// This mode merges the backup and the target cluster and skips the
// conflicting resources. If a single resource to restore exists in the
// cluster before restoration, the resource will be skipped, otherwise it
// will be restored.
RestoreConfig_MERGE_SKIP_ON_CONFLICT RestoreConfig_NamespacedResourceRestoreMode = 3
// This mode merges the backup and the target cluster and skips the
// conflicting resources except volume data. If a PVC to restore already
// exists, this mode will restore/reconnect the volume without overwriting
// the PVC. It is similar to MERGE_SKIP_ON_CONFLICT except that it will
// apply the volume data policy for the conflicting PVCs:
// - RESTORE_VOLUME_DATA_FROM_BACKUP: restore data only and respect the
// reclaim policy of the original PV;
// - REUSE_VOLUME_HANDLE_FROM_BACKUP: reconnect and respect the reclaim
// policy of the original PV;
// - NO_VOLUME_DATA_RESTORATION: new provision and respect the reclaim
// policy of the original PV.
//
// Note that this mode could cause data loss as the original PV can be
// retained or deleted depending on its reclaim policy.
RestoreConfig_MERGE_REPLACE_VOLUME_ON_CONFLICT RestoreConfig_NamespacedResourceRestoreMode = 4
// This mode merges the backup and the target cluster and replaces the
// conflicting resources with the ones in the backup. If a single resource
// to restore exists in the cluster before restoration, the resource will be
// replaced with the one from the backup. To replace an existing resource,
// the first attempt is to update the resource to match the one from the
// backup; if the update fails, the second attempt is to delete the resource
// and restore it from the backup.
// Note that this mode could cause data loss as it replaces the existing
// resources in the target cluster, and the original PV can be retained or
// deleted depending on its reclaim policy.
RestoreConfig_MERGE_REPLACE_ON_CONFLICT RestoreConfig_NamespacedResourceRestoreMode = 5
)func (RestoreConfig_NamespacedResourceRestoreMode) Descriptor
func (RestoreConfig_NamespacedResourceRestoreMode) Descriptor() protoreflect.EnumDescriptorfunc (RestoreConfig_NamespacedResourceRestoreMode) Enum
func (x RestoreConfig_NamespacedResourceRestoreMode) Enum() *RestoreConfig_NamespacedResourceRestoreModefunc (RestoreConfig_NamespacedResourceRestoreMode) EnumDescriptor
func (RestoreConfig_NamespacedResourceRestoreMode) EnumDescriptor() ([]byte, []int)Deprecated: Use RestoreConfig_NamespacedResourceRestoreMode.Descriptor instead.
func (RestoreConfig_NamespacedResourceRestoreMode) Number
func (x RestoreConfig_NamespacedResourceRestoreMode) Number() protoreflect.EnumNumberfunc (RestoreConfig_NamespacedResourceRestoreMode) String
func (x RestoreConfig_NamespacedResourceRestoreMode) String() stringfunc (RestoreConfig_NamespacedResourceRestoreMode) Type
func (RestoreConfig_NamespacedResourceRestoreMode) Type() protoreflect.EnumTypeRestoreConfig_NoNamespaces
type RestoreConfig_NoNamespaces struct {
// Do not restore any namespaced resources if set to "True".
// Specifying this field to "False" is not allowed.
NoNamespaces bool `protobuf:"varint,9,opt,name=no_namespaces,json=noNamespaces,proto3,oneof"`
}RestoreConfig_ResourceFilter
type RestoreConfig_ResourceFilter struct {
// Optional. (Filtering parameter) Any resource subject to transformation
// must be contained within one of the listed Kubernetes Namespace in the
// Backup. If this field is not provided, no namespace filtering will be
// performed (all resources in all Namespaces, including all cluster-scoped
// resources, will be candidates for transformation).
Namespaces []string `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
// Optional. (Filtering parameter) Any resource subject to transformation
// must belong to one of the listed "types". If this field is not provided,
// no type filtering will be performed (all resources of all types matching
// previous filtering parameters will be candidates for transformation).
GroupKinds []*RestoreConfig_GroupKind `protobuf:"bytes,2,rep,name=group_kinds,json=groupKinds,proto3" json:"group_kinds,omitempty"`
// Optional. This is a [JSONPath]
// (https://github.com/json-path/JsonPath/blob/master/README.md)
// expression that matches specific fields of candidate
// resources and it operates as a filtering parameter (resources that
// are not matched with this expression will not be candidates for
// transformation).
JsonPath string `protobuf:"bytes,3,opt,name=json_path,json=jsonPath,proto3" json:"json_path,omitempty"`
// contains filtered or unexported fields
}ResourceFilter specifies matching criteria to limit the scope of a change to a specific set of kubernetes resources that are selected for restoration from a backup.
func (*RestoreConfig_ResourceFilter) Descriptor
func (*RestoreConfig_ResourceFilter) Descriptor() ([]byte, []int)Deprecated: Use RestoreConfig_ResourceFilter.ProtoReflect.Descriptor instead.
func (*RestoreConfig_ResourceFilter) GetGroupKinds
func (x *RestoreConfig_ResourceFilter) GetGroupKinds() []*RestoreConfig_GroupKindfunc (*RestoreConfig_ResourceFilter) GetJsonPath
func (x *RestoreConfig_ResourceFilter) GetJsonPath() stringfunc (*RestoreConfig_ResourceFilter) GetNamespaces
func (x *RestoreConfig_ResourceFilter) GetNamespaces() []stringfunc (*RestoreConfig_ResourceFilter) ProtoMessage
func (*RestoreConfig_ResourceFilter) ProtoMessage()func (*RestoreConfig_ResourceFilter) ProtoReflect
func (x *RestoreConfig_ResourceFilter) ProtoReflect() protoreflect.Messagefunc (*RestoreConfig_ResourceFilter) Reset
func (x *RestoreConfig_ResourceFilter) Reset()func (*RestoreConfig_ResourceFilter) String
func (x *RestoreConfig_ResourceFilter) String() stringRestoreConfig_RestoreOrder
type RestoreConfig_RestoreOrder struct {
// Optional. Contains a list of group kind dependency pairs provided
// by the customer, that is used by Backup for GKE to
// generate a group kind restore order.
GroupKindDependencies []*RestoreConfig_RestoreOrder_GroupKindDependency `protobuf:"bytes,1,rep,name=group_kind_dependencies,json=groupKindDependencies,proto3" json:"group_kind_dependencies,omitempty"`
// contains filtered or unexported fields
}Allows customers to specify dependencies between resources that Backup for GKE can use to compute a resasonable restore order.
func (*RestoreConfig_RestoreOrder) Descriptor
func (*RestoreConfig_RestoreOrder) Descriptor() ([]byte, []int)Deprecated: Use RestoreConfig_RestoreOrder.ProtoReflect.Descriptor instead.
func (*RestoreConfig_RestoreOrder) GetGroupKindDependencies
func (x *RestoreConfig_RestoreOrder) GetGroupKindDependencies() []*RestoreConfig_RestoreOrder_GroupKindDependencyfunc (*RestoreConfig_RestoreOrder) ProtoMessage
func (*RestoreConfig_RestoreOrder) ProtoMessage()func (*RestoreConfig_RestoreOrder) ProtoReflect
func (x *RestoreConfig_RestoreOrder) ProtoReflect() protoreflect.Messagefunc (*RestoreConfig_RestoreOrder) Reset
func (x *RestoreConfig_RestoreOrder) Reset()func (*RestoreConfig_RestoreOrder) String
func (x *RestoreConfig_RestoreOrder) String() stringRestoreConfig_RestoreOrder_GroupKindDependency
type RestoreConfig_RestoreOrder_GroupKindDependency struct {
// Required. The satisfying group kind must be restored first
// in order to satisfy the dependency.
Satisfying *RestoreConfig_GroupKind `protobuf:"bytes,1,opt,name=satisfying,proto3" json:"satisfying,omitempty"`
// Required. The requiring group kind requires that the other
// group kind be restored first.
Requiring *RestoreConfig_GroupKind `protobuf:"bytes,2,opt,name=requiring,proto3" json:"requiring,omitempty"`
// contains filtered or unexported fields
}Defines a dependency between two group kinds.
func (*RestoreConfig_RestoreOrder_GroupKindDependency) Descriptor
func (*RestoreConfig_RestoreOrder_GroupKindDependency) Descriptor() ([]byte, []int)Deprecated: Use RestoreConfig_RestoreOrder_GroupKindDependency.ProtoReflect.Descriptor instead.
func (*RestoreConfig_RestoreOrder_GroupKindDependency) GetRequiring
func (x *RestoreConfig_RestoreOrder_GroupKindDependency) GetRequiring() *RestoreConfig_GroupKindfunc (*RestoreConfig_RestoreOrder_GroupKindDependency) GetSatisfying
func (x *RestoreConfig_RestoreOrder_GroupKindDependency) GetSatisfying() *RestoreConfig_GroupKindfunc (*RestoreConfig_RestoreOrder_GroupKindDependency) ProtoMessage
func (*RestoreConfig_RestoreOrder_GroupKindDependency) ProtoMessage()func (*RestoreConfig_RestoreOrder_GroupKindDependency) ProtoReflect
func (x *RestoreConfig_RestoreOrder_GroupKindDependency) ProtoReflect() protoreflect.Messagefunc (*RestoreConfig_RestoreOrder_GroupKindDependency) Reset
func (x *RestoreConfig_RestoreOrder_GroupKindDependency) Reset()func (*RestoreConfig_RestoreOrder_GroupKindDependency) String
func (x *RestoreConfig_RestoreOrder_GroupKindDependency) String() stringRestoreConfig_SelectedApplications
type RestoreConfig_SelectedApplications struct {
// A list of selected ProtectedApplications to restore. The listed
// ProtectedApplications and all the resources to which they refer will be
// restored.
SelectedApplications *NamespacedNames `protobuf:"bytes,7,opt,name=selected_applications,json=selectedApplications,proto3,oneof"`
}RestoreConfig_SelectedNamespaces
type RestoreConfig_SelectedNamespaces struct {
// A list of selected Namespaces to restore from the Backup. The listed
// Namespaces and all resources contained in them will be restored.
SelectedNamespaces *Namespaces `protobuf:"bytes,6,opt,name=selected_namespaces,json=selectedNamespaces,proto3,oneof"`
}RestoreConfig_SubstitutionRule
type RestoreConfig_SubstitutionRule struct {
// Optional. (Filtering parameter) Any resource subject to substitution must
// be contained within one of the listed Kubernetes Namespace in the Backup.
// If this field is not provided, no namespace filtering will be performed
// (all resources in all Namespaces, including all cluster-scoped resources,
// will be candidates for substitution).
// To mix cluster-scoped and namespaced resources in the same rule, use an
// empty string ("") as one of the target namespaces.
TargetNamespaces []string `protobuf:"bytes,1,rep,name=target_namespaces,json=targetNamespaces,proto3" json:"target_namespaces,omitempty"`
// Optional. (Filtering parameter) Any resource subject to substitution must
// belong to one of the listed "types". If this field is not provided, no
// type filtering will be performed (all resources of all types matching
// previous filtering parameters will be candidates for substitution).
TargetGroupKinds []*RestoreConfig_GroupKind `protobuf:"bytes,2,rep,name=target_group_kinds,json=targetGroupKinds,proto3" json:"target_group_kinds,omitempty"`
// Required. This is a [JSONPath]
// (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
// expression that matches specific fields of candidate
// resources and it operates as both a filtering parameter (resources that
// are not matched with this expression will not be candidates for
// substitution) as well as a field identifier (identifies exactly which
// fields out of the candidate resources will be modified).
TargetJsonPath string `protobuf:"bytes,3,opt,name=target_json_path,json=targetJsonPath,proto3" json:"target_json_path,omitempty"`
// Optional. (Filtering parameter) This is a [regular expression]
// (https://en.wikipedia.org/wiki/Regular_expression)
// that is compared against the fields matched by the target_json_path
// expression (and must also have passed the previous filters).
// Substitution will not be performed against fields whose
// value does not match this expression. If this field is NOT specified,
// then ALL fields matched by the target_json_path expression will undergo
// substitution. Note that an empty (e.g., "", rather than unspecified)
// value for this field will only match empty fields.
OriginalValuePattern string `protobuf:"bytes,4,opt,name=original_value_pattern,json=originalValuePattern,proto3" json:"original_value_pattern,omitempty"`
// Optional. This is the new value to set for any fields that pass the
// filtering and selection criteria. To remove a value from a Kubernetes
// resource, either leave this field unspecified, or set it to the empty
// string ("").
NewValue string `protobuf:"bytes,5,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
// contains filtered or unexported fields
}A transformation rule to be applied against Kubernetes resources as they are selected for restoration from a Backup. A rule contains both filtering logic (which resources are subject to substitution) and substitution logic.
func (*RestoreConfig_SubstitutionRule) Descriptor
func (*RestoreConfig_SubstitutionRule) Descriptor() ([]byte, []int)Deprecated: Use RestoreConfig_SubstitutionRule.ProtoReflect.Descriptor instead.
func (*RestoreConfig_SubstitutionRule) GetNewValue
func (x *RestoreConfig_SubstitutionRule) GetNewValue() stringfunc (*RestoreConfig_SubstitutionRule) GetOriginalValuePattern
func (x *RestoreConfig_SubstitutionRule) GetOriginalValuePattern() stringfunc (*RestoreConfig_SubstitutionRule) GetTargetGroupKinds
func (x *RestoreConfig_SubstitutionRule) GetTargetGroupKinds() []*RestoreConfig_GroupKindfunc (*RestoreConfig_SubstitutionRule) GetTargetJsonPath
func (x *RestoreConfig_SubstitutionRule) GetTargetJsonPath() stringfunc (*RestoreConfig_SubstitutionRule) GetTargetNamespaces
func (x *RestoreConfig_SubstitutionRule) GetTargetNamespaces() []stringfunc (*RestoreConfig_SubstitutionRule) ProtoMessage
func (*RestoreConfig_SubstitutionRule) ProtoMessage()func (*RestoreConfig_SubstitutionRule) ProtoReflect
func (x *RestoreConfig_SubstitutionRule) ProtoReflect() protoreflect.Messagefunc (*RestoreConfig_SubstitutionRule) Reset
func (x *RestoreConfig_SubstitutionRule) Reset()func (*RestoreConfig_SubstitutionRule) String
func (x *RestoreConfig_SubstitutionRule) String() stringRestoreConfig_TransformationRule
type RestoreConfig_TransformationRule struct {
// Required. A list of transformation rule actions to take against candidate
// resources. Actions are executed in order defined - this order matters, as
// they could potentially interfere with each other and the first operation
// could affect the outcome of the second operation.
FieldActions []*RestoreConfig_TransformationRuleAction `protobuf:"bytes,1,rep,name=field_actions,json=fieldActions,proto3" json:"field_actions,omitempty"`
// Optional. This field is used to specify a set of fields that should be
// used to determine which resources in backup should be acted upon by the
// supplied transformation rule actions, and this will ensure that only
// specific resources are affected by transformation rule actions.
ResourceFilter *RestoreConfig_ResourceFilter `protobuf:"bytes,2,opt,name=resource_filter,json=resourceFilter,proto3" json:"resource_filter,omitempty"`
// Optional. The description is a user specified string description of the
// transformation rule.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}A transformation rule to be applied against Kubernetes resources as they are selected for restoration from a Backup. A rule contains both filtering logic (which resources are subject to transform) and transformation logic.
func (*RestoreConfig_TransformationRule) Descriptor
func (*RestoreConfig_TransformationRule) Descriptor() ([]byte, []int)Deprecated: Use RestoreConfig_TransformationRule.ProtoReflect.Descriptor instead.
func (*RestoreConfig_TransformationRule) GetDescription
func (x *RestoreConfig_TransformationRule) GetDescription() stringfunc (*RestoreConfig_TransformationRule) GetFieldActions
func (x *RestoreConfig_TransformationRule) GetFieldActions() []*RestoreConfig_TransformationRuleActionfunc (*RestoreConfig_TransformationRule) GetResourceFilter
func (x *RestoreConfig_TransformationRule) GetResourceFilter() *RestoreConfig_ResourceFilterfunc (*RestoreConfig_TransformationRule) ProtoMessage
func (*RestoreConfig_TransformationRule) ProtoMessage()func (*RestoreConfig_TransformationRule) ProtoReflect
func (x *RestoreConfig_TransformationRule) ProtoReflect() protoreflect.Messagefunc (*RestoreConfig_TransformationRule) Reset
func (x *RestoreConfig_TransformationRule) Reset()func (*RestoreConfig_TransformationRule) String
func (x *RestoreConfig_TransformationRule) String() stringRestoreConfig_TransformationRuleAction
type RestoreConfig_TransformationRuleAction struct {
// Required. op specifies the operation to perform.
Op RestoreConfig_TransformationRuleAction_Op `protobuf:"varint,1,opt,name=op,proto3,enum=google.cloud.gkebackup.v1.RestoreConfig_TransformationRuleAction_Op" json:"op,omitempty"`
// Optional. A string containing a JSON Pointer value that references the
// location in the target document to move the value from.
FromPath string `protobuf:"bytes,2,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"`
// Optional. A string containing a JSON-Pointer value that references a
// location within the target document where the operation is performed.
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
// Optional. A string that specifies the desired value in string format to
// use for transformation.
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}TransformationRuleAction defines a TransformationRule action based on the JSON Patch RFC (https://www.rfc-editor.org/rfc/rfc6902)
func (*RestoreConfig_TransformationRuleAction) Descriptor
func (*RestoreConfig_TransformationRuleAction) Descriptor() ([]byte, []int)Deprecated: Use RestoreConfig_TransformationRuleAction.ProtoReflect.Descriptor instead.
func (*RestoreConfig_TransformationRuleAction) GetFromPath
func (x *RestoreConfig_TransformationRuleAction) GetFromPath() stringfunc (*RestoreConfig_TransformationRuleAction) GetOp
func (*RestoreConfig_TransformationRuleAction) GetPath
func (x *RestoreConfig_TransformationRuleAction) GetPath() stringfunc (*RestoreConfig_TransformationRuleAction) GetValue
func (x *RestoreConfig_TransformationRuleAction) GetValue() stringfunc (*RestoreConfig_TransformationRuleAction) ProtoMessage
func (*RestoreConfig_TransformationRuleAction) ProtoMessage()func (*RestoreConfig_TransformationRuleAction) ProtoReflect
func (x *RestoreConfig_TransformationRuleAction) ProtoReflect() protoreflect.Messagefunc (*RestoreConfig_TransformationRuleAction) Reset
func (x *RestoreConfig_TransformationRuleAction) Reset()func (*RestoreConfig_TransformationRuleAction) String
func (x *RestoreConfig_TransformationRuleAction) String() stringRestoreConfig_TransformationRuleAction_Op
type RestoreConfig_TransformationRuleAction_Op int32Possible values for operations of a transformation rule action.
RestoreConfig_TransformationRuleAction_OP_UNSPECIFIED, RestoreConfig_TransformationRuleAction_REMOVE, RestoreConfig_TransformationRuleAction_MOVE, RestoreConfig_TransformationRuleAction_COPY, RestoreConfig_TransformationRuleAction_ADD, RestoreConfig_TransformationRuleAction_TEST, RestoreConfig_TransformationRuleAction_REPLACE
const (
// Unspecified operation
RestoreConfig_TransformationRuleAction_OP_UNSPECIFIED RestoreConfig_TransformationRuleAction_Op = 0
// The "remove" operation removes the value at the target location.
RestoreConfig_TransformationRuleAction_REMOVE RestoreConfig_TransformationRuleAction_Op = 1
// The "move" operation removes the value at a specified location and
// adds it to the target location.
RestoreConfig_TransformationRuleAction_MOVE RestoreConfig_TransformationRuleAction_Op = 2
// The "copy" operation copies the value at a specified location to the
// target location.
RestoreConfig_TransformationRuleAction_COPY RestoreConfig_TransformationRuleAction_Op = 3
// The "add" operation performs one of the following functions,
// depending upon what the target location references:
// 1. If the target location specifies an array index, a new value is
// inserted into the array at the specified index.
// 2. If the target location specifies an object member that does not
// already exist, a new member is added to the object.
// 3. If the target location specifies an object member that does exist,
// that member's value is replaced.
RestoreConfig_TransformationRuleAction_ADD RestoreConfig_TransformationRuleAction_Op = 4
// The "test" operation tests that a value at the target location is
// equal to a specified value.
RestoreConfig_TransformationRuleAction_TEST RestoreConfig_TransformationRuleAction_Op = 5
// The "replace" operation replaces the value at the target location
// with a new value. The operation object MUST contain a "value" member
// whose content specifies the replacement value.
RestoreConfig_TransformationRuleAction_REPLACE RestoreConfig_TransformationRuleAction_Op = 6
)func (RestoreConfig_TransformationRuleAction_Op) Descriptor
func (RestoreConfig_TransformationRuleAction_Op) Descriptor() protoreflect.EnumDescriptorfunc (RestoreConfig_TransformationRuleAction_Op) Enum
func (x RestoreConfig_TransformationRuleAction_Op) Enum() *RestoreConfig_TransformationRuleAction_Opfunc (RestoreConfig_TransformationRuleAction_Op) EnumDescriptor
func (RestoreConfig_TransformationRuleAction_Op) EnumDescriptor() ([]byte, []int)Deprecated: Use RestoreConfig_TransformationRuleAction_Op.Descriptor instead.
func (RestoreConfig_TransformationRuleAction_Op) Number
func (x RestoreConfig_TransformationRuleAction_Op) Number() protoreflect.EnumNumberfunc (RestoreConfig_TransformationRuleAction_Op) String
func (x RestoreConfig_TransformationRuleAction_Op) String() stringfunc (RestoreConfig_TransformationRuleAction_Op) Type
func (RestoreConfig_TransformationRuleAction_Op) Type() protoreflect.EnumTypeRestoreConfig_VolumeDataRestorePolicy
type RestoreConfig_VolumeDataRestorePolicy int32Defines how volume data should be restored.
RestoreConfig_VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED, RestoreConfig_RESTORE_VOLUME_DATA_FROM_BACKUP, RestoreConfig_REUSE_VOLUME_HANDLE_FROM_BACKUP, RestoreConfig_NO_VOLUME_DATA_RESTORATION
const (
// Unspecified (illegal).
RestoreConfig_VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED RestoreConfig_VolumeDataRestorePolicy = 0
// For each PVC to be restored, create a new underlying volume and PV
// from the corresponding VolumeBackup contained within the Backup.
RestoreConfig_RESTORE_VOLUME_DATA_FROM_BACKUP RestoreConfig_VolumeDataRestorePolicy = 1
// For each PVC to be restored, attempt to reuse the original PV contained
// in the Backup (with its original underlying volume). This option
// is likely only usable when restoring a workload to its original cluster.
RestoreConfig_REUSE_VOLUME_HANDLE_FROM_BACKUP RestoreConfig_VolumeDataRestorePolicy = 2
// For each PVC to be restored, create PVC without any particular
// action to restore data. In this case, the normal Kubernetes provisioning
// logic would kick in, and this would likely result in either dynamically
// provisioning blank PVs or binding to statically provisioned PVs.
RestoreConfig_NO_VOLUME_DATA_RESTORATION RestoreConfig_VolumeDataRestorePolicy = 3
)func (RestoreConfig_VolumeDataRestorePolicy) Descriptor
func (RestoreConfig_VolumeDataRestorePolicy) Descriptor() protoreflect.EnumDescriptorfunc (RestoreConfig_VolumeDataRestorePolicy) Enum
func (RestoreConfig_VolumeDataRestorePolicy) EnumDescriptor
func (RestoreConfig_VolumeDataRestorePolicy) EnumDescriptor() ([]byte, []int)Deprecated: Use RestoreConfig_VolumeDataRestorePolicy.Descriptor instead.
func (RestoreConfig_VolumeDataRestorePolicy) Number
func (x RestoreConfig_VolumeDataRestorePolicy) Number() protoreflect.EnumNumberfunc (RestoreConfig_VolumeDataRestorePolicy) String
func (x RestoreConfig_VolumeDataRestorePolicy) String() stringfunc (RestoreConfig_VolumeDataRestorePolicy) Type
func (RestoreConfig_VolumeDataRestorePolicy) Type() protoreflect.EnumTypeRestoreConfig_VolumeDataRestorePolicyBinding
type RestoreConfig_VolumeDataRestorePolicyBinding struct {
// Required. The VolumeDataRestorePolicy to apply when restoring volumes in
// scope.
Policy RestoreConfig_VolumeDataRestorePolicy `protobuf:"varint,1,opt,name=policy,proto3,enum=google.cloud.gkebackup.v1.RestoreConfig_VolumeDataRestorePolicy" json:"policy,omitempty"`
// Types that are assignable to Scope:
//
// *RestoreConfig_VolumeDataRestorePolicyBinding_VolumeType
Scope isRestoreConfig_VolumeDataRestorePolicyBinding_Scope `protobuf_oneof:"scope"`
// contains filtered or unexported fields
}Binds resources in the scope to the given VolumeDataRestorePolicy.
func (*RestoreConfig_VolumeDataRestorePolicyBinding) Descriptor
func (*RestoreConfig_VolumeDataRestorePolicyBinding) Descriptor() ([]byte, []int)Deprecated: Use RestoreConfig_VolumeDataRestorePolicyBinding.ProtoReflect.Descriptor instead.
func (*RestoreConfig_VolumeDataRestorePolicyBinding) GetPolicy
func (x *RestoreConfig_VolumeDataRestorePolicyBinding) GetPolicy() RestoreConfig_VolumeDataRestorePolicyfunc (*RestoreConfig_VolumeDataRestorePolicyBinding) GetScope
func (m *RestoreConfig_VolumeDataRestorePolicyBinding) GetScope() isRestoreConfig_VolumeDataRestorePolicyBinding_Scopefunc (*RestoreConfig_VolumeDataRestorePolicyBinding) GetVolumeType
func (x *RestoreConfig_VolumeDataRestorePolicyBinding) GetVolumeType() VolumeTypeEnum_VolumeTypefunc (*RestoreConfig_VolumeDataRestorePolicyBinding) ProtoMessage
func (*RestoreConfig_VolumeDataRestorePolicyBinding) ProtoMessage()func (*RestoreConfig_VolumeDataRestorePolicyBinding) ProtoReflect
func (x *RestoreConfig_VolumeDataRestorePolicyBinding) ProtoReflect() protoreflect.Messagefunc (*RestoreConfig_VolumeDataRestorePolicyBinding) Reset
func (x *RestoreConfig_VolumeDataRestorePolicyBinding) Reset()func (*RestoreConfig_VolumeDataRestorePolicyBinding) String
func (x *RestoreConfig_VolumeDataRestorePolicyBinding) String() stringRestoreConfig_VolumeDataRestorePolicyBinding_VolumeType
type RestoreConfig_VolumeDataRestorePolicyBinding_VolumeType struct {
// The volume type, as determined by the PVC's bound PV,
// to apply the policy to.
VolumeType VolumeTypeEnum_VolumeType `protobuf:"varint,2,opt,name=volume_type,json=volumeType,proto3,enum=google.cloud.gkebackup.v1.VolumeTypeEnum_VolumeType,oneof"`
}RestorePlan
type RestorePlan struct {
// Output only. The full name of the RestorePlan resource.
// Format: `projects/*/locations/*/restorePlans/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server generated global unique identifier of
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. The timestamp when this RestorePlan resource was
// created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when this RestorePlan resource was last
// updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. User specified descriptive string for this RestorePlan.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Required. Immutable. A reference to the
// [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may
// be used as the source for Restores created via this RestorePlan. Format:
// `projects/*/locations/*/backupPlans/*`.
BackupPlan string `protobuf:"bytes,6,opt,name=backup_plan,json=backupPlan,proto3" json:"backup_plan,omitempty"`
// Required. Immutable. The target cluster into which Restores created via
// this RestorePlan will restore data. NOTE: the cluster's region must be the
// same as the RestorePlan. Valid formats:
//
// - `projects/*/locations/*/clusters/*`
// - `projects/*/zones/*/clusters/*`
Cluster string `protobuf:"bytes,7,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Required. Configuration of Restores created via this RestorePlan.
RestoreConfig *RestoreConfig `protobuf:"bytes,8,opt,name=restore_config,json=restoreConfig,proto3" json:"restore_config,omitempty"`
// Optional. A set of custom labels supplied by user.
Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. `etag` is used for optimistic concurrency control as a way to
// help prevent simultaneous updates of a restore from overwriting each other.
// It is strongly suggested that systems make use of the `etag` in the
// read-modify-write cycle to perform restore updates in order to avoid
// race conditions: An `etag` is returned in the response to `GetRestorePlan`,
// and systems are expected to put that etag in the request to
// `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change
// will be applied to the same version of the resource.
Etag string `protobuf:"bytes,10,opt,name=etag,proto3" json:"etag,omitempty"`
// Output only. State of the RestorePlan. This State field reflects the
// various stages a RestorePlan can be in
// during the Create operation.
State RestorePlan_State `protobuf:"varint,11,opt,name=state,proto3,enum=google.cloud.gkebackup.v1.RestorePlan_State" json:"state,omitempty"`
// Output only. Human-readable description of why RestorePlan is in the
// current `state`. This field is only meant for human readability and should
// not be used programmatically as this field is not guaranteed to be
// consistent.
StateReason string `protobuf:"bytes,12,opt,name=state_reason,json=stateReason,proto3" json:"state_reason,omitempty"`
// Output only. The fully qualified name of the RestoreChannel to be used to
// create a RestorePlan. This field is set only if the `backup_plan` is in a
// different project than the RestorePlan. Format:
// `projects/*/locations/*/restoreChannels/*`
RestoreChannel string `protobuf:"bytes,13,opt,name=restore_channel,json=restoreChannel,proto3" json:"restore_channel,omitempty"`
// contains filtered or unexported fields
}The configuration of a potential series of Restore operations to be performed against Backups belong to a particular BackupPlan.
func (*RestorePlan) Descriptor
func (*RestorePlan) Descriptor() ([]byte, []int)Deprecated: Use RestorePlan.ProtoReflect.Descriptor instead.
func (*RestorePlan) GetBackupPlan
func (x *RestorePlan) GetBackupPlan() stringfunc (*RestorePlan) GetCluster
func (x *RestorePlan) GetCluster() stringfunc (*RestorePlan) GetCreateTime
func (x *RestorePlan) GetCreateTime() *timestamppb.Timestampfunc (*RestorePlan) GetDescription
func (x *RestorePlan) GetDescription() stringfunc (*RestorePlan) GetEtag
func (x *RestorePlan) GetEtag() stringfunc (*RestorePlan) GetLabels
func (x *RestorePlan) GetLabels() map[string]stringfunc (*RestorePlan) GetName
func (x *RestorePlan) GetName() stringfunc (*RestorePlan) GetRestoreChannel
func (x *RestorePlan) GetRestoreChannel() stringfunc (*RestorePlan) GetRestoreConfig
func (x *RestorePlan) GetRestoreConfig() *RestoreConfigfunc (*RestorePlan) GetState
func (x *RestorePlan) GetState() RestorePlan_Statefunc (*RestorePlan) GetStateReason
func (x *RestorePlan) GetStateReason() stringfunc (*RestorePlan) GetUid
func (x *RestorePlan) GetUid() stringfunc (*RestorePlan) GetUpdateTime
func (x *RestorePlan) GetUpdateTime() *timestamppb.Timestampfunc (*RestorePlan) ProtoMessage
func (*RestorePlan) ProtoMessage()func (*RestorePlan) ProtoReflect
func (x *RestorePlan) ProtoReflect() protoreflect.Messagefunc (*RestorePlan) Reset
func (x *RestorePlan) Reset()func (*RestorePlan) String
func (x *RestorePlan) String() stringRestorePlanBinding
type RestorePlanBinding struct {
// Identifier. The fully qualified name of the RestorePlanBinding.
// `projects/*/locations/*/restoreChannels/*/restorePlanBindings/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server generated global unique identifier of
// [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. The timestamp when this binding was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when this binding was created.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The fully qualified name of the RestorePlan bound to this
// RestoreChannel. `projects/*/locations/*/restorePlans/{restore_plan}`
RestorePlan string `protobuf:"bytes,5,opt,name=restore_plan,json=restorePlan,proto3" json:"restore_plan,omitempty"`
// Output only. `etag` is used for optimistic concurrency control as a way to
// help prevent simultaneous updates of a RestorePlanBinding from overwriting
// each other. It is strongly suggested that systems make use of the 'etag' in
// the read-modify-write cycle to perform RestorePlanBinding updates in
// order to avoid race conditions: An `etag` is returned in the response to
// `GetRestorePlanBinding`, and systems are expected to put that etag in
// the request to `UpdateRestorePlanBinding` or
// `DeleteRestorePlanBinding` to ensure that their change will be applied
// to the same version of the resource.
Etag string `protobuf:"bytes,6,opt,name=etag,proto3" json:"etag,omitempty"`
// Output only. The fully qualified name of the BackupPlan bound to the
// specified RestorePlan. `projects/*/locations/*/backukpPlans/{backup_plan}`
BackupPlan string `protobuf:"bytes,7,opt,name=backup_plan,json=backupPlan,proto3" json:"backup_plan,omitempty"`
// contains filtered or unexported fields
}A RestorePlanBinding binds a RestorePlan with a RestoreChannel. This resource is created automatically when a RestorePlan is created using a RestoreChannel. This also serves as a holder for cross-project fields that need to be displayed in the current project.
func (*RestorePlanBinding) Descriptor
func (*RestorePlanBinding) Descriptor() ([]byte, []int)Deprecated: Use RestorePlanBinding.ProtoReflect.Descriptor instead.
func (*RestorePlanBinding) GetBackupPlan
func (x *RestorePlanBinding) GetBackupPlan() stringfunc (*RestorePlanBinding) GetCreateTime
func (x *RestorePlanBinding) GetCreateTime() *timestamppb.Timestampfunc (*RestorePlanBinding) GetEtag
func (x *RestorePlanBinding) GetEtag() stringfunc (*RestorePlanBinding) GetName
func (x *RestorePlanBinding) GetName() stringfunc (*RestorePlanBinding) GetRestorePlan
func (x *RestorePlanBinding) GetRestorePlan() stringfunc (*RestorePlanBinding) GetUid
func (x *RestorePlanBinding) GetUid() stringfunc (*RestorePlanBinding) GetUpdateTime
func (x *RestorePlanBinding) GetUpdateTime() *timestamppb.Timestampfunc (*RestorePlanBinding) ProtoMessage
func (*RestorePlanBinding) ProtoMessage()func (*RestorePlanBinding) ProtoReflect
func (x *RestorePlanBinding) ProtoReflect() protoreflect.Messagefunc (*RestorePlanBinding) Reset
func (x *RestorePlanBinding) Reset()func (*RestorePlanBinding) String
func (x *RestorePlanBinding) String() stringRestorePlan_State
type RestorePlan_State int32State
RestorePlan_STATE_UNSPECIFIED, RestorePlan_CLUSTER_PENDING, RestorePlan_READY, RestorePlan_FAILED, RestorePlan_DELETING
const (
// Default first value for Enums.
RestorePlan_STATE_UNSPECIFIED RestorePlan_State = 0
// Waiting for cluster state to be RUNNING.
RestorePlan_CLUSTER_PENDING RestorePlan_State = 1
// The RestorePlan has successfully been created and is ready for Restores.
RestorePlan_READY RestorePlan_State = 2
// RestorePlan creation has failed.
RestorePlan_FAILED RestorePlan_State = 3
// The RestorePlan is in the process of being deleted.
RestorePlan_DELETING RestorePlan_State = 4
)func (RestorePlan_State) Descriptor
func (RestorePlan_State) Descriptor() protoreflect.EnumDescriptorfunc (RestorePlan_State) Enum
func (x RestorePlan_State) Enum() *RestorePlan_Statefunc (RestorePlan_State) EnumDescriptor
func (RestorePlan_State) EnumDescriptor() ([]byte, []int)Deprecated: Use RestorePlan_State.Descriptor instead.
func (RestorePlan_State) Number
func (x RestorePlan_State) Number() protoreflect.EnumNumberfunc (RestorePlan_State) String
func (x RestorePlan_State) String() stringfunc (RestorePlan_State) Type
func (RestorePlan_State) Type() protoreflect.EnumTypeRestore_Filter
type Restore_Filter struct {
// Optional. Selects resources for restoration. If specified, only resources
// which match `inclusion_filters` will be selected for restoration. A
// resource will be selected if it matches any `ResourceSelector` of the
// `inclusion_filters`.
InclusionFilters []*ResourceSelector `protobuf:"bytes,1,rep,name=inclusion_filters,json=inclusionFilters,proto3" json:"inclusion_filters,omitempty"`
// Optional. Excludes resources from restoration. If specified,
// a resource will not be restored if it matches
// any `ResourceSelector` of the `exclusion_filters`.
ExclusionFilters []*ResourceSelector `protobuf:"bytes,2,rep,name=exclusion_filters,json=exclusionFilters,proto3" json:"exclusion_filters,omitempty"`
// contains filtered or unexported fields
}Defines the filter for Restore. This filter can be used to further
refine the resource selection of the Restore beyond the coarse-grained
scope defined in the RestorePlan. exclusion_filters take precedence
over inclusion_filters. If a resource matches both inclusion_filters
and exclusion_filters, it will not be restored.
func (*Restore_Filter) Descriptor
func (*Restore_Filter) Descriptor() ([]byte, []int)Deprecated: Use Restore_Filter.ProtoReflect.Descriptor instead.
func (*Restore_Filter) GetExclusionFilters
func (x *Restore_Filter) GetExclusionFilters() []*ResourceSelectorfunc (*Restore_Filter) GetInclusionFilters
func (x *Restore_Filter) GetInclusionFilters() []*ResourceSelectorfunc (*Restore_Filter) ProtoMessage
func (*Restore_Filter) ProtoMessage()func (*Restore_Filter) ProtoReflect
func (x *Restore_Filter) ProtoReflect() protoreflect.Messagefunc (*Restore_Filter) Reset
func (x *Restore_Filter) Reset()func (*Restore_Filter) String
func (x *Restore_Filter) String() stringRestore_State
type Restore_State int32Possible values for state of the Restore.
Restore_STATE_UNSPECIFIED, Restore_CREATING, Restore_IN_PROGRESS, Restore_SUCCEEDED, Restore_FAILED, Restore_DELETING, Restore_VALIDATING
const (
// The Restore resource is in the process of being created.
Restore_STATE_UNSPECIFIED Restore_State = 0
// The Restore resource has been created and the associated RestoreJob
// Kubernetes resource has been injected into target cluster.
Restore_CREATING Restore_State = 1
// The gkebackup agent in the cluster has begun executing the restore
// operation.
Restore_IN_PROGRESS Restore_State = 2
// The restore operation has completed successfully. Restored workloads may
// not yet be operational.
Restore_SUCCEEDED Restore_State = 3
// The restore operation has failed.
Restore_FAILED Restore_State = 4
// This Restore resource is in the process of being deleted.
Restore_DELETING Restore_State = 5
// The Kubernetes resources created by this Restore are being
// validated.
Restore_VALIDATING Restore_State = 6
)func (Restore_State) Descriptor
func (Restore_State) Descriptor() protoreflect.EnumDescriptorfunc (Restore_State) Enum
func (x Restore_State) Enum() *Restore_Statefunc (Restore_State) EnumDescriptor
func (Restore_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Restore_State.Descriptor instead.
func (Restore_State) Number
func (x Restore_State) Number() protoreflect.EnumNumberfunc (Restore_State) String
func (x Restore_State) String() stringfunc (Restore_State) Type
func (Restore_State) Type() protoreflect.EnumTypeRpoConfig
type RpoConfig struct {
// Required. Defines the target RPO for the BackupPlan in minutes, which means
// the target maximum data loss in time that is acceptable for this
// BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400,
// i.e., 60 days.
TargetRpoMinutes int32 `protobuf:"varint,1,opt,name=target_rpo_minutes,json=targetRpoMinutes,proto3" json:"target_rpo_minutes,omitempty"`
// Optional. User specified time windows during which backup can NOT happen
// for this BackupPlan - backups should start and finish outside of any given
// exclusion window. Note: backup jobs will be scheduled to start and
// finish outside the duration of the window as much as possible, but
// running jobs will not get canceled when it runs into the window.
// All the time and date values in exclusion_windows entry in the API are in
// UTC.
// We only allow <=1 recurrence="" (daily="" or="" weekly)="" exclusion="" window="" for="" a="" backupplan="" while="" no="" restriction="" on="" number="" of="" single="" occurrence="" windows.="" exclusionwindows="">ExclusionWindow `protobuf:"bytes,2,rep,name=exclusion_windows,json=exclusionWindows,proto3" json:"exclusion_windows,omitempty"`
// contains filtered or unexported fields
}Defines RPO scheduling configuration for automatically creating Backups via this BackupPlan.
func (*RpoConfig) Descriptor
Deprecated: Use RpoConfig.ProtoReflect.Descriptor instead.
func (*RpoConfig) GetExclusionWindows
func (x *RpoConfig) GetExclusionWindows() []*ExclusionWindowfunc (*RpoConfig) GetTargetRpoMinutes
func (*RpoConfig) ProtoMessage
func (*RpoConfig) ProtoMessage()func (*RpoConfig) ProtoReflect
func (x *RpoConfig) ProtoReflect() protoreflect.Messagefunc (*RpoConfig) Reset
func (x *RpoConfig) Reset()func (*RpoConfig) String
UnimplementedBackupForGKEServer
type UnimplementedBackupForGKEServer struct {
}UnimplementedBackupForGKEServer should be embedded to have forward compatible implementations.
func (UnimplementedBackupForGKEServer) CreateBackup
func (UnimplementedBackupForGKEServer) CreateBackup(context.Context, *CreateBackupRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) CreateBackupChannel
func (UnimplementedBackupForGKEServer) CreateBackupChannel(context.Context, *CreateBackupChannelRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) CreateBackupPlan
func (UnimplementedBackupForGKEServer) CreateBackupPlan(context.Context, *CreateBackupPlanRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) CreateRestore
func (UnimplementedBackupForGKEServer) CreateRestore(context.Context, *CreateRestoreRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) CreateRestoreChannel
func (UnimplementedBackupForGKEServer) CreateRestoreChannel(context.Context, *CreateRestoreChannelRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) CreateRestorePlan
func (UnimplementedBackupForGKEServer) CreateRestorePlan(context.Context, *CreateRestorePlanRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) DeleteBackup
func (UnimplementedBackupForGKEServer) DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) DeleteBackupChannel
func (UnimplementedBackupForGKEServer) DeleteBackupChannel(context.Context, *DeleteBackupChannelRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) DeleteBackupPlan
func (UnimplementedBackupForGKEServer) DeleteBackupPlan(context.Context, *DeleteBackupPlanRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) DeleteRestore
func (UnimplementedBackupForGKEServer) DeleteRestore(context.Context, *DeleteRestoreRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) DeleteRestoreChannel
func (UnimplementedBackupForGKEServer) DeleteRestoreChannel(context.Context, *DeleteRestoreChannelRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) DeleteRestorePlan
func (UnimplementedBackupForGKEServer) DeleteRestorePlan(context.Context, *DeleteRestorePlanRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) GetBackup
func (UnimplementedBackupForGKEServer) GetBackup(context.Context, *GetBackupRequest) (*Backup, error)func (UnimplementedBackupForGKEServer) GetBackupChannel
func (UnimplementedBackupForGKEServer) GetBackupChannel(context.Context, *GetBackupChannelRequest) (*BackupChannel, error)func (UnimplementedBackupForGKEServer) GetBackupIndexDownloadUrl
func (UnimplementedBackupForGKEServer) GetBackupIndexDownloadUrl(context.Context, *GetBackupIndexDownloadUrlRequest) (*GetBackupIndexDownloadUrlResponse, error)func (UnimplementedBackupForGKEServer) GetBackupPlan
func (UnimplementedBackupForGKEServer) GetBackupPlan(context.Context, *GetBackupPlanRequest) (*BackupPlan, error)func (UnimplementedBackupForGKEServer) GetBackupPlanBinding
func (UnimplementedBackupForGKEServer) GetBackupPlanBinding(context.Context, *GetBackupPlanBindingRequest) (*BackupPlanBinding, error)func (UnimplementedBackupForGKEServer) GetRestore
func (UnimplementedBackupForGKEServer) GetRestore(context.Context, *GetRestoreRequest) (*Restore, error)func (UnimplementedBackupForGKEServer) GetRestoreChannel
func (UnimplementedBackupForGKEServer) GetRestoreChannel(context.Context, *GetRestoreChannelRequest) (*RestoreChannel, error)func (UnimplementedBackupForGKEServer) GetRestorePlan
func (UnimplementedBackupForGKEServer) GetRestorePlan(context.Context, *GetRestorePlanRequest) (*RestorePlan, error)func (UnimplementedBackupForGKEServer) GetRestorePlanBinding
func (UnimplementedBackupForGKEServer) GetRestorePlanBinding(context.Context, *GetRestorePlanBindingRequest) (*RestorePlanBinding, error)func (UnimplementedBackupForGKEServer) GetVolumeBackup
func (UnimplementedBackupForGKEServer) GetVolumeBackup(context.Context, *GetVolumeBackupRequest) (*VolumeBackup, error)func (UnimplementedBackupForGKEServer) GetVolumeRestore
func (UnimplementedBackupForGKEServer) GetVolumeRestore(context.Context, *GetVolumeRestoreRequest) (*VolumeRestore, error)func (UnimplementedBackupForGKEServer) ListBackupChannels
func (UnimplementedBackupForGKEServer) ListBackupChannels(context.Context, *ListBackupChannelsRequest) (*ListBackupChannelsResponse, error)func (UnimplementedBackupForGKEServer) ListBackupPlanBindings
func (UnimplementedBackupForGKEServer) ListBackupPlanBindings(context.Context, *ListBackupPlanBindingsRequest) (*ListBackupPlanBindingsResponse, error)func (UnimplementedBackupForGKEServer) ListBackupPlans
func (UnimplementedBackupForGKEServer) ListBackupPlans(context.Context, *ListBackupPlansRequest) (*ListBackupPlansResponse, error)func (UnimplementedBackupForGKEServer) ListBackups
func (UnimplementedBackupForGKEServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error)func (UnimplementedBackupForGKEServer) ListRestoreChannels
func (UnimplementedBackupForGKEServer) ListRestoreChannels(context.Context, *ListRestoreChannelsRequest) (*ListRestoreChannelsResponse, error)func (UnimplementedBackupForGKEServer) ListRestorePlanBindings
func (UnimplementedBackupForGKEServer) ListRestorePlanBindings(context.Context, *ListRestorePlanBindingsRequest) (*ListRestorePlanBindingsResponse, error)func (UnimplementedBackupForGKEServer) ListRestorePlans
func (UnimplementedBackupForGKEServer) ListRestorePlans(context.Context, *ListRestorePlansRequest) (*ListRestorePlansResponse, error)func (UnimplementedBackupForGKEServer) ListRestores
func (UnimplementedBackupForGKEServer) ListRestores(context.Context, *ListRestoresRequest) (*ListRestoresResponse, error)func (UnimplementedBackupForGKEServer) ListVolumeBackups
func (UnimplementedBackupForGKEServer) ListVolumeBackups(context.Context, *ListVolumeBackupsRequest) (*ListVolumeBackupsResponse, error)func (UnimplementedBackupForGKEServer) ListVolumeRestores
func (UnimplementedBackupForGKEServer) ListVolumeRestores(context.Context, *ListVolumeRestoresRequest) (*ListVolumeRestoresResponse, error)func (UnimplementedBackupForGKEServer) UpdateBackup
func (UnimplementedBackupForGKEServer) UpdateBackup(context.Context, *UpdateBackupRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) UpdateBackupChannel
func (UnimplementedBackupForGKEServer) UpdateBackupChannel(context.Context, *UpdateBackupChannelRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) UpdateBackupPlan
func (UnimplementedBackupForGKEServer) UpdateBackupPlan(context.Context, *UpdateBackupPlanRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) UpdateRestore
func (UnimplementedBackupForGKEServer) UpdateRestore(context.Context, *UpdateRestoreRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) UpdateRestoreChannel
func (UnimplementedBackupForGKEServer) UpdateRestoreChannel(context.Context, *UpdateRestoreChannelRequest) (*longrunningpb.Operation, error)func (UnimplementedBackupForGKEServer) UpdateRestorePlan
func (UnimplementedBackupForGKEServer) UpdateRestorePlan(context.Context, *UpdateRestorePlanRequest) (*longrunningpb.Operation, error)UnsafeBackupForGKEServer
type UnsafeBackupForGKEServer interface {
// contains filtered or unexported methods
}UnsafeBackupForGKEServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BackupForGKEServer will result in compilation errors.
UpdateBackupChannelRequest
type UpdateBackupChannelRequest struct {
// Required. A new version of the BackupChannel resource that contains updated
// fields. This may be sparsely populated if an `update_mask` is provided.
BackupChannel *BackupChannel `protobuf:"bytes,1,opt,name=backup_channel,json=backupChannel,proto3" json:"backup_channel,omitempty"`
// Optional. This is used to specify the fields to be overwritten in the
// BackupChannel targeted for update. The values for each of these
// updated fields will be taken from the `backup_channel` provided
// with this request. Field names are relative to the root of the resource
// (e.g., `description`, `labels`, etc.)
// If no `update_mask` is provided, all fields in `backup_channel` will
// be written to the target BackupChannel resource. Note that
// OUTPUT_ONLY and IMMUTABLE fields in `backup_channel` are ignored and
// are not used to update the target BackupChannel.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for UpdateBackupChannel.
func (*UpdateBackupChannelRequest) Descriptor
func (*UpdateBackupChannelRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateBackupChannelRequest.ProtoReflect.Descriptor instead.
func (*UpdateBackupChannelRequest) GetBackupChannel
func (x *UpdateBackupChannelRequest) GetBackupChannel() *BackupChannelfunc (*UpdateBackupChannelRequest) GetUpdateMask
func (x *UpdateBackupChannelRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateBackupChannelRequest) ProtoMessage
func (*UpdateBackupChannelRequest) ProtoMessage()func (*UpdateBackupChannelRequest) ProtoReflect
func (x *UpdateBackupChannelRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateBackupChannelRequest) Reset
func (x *UpdateBackupChannelRequest) Reset()func (*UpdateBackupChannelRequest) String
func (x *UpdateBackupChannelRequest) String() stringUpdateBackupPlanRequest
type UpdateBackupPlanRequest struct {
// Required. A new version of the BackupPlan resource that contains updated
// fields. This may be sparsely populated if an `update_mask` is provided.
BackupPlan *BackupPlan `protobuf:"bytes,1,opt,name=backup_plan,json=backupPlan,proto3" json:"backup_plan,omitempty"`
// Optional. This is used to specify the fields to be overwritten in the
// BackupPlan targeted for update. The values for each of these
// updated fields will be taken from the `backup_plan` provided
// with this request. Field names are relative to the root of the resource
// (e.g., `description`, `backup_config.include_volume_data`, etc.)
// If no `update_mask` is provided, all fields in `backup_plan` will be
// written to the target BackupPlan resource.
// Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored
// and are not used to update the target BackupPlan.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for UpdateBackupPlan.
func (*UpdateBackupPlanRequest) Descriptor
func (*UpdateBackupPlanRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateBackupPlanRequest.ProtoReflect.Descriptor instead.
func (*UpdateBackupPlanRequest) GetBackupPlan
func (x *UpdateBackupPlanRequest) GetBackupPlan() *BackupPlanfunc (*UpdateBackupPlanRequest) GetUpdateMask
func (x *UpdateBackupPlanRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateBackupPlanRequest) ProtoMessage
func (*UpdateBackupPlanRequest) ProtoMessage()func (*UpdateBackupPlanRequest) ProtoReflect
func (x *UpdateBackupPlanRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateBackupPlanRequest) Reset
func (x *UpdateBackupPlanRequest) Reset()func (*UpdateBackupPlanRequest) String
func (x *UpdateBackupPlanRequest) String() stringUpdateBackupRequest
type UpdateBackupRequest struct {
// Required. A new version of the Backup resource that contains updated
// fields. This may be sparsely populated if an `update_mask` is provided.
Backup *Backup `protobuf:"bytes,1,opt,name=backup,proto3" json:"backup,omitempty"`
// Optional. This is used to specify the fields to be overwritten in the
// Backup targeted for update. The values for each of these
// updated fields will be taken from the `backup_plan` provided
// with this request. Field names are relative to the root of the resource.
// If no `update_mask` is provided, all fields in `backup` will be
// written to the target Backup resource.
// Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored
// and are not used to update the target Backup.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for UpdateBackup.
func (*UpdateBackupRequest) Descriptor
func (*UpdateBackupRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateBackupRequest.ProtoReflect.Descriptor instead.
func (*UpdateBackupRequest) GetBackup
func (x *UpdateBackupRequest) GetBackup() *Backupfunc (*UpdateBackupRequest) GetUpdateMask
func (x *UpdateBackupRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateBackupRequest) ProtoMessage
func (*UpdateBackupRequest) ProtoMessage()func (*UpdateBackupRequest) ProtoReflect
func (x *UpdateBackupRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateBackupRequest) Reset
func (x *UpdateBackupRequest) Reset()func (*UpdateBackupRequest) String
func (x *UpdateBackupRequest) String() stringUpdateRestoreChannelRequest
type UpdateRestoreChannelRequest struct {
// Required. A new version of the RestoreChannel resource that contains
// updated fields. This may be sparsely populated if an `update_mask` is
// provided.
RestoreChannel *RestoreChannel `protobuf:"bytes,1,opt,name=restore_channel,json=restoreChannel,proto3" json:"restore_channel,omitempty"`
// Optional. This is used to specify the fields to be overwritten in the
// RestoreChannel targeted for update. The values for each of these
// updated fields will be taken from the `restore_channel` provided
// with this request. Field names are relative to the root of the resource
// (e.g., `description`, `destination_project_id`, etc.)
// If no `update_mask` is provided, all fields in `restore_channel` will
// be written to the target RestoreChannel resource. Note that
// OUTPUT_ONLY and IMMUTABLE fields in `restore_channel` are ignored and
// are not used to update the target RestoreChannel.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for UpdateRestoreChannel.
func (*UpdateRestoreChannelRequest) Descriptor
func (*UpdateRestoreChannelRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateRestoreChannelRequest.ProtoReflect.Descriptor instead.
func (*UpdateRestoreChannelRequest) GetRestoreChannel
func (x *UpdateRestoreChannelRequest) GetRestoreChannel() *RestoreChannelfunc (*UpdateRestoreChannelRequest) GetUpdateMask
func (x *UpdateRestoreChannelRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateRestoreChannelRequest) ProtoMessage
func (*UpdateRestoreChannelRequest) ProtoMessage()func (*UpdateRestoreChannelRequest) ProtoReflect
func (x *UpdateRestoreChannelRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateRestoreChannelRequest) Reset
func (x *UpdateRestoreChannelRequest) Reset()func (*UpdateRestoreChannelRequest) String
func (x *UpdateRestoreChannelRequest) String() stringUpdateRestorePlanRequest
type UpdateRestorePlanRequest struct {
// Required. A new version of the RestorePlan resource that contains updated
// fields. This may be sparsely populated if an `update_mask` is provided.
RestorePlan *RestorePlan `protobuf:"bytes,1,opt,name=restore_plan,json=restorePlan,proto3" json:"restore_plan,omitempty"`
// Optional. This is used to specify the fields to be overwritten in the
// RestorePlan targeted for update. The values for each of these
// updated fields will be taken from the `restore_plan` provided
// with this request. Field names are relative to the root of the resource.
// If no `update_mask` is provided, all fields in `restore_plan` will be
// written to the target RestorePlan resource.
// Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored
// and are not used to update the target RestorePlan.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for UpdateRestorePlan.
func (*UpdateRestorePlanRequest) Descriptor
func (*UpdateRestorePlanRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateRestorePlanRequest.ProtoReflect.Descriptor instead.
func (*UpdateRestorePlanRequest) GetRestorePlan
func (x *UpdateRestorePlanRequest) GetRestorePlan() *RestorePlanfunc (*UpdateRestorePlanRequest) GetUpdateMask
func (x *UpdateRestorePlanRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateRestorePlanRequest) ProtoMessage
func (*UpdateRestorePlanRequest) ProtoMessage()func (*UpdateRestorePlanRequest) ProtoReflect
func (x *UpdateRestorePlanRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateRestorePlanRequest) Reset
func (x *UpdateRestorePlanRequest) Reset()func (*UpdateRestorePlanRequest) String
func (x *UpdateRestorePlanRequest) String() stringUpdateRestoreRequest
type UpdateRestoreRequest struct {
// Required. A new version of the Restore resource that contains updated
// fields. This may be sparsely populated if an `update_mask` is provided.
Restore *Restore `protobuf:"bytes,1,opt,name=restore,proto3" json:"restore,omitempty"`
// Optional. This is used to specify the fields to be overwritten in the
// Restore targeted for update. The values for each of these
// updated fields will be taken from the `restore` provided
// with this request. Field names are relative to the root of the resource.
// If no `update_mask` is provided, all fields in `restore` will be
// written to the target Restore resource.
// Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
// and are not used to update the target Restore.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request message for UpdateRestore.
func (*UpdateRestoreRequest) Descriptor
func (*UpdateRestoreRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateRestoreRequest.ProtoReflect.Descriptor instead.
func (*UpdateRestoreRequest) GetRestore
func (x *UpdateRestoreRequest) GetRestore() *Restorefunc (*UpdateRestoreRequest) GetUpdateMask
func (x *UpdateRestoreRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateRestoreRequest) ProtoMessage
func (*UpdateRestoreRequest) ProtoMessage()func (*UpdateRestoreRequest) ProtoReflect
func (x *UpdateRestoreRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateRestoreRequest) Reset
func (x *UpdateRestoreRequest) Reset()func (*UpdateRestoreRequest) String
func (x *UpdateRestoreRequest) String() stringVolumeBackup
type VolumeBackup struct {
// Output only. The full name of the VolumeBackup resource.
// Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server generated global unique identifier of
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. The timestamp when this VolumeBackup resource was
// created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when this VolumeBackup resource was last
// updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. A reference to the source Kubernetes PVC from which this
// VolumeBackup was created.
SourcePvc *NamespacedName `protobuf:"bytes,5,opt,name=source_pvc,json=sourcePvc,proto3" json:"source_pvc,omitempty"`
// Output only. A storage system-specific opaque handle to the underlying
// volume backup.
VolumeBackupHandle string `protobuf:"bytes,6,opt,name=volume_backup_handle,json=volumeBackupHandle,proto3" json:"volume_backup_handle,omitempty"`
// Output only. The format used for the volume backup.
Format VolumeBackup_VolumeBackupFormat `protobuf:"varint,7,opt,name=format,proto3,enum=google.cloud.gkebackup.v1.VolumeBackup_VolumeBackupFormat" json:"format,omitempty"`
// 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.
StorageBytes int64 `protobuf:"varint,8,opt,name=storage_bytes,json=storageBytes,proto3" json:"storage_bytes,omitempty"`
// Output only. The minimum size of the disk to which this VolumeBackup can be
// restored.
DiskSizeBytes int64 `protobuf:"varint,9,opt,name=disk_size_bytes,json=diskSizeBytes,proto3" json:"disk_size_bytes,omitempty"`
// Output only. The timestamp when the associated underlying volume backup
// operation completed.
CompleteTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"`
// Output only. The current state of this VolumeBackup.
State VolumeBackup_State `protobuf:"varint,11,opt,name=state,proto3,enum=google.cloud.gkebackup.v1.VolumeBackup_State" json:"state,omitempty"`
// Output only. A human readable message explaining why the VolumeBackup is in
// its current state. This field is only meant for human consumption and
// should not be used programmatically as this field is not guaranteed to be
// consistent.
StateMessage string `protobuf:"bytes,12,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"`
// 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.
Etag string `protobuf:"bytes,13,opt,name=etag,proto3" json:"etag,omitempty"`
// Output only. [Output Only] Reserved for future use.
SatisfiesPzs bool `protobuf:"varint,14,opt,name=satisfies_pzs,json=satisfiesPzs,proto3" json:"satisfies_pzs,omitempty"`
// Output only. [Output Only] Reserved for future use.
SatisfiesPzi bool `protobuf:"varint,15,opt,name=satisfies_pzi,json=satisfiesPzi,proto3" json:"satisfies_pzi,omitempty"`
// contains filtered or unexported fields
}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.
func (*VolumeBackup) Descriptor
func (*VolumeBackup) Descriptor() ([]byte, []int)Deprecated: Use VolumeBackup.ProtoReflect.Descriptor instead.
func (*VolumeBackup) GetCompleteTime
func (x *VolumeBackup) GetCompleteTime() *timestamppb.Timestampfunc (*VolumeBackup) GetCreateTime
func (x *VolumeBackup) GetCreateTime() *timestamppb.Timestampfunc (*VolumeBackup) GetDiskSizeBytes
func (x *VolumeBackup) GetDiskSizeBytes() int64func (*VolumeBackup) GetEtag
func (x *VolumeBackup) GetEtag() stringfunc (*VolumeBackup) GetFormat
func (x *VolumeBackup) GetFormat() VolumeBackup_VolumeBackupFormatfunc (*VolumeBackup) GetName
func (x *VolumeBackup) GetName() stringfunc (*VolumeBackup) GetSatisfiesPzi
func (x *VolumeBackup) GetSatisfiesPzi() boolfunc (*VolumeBackup) GetSatisfiesPzs
func (x *VolumeBackup) GetSatisfiesPzs() boolfunc (*VolumeBackup) GetSourcePvc
func (x *VolumeBackup) GetSourcePvc() *NamespacedNamefunc (*VolumeBackup) GetState
func (x *VolumeBackup) GetState() VolumeBackup_Statefunc (*VolumeBackup) GetStateMessage
func (x *VolumeBackup) GetStateMessage() stringfunc (*VolumeBackup) GetStorageBytes
func (x *VolumeBackup) GetStorageBytes() int64func (*VolumeBackup) GetUid
func (x *VolumeBackup) GetUid() stringfunc (*VolumeBackup) GetUpdateTime
func (x *VolumeBackup) GetUpdateTime() *timestamppb.Timestampfunc (*VolumeBackup) GetVolumeBackupHandle
func (x *VolumeBackup) GetVolumeBackupHandle() stringfunc (*VolumeBackup) ProtoMessage
func (*VolumeBackup) ProtoMessage()func (*VolumeBackup) ProtoReflect
func (x *VolumeBackup) ProtoReflect() protoreflect.Messagefunc (*VolumeBackup) Reset
func (x *VolumeBackup) Reset()func (*VolumeBackup) String
func (x *VolumeBackup) String() stringVolumeBackup_State
type VolumeBackup_State int32The current state of a VolumeBackup
VolumeBackup_STATE_UNSPECIFIED, VolumeBackup_CREATING, VolumeBackup_SNAPSHOTTING, VolumeBackup_UPLOADING, VolumeBackup_SUCCEEDED, VolumeBackup_FAILED, VolumeBackup_DELETING, VolumeBackup_CLEANED_UP
const (
// This is an illegal state and should not be encountered.
VolumeBackup_STATE_UNSPECIFIED VolumeBackup_State = 0
// A volume for the backup was identified and backup process is about to
// start.
VolumeBackup_CREATING VolumeBackup_State = 1
// The volume backup operation has begun and is in the initial "snapshot"
// phase of the process. Any defined ProtectedApplication "pre" hooks will
// be executed before entering this state and "post" hooks will be executed
// upon leaving this state.
VolumeBackup_SNAPSHOTTING VolumeBackup_State = 2
// The snapshot phase of the volume backup operation has completed and
// the snapshot is now being uploaded to backup storage.
VolumeBackup_UPLOADING VolumeBackup_State = 3
// The volume backup operation has completed successfully.
VolumeBackup_SUCCEEDED VolumeBackup_State = 4
// The volume backup operation has failed.
VolumeBackup_FAILED VolumeBackup_State = 5
// This VolumeBackup resource (and its associated artifacts) is in the
// process of being deleted.
VolumeBackup_DELETING VolumeBackup_State = 6
// The underlying artifacts of a volume backup (eg: persistent disk
// snapshots) are deleted.
VolumeBackup_CLEANED_UP VolumeBackup_State = 7
)func (VolumeBackup_State) Descriptor
func (VolumeBackup_State) Descriptor() protoreflect.EnumDescriptorfunc (VolumeBackup_State) Enum
func (x VolumeBackup_State) Enum() *VolumeBackup_Statefunc (VolumeBackup_State) EnumDescriptor
func (VolumeBackup_State) EnumDescriptor() ([]byte, []int)Deprecated: Use VolumeBackup_State.Descriptor instead.
func (VolumeBackup_State) Number
func (x VolumeBackup_State) Number() protoreflect.EnumNumberfunc (VolumeBackup_State) String
func (x VolumeBackup_State) String() stringfunc (VolumeBackup_State) Type
func (VolumeBackup_State) Type() protoreflect.EnumTypeVolumeBackup_VolumeBackupFormat
type VolumeBackup_VolumeBackupFormat int32Identifies the format used for the volume backup.
VolumeBackup_VOLUME_BACKUP_FORMAT_UNSPECIFIED, VolumeBackup_GCE_PERSISTENT_DISK
const (
// Default value, not specified.
VolumeBackup_VOLUME_BACKUP_FORMAT_UNSPECIFIED VolumeBackup_VolumeBackupFormat = 0
// Compute Engine Persistent Disk snapshot based volume backup.
VolumeBackup_GCE_PERSISTENT_DISK VolumeBackup_VolumeBackupFormat = 1
)func (VolumeBackup_VolumeBackupFormat) Descriptor
func (VolumeBackup_VolumeBackupFormat) Descriptor() protoreflect.EnumDescriptorfunc (VolumeBackup_VolumeBackupFormat) Enum
func (x VolumeBackup_VolumeBackupFormat) Enum() *VolumeBackup_VolumeBackupFormatfunc (VolumeBackup_VolumeBackupFormat) EnumDescriptor
func (VolumeBackup_VolumeBackupFormat) EnumDescriptor() ([]byte, []int)Deprecated: Use VolumeBackup_VolumeBackupFormat.Descriptor instead.
func (VolumeBackup_VolumeBackupFormat) Number
func (x VolumeBackup_VolumeBackupFormat) Number() protoreflect.EnumNumberfunc (VolumeBackup_VolumeBackupFormat) String
func (x VolumeBackup_VolumeBackupFormat) String() stringfunc (VolumeBackup_VolumeBackupFormat) Type
func (VolumeBackup_VolumeBackupFormat) Type() protoreflect.EnumTypeVolumeDataRestorePolicyOverride
type VolumeDataRestorePolicyOverride struct {
// Required. The VolumeDataRestorePolicy to apply when restoring volumes in
// scope.
Policy RestoreConfig_VolumeDataRestorePolicy `protobuf:"varint,1,opt,name=policy,proto3,enum=google.cloud.gkebackup.v1.RestoreConfig_VolumeDataRestorePolicy" json:"policy,omitempty"`
// Types that are assignable to Scope:
//
// *VolumeDataRestorePolicyOverride_SelectedPvcs
Scope isVolumeDataRestorePolicyOverride_Scope `protobuf_oneof:"scope"`
// contains filtered or unexported fields
}Defines an override to apply a VolumeDataRestorePolicy for scoped resources.
func (*VolumeDataRestorePolicyOverride) Descriptor
func (*VolumeDataRestorePolicyOverride) Descriptor() ([]byte, []int)Deprecated: Use VolumeDataRestorePolicyOverride.ProtoReflect.Descriptor instead.
func (*VolumeDataRestorePolicyOverride) GetPolicy
func (x *VolumeDataRestorePolicyOverride) GetPolicy() RestoreConfig_VolumeDataRestorePolicyfunc (*VolumeDataRestorePolicyOverride) GetScope
func (m *VolumeDataRestorePolicyOverride) GetScope() isVolumeDataRestorePolicyOverride_Scopefunc (*VolumeDataRestorePolicyOverride) GetSelectedPvcs
func (x *VolumeDataRestorePolicyOverride) GetSelectedPvcs() *NamespacedNamesfunc (*VolumeDataRestorePolicyOverride) ProtoMessage
func (*VolumeDataRestorePolicyOverride) ProtoMessage()func (*VolumeDataRestorePolicyOverride) ProtoReflect
func (x *VolumeDataRestorePolicyOverride) ProtoReflect() protoreflect.Messagefunc (*VolumeDataRestorePolicyOverride) Reset
func (x *VolumeDataRestorePolicyOverride) Reset()func (*VolumeDataRestorePolicyOverride) String
func (x *VolumeDataRestorePolicyOverride) String() stringVolumeDataRestorePolicyOverride_SelectedPvcs
type VolumeDataRestorePolicyOverride_SelectedPvcs struct {
// A list of PVCs to apply the policy override to.
SelectedPvcs *NamespacedNames `protobuf:"bytes,2,opt,name=selected_pvcs,json=selectedPvcs,proto3,oneof"`
}VolumeRestore
type VolumeRestore struct {
// Output only. Full name of the VolumeRestore resource.
// Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server generated global unique identifier of
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. The timestamp when this VolumeRestore resource was
// created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when this VolumeRestore resource was last
// updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The full name of the VolumeBackup from which the volume will
// be restored. Format:
// `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
VolumeBackup string `protobuf:"bytes,5,opt,name=volume_backup,json=volumeBackup,proto3" json:"volume_backup,omitempty"`
// Output only. The reference to the target Kubernetes PVC to be restored.
TargetPvc *NamespacedName `protobuf:"bytes,6,opt,name=target_pvc,json=targetPvc,proto3" json:"target_pvc,omitempty"`
// Output only. A storage system-specific opaque handler to the underlying
// volume created for the target PVC from the volume backup.
VolumeHandle string `protobuf:"bytes,7,opt,name=volume_handle,json=volumeHandle,proto3" json:"volume_handle,omitempty"`
// Output only. The type of volume provisioned
VolumeType VolumeRestore_VolumeType `protobuf:"varint,8,opt,name=volume_type,json=volumeType,proto3,enum=google.cloud.gkebackup.v1.VolumeRestore_VolumeType" json:"volume_type,omitempty"`
// Output only. The timestamp when the associated underlying volume
// restoration completed.
CompleteTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"`
// Output only. The current state of this VolumeRestore.
State VolumeRestore_State `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.gkebackup.v1.VolumeRestore_State" json:"state,omitempty"`
// Output only. A human readable message explaining why the VolumeRestore is
// in its current state.
StateMessage string `protobuf:"bytes,11,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"`
// Output only. `etag` is used for optimistic concurrency control as a way to
// help prevent simultaneous updates of a volume restore from overwriting each
// other. It is strongly suggested that systems make use of the `etag` in the
// read-modify-write cycle to perform volume restore updates in order to avoid
// race conditions.
Etag string `protobuf:"bytes,12,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}Represents the operation of restoring a volume from a VolumeBackup.
func (*VolumeRestore) Descriptor
func (*VolumeRestore) Descriptor() ([]byte, []int)Deprecated: Use VolumeRestore.ProtoReflect.Descriptor instead.
func (*VolumeRestore) GetCompleteTime
func (x *VolumeRestore) GetCompleteTime() *timestamppb.Timestampfunc (*VolumeRestore) GetCreateTime
func (x *VolumeRestore) GetCreateTime() *timestamppb.Timestampfunc (*VolumeRestore) GetEtag
func (x *VolumeRestore) GetEtag() stringfunc (*VolumeRestore) GetName
func (x *VolumeRestore) GetName() stringfunc (*VolumeRestore) GetState
func (x *VolumeRestore) GetState() VolumeRestore_Statefunc (*VolumeRestore) GetStateMessage
func (x *VolumeRestore) GetStateMessage() stringfunc (*VolumeRestore) GetTargetPvc
func (x *VolumeRestore) GetTargetPvc() *NamespacedNamefunc (*VolumeRestore) GetUid
func (x *VolumeRestore) GetUid() stringfunc (*VolumeRestore) GetUpdateTime
func (x *VolumeRestore) GetUpdateTime() *timestamppb.Timestampfunc (*VolumeRestore) GetVolumeBackup
func (x *VolumeRestore) GetVolumeBackup() stringfunc (*VolumeRestore) GetVolumeHandle
func (x *VolumeRestore) GetVolumeHandle() stringfunc (*VolumeRestore) GetVolumeType
func (x *VolumeRestore) GetVolumeType() VolumeRestore_VolumeTypefunc (*VolumeRestore) ProtoMessage
func (*VolumeRestore) ProtoMessage()func (*VolumeRestore) ProtoReflect
func (x *VolumeRestore) ProtoReflect() protoreflect.Messagefunc (*VolumeRestore) Reset
func (x *VolumeRestore) Reset()func (*VolumeRestore) String
func (x *VolumeRestore) String() stringVolumeRestore_State
type VolumeRestore_State int32The current state of a VolumeRestore
VolumeRestore_STATE_UNSPECIFIED, VolumeRestore_CREATING, VolumeRestore_RESTORING, VolumeRestore_SUCCEEDED, VolumeRestore_FAILED, VolumeRestore_DELETING
const (
// This is an illegal state and should not be encountered.
VolumeRestore_STATE_UNSPECIFIED VolumeRestore_State = 0
// A volume for the restore was identified and restore process is about to
// start.
VolumeRestore_CREATING VolumeRestore_State = 1
// The volume is currently being restored.
VolumeRestore_RESTORING VolumeRestore_State = 2
// The volume has been successfully restored.
VolumeRestore_SUCCEEDED VolumeRestore_State = 3
// The volume restoration process failed.
VolumeRestore_FAILED VolumeRestore_State = 4
// This VolumeRestore resource is in the process of being deleted.
VolumeRestore_DELETING VolumeRestore_State = 5
)func (VolumeRestore_State) Descriptor
func (VolumeRestore_State) Descriptor() protoreflect.EnumDescriptorfunc (VolumeRestore_State) Enum
func (x VolumeRestore_State) Enum() *VolumeRestore_Statefunc (VolumeRestore_State) EnumDescriptor
func (VolumeRestore_State) EnumDescriptor() ([]byte, []int)Deprecated: Use VolumeRestore_State.Descriptor instead.
func (VolumeRestore_State) Number
func (x VolumeRestore_State) Number() protoreflect.EnumNumberfunc (VolumeRestore_State) String
func (x VolumeRestore_State) String() stringfunc (VolumeRestore_State) Type
func (VolumeRestore_State) Type() protoreflect.EnumTypeVolumeRestore_VolumeType
type VolumeRestore_VolumeType int32Supported volume types.
VolumeRestore_VOLUME_TYPE_UNSPECIFIED, VolumeRestore_GCE_PERSISTENT_DISK
const (
// Default
VolumeRestore_VOLUME_TYPE_UNSPECIFIED VolumeRestore_VolumeType = 0
// Compute Engine Persistent Disk volume
VolumeRestore_GCE_PERSISTENT_DISK VolumeRestore_VolumeType = 1
)func (VolumeRestore_VolumeType) Descriptor
func (VolumeRestore_VolumeType) Descriptor() protoreflect.EnumDescriptorfunc (VolumeRestore_VolumeType) Enum
func (x VolumeRestore_VolumeType) Enum() *VolumeRestore_VolumeTypefunc (VolumeRestore_VolumeType) EnumDescriptor
func (VolumeRestore_VolumeType) EnumDescriptor() ([]byte, []int)Deprecated: Use VolumeRestore_VolumeType.Descriptor instead.
func (VolumeRestore_VolumeType) Number
func (x VolumeRestore_VolumeType) Number() protoreflect.EnumNumberfunc (VolumeRestore_VolumeType) String
func (x VolumeRestore_VolumeType) String() stringfunc (VolumeRestore_VolumeType) Type
func (VolumeRestore_VolumeType) Type() protoreflect.EnumTypeVolumeTypeEnum
type VolumeTypeEnum struct {
// contains filtered or unexported fields
}Message to encapsulate VolumeType enum.
func (*VolumeTypeEnum) Descriptor
func (*VolumeTypeEnum) Descriptor() ([]byte, []int)Deprecated: Use VolumeTypeEnum.ProtoReflect.Descriptor instead.
func (*VolumeTypeEnum) ProtoMessage
func (*VolumeTypeEnum) ProtoMessage()func (*VolumeTypeEnum) ProtoReflect
func (x *VolumeTypeEnum) ProtoReflect() protoreflect.Messagefunc (*VolumeTypeEnum) Reset
func (x *VolumeTypeEnum) Reset()func (*VolumeTypeEnum) String
func (x *VolumeTypeEnum) String() stringVolumeTypeEnum_VolumeType
type VolumeTypeEnum_VolumeType int32Supported volume types.
VolumeTypeEnum_VOLUME_TYPE_UNSPECIFIED, VolumeTypeEnum_GCE_PERSISTENT_DISK
const (
// Default
VolumeTypeEnum_VOLUME_TYPE_UNSPECIFIED VolumeTypeEnum_VolumeType = 0
// Compute Engine Persistent Disk volume
VolumeTypeEnum_GCE_PERSISTENT_DISK VolumeTypeEnum_VolumeType = 1
)func (VolumeTypeEnum_VolumeType) Descriptor
func (VolumeTypeEnum_VolumeType) Descriptor() protoreflect.EnumDescriptorfunc (VolumeTypeEnum_VolumeType) Enum
func (x VolumeTypeEnum_VolumeType) Enum() *VolumeTypeEnum_VolumeTypefunc (VolumeTypeEnum_VolumeType) EnumDescriptor
func (VolumeTypeEnum_VolumeType) EnumDescriptor() ([]byte, []int)Deprecated: Use VolumeTypeEnum_VolumeType.Descriptor instead.
func (VolumeTypeEnum_VolumeType) Number
func (x VolumeTypeEnum_VolumeType) Number() protoreflect.EnumNumberfunc (VolumeTypeEnum_VolumeType) String
func (x VolumeTypeEnum_VolumeType) String() stringfunc (VolumeTypeEnum_VolumeType) Type
func (VolumeTypeEnum_VolumeType) Type() protoreflect.EnumType