The Honeycomb instance to use for the operation.
The arguments required to create the operation.
An object containing the operation.
const honeycomb = new Honeycomb(connection);
const project = new HoneycombProject(projectPublicKey, honeycomb);
honeycomb.use(project)
// Define the AddRemoveService arguments.
const args = {
service: { __kind: 'Assembler', assemblerId }
remove: false, // Set to true to remove the service instead of adding it.
};
// Create AddRemoveService operation.
const operationArgs = {
args: args,
project: project,
};
const { operation } = await createAddRemoveServiceOperation(honeycomb, operationArgs);
operation.send(); // The generated AddRemoveService operation.
Generated using TypeDoc
This function creates an AddRemoveService operation using the specified Honeycomb instance and the provided arguments. The operation is used to add or remove a service in a HoneycombProject. The service is represented by a
Service
object with a name and an optional URL.