public void ListCloudFrontOriginAccessIdentitiesMarshallTest() { var operation = service_model.FindOperation("ListCloudFrontOriginAccessIdentities"); var request = InstantiateClassGenerator.Execute <ListCloudFrontOriginAccessIdentitiesRequest>(); var marshaller = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); TestTools.RequestValidator.Validate("ListCloudFrontOriginAccessIdentities", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as ListCloudFrontOriginAccessIdentitiesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the ListCloudFrontOriginAccessIdentities operation. /// <seealso cref="Amazon.CloudFront.IAmazonCloudFront"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities 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 <ListCloudFrontOriginAccessIdentitiesResponse> ListCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller(); var unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance; return(Invoke <IRequest, ListCloudFrontOriginAccessIdentitiesRequest, ListCloudFrontOriginAccessIdentitiesResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
internal ListCloudFrontOriginAccessIdentitiesResponse ListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request) { var marshaller = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller(); var unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance; return(Invoke <ListCloudFrontOriginAccessIdentitiesRequest, ListCloudFrontOriginAccessIdentitiesResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ListCloudFrontOriginAccessIdentities operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities operation on AmazonCloudFrontClient.</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 EndListCloudFrontOriginAccessIdentities /// operation.</returns> public IAsyncResult BeginListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request, AsyncCallback callback, object state) { var marshaller = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller(); var unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance; return BeginInvoke<ListCloudFrontOriginAccessIdentitiesRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// List origin access identities. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities service method.</param> /// /// <returns>The response from the ListCloudFrontOriginAccessIdentities service method, as returned by CloudFront.</returns> /// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException"> /// The argument is invalid. /// </exception> public ListCloudFrontOriginAccessIdentitiesResponse ListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request) { var marshaller = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller(); var unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance; return Invoke<ListCloudFrontOriginAccessIdentitiesRequest,ListCloudFrontOriginAccessIdentitiesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ListCloudFrontOriginAccessIdentities operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities 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<ListCloudFrontOriginAccessIdentitiesResponse> ListCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller(); var unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance; return InvokeAsync<ListCloudFrontOriginAccessIdentitiesRequest,ListCloudFrontOriginAccessIdentitiesResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void ListCloudFrontOriginAccessIdentitiesMarshallTest() { var operation = service_model.FindOperation("ListCloudFrontOriginAccessIdentities"); var request = InstantiateClassGenerator.Execute<ListCloudFrontOriginAccessIdentitiesRequest>(); var marshaller = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); RequestValidator.Validate("ListCloudFrontOriginAccessIdentities", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as ListCloudFrontOriginAccessIdentitiesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest listCloudFrontOriginAccessIdentitiesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller().Marshall(listCloudFrontOriginAccessIdentitiesRequest); var unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para> List origin access identities. </para> /// </summary> /// /// <param name="listCloudFrontOriginAccessIdentitiesRequest">Container for the necessary parameters to execute the /// ListCloudFrontOriginAccessIdentities service method on AmazonCloudFront.</param> /// /// <returns>The response from the ListCloudFrontOriginAccessIdentities service method, as returned by AmazonCloudFront.</returns> /// /// <exception cref="T:Amazon.CloudFront.Model.InvalidArgumentException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<ListCloudFrontOriginAccessIdentitiesResponse> ListCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest listCloudFrontOriginAccessIdentitiesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller(); var unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ListCloudFrontOriginAccessIdentitiesRequest, ListCloudFrontOriginAccessIdentitiesResponse>(listCloudFrontOriginAccessIdentitiesRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller(); var unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// Initiates the asynchronous execution of the ListCloudFrontOriginAccessIdentities operation. /// <seealso cref="Amazon.CloudFront.IAmazonCloudFront.ListCloudFrontOriginAccessIdentities"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities 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<ListCloudFrontOriginAccessIdentitiesResponse> ListCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller(); var unmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, ListCloudFrontOriginAccessIdentitiesRequest, ListCloudFrontOriginAccessIdentitiesResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }