getPlatformAppsWithHttpInfo method

Future<Response> getPlatformAppsWithHttpInfo({
  1. String? org,
})

Answers what this organisation has declared, joined with what the delivery plane has done about it.

Answers what this organisation has declared, joined with what the delivery plane has done about it. The join is best-effort BY DESIGN and says so when it is missing: the declarations ARE the answer to "what have I deployed", so refusing the whole board because the cluster is unreadable would lose the half that is readable. What must never happen is a silent null — an unreadable plane is reported as cd.unavailable carrying the reason, never as an app with no reconciliation.

Note: This method returns the HTTP Response.

Parameters:

  • String org: Org names the organisation whose declarations to read, defaulting to the caller's own. Only a SuperAdmin may name one that is not theirs; anyone else naming a foreign org is refused, so this widens nothing by itself.

Implementation

Future<Response> getPlatformAppsWithHttpInfo({ String? org, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/platform/apps';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (org != null) {
    queryParams.addAll(_queryParams('', 'org', org));
  }

  const contentTypes = <String>[];


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