/// <summary>Snippet for RepairApplicationAsync</summary> public async Task RepairApplicationRequestObjectAsync() { // Snippet: RepairApplicationAsync(RepairApplicationRequest, CallSettings) // Additional: RepairApplicationAsync(RepairApplicationRequest, CancellationToken) // Create client ApplicationsClient applicationsClient = await ApplicationsClient.CreateAsync(); // Initialize request argument(s) RepairApplicationRequest request = new RepairApplicationRequest { Name = "", }; // Make the request Operation <Application, OperationMetadataV1> response = await applicationsClient.RepairApplicationAsync(request); // Poll until the returned long-running operation is complete Operation <Application, OperationMetadataV1> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result Application result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Application, OperationMetadataV1> retrievedResponse = await applicationsClient.PollOnceRepairApplicationAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Application retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for RepairApplication</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void RepairApplicationRequestObject() { // Create client ApplicationsClient applicationsClient = ApplicationsClient.Create(); // Initialize request argument(s) RepairApplicationRequest request = new RepairApplicationRequest { Name = "", }; // Make the request Operation <Application, OperationMetadataV1> response = applicationsClient.RepairApplication(request); // Poll until the returned long-running operation is complete Operation <Application, OperationMetadataV1> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Application result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Application, OperationMetadataV1> retrievedResponse = applicationsClient.PollOnceRepairApplication(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Application retrievedResult = retrievedResponse.Result; } }
/// <summary> /// Recreates the required App Engine features for the specified App Engine /// application, for example a Cloud Storage bucket or App Engine service /// account. /// Use this method if you receive an error message about a missing feature, /// for example, *Error retrieving the App Engine service account*. /// If you have deleted your App Engine service account, this will /// not be able to recreate it. Instead, you should attempt to use the /// IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . /// If the deletion was recent, the numeric ID can be found in the Cloud /// Console Activity Log. /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public override async stt::Task <lro::Operation <Application, OperationMetadataV1> > RepairApplicationAsync(RepairApplicationRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_RepairApplicationRequest(ref request, ref callSettings); return(new lro::Operation <Application, OperationMetadataV1>(await _callRepairApplication.Async(request, callSettings).ConfigureAwait(false), RepairApplicationOperationsClient)); }
/// <summary> /// Recreates the required App Engine features for the specified App Engine /// application, for example a Cloud Storage bucket or App Engine service /// account. /// Use this method if you receive an error message about a missing feature, /// for example, *Error retrieving the App Engine service account*. /// If you have deleted your App Engine service account, this will /// not be able to recreate it. Instead, you should attempt to use the /// IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . /// If the deletion was recent, the numeric ID can be found in the Cloud /// Console Activity Log. /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>The RPC response.</returns> public override lro::Operation <Application, OperationMetadataV1> RepairApplication(RepairApplicationRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_RepairApplicationRequest(ref request, ref callSettings); return(new lro::Operation <Application, OperationMetadataV1>(_callRepairApplication.Sync(request, callSettings), RepairApplicationOperationsClient)); }
partial void Modify_RepairApplicationRequest(ref RepairApplicationRequest request, ref gaxgrpc::CallSettings settings);
/// <summary> /// Recreates the required App Engine features for the specified App Engine /// application, for example a Cloud Storage bucket or App Engine service /// account. /// Use this method if you receive an error message about a missing feature, /// for example, *Error retrieving the App Engine service account*. /// If you have deleted your App Engine service account, this will /// not be able to recreate it. Instead, you should attempt to use the /// IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . /// If the deletion was recent, the numeric ID can be found in the Cloud /// Console Activity Log. /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <lro::Operation <Application, OperationMetadataV1> > RepairApplicationAsync(RepairApplicationRequest request, st::CancellationToken cancellationToken) => RepairApplicationAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Recreates the required App Engine features for the specified App Engine /// application, for example a Cloud Storage bucket or App Engine service /// account. /// Use this method if you receive an error message about a missing feature, /// for example, *Error retrieving the App Engine service account*. /// If you have deleted your App Engine service account, this will /// not be able to recreate it. Instead, you should attempt to use the /// IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . /// If the deletion was recent, the numeric ID can be found in the Cloud /// Console Activity Log. /// </summary> /// <param name="request">The request object containing all of the parameters for the API call.</param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <lro::Operation <Application, OperationMetadataV1> > RepairApplicationAsync(RepairApplicationRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException();