createWave method

Future<Wave> createWave({
  1. required String name,
  2. String? accountID,
  3. String? description,
  4. Map<String, String>? tags,
})

Create wave.

May throw ConflictException. May throw ServiceQuotaExceededException. May throw UninitializedAccountException.

Parameter name : Wave name.

Parameter accountID : Account ID.

Parameter description : Wave description.

Parameter tags : Wave tags.

Implementation

Future<Wave> createWave({
  required String name,
  String? accountID,
  String? description,
  Map<String, String>? tags,
}) async {
  final $payload = <String, dynamic>{
    'name': name,
    if (accountID != null) 'accountID': accountID,
    if (description != null) 'description': description,
    if (tags != null) 'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/CreateWave',
    exceptionFnMap: _exceptionFns,
  );
  return Wave.fromJson(response);
}