internal DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request) { var marshaller = new DeleteRepositoryRequestMarshaller(); var unmarshaller = DeleteRepositoryResponseUnmarshaller.Instance; return(Invoke <DeleteRepositoryRequest, DeleteRepositoryResponse>(request, marshaller, unmarshaller)); }
public DeleteRepositoryRequestTests() { var request = new DeleteRepositoryRequest("my-repository"); var response = this._client.DeleteRepository(request); this._status = response.ConnectionStatus; }
protected override void ProcessRecord() { base.ProcessRecord(); if (!ConfirmDelete("OCIDevopsRepository", "Remove")) { return; } DeleteRepositoryRequest request; try { request = new DeleteRepositoryRequest { RepositoryId = RepositoryId, IfMatch = IfMatch, OpcRequestId = OpcRequestId }; response = client.DeleteRepository(request).GetAwaiter().GetResult(); WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); FinishProcessing(response); } catch (Exception ex) { TerminatingErrorDuringExecution(ex); } }
/// <summary> /// Initiates the asynchronous execution of the DeleteRepository operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteRepository operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <DeleteRepositoryResponse> DeleteRepositoryAsync(DeleteRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteRepositoryRequestMarshaller(); var unmarshaller = DeleteRepositoryResponseUnmarshaller.Instance; return(InvokeAsync <DeleteRepositoryRequest, DeleteRepositoryResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// 删除指定用户下某个镜像仓库. /// [MFA enabled] /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public async Task <DeleteRepositoryResponse> DeleteRepository(DeleteRepositoryRequest request) { return(await new DeleteRepositoryExecutor().Client(this).Execute <DeleteRepositoryResponse, DeleteRepositoryResult, DeleteRepositoryRequest>(request).ConfigureAwait(false)); }
/// <summary> /// 删除指定用户下某个镜像仓库. /// [MFA enabled] /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request) { return(new DeleteRepositoryExecutor().Client(this).Execute <DeleteRepositoryResponse, DeleteRepositoryResult, DeleteRepositoryRequest>(request)); }
public DeleteRepositoryRequestTests() { var request = new DeleteRepositoryRequest("repos"); var response = this._client.DeleteRepository(request); this._status = response.ConnectionStatus; }