updateSolFunctionPackage method

Future<UpdateSolFunctionPackageOutput> updateSolFunctionPackage({
  1. required OperationalState operationalState,
  2. required String vnfPkgId,
})

Updates the operational state of function package.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter operationalState : Operational state of the function package.

Parameter vnfPkgId : ID of the function package.

Implementation

Future<UpdateSolFunctionPackageOutput> updateSolFunctionPackage({
  required OperationalState operationalState,
  required String vnfPkgId,
}) async {
  final $payload = <String, dynamic>{
    'operationalState': operationalState.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri:
        '/sol/vnfpkgm/v1/vnf_packages/${Uri.encodeComponent(vnfPkgId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateSolFunctionPackageOutput.fromJson(response);
}