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 ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
May throw UnprocessableEntityException.
Parameter id :
The ID of a MediaPackage VOD PackagingGroup resource.
Implementation
Future<UpdatePackagingGroupResponse> updatePackagingGroup({
required String id,
Authorization? authorization,
}) async {
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);
}