예제 #1
0
        internal DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request)
        {
            var marshaller   = new DeleteRepositoryRequestMarshaller();
            var unmarshaller = DeleteRepositoryResponseUnmarshaller.Instance;

            return(Invoke <DeleteRepositoryRequest, DeleteRepositoryResponse>(request, marshaller, unmarshaller));
        }
예제 #2
0
        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);
            }
        }
예제 #4
0
        /// <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));
        }
예제 #5
0
 /// <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));
 }
예제 #6
0
 /// <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;
		}