コード例 #1
0
 /// <summary>
 /// Gets a release.
 /// </summary>
 /// <remarks>
 /// Required permissions: Processes.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline.
 /// </param>
 /// <param name='select'>
 /// Selects which properties to include in the response.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ReleaseDto> GetByIdAsync(this IReleases operations, long id, string expand = default(string), string select = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetByIdWithHttpMessagesAsync(id, expand, select, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets multiple releases.
 /// </summary>
 /// <remarks>
 /// Required permissions: Processes.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline.
 /// </param>
 /// <param name='filter'>
 /// Filters the results, based on a Boolean condition.
 /// </param>
 /// <param name='select'>
 /// Selects which properties to include in the response.
 /// </param>
 /// <param name='orderby'>
 /// Sorts the results.
 /// </param>
 /// <param name='top'>
 /// Returns only the first n results.
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results.
 /// </param>
 /// <param name='count'>
 /// Includes a count of the matching results in the response.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataResponseListReleaseDto> GetReleasesAsync(this IReleases operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetReleasesWithHttpMessagesAsync(expand, filter, select, orderby, top, skip, count, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
 /// <summary>
 /// Return basic information about distributed releases in a given distribution
 /// group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='distributionGroupName'>
 /// The name of the distribution group.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> ListByDistributionGroupAsync(this IReleases operations, string distributionGroupName, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByDistributionGroupWithHttpMessagesAsync(distributionGroupName, ownerName, appName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #4
0
 /// <summary>
 /// Creates a new release.
 /// </summary>
 /// <remarks>
 /// Required permissions: Processes.Create.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='releaseDto'>
 /// The entity to post
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ReleaseDto> PostAsync(this IReleases operations, ReleaseDto releaseDto, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PostWithHttpMessagesAsync(releaseDto, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #5
0
 /// <summary>
 /// Return a list of releases for a app a tester has access to.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <TesterAppRelease> > ListTesterAsync(this IReleases operations, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListTesterWithHttpMessagesAsync(ownerName, appName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #6
0
 /// <summary>
 /// Deletes a release with id 'release_id' in a given distribution group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the app owner
 /// </param>
 /// <param name='appName'>
 /// The name of the app
 /// </param>
 /// <param name='distributionGroupName'>
 /// The name of the distribution group.
 /// </param>
 /// <param name='releaseId'>
 /// The ID identifying the unique release.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ErrorDetails> DeleteWithDistributionGroupIdAsync(this IReleases operations, string ownerName, string appName, string distributionGroupName, int releaseId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteWithDistributionGroupIdWithHttpMessagesAsync(ownerName, appName, distributionGroupName, releaseId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #7
0
 /// <summary>
 /// Updates a release.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='releaseId'>
 /// The ID of the release
 /// </param>
 /// <param name='body'>
 /// The release information.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> UpdateAsync(this IReleases operations, int releaseId, ReleaseUpdateRequest body, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(releaseId, body, ownerName, appName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #8
0
 /// <summary>
 /// Gets multiple releases.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Read.
 ///
 /// Required permissions: Processes.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline.
 /// </param>
 /// <param name='filter'>
 /// Filters the results, based on a Boolean condition.
 /// </param>
 /// <param name='select'>
 /// Selects which properties to include in the response.
 /// </param>
 /// <param name='orderby'>
 /// Sorts the results.
 /// </param>
 /// <param name='top'>
 /// Returns only the first n results.
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results.
 /// </param>
 /// <param name='count'>
 /// Includes a count of the matching results in the response.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataValueIEnumerableReleaseDto> GetAsync(this IReleases operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(expand, filter, select, orderby, top, skip, count, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #9
0
 /// <summary>
 /// Returns the manifest.plist in XML format for installing the release on a
 /// device. Only available for iOS.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appId'>
 /// The ID of the application
 /// </param>
 /// <param name='releaseId'>
 /// The release_id
 /// </param>
 /// <param name='token'>
 /// A hash that authorizes the download if it matches the release info.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ErrorDetails> GetIosManifestAsync(this IReleases operations, string appId, int releaseId, string token, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetIosManifestWithHttpMessagesAsync(appId, releaseId, token, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #10
0
 /// <summary>
 /// Get a release with id `release_id`. If `release_id` is `latest`, return the
 /// latest release that was distributed to the current user (from all the
 /// distribution groups).
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='releaseId'>
 /// The ID of the release, or `latest` to get the latest release from all the
 /// distribution groups assigned to the current user.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='udid'>
 /// when supplied, this call will also check if the given UDID is provisioned.
 /// Will be ignored for non-iOS platforms. The value will be returned in the
 /// property is_udid_provisioned.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetLatestByUserAsync(this IReleases operations, string releaseId, string ownerName, string appName, string udid = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetLatestByUserWithHttpMessagesAsync(releaseId, ownerName, appName, udid, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #11
0
 /// <summary>
 /// Get a release with 'latest' for the given public group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appSecret'>
 /// The secret of the target application
 /// </param>
 /// <param name='distributionGroupId'>
 /// the id for destination
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetLatestByPublicDistributionGroupAsync(this IReleases operations, string appSecret, string distributionGroupId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetLatestByPublicDistributionGroupWithHttpMessagesAsync(appSecret, distributionGroupId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #12
0
 /// <summary>
 /// Get a release with hash 'release_hash' or the 'latest' from all the
 /// distribution groups assigned to the current user.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appSecret'>
 /// The secret of the target application
 /// </param>
 /// <param name='releaseHash'>
 /// The hash of the release or 'latest' to get the latest release from all the
 /// distribution groups assigned to the current user.
 /// </param>
 /// <param name='udid'>
 /// When passing `udid` in the query string, a provisioning check for the given
 /// device ID will be done. Will be ignored for non-iOS platforms.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetLatestByHashAsync(this IReleases operations, string appSecret, string releaseHash, string udid = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetLatestByHashWithHttpMessagesAsync(appSecret, releaseHash, udid, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #13
0
 /// <summary>
 /// Edits a release.
 /// </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='body'>
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ReleaseDto> PutByIdAsync(this IReleases operations, long key, ReleaseDto body = default(ReleaseDto), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PutByIdWithHttpMessagesAsync(key, body, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #14
0
 /// <summary>
 /// Gets a release.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Read.
 ///
 /// Required permissions: Processes.View.
 /// </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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ReleaseDto> GetByIdAsync(this IReleases operations, long key, string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetByIdWithHttpMessagesAsync(key, expand, select, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #15
0
 /// <summary>
 /// Return basic information about releases.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='publishedOnly'>
 /// when *true*, filters out releases that were uploaded but were never
 /// distributed. Releases that under deleted distribution groups will not be
 /// filtered out.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <BasicReleaseDetailsResponse> > ListAsync(this IReleases operations, string ownerName, string appName, bool?publishedOnly = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(ownerName, appName, publishedOnly, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #16
0
 /// <summary>
 /// Edits a release.
 /// </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='releaseDto'>
 /// The entity to put
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ReleaseDto> PutByIdAsync(this IReleases operations, long id, ReleaseDto releaseDto, long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PutByIdWithHttpMessagesAsync(id, releaseDto, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #17
0
 /// <summary>
 /// Gets multiple releases.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Read.
 ///
 /// Required permissions: Processes.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='mandatoryPermissions'>
 /// If in a cross-folder scenario, these represent the additional permissions
 /// required in the folders the data is retrieved from; all permissions in this
 /// set must be met
 /// </param>
 /// <param name='atLeastOnePermissions'>
 /// If in a cross-folder scenario, these represent the additional permissions
 /// required in the folders the data is retrieved from; at least one permission
 /// in this set must be met
 /// </param>
 /// <param name='expand'>
 /// Indicates the related entities to be represented inline. The maximum depth
 /// is 2.
 /// </param>
 /// <param name='filter'>
 /// Restricts the set of items returned. The maximum number of expressions is
 /// 100.
 /// </param>
 /// <param name='select'>
 /// Limits the properties returned in the result.
 /// </param>
 /// <param name='orderby'>
 /// Specifies the order in which items are returned. The maximum number of
 /// expressions is 5.
 /// </param>
 /// <param name='top'>
 /// Limits the number of items returned from a collection. The maximum value is
 /// 1000.
 /// </param>
 /// <param name='skip'>
 /// Excludes the specified number of items of the queried collection from the
 /// result.
 /// </param>
 /// <param name='count'>
 /// Indicates whether the total count of items within a collection are returned
 /// in the result.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataValueOfIEnumerableOfReleaseDto> GetAsync(this IReleases operations, IList <string> mandatoryPermissions = default(IList <string>), IList <string> atLeastOnePermissions = default(IList <string>), string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(mandatoryPermissions, atLeastOnePermissions, expand, filter, select, orderby, top, skip, count, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #18
0
 public ReleasesController(
     IReleases api,
     IAppSettings appSettings,
     ILogger <ReleasesController> logger) : base()
 {
     this.api         = api;
     this.appSettings = appSettings;
     this.logger      = logger;
 }
コード例 #19
0
        public void Setup()
        {
            client = new Mock <IProxy>();

            request          = new Mock <BaseRequest>(new Mock <IProxy>().Object);
            request.CallBase = true;

            // Create proxy instance
            releasesProxy = new AxosoftAPI.NET.Releases(client.Object);
            releasesProxy = new AxosoftAPI.NET.Releases(request.Object);
        }
コード例 #20
0
 /// <summary>
 /// Reverts the package versions for the given release to the last version it
 /// had before the current one.
 /// </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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataValueInt64> RollbackToPreviousReleaseVersionByIdAsync(this IReleases operations, long id, long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.RollbackToPreviousReleaseVersionByIdWithHttpMessagesAsync(id, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #21
0
 /// <summary>
 /// Deletes a release.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Write.
 ///
 /// Required permissions: Processes.Delete.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 /// <param name='ifMatch'>
 /// If-Match header
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 public static void DeleteById(this IReleases operations, long id, string ifMatch = default(string), long?xUIPATHOrganizationUnitId = default(long?))
 {
     operations.DeleteByIdAsync(id, ifMatch, xUIPATHOrganizationUnitId).GetAwaiter().GetResult();
 }
コード例 #22
0
 /// <summary>
 /// Updates the package versions for the given releases 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='updateToLatestBulk'>
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <BulkOperationResponseDtoInt64> UpdateToLatestPackageVersionBulkAsync(this IReleases operations, UpdateToLatestBulk updateToLatestBulk, long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.UpdateToLatestPackageVersionBulkWithHttpMessagesAsync(updateToLatestBulk, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #23
0
 /// <summary>
 /// Reverts the package versions for the given release to the last version it
 /// had before the current one.
 /// </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 RollbackToPreviousReleaseVersionById(this IReleases operations, long id, long?xUIPATHOrganizationUnitId = default(long?))
 {
     return(operations.RollbackToPreviousReleaseVersionByIdAsync(id, xUIPATHOrganizationUnitId).GetAwaiter().GetResult());
 }
コード例 #24
0
 /// <summary>
 /// Updates the package versions for the given releases 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='updateToLatestBulk'>
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 public static BulkOperationResponseDtoInt64 UpdateToLatestPackageVersionBulk(this IReleases operations, UpdateToLatestBulk updateToLatestBulk, long?xUIPATHOrganizationUnitId = default(long?))
 {
     return(operations.UpdateToLatestPackageVersionBulkAsync(updateToLatestBulk, xUIPATHOrganizationUnitId).GetAwaiter().GetResult());
 }
コード例 #25
0
 /// <summary>
 /// Gets multiple releases.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Read.
 ///
 /// Required permissions: Processes.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline.
 /// </param>
 /// <param name='filter'>
 /// Filters the results, based on a Boolean condition.
 /// </param>
 /// <param name='select'>
 /// Selects which properties to include in the response.
 /// </param>
 /// <param name='orderby'>
 /// Sorts the results.
 /// </param>
 /// <param name='top'>
 /// Returns only the first n results.
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results.
 /// </param>
 /// <param name='count'>
 /// Includes a count of the matching results in the response.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 public static ODataValueIEnumerableReleaseDto Get(this IReleases operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), long?xUIPATHOrganizationUnitId = default(long?))
 {
     return(operations.GetAsync(expand, filter, select, orderby, top, skip, count, xUIPATHOrganizationUnitId).GetAwaiter().GetResult());
 }
コード例 #26
0
 /// <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());
 }
コード例 #27
0
 /// <summary>
 /// Updates the package version for the given release.
 /// </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='specificPackageParameters'>
 /// PackageVersion - The new package version.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataValueInt64> UpdateToSpecificPackageVersionByIdAsync(this IReleases operations, long id, SpecificPackageParameters specificPackageParameters = default(SpecificPackageParameters), long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.UpdateToSpecificPackageVersionByIdWithHttpMessagesAsync(id, specificPackageParameters, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #28
0
 /// <summary>
 /// Updates the package version for the given release.
 /// </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='specificPackageParameters'>
 /// PackageVersion - The new package version.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 public static ODataValueInt64 UpdateToSpecificPackageVersionById(this IReleases operations, long id, SpecificPackageParameters specificPackageParameters = default(SpecificPackageParameters), long?xUIPATHOrganizationUnitId = default(long?))
 {
     return(operations.UpdateToSpecificPackageVersionByIdAsync(id, specificPackageParameters, xUIPATHOrganizationUnitId).GetAwaiter().GetResult());
 }
コード例 #29
0
 /// <summary>
 /// Partially updates a release.
 /// </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='releaseDto'>
 /// The entity to patch
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task PatchByIdAsync(this IReleases operations, long id, ReleaseDto releaseDto, long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.PatchByIdWithHttpMessagesAsync(id, releaseDto, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #30
0
 /// <summary>
 /// Partially updates a release.
 /// </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='releaseDto'>
 /// The entity to patch
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 public static void PatchById(this IReleases operations, long id, ReleaseDto releaseDto, long?xUIPATHOrganizationUnitId = default(long?))
 {
     operations.PatchByIdAsync(id, releaseDto, xUIPATHOrganizationUnitId).GetAwaiter().GetResult();
 }