internal ListRolesResponse ListRoles(ListRolesRequest request) { var marshaller = new ListRolesRequestMarshaller(); var unmarshaller = ListRolesResponseUnmarshaller.Instance; return Invoke<ListRolesRequest,ListRolesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ListRoles operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListRoles 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<ListRolesResponse> ListRolesAsync(ListRolesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListRolesRequestMarshaller(); var unmarshaller = ListRolesResponseUnmarshaller.Instance; return InvokeAsync<ListRolesRequest,ListRolesResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void ListRolesMarshallTest() { var operation = service_model.FindOperation("ListRoles"); var request = InstantiateClassGenerator.Execute<ListRolesRequest>(); var marshaller = new ListRolesRequestMarshaller(); 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 = ListRolesResponseUnmarshaller.Instance.Unmarshall(context) as ListRolesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeListRoles(ListRolesRequest listRolesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ListRolesRequestMarshaller().Marshall(listRolesRequest); var unmarshaller = ListRolesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the ListRoles operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListRoles 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 EndListRoles /// operation.</returns> public IAsyncResult BeginListRoles(ListRolesRequest request, AsyncCallback callback, object state) { var marshaller = new ListRolesRequestMarshaller(); var unmarshaller = ListRolesResponseUnmarshaller.Instance; return BeginInvoke<ListRolesRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the ListRoles operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListRoles 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 ListRolesAsync(ListRolesRequest request, AmazonServiceCallback<ListRolesRequest, ListRolesResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new ListRolesRequestMarshaller(); var unmarshaller = ListRolesResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<ListRolesRequest,ListRolesResponse> responseObject = new AmazonServiceResult<ListRolesRequest,ListRolesResponse>((ListRolesRequest)req, (ListRolesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<ListRolesRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the ListRoles operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.ListRoles"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListRoles 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<ListRolesResponse> ListRolesAsync(ListRolesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListRolesRequestMarshaller(); var unmarshaller = ListRolesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, ListRolesRequest, ListRolesResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Lists the roles that have the specified path prefix. If there are none, the action returns an empty list. For more information about /// roles, go to <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html">Working with Roles</a> .</para> <para>You can /// paginate the results using the <c>MaxItems</c> and <c>Marker</c> parameters.</para> <para>The returned policy is URL-encoded according to /// RFC 3986. For more information about RFC 3986, go to <a href="http://www.faqs.org/rfcs/rfc3986.html">http://www.faqs.org/rfcs/rfc3986.html</a> .</para> /// </summary> /// /// <param name="listRolesRequest">Container for the necessary parameters to execute the ListRoles service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the ListRoles 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<ListRolesResponse> ListRolesAsync(ListRolesRequest listRolesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListRolesRequestMarshaller(); var unmarshaller = ListRolesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ListRolesRequest, ListRolesResponse>(listRolesRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeListRoles(ListRolesRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new ListRolesRequestMarshaller(); var unmarshaller = ListRolesResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }