createBundle method
inherited
Creates a new bundle item.
parentPath is the space path where the bundle will be created.
bundleName is the name of the bundle.
metadata is optional key-value pairs to attach.
Returns an ItemResponse with kind='bundle'.
Implementation
Future<ItemResponse> createBundle(
String parentPath,
String bundleName, {
Map<String, String>? metadata,
}) async {
final request = CreateBundleRequest()
..parentPath = parentPath
..bundleName = bundleName;
if (metadata != null) {
request.metadata.addAll(metadata);
}
return stub.createBundle(request, options: callOptions);
}