postDeployApplicationsByNameRollbackWithHttpInfo method

Future<Response> postDeployApplicationsByNameRollbackWithHttpInfo(
  1. String name
)

Serves the console's rollback control, and today it requests a reconcile and nothing more.

Serves the console's rollback control, and today it requests a reconcile and nothing more. The opening verb is not style. zipdoc drops a leading CamelCase symbol only when a plain verb follows it and never before a copula (internal/zipdoc/ extract.go:811-824, "CompleteDeployment IS the CI completion hook" would otherwise become "Is the CI completion hook") — so "RollbackDeployApplication is …" would publish a Go symbol no caller can see into the summary an SDK docstring, an MCP tool list and a CLI help line all show. It performs exactly what the sync action performs — the same stamp on the same App CR, the same application re-projected — and it does NOT select, pin or revert to a prior image tag. That is the one thing to know before wiring anything to it: the name is the console's, the behaviour is the sync. Pinning a previous release rides the release client, which this address does not call yet. Same gate, same refusals and the same absent request body as the sync it shares a core with.

Note: This method returns the HTTP Response.

Parameters:

  • String name (required): Name is the application to read, from the path. It must be a DNS-1123 label (lowercase alphanumerics and hyphens, starting and ending alphanumeric) — every operator App CR's metadata.name satisfies that, and anything else is a 400 rather than a lookup.

Implementation

Future<Response> postDeployApplicationsByNameRollbackWithHttpInfo(String name,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/deploy/applications/{name}/rollback'
    .replaceAll('{name}', name);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}