internal UpdateSAMLProviderResponse UpdateSAMLProvider(UpdateSAMLProviderRequest request) { var marshaller = new UpdateSAMLProviderRequestMarshaller(); var unmarshaller = UpdateSAMLProviderResponseUnmarshaller.Instance; return Invoke<UpdateSAMLProviderRequest,UpdateSAMLProviderResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the UpdateSAMLProvider operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSAMLProvider 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<UpdateSAMLProviderResponse> UpdateSAMLProviderAsync(UpdateSAMLProviderRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateSAMLProviderRequestMarshaller(); var unmarshaller = UpdateSAMLProviderResponseUnmarshaller.Instance; return InvokeAsync<UpdateSAMLProviderRequest,UpdateSAMLProviderResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the UpdateSAMLProvider operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSAMLProvider operation on AmazonIdentityManagementServiceClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateSAMLProvider /// operation.</returns> public IAsyncResult BeginUpdateSAMLProvider(UpdateSAMLProviderRequest request, AsyncCallback callback, object state) { var marshaller = new UpdateSAMLProviderRequestMarshaller(); var unmarshaller = UpdateSAMLProviderResponseUnmarshaller.Instance; return BeginInvoke<UpdateSAMLProviderRequest>(request, marshaller, unmarshaller, callback, state); }
public void UpdateSAMLProviderMarshallTest() { var operation = service_model.FindOperation("UpdateSAMLProvider"); var request = InstantiateClassGenerator.Execute<UpdateSAMLProviderRequest>(); var marshaller = new UpdateSAMLProviderRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = UpdateSAMLProviderResponseUnmarshaller.Instance.Unmarshall(context) as UpdateSAMLProviderResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the UpdateSAMLProvider operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSAMLProvider operation on AmazonIdentityManagementServiceClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public void UpdateSAMLProviderAsync(UpdateSAMLProviderRequest request, AmazonServiceCallback<UpdateSAMLProviderRequest, UpdateSAMLProviderResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new UpdateSAMLProviderRequestMarshaller(); var unmarshaller = UpdateSAMLProviderResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<UpdateSAMLProviderRequest,UpdateSAMLProviderResponse> responseObject = new AmazonServiceResult<UpdateSAMLProviderRequest,UpdateSAMLProviderResponse>((UpdateSAMLProviderRequest)req, (UpdateSAMLProviderResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<UpdateSAMLProviderRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the UpdateSAMLProvider operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.UpdateSAMLProvider"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSAMLProvider 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 async Task<UpdateSAMLProviderResponse> UpdateSAMLProviderAsync(UpdateSAMLProviderRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateSAMLProviderRequestMarshaller(); var unmarshaller = UpdateSAMLProviderResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, UpdateSAMLProviderRequest, UpdateSAMLProviderResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Updates the metadata document for an existing SAML provider.</para> <para><b>NOTE:</b>This operation requires Signature Version /// 4.</para> /// </summary> /// /// <param name="updateSAMLProviderRequest">Container for the necessary parameters to execute the UpdateSAMLProvider service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the UpdateSAMLProvider service method, as returned by AmazonIdentityManagementService.</returns> /// /// <exception cref="T:Amazon.IdentityManagement.Model.InvalidInputException" /> /// <exception cref="T:Amazon.IdentityManagement.Model.NoSuchEntityException" /> /// <exception cref="T:Amazon.IdentityManagement.Model.LimitExceededException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<UpdateSAMLProviderResponse> UpdateSAMLProviderAsync(UpdateSAMLProviderRequest updateSAMLProviderRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateSAMLProviderRequestMarshaller(); var unmarshaller = UpdateSAMLProviderResponseUnmarshaller.GetInstance(); return Invoke<IRequest, UpdateSAMLProviderRequest, UpdateSAMLProviderResponse>(updateSAMLProviderRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeUpdateSAMLProvider(UpdateSAMLProviderRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new UpdateSAMLProviderRequestMarshaller(); var unmarshaller = UpdateSAMLProviderResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
IAsyncResult invokeUpdateSAMLProvider(UpdateSAMLProviderRequest updateSAMLProviderRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new UpdateSAMLProviderRequestMarshaller().Marshall(updateSAMLProviderRequest); var unmarshaller = UpdateSAMLProviderResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }