/// <summary>
 /// Updates the package version for the given release to the latest available.
 /// </summary>
 /// <remarks>
 /// Required permissions: Processes.Edit.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 public static ODataResponseInt64 UpdateToLatestPackageVersionById(this IReleases operations, long id)
 {
     return(operations.UpdateToLatestPackageVersionByIdAsync(id).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Updates the package version for the given release to the latest available.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Write.
 ///
 /// Required permissions: Processes.Edit.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 public static ODataValueInt64 UpdateToLatestPackageVersionById(this IReleases operations, long id, long?xUIPATHOrganizationUnitId = default(long?))
 {
     return(operations.UpdateToLatestPackageVersionByIdAsync(id, xUIPATHOrganizationUnitId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Updates the package version for the given release to the latest available.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Write.
 ///
 /// Required permissions: Processes.Edit.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 /// <param name='expand'>
 /// Indicates the related entities to be represented inline. The maximum depth
 /// is 2.
 /// </param>
 /// <param name='select'>
 /// Limits the properties returned in the result.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 public static ODataValueOfInt64 UpdateToLatestPackageVersionById(this IReleases operations, long key, string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?))
 {
     return(operations.UpdateToLatestPackageVersionByIdAsync(key, expand, select, xUIPATHOrganizationUnitId).GetAwaiter().GetResult());
 }