/// <summary>Snippet for UpdateDomainMapping</summary> public void UpdateDomainMappingRequestObject() { // Snippet: UpdateDomainMapping(UpdateDomainMappingRequest, CallSettings) // Create client DomainMappingsClient domainMappingsClient = DomainMappingsClient.Create(); // Initialize request argument(s) UpdateDomainMappingRequest request = new UpdateDomainMappingRequest { Name = "", DomainMapping = new DomainMapping(), UpdateMask = new FieldMask(), }; // Make the request Operation <DomainMapping, OperationMetadataV1> response = domainMappingsClient.UpdateDomainMapping(request); // Poll until the returned long-running operation is complete Operation <DomainMapping, OperationMetadataV1> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result DomainMapping 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 <DomainMapping, OperationMetadataV1> retrievedResponse = domainMappingsClient.PollOnceUpdateDomainMapping(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result DomainMapping retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary> /// Updates the specified domain mapping. To map an SSL certificate to a /// domain mapping, update `certificate_id` to point to an `AuthorizedCertificate` /// resource. A user must be authorized to administer the associated domain /// in order to update a `DomainMapping` resource. /// </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 <DomainMapping, OperationMetadataV1> > UpdateDomainMappingAsync(UpdateDomainMappingRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_UpdateDomainMappingRequest(ref request, ref callSettings); return(new lro::Operation <DomainMapping, OperationMetadataV1>(await _callUpdateDomainMapping.Async(request, callSettings).ConfigureAwait(false), UpdateDomainMappingOperationsClient)); }
/// <summary> /// Updates the specified domain mapping. To map an SSL certificate to a /// domain mapping, update `certificate_id` to point to an `AuthorizedCertificate` /// resource. A user must be authorized to administer the associated domain /// in order to update a `DomainMapping` resource. /// </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 <DomainMapping, OperationMetadataV1> UpdateDomainMapping(UpdateDomainMappingRequest request, gaxgrpc::CallSettings callSettings = null) { Modify_UpdateDomainMappingRequest(ref request, ref callSettings); return(new lro::Operation <DomainMapping, OperationMetadataV1>(_callUpdateDomainMapping.Sync(request, callSettings), UpdateDomainMappingOperationsClient)); }
partial void Modify_UpdateDomainMappingRequest(ref UpdateDomainMappingRequest request, ref gaxgrpc::CallSettings settings);
/// <summary> /// Updates the specified domain mapping. To map an SSL certificate to a /// domain mapping, update `certificate_id` to point to an `AuthorizedCertificate` /// resource. A user must be authorized to administer the associated domain /// in order to update a `DomainMapping` resource. /// </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 <DomainMapping, OperationMetadataV1> > UpdateDomainMappingAsync(UpdateDomainMappingRequest request, st::CancellationToken cancellationToken) => UpdateDomainMappingAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Updates the specified domain mapping. To map an SSL certificate to a /// domain mapping, update `certificate_id` to point to an `AuthorizedCertificate` /// resource. A user must be authorized to administer the associated domain /// in order to update a `DomainMapping` resource. /// </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 <DomainMapping, OperationMetadataV1> > UpdateDomainMappingAsync(UpdateDomainMappingRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException();