示例#1
0
        /// <summary>
        /// Creates or updates an event listener
        /// </summary>
        /// <returns>EventListener_Id</returns>
        public async Task <int> EventListeners_CreateOrUpdateEventListenerAsync(
            string eventListener_Description,
            string eventListener_Configuration,
            string owner_User_Name,
            bool active_Indicator,
            string eventCodeList_Csv,
            string applicationIdList_Csv,
            string applicationGroupIdList_Csv,
            string pipelineStageNameList_Csv,
            int eventListener_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(eventListener_Description).Capitalize(), eventListener_Description),
                new NamedValue(nameof(eventListener_Configuration).Capitalize(), eventListener_Configuration),
                new NamedValue(nameof(owner_User_Name).Capitalize(), owner_User_Name),
                new NamedValue(nameof(active_Indicator).Capitalize(), active_Indicator.ToYnIndicator()),
                new NamedValue(nameof(eventCodeList_Csv).Capitalize(), eventCodeList_Csv),
                new NamedValue(nameof(applicationIdList_Csv).Capitalize(), applicationIdList_Csv),
                new NamedValue(nameof(applicationGroupIdList_Csv).Capitalize(), applicationGroupIdList_Csv),
                new NamedValue(nameof(pipelineStageNameList_Csv).Capitalize(), pipelineStageNameList_Csv),
                new NamedValue(nameof(eventListener_Id).Capitalize(), eventListener_Id)
                );

            return(await ExecuteNativeApiMethodAsync <int>(nameof(EventListeners_CreateOrUpdateEventListenerAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
        /// <summary>
        /// Creates a URL-triggered build based on the specified parameters, or updates an existing schedule if one with the given ID already exists
        /// </summary>
        /// <returns>Schedule_Id</returns>
        public async Task <int> BuildSchedules_CreateOrUpdateURLTriggeredAsync(
            int schedule_Id,
            string schedule_Name,
            int application_Id,
            string url_AllowedIP_CSV,
            string url_Username_Text,
            string url_Password_Text,
            string releaseFilter_ReleaseType_Code,
            int releaseFilter_Pipeline_Id,
            string buildImporter_Configuration,
            bool active_Indicator)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(schedule_Id).Capitalize(), schedule_Id),
                new NamedValue(nameof(schedule_Name).Capitalize(), schedule_Name),
                new NamedValue(nameof(application_Id).Capitalize(), application_Id),
                new NamedValue(nameof(url_AllowedIP_CSV).Capitalize(), url_AllowedIP_CSV),
                new NamedValue(nameof(url_Username_Text).Capitalize(), url_Username_Text),
                new NamedValue(nameof(url_Password_Text).Capitalize(), url_Password_Text),
                new NamedValue(nameof(releaseFilter_ReleaseType_Code).Capitalize(), releaseFilter_ReleaseType_Code),
                new NamedValue(nameof(releaseFilter_Pipeline_Id).Capitalize(), releaseFilter_Pipeline_Id),
                new NamedValue(nameof(buildImporter_Configuration).Capitalize(), buildImporter_Configuration),
                new NamedValue(nameof(active_Indicator).Capitalize(), active_Indicator.ToYnIndicator())
                );

            return(await ExecuteNativeApiMethodAsync <int>(nameof(BuildSchedules_CreateOrUpdateURLTriggeredAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#3
0
        public async Task <PackageDownload> UniversalFeed_DownloadPackageLatestVersionAsync(string feedName, string groupName, string packageName, ContentOnlyTypes?contentOnly = null)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(contentOnly), contentOnly),
                new NamedValue("latest")
                );

            string path = groupName == null
                ? $"{feedName}/download/{packageName}"
                : $"{feedName}/download/{groupName}/{packageName}";

            var response = await GetUniversalFeedApiClient(path, queryParamValues)
                           .GetAsync();

            if (!response.IsSuccessStatusCode)
            {
                return(null);
            }

            return(new PackageDownload
            {
                FileName = response.Content.Headers.ContentDisposition.FileName,
                Bytes = await response.Content.ReadAsByteArrayAsync()
            });
        }
        /// <summary>
        /// Grants or denies the specified principal the ability to perform a certain role
        /// </summary>
        /// <returns>Privilege_Id</returns>
        public async Task <int> Security_AddPrivilegeAsync(
            int privilege_Id,
            int userDirectory_Id,
            string principal_Name,
            string principalType_Code,
            int role_Id,
            int applicationGroup_Id,
            int application_Id,
            int environment_Id,
            string privilegeType_Code)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(privilege_Id).Capitalize(), privilege_Id),
                new NamedValue(nameof(userDirectory_Id).Capitalize(), userDirectory_Id),
                new NamedValue(nameof(principal_Name).Capitalize(), principal_Name),
                new NamedValue(nameof(principalType_Code).Capitalize(), principalType_Code),
                new NamedValue(nameof(role_Id).Capitalize(), role_Id),
                new NamedValue(nameof(applicationGroup_Id).Capitalize(), applicationGroup_Id),
                new NamedValue(nameof(application_Id).Capitalize(), application_Id),
                new NamedValue(nameof(environment_Id).Capitalize(), environment_Id),
                new NamedValue(nameof(privilegeType_Code).Capitalize(), privilegeType_Code)
                );

            return(await ExecuteNativeApiMethodAsync <int>(nameof(Security_AddPrivilegeAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
        /// <summary>
        /// Creates a source control triggered automated build based on the specified parameters, or updates an existing one if one with a given ID already exists
        /// </summary>
        /// <returns>Schedule_Id</returns>
        public async Task <int> BuildSchedules_CreateOrUpdateSCMTriggeredAsync(
            int schedule_Id,
            string schedule_Name,
            int application_Id,
            string sourceControl_Path_Name,
            int sourceControl_Provider_Id,
            int sourceControl_QuietPeriod_Minutes,
            string releaseFilter_ReleaseType_Code,
            int releaseFilter_Pipeline_Id,
            bool active_Indicator)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(schedule_Id).Capitalize(), schedule_Id),
                new NamedValue(nameof(schedule_Name).Capitalize(), schedule_Name),
                new NamedValue(nameof(application_Id).Capitalize(), application_Id),
                new NamedValue(nameof(sourceControl_Path_Name).Capitalize(), sourceControl_Path_Name),
                new NamedValue(nameof(sourceControl_Provider_Id).Capitalize(), sourceControl_Provider_Id),
                new NamedValue(nameof(sourceControl_QuietPeriod_Minutes).Capitalize(), sourceControl_QuietPeriod_Minutes),
                new NamedValue(nameof(releaseFilter_ReleaseType_Code).Capitalize(), releaseFilter_ReleaseType_Code),
                new NamedValue(nameof(releaseFilter_Pipeline_Id).Capitalize(), releaseFilter_Pipeline_Id),
                new NamedValue(nameof(active_Indicator).Capitalize(), active_Indicator.ToYnIndicator())
                );

            return(await ExecuteNativeApiMethodAsync <int>(nameof(BuildSchedules_CreateOrUpdateSCMTriggeredAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#6
0
        /// <summary>
        /// Creates an issue for a release of an application
        /// </summary>
        /// <returns>Issue_Id</returns>
        public async Task <int> Issues_CreateIssueAsync(
            int application_Id,
            string release_Number,
            string type_Text,
            string title_Text,
            string description_Text,
            bool closed_Indicator,
            string build_Number,
            string createdBy_User_Name,
            DateTime createdOn_Date,
            string issueTracker_IssueId_Text,
            string issueTracker_IssueStatus_Text,
            DateTime issueTracker_LastSync_Date,
            string issueTracker_IssueUrl_Text,
            int issue_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(application_Id).Capitalize(), application_Id),
                new NamedValue(nameof(release_Number).Capitalize(), release_Number),
                new NamedValue(nameof(type_Text).Capitalize(), type_Text),
                new NamedValue(nameof(title_Text).Capitalize(), title_Text),
                new NamedValue(nameof(description_Text).Capitalize(), description_Text),
                new NamedValue(nameof(closed_Indicator).Capitalize(), closed_Indicator.ToYnIndicator()),
                new NamedValue(nameof(build_Number).Capitalize(), build_Number),
                new NamedValue(nameof(createdBy_User_Name).Capitalize(), createdBy_User_Name),
                new NamedValue(nameof(createdOn_Date).Capitalize(), createdOn_Date),
                new NamedValue(nameof(issueTracker_IssueId_Text).Capitalize(), issueTracker_IssueId_Text),
                new NamedValue(nameof(issueTracker_IssueStatus_Text).Capitalize(), issueTracker_IssueStatus_Text),
                new NamedValue(nameof(issueTracker_LastSync_Date).Capitalize(), issueTracker_LastSync_Date),
                new NamedValue(nameof(issueTracker_IssueUrl_Text).Capitalize(), issueTracker_IssueUrl_Text),
                new NamedValue(nameof(issue_Id).Capitalize(), issue_Id)
                );

            return(await ExecuteNativeApiMethodAsync <int>(nameof(Issues_CreateIssueAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
        /// <summary>
        /// Gets the messages from the error log that match the specified criteria
        /// </summary>
        public async Task <IEnumerable <LogMessageExtended> > LogMessages_GetMessagesAsync(
            int?row_Count        = null,
            int?message_Level    = null,
            string category_Name = null,
            int?application_Id   = null,
            int?schedule_Id      = null,
            int?requirement_Id   = null,
            int?provider_Id      = null,
            int?eventListener_Id = null,
            int?server_Id        = null)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(row_Count).Capitalize(), row_Count),
                new NamedValue(nameof(message_Level).Capitalize(), message_Level),
                new NamedValue(nameof(category_Name).Capitalize(), category_Name),
                new NamedValue(nameof(application_Id).Capitalize(), application_Id),
                new NamedValue(nameof(schedule_Id).Capitalize(), schedule_Id),
                new NamedValue(nameof(requirement_Id).Capitalize(), requirement_Id),
                new NamedValue(nameof(provider_Id).Capitalize(), provider_Id),
                new NamedValue(nameof(eventListener_Id).Capitalize(), eventListener_Id),
                new NamedValue(nameof(server_Id).Capitalize(), server_Id)
                );

            return(await ExecuteNativeApiMethodAsync <IEnumerable <LogMessageExtended> >(nameof(LogMessages_GetMessagesAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#8
0
        /// <summary>
        /// Creates a new npm package or updates an existing one
        /// </summary>
        public async Task <bool> NpmPackages_CreateOrUpdatePackageAsync(
            int feed_Id,
            string package_Name,
            string scope_Name,
            string version_Text,
            byte[] packageJson_Bytes,
            DateTime published_Date,
            string tag_Name,
            byte[] packageHash_Bytes,
            bool cached_Indicator,
            long package_Size)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(feed_Id).Capitalize(), feed_Id),
                new NamedValue(nameof(package_Name).Capitalize(), package_Name),
                new NamedValue(nameof(scope_Name).Capitalize(), scope_Name),
                new NamedValue(nameof(version_Text).Capitalize(), version_Text),
                new NamedValue(nameof(packageJson_Bytes).Capitalize(), packageJson_Bytes),
                new NamedValue(nameof(published_Date).Capitalize(), published_Date.ToJsonDateTime()),
                new NamedValue(nameof(tag_Name).Capitalize(), tag_Name),
                new NamedValue(nameof(packageHash_Bytes).Capitalize(), packageHash_Bytes),
                new NamedValue(nameof(cached_Indicator).Capitalize(), cached_Indicator.ToYnIndicator()),
                new NamedValue(nameof(package_Size).Capitalize(), package_Size)
                );

            return(await ExecuteNativeApiMethodAsync(nameof(NpmPackages_CreateOrUpdatePackageAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#9
0
        /// <summary>
        /// Creates a new feed retention rule or updates an existing one
        /// </summary>
        /// <returns>Sequence_Number</returns>
        public async Task <int> FeedRetentionRules_CreateOrUpdateRuleAsync(
            int feed_Id,
            bool deletePrereleaseVersions_Indicator,
            bool deleteCached_Indicator,
            int keepVersions_Count,
            int keepUsedWithin_Days,
            string deletePackageIds_Csv,
            string keepPackageIds_Csv,
            long sizeTrigger_KBytes,
            bool sizeExclusive_Indicator,
            int sequence_Number)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(feed_Id).Capitalize(), feed_Id),
                new NamedValue(nameof(deletePrereleaseVersions_Indicator).Capitalize(), deletePrereleaseVersions_Indicator.ToYnIndicator()),
                new NamedValue(nameof(deleteCached_Indicator).Capitalize(), deleteCached_Indicator.ToYnIndicator()),
                new NamedValue(nameof(keepVersions_Count).Capitalize(), keepVersions_Count),
                new NamedValue(nameof(keepUsedWithin_Days).Capitalize(), keepUsedWithin_Days),
                new NamedValue(nameof(deletePackageIds_Csv).Capitalize(), deletePackageIds_Csv),
                new NamedValue(nameof(keepPackageIds_Csv).Capitalize(), keepPackageIds_Csv),
                new NamedValue(nameof(sizeTrigger_KBytes).Capitalize(), sizeTrigger_KBytes),
                new NamedValue(nameof(sizeExclusive_Indicator).Capitalize(), sizeExclusive_Indicator.ToYnIndicator()),
                new NamedValue(nameof(sequence_Number).Capitalize(), sequence_Number)
                );

            return(await ExecuteNativeApiMethodAsync <int>(nameof(FeedRetentionRules_CreateOrUpdateRuleAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#10
0
        /// <summary>
        /// Adds an approval for a promotion
        /// </summary>
        /// <returns>Approval_Id</returns>
        public async Task <int> Promotions_AddApprovalAsync(
            int application_Id,
            string release_Number,
            string build_Number,
            string pipelineStage_Name,
            int requirement_Id,
            string requirementType_Code,
            string user_Name,
            string requirement_Description,
            string comments_Text,
            int approval_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(application_Id).Capitalize(), application_Id),
                new NamedValue(nameof(release_Number).Capitalize(), release_Number),
                new NamedValue(nameof(build_Number).Capitalize(), build_Number),
                new NamedValue(nameof(pipelineStage_Name).Capitalize(), pipelineStage_Name),
                new NamedValue(nameof(requirement_Id).Capitalize(), requirement_Id),
                new NamedValue(nameof(requirementType_Code).Capitalize(), requirementType_Code),
                new NamedValue(nameof(user_Name).Capitalize(), user_Name),
                new NamedValue(nameof(requirement_Description).Capitalize(), requirement_Description),
                new NamedValue(nameof(comments_Text).Capitalize(), comments_Text),
                new NamedValue(nameof(approval_Id).Capitalize(), approval_Id)
                );

            return(await ExecuteNativeApiMethodAsync <int>(nameof(Promotions_AddApprovalAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#11
0
        /// <summary>
        /// Creates an action in the specified action group or updates an existing one
        /// </summary>
        /// <returns>Action_Sequence</returns>
        public async Task <int> Plans_CreateOrUpdateActionAsync(
            int actionGroup_Id,
            int action_Sequence,
            int server_Id,
            string server_Variable_Name,
            string long_Description,
            bool resumeNextOnFailure_Indicator,
            string action_Configuration,
            string short_Description,
            bool active_Indicator,
            int retry_Count,
            bool logFailureAsWarning_Indicator,
            int target_Server_Id,
            string target_Server_Variable_Name,
            int extensionConfiguration_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(actionGroup_Id).Capitalize(), actionGroup_Id),
                new NamedValue(nameof(action_Sequence).Capitalize(), action_Sequence),
                new NamedValue(nameof(server_Id).Capitalize(), server_Id),
                new NamedValue(nameof(server_Variable_Name).Capitalize(), server_Variable_Name),
                new NamedValue(nameof(long_Description).Capitalize(), long_Description),
                new NamedValue(nameof(resumeNextOnFailure_Indicator).Capitalize(), resumeNextOnFailure_Indicator.ToYnIndicator()),
                new NamedValue(nameof(action_Configuration).Capitalize(), action_Configuration),
                new NamedValue(nameof(short_Description).Capitalize(), short_Description),
                new NamedValue(nameof(active_Indicator).Capitalize(), active_Indicator.ToYnIndicator()),
                new NamedValue(nameof(retry_Count).Capitalize(), retry_Count),
                new NamedValue(nameof(logFailureAsWarning_Indicator).Capitalize(), logFailureAsWarning_Indicator.ToYnIndicator()),
                new NamedValue(nameof(target_Server_Id).Capitalize(), target_Server_Id),
                new NamedValue(nameof(target_Server_Variable_Name).Capitalize(), target_Server_Variable_Name),
                new NamedValue(nameof(extensionConfiguration_Id).Capitalize(), extensionConfiguration_Id)
                );

            return(await ExecuteNativeApiMethodAsync <int>(nameof(Plans_CreateOrUpdateActionAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#12
0
        /// <summary>
        /// Creates a new change control, or updates an existing one
        /// </summary>
        /// <returns>ChangeControl_Id</returns>
        public async Task <int> ChangeControls_CreateOrUpdateChangeControlAsync(
            int changeControl_Id,
            string changeControl_Name,
            int application_Id,
            string release_Number,
            string group_Name,
            string description_Text,
            string principal_Name,
            string principalType_Code,
            string performanceType_Code,
            bool active_Indicator,
            string environments_Csv)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(changeControl_Id).Capitalize(), changeControl_Id),
                new NamedValue(nameof(changeControl_Name).Capitalize(), changeControl_Name),
                new NamedValue(nameof(application_Id).Capitalize(), application_Id),
                new NamedValue(nameof(release_Number).Capitalize(), release_Number),
                new NamedValue(nameof(group_Name).Capitalize(), group_Name),
                new NamedValue(nameof(description_Text).Capitalize(), description_Text),
                new NamedValue(nameof(principal_Name).Capitalize(), principal_Name),
                new NamedValue(nameof(principalType_Code).Capitalize(), principalType_Code),
                new NamedValue(nameof(performanceType_Code).Capitalize(), performanceType_Code),
                new NamedValue(nameof(active_Indicator).Capitalize(), active_Indicator.ToYnIndicator()),
                new NamedValue(nameof(environments_Csv).Capitalize(), environments_Csv)
                );

            return(await ExecuteNativeApiMethodAsync <int>(nameof(ChangeControls_CreateOrUpdateChangeControlAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#13
0
        /// <summary>
        /// Creates a new NuGet feed or updates an existing one
        /// </summary>
        /// <returns>Feed_Id</returns>
        public async Task <int> Feeds_CreateOrUpdateNuGetFeedAsync(
            int feed_Id,
            string feed_Name,
            string feed_Description,
            bool active_Indicator,
            bool cache_Connectors_Indicator,
            string feedPathOverride_Text,
            string aPIKey_Text,
            bool symbolServerEnabled_Indicator,
            string packageStoreConfiguration_Xml,
            string feedType_Name,
            bool stripSymbolFiles_Indicator,
            string dropPath_Text)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(feed_Id).Capitalize(), feed_Id),
                new NamedValue(nameof(feed_Name).Capitalize(), feed_Name),
                new NamedValue(nameof(feed_Description).Capitalize(), feed_Description),
                new NamedValue(nameof(active_Indicator).Capitalize(), active_Indicator.ToYnIndicator()),
                new NamedValue(nameof(cache_Connectors_Indicator).Capitalize(), cache_Connectors_Indicator.ToYnIndicator()),
                new NamedValue(nameof(feedPathOverride_Text).Capitalize(), feedPathOverride_Text),
                new NamedValue(nameof(aPIKey_Text).Capitalize(), aPIKey_Text),
                new NamedValue(nameof(symbolServerEnabled_Indicator).Capitalize(), symbolServerEnabled_Indicator.ToYnIndicator()),
                new NamedValue(nameof(packageStoreConfiguration_Xml).Capitalize(), packageStoreConfiguration_Xml),
                new NamedValue(nameof(feedType_Name).Capitalize(), feedType_Name),
                new NamedValue(nameof(stripSymbolFiles_Indicator).Capitalize(), stripSymbolFiles_Indicator.ToYnIndicator()),
                new NamedValue(nameof(dropPath_Text).Capitalize(), dropPath_Text)
                );

            return(await ExecuteNativeApiMethodAsync <int>(nameof(Feeds_CreateOrUpdateNuGetFeedAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#14
0
        /// <summary>
        /// Creates a new ProGet package or updates an existing one
        /// </summary>
        public async Task <bool> ProGetPackages_CreateOrUpdatePackageAsync(
            int feed_Id,
            string group_Name,
            string package_Name,
            string version_Text,
            byte[] packageMetadata_Bytes,
            DateTime published_Date,
            byte[] packageHash_Bytes,
            bool cached_Indicator,
            long package_Size,
            string title_Text,
            string description_Text,
            string iconUrl_Text,
            string latestVersion_Text)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(feed_Id).Capitalize(), feed_Id),
                new NamedValue(nameof(group_Name).Capitalize(), group_Name),
                new NamedValue(nameof(package_Name).Capitalize(), package_Name),
                new NamedValue(nameof(version_Text).Capitalize(), version_Text),
                new NamedValue(nameof(packageMetadata_Bytes).Capitalize(), packageMetadata_Bytes),
                new NamedValue(nameof(published_Date).Capitalize(), published_Date),
                new NamedValue(nameof(packageHash_Bytes).Capitalize(), packageHash_Bytes),
                new NamedValue(nameof(cached_Indicator).Capitalize(), cached_Indicator.ToYnIndicator()),
                new NamedValue(nameof(package_Size).Capitalize(), package_Size),
                new NamedValue(nameof(title_Text).Capitalize(), title_Text),
                new NamedValue(nameof(description_Text).Capitalize(), description_Text),
                new NamedValue(nameof(iconUrl_Text).Capitalize(), iconUrl_Text),
                new NamedValue(nameof(latestVersion_Text).Capitalize(), latestVersion_Text)
                );

            return(await ExecuteNativeApiMethodAsync(nameof(ProGetPackages_CreateOrUpdatePackageAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#15
0
        /// <summary>
        /// Sets one or more properties on a feed of any type
        /// </summary>
        public async Task <bool> Feeds_SetFeedPropertyAsync(
            int feed_Id,
            string feed_Name,
            string feed_Description,
            bool active_Indicator,
            bool cache_Connectors_Indicator,
            string feedType_Name,
            string dropPath_Text,
            string feedPathOverride_Text,
            string packageStoreConfiguration_Xml,
            byte[] syncToken_Bytes,
            string syncTarget_Url)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(feed_Id).Capitalize(), feed_Id),
                new NamedValue(nameof(feed_Name).Capitalize(), feed_Name),
                new NamedValue(nameof(feed_Description).Capitalize(), feed_Description),
                new NamedValue(nameof(active_Indicator).Capitalize(), active_Indicator.ToYnIndicator()),
                new NamedValue(nameof(cache_Connectors_Indicator).Capitalize(), cache_Connectors_Indicator.ToYnIndicator()),
                new NamedValue(nameof(feedType_Name).Capitalize(), feedType_Name),
                new NamedValue(nameof(dropPath_Text).Capitalize(), dropPath_Text),
                new NamedValue(nameof(feedPathOverride_Text).Capitalize(), feedPathOverride_Text),
                new NamedValue(nameof(packageStoreConfiguration_Xml).Capitalize(), packageStoreConfiguration_Xml),
                new NamedValue(nameof(syncToken_Bytes).Capitalize(), syncToken_Bytes),
                new NamedValue(nameof(syncTarget_Url).Capitalize(), syncTarget_Url)
                );

            return(await ExecuteNativeApiMethodAsync(nameof(Feeds_SetFeedPropertyAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#16
0
        /// <summary>
        /// Gets the details of the specified user, and a list of all the groups the user belongs to
        /// </summary>
        public async Task <UsersUserGroups> Users_GetUserAsync(string user_Name)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(user_Name).Capitalize(), user_Name)
                );

            return(await ExecuteNativeApiMethodAsync <UsersUserGroups>(nameof(Users_GetUserAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#17
0
        /// <summary>
        /// Gets information about an execution as well as all of the log entries for it
        /// </summary>
        public async Task <ExecutionsExecutionLogEntries> Executions_GetExecutionAsync(int execution_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(execution_Id).Capitalize(), execution_Id)
                );

            return(await ExecuteNativeApiMethodAsync <ExecutionsExecutionLogEntries>(nameof(Executions_GetExecutionAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
        /// <summary>
        /// Gets all details regarding a specific build execution
        /// </summary>
        public async Task <BuildExecution> Builds_GetExecutionExtendedAsync(int execution_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(execution_Id).Capitalize(), execution_Id)
                );

            return(await ExecuteNativeApiMethodAsync <BuildExecution>(nameof(Builds_GetExecutionExtendedAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
        /// <summary>
        /// Gets all executions in the executing state optionally filtered by application
        /// </summary>
        public async Task <IEnumerable <BuildExecutionsExtended> > Builds_GetExecutionsInProgressAsync(int application_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(application_Id).Capitalize(), application_Id)
                );

            return(await ExecuteNativeApiMethodAsync <IEnumerable <BuildExecutionsExtended> >(nameof(Builds_GetExecutionsInProgressAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#20
0
        /// <summary>
        /// Gets all of adapters associated with the specified feed
        /// </summary>
        public async Task <IEnumerable <FeedAdapter> > FeedAdapters_GetFeedAdaptersAsync(int feed_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(feed_Id).Capitalize(), feed_Id)
                );

            return(await ExecuteNativeApiMethodAsync <IEnumerable <FeedAdapter> >(nameof(FeedAdapters_GetFeedAdaptersAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#21
0
        /// <summary>
        /// Gets all of the scheduled tasks, optionally filtered by feed
        /// </summary>
        public async Task <IEnumerable <ScheduledTasksExtended> > ScheduledTasks_GetScheduledTasksAsync(int?feed_Id = null)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(feed_Id).Capitalize(), feed_Id)
                );

            return(await ExecuteNativeApiMethodAsync <IEnumerable <ScheduledTasksExtended> >(nameof(ScheduledTasks_GetScheduledTasksAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#22
0
        /// <summary>
        /// Gets information about the largest packages in a feed
        /// </summary>
        public async Task <IEnumerable <DashboardPackagesLargest> > Dashboards_GetLargestPackagesAsync(int feed_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(feed_Id).Capitalize(), feed_Id)
                );

            return(await ExecuteNativeApiMethodAsync <IEnumerable <DashboardPackagesLargest> >(nameof(Dashboards_GetLargestPackagesAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#23
0
        /// <summary>
        /// Gets the specified ProGet configuration value
        /// </summary>
        public async Task <Configuration> Configuration_GetValueAsync(string key_Name)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(key_Name).Capitalize(), key_Name)
                );

            return(await ExecuteNativeApiMethodAsync <Configuration>(nameof(Configuration_GetValueAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
        /// <summary>
        /// Gets a database change script execution
        /// </summary>
        public async Task <DatabaseChangeScriptExecutionExtended> DatabaseChangeScripts_GetExecutionAsync(int execution_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(execution_Id).Capitalize(), execution_Id)
                );

            return(await ExecuteNativeApiMethodAsync <DatabaseChangeScriptExecutionExtended>(nameof(DatabaseChangeScripts_GetExecutionAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#25
0
        /// <summary>
        /// Gets the specified role in the database, along with all the tasks that comprise the role
        /// </summary>
        public async Task <RolesRoleTasksExtended> Security_GetRoleAsync(int role_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(role_Id).Capitalize(), role_Id)
                );

            return(await ExecuteNativeApiMethodAsync <RolesRoleTasksExtended>(nameof(Security_GetRoleAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#26
0
        /// <summary>
        /// Gets a list of users in the specified group
        /// </summary>
        public async Task <IEnumerable <User> > Users_GetUsersInGroupAsync(string group_Name)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(group_Name).Capitalize(), group_Name)
                );

            return(await ExecuteNativeApiMethodAsync <IEnumerable <User> >(nameof(Users_GetUsersInGroupAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#27
0
        /// <summary>
        /// Deletes a privilege
        /// </summary>
        public async Task <bool> Security_RemovePrivilegeAsync(int privilege_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(privilege_Id).Capitalize(), privilege_Id)
                );

            return(await ExecuteNativeApiMethodAsync(nameof(Security_RemovePrivilegeAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
示例#28
0
        /// <summary>
        /// Gets the details of a specified change control
        /// </summary>
        public async Task <ChangeControlsExtendedChangeControlEnvironmentsExtended> ChangeControls_GetChangeControlAsync(int changeControl_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(changeControl_Id).Capitalize(), changeControl_Id)
                );

            return(await ExecuteNativeApiMethodAsync <ChangeControlsExtendedChangeControlEnvironmentsExtended>(nameof(ChangeControls_GetChangeControlAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
        /// <summary>
        /// Gets the details of the specified provider
        /// </summary>
        public async Task <Provider> Providers_GetProviderAsync(int provider_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(provider_Id).Capitalize(), provider_Id)
                );

            return(await ExecuteNativeApiMethodAsync <Provider>(nameof(Providers_GetProviderAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }
        /// <summary>
        /// Deletes a database change script
        /// </summary>
        public async Task <bool> DatabaseChangeScripts_DeleteChangeScriptAsync(int script_Id)
        {
            var queryParamValues = QueryParamValues.From(
                new NamedValue(nameof(script_Id).Capitalize(), script_Id)
                );

            return(await ExecuteNativeApiMethodAsync(nameof(DatabaseChangeScripts_DeleteChangeScriptAsync).WithoutAsyncSuffix(), queryParamValues).ConfigureAwait(false));
        }