getDeployApplicationsByNameRevisionsByRevisionMetadataWithHttpInfo method
Returns the argocd RevisionMetadata for one revision of one application — what the detail view shows beside a revision.
Returns the argocd RevisionMetadata for one revision of one application — what the detail view shows beside a revision. An App CR is IMAGE-pinned rather than commit-pinned: the deploy names an image tag, and the git source this projection reports is the display-only manifest repo, not the application's own source. Nothing in this process can read a commit's author or message for an arbitrary revision. So rather than 404 (which the SPA turns into an error toast) or invent a git author, it answers the HONEST minimum: date is when the App CR was created, message is the revision asked for — with the empty revision and "HEAD" resolving to the image tag the CR declares — and author is empty. An over-long revision is truncated before it is echoed back. Tenant-scoped exactly like the application read.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> getDeployApplicationsByNameRevisionsByRevisionMetadataWithHttpInfo(String name, String revision,) async {
// ignore: prefer_const_declarations
final path = r'/v1/deploy/applications/{name}/revisions/{revision}/metadata'
.replaceAll('{name}', name)
.replaceAll('{revision}', revision);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}