getPlatformProjectsByProjectAppsByApp method
Returns one application, with its live phase, health and secret sync.
Returns one application, with its live phase, health and secret sync. It returns a single application of the caller's org together with what the cluster currently reports for it: the operator Service CR's phase and health, and whether its sealed env has synced. An app this org and project do not have is 404. Requires a validated principal; 403 without one.
Parameters:
Implementation
Future<AppView?> getPlatformProjectsByProjectAppsByApp(String project, String app,) async {
final response = await getPlatformProjectsByProjectAppsByAppWithHttpInfo(project, app,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AppView',) as AppView;
}
return null;
}