updatePackagingGroup method
Future<UpdatePackagingGroupResponse>
updatePackagingGroup({
- required String id,
- Authorization? authorization,
Updates a specific packaging group. You can't change the id attribute or any other system-generated attributes.
May throw UnprocessableEntityException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.
Parameter id
:
The ID of a MediaPackage VOD PackagingGroup resource.
Implementation
Future<UpdatePackagingGroupResponse> updatePackagingGroup({
required String id,
Authorization? authorization,
}) async {
ArgumentError.checkNotNull(id, 'id');
final $payload = <String, dynamic>{
if (authorization != null) 'authorization': authorization,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/packaging_groups/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
return UpdatePackagingGroupResponse.fromJson(response);
}