registerProjectDeletionGuard method
- String projectId,
- String guardId,
- String resourceKref, {
- required List<
String> allowedOperations, - List<
String> allowedMetadataKeys = const [],
inherited
Implementation
Future<ProjectDeletionGuardResponse> registerProjectDeletionGuard(
String projectId,
String guardId,
String resourceKref, {
required List<String> allowedOperations,
List<String> allowedMetadataKeys = const [],
}) {
final request =
RegisterProjectDeletionGuardRequest()
..projectId = projectId
..guardId = guardId
..resourceKref = resourceKref
..allowedOperations.addAll(allowedOperations)
..allowedMetadataKeys.addAll(allowedMetadataKeys);
return stub.registerProjectDeletionGuard(request, options: callOptions);
}