postSetupWithHttpInfo method

Future<Response> postSetupWithHttpInfo(
  1. OnboardingRequest onboardingRequest, {
  2. String? zapTraceSpan,
})

Set up initial user, org and bucket

Post an onboarding request to set up initial user, org and bucket.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postSetupWithHttpInfo(
  OnboardingRequest onboardingRequest, {
  String? zapTraceSpan,
}) async {
  final path = r'/setup';

  // ignore: prefer_final_locals
  Object? postBody = onboardingRequest;

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

  if (zapTraceSpan != null) {
    headerParams[r'Zap-Trace-Span'] = parameterToString(zapTraceSpan);
  }

  const authNames = <String>[
    'BasicAuthentication',
    'QuerystringAuthentication',
    'TokenAuthentication'
  ];
  const contentTypes = <String>['application/json'];

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