adminUpdateSchemaWithHttpInfo method

Future<Response> adminUpdateSchemaWithHttpInfo(
  1. String region
)

Updates the Database schemas to the latest version

Summary:Updates the Database schemas to the latest version.
This can only be used by users in the Flex Superuser role.
Return Type:

Note: This method returns the HTTP Response.

Parameters:

  • String region (required): The data center region the data resides in

Implementation

Future<Response> adminUpdateSchemaWithHttpInfo(String region,) async {
  // Verify required params are set.
  if (region == null) {
   throw ApiException(HttpStatus.badRequest, 'Missing required param: region');
  }

  // ignore: prefer_const_declarations
  final path = r'/{region}/aim/2.0/admin/schema/UpdateSchema'
    .replaceAll('{region}', region);

  // ignore: prefer_final_locals
  Object postBody;

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

  const authNames = <String>['oauth2'];
  const contentTypes = <String>[];


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