/// <summary> /// Initiates the asynchronous execution of the GetAccountSummary operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountSummary 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<GetAccountSummaryResponse> GetAccountSummaryAsync(GetAccountSummaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.Instance; return InvokeAsync<GetAccountSummaryRequest,GetAccountSummaryResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeGetAccountSummary(GetAccountSummaryRequest getAccountSummaryRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetAccountSummaryRequestMarshaller().Marshall(getAccountSummaryRequest); var unmarshaller = GetAccountSummaryResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
internal GetAccountSummaryResponse GetAccountSummary(GetAccountSummaryRequest request) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.Instance; return Invoke<GetAccountSummaryRequest,GetAccountSummaryResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the GetAccountSummary operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountSummary 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 EndGetAccountSummary /// operation.</returns> public IAsyncResult BeginGetAccountSummary(GetAccountSummaryRequest request, AsyncCallback callback, object state) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.Instance; return BeginInvoke<GetAccountSummaryRequest>(request, marshaller, unmarshaller, callback, state); }
public void GetAccountSummaryMarshallTest() { var operation = service_model.FindOperation("GetAccountSummary"); var request = InstantiateClassGenerator.Execute<GetAccountSummaryRequest>(); var marshaller = new GetAccountSummaryRequestMarshaller(); 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 = GetAccountSummaryResponseUnmarshaller.Instance.Unmarshall(context) as GetAccountSummaryResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// </summary> /// /// <param name="getAccountSummaryRequest">Container for the necessary /// parameters to execute the GetAccountSummary service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetAccountSummary service method, as /// returned by AmazonIdentityManagementService.</returns> /// public GetAccountSummaryResponse GetAccountSummary(GetAccountSummaryRequest getAccountSummaryRequest) { IRequest<GetAccountSummaryRequest> request = new GetAccountSummaryRequestMarshaller().Marshall(getAccountSummaryRequest); GetAccountSummaryResponse response = Invoke<GetAccountSummaryRequest, GetAccountSummaryResponse> (request, this.signer, GetAccountSummaryResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the GetAccountSummary operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountSummary 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 GetAccountSummaryAsync(GetAccountSummaryRequest request, AmazonServiceCallback<GetAccountSummaryRequest, GetAccountSummaryResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<GetAccountSummaryRequest,GetAccountSummaryResponse> responseObject = new AmazonServiceResult<GetAccountSummaryRequest,GetAccountSummaryResponse>((GetAccountSummaryRequest)req, (GetAccountSummaryResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<GetAccountSummaryRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the GetAccountSummary operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.GetAccountSummary"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountSummary 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<GetAccountSummaryResponse> GetAccountSummaryAsync(GetAccountSummaryRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, GetAccountSummaryRequest, GetAccountSummaryResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Retrieves account level information about account entity usage and IAM quotas.</para> <para>For information about limitations on IAM /// entities, see <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?LimitationsOnEntities.html">Limitations on IAM /// Entities</a> in <i>Using AWS Identity and Access Management</i> .</para> /// </summary> /// /// <param name="getAccountSummaryRequest">Container for the necessary parameters to execute the GetAccountSummary service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetAccountSummary service method, as returned by AmazonIdentityManagementService.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<GetAccountSummaryResponse> GetAccountSummaryAsync(GetAccountSummaryRequest getAccountSummaryRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.GetInstance(); return Invoke<IRequest, GetAccountSummaryRequest, GetAccountSummaryResponse>(getAccountSummaryRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeGetAccountSummary(GetAccountSummaryRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }