publishConnectionFunction method

Future<PublishConnectionFunctionResult> publishConnectionFunction({
  1. required String id,
  2. required String ifMatch,
})

Publishes a connection function.

May throw AccessDenied. May throw EntityNotFound. May throw InvalidArgument. May throw InvalidIfMatchVersion. May throw PreconditionFailed. May throw UnsupportedOperation.

Parameter id : The connection function ID.

Parameter ifMatch : The current version (ETag value) of the connection function.

Implementation

Future<PublishConnectionFunctionResult> publishConnectionFunction({
  required String id,
  required String ifMatch,
}) async {
  final headers = <String, String>{
    'If-Match': ifMatch.toString(),
  };
  final $result = await _protocol.sendRaw(
    method: 'POST',
    requestUri:
        '/2020-05-31/connection-function/${Uri.encodeComponent(id)}/publish',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return PublishConnectionFunctionResult(
    connectionFunctionSummary: ConnectionFunctionSummary.fromXml($elem),
  );
}