registerProjectDeletionGuard method

Future<ProjectDeletionGuardResponse> registerProjectDeletionGuard(
  1. String projectId,
  2. String guardId,
  3. String resourceKref, {
  4. required List<String> allowedOperations,
  5. 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);
}