/// <summary>
 /// Creates a new enumerable which will iterate over the responses received from the ListAnalyticsInstances operation. This enumerable
 /// will fetch more data from the server as needed.
 /// </summary>
 /// <param name="request">The request object containing the details to send</param>
 /// <param name="retryConfiguration">The configuration for retrying, may be null</param>
 /// <param name="cancellationToken">The cancellation token object</param>
 /// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
 public IEnumerable <ListAnalyticsInstancesResponse> ListAnalyticsInstancesResponseEnumerator(ListAnalyticsInstancesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
 {
     return(new Common.Utils.ResponseEnumerable <ListAnalyticsInstancesRequest, ListAnalyticsInstancesResponse>(
                response => response.OpcNextPage,
                input =>
     {
         if (!string.IsNullOrEmpty(input))
         {
             request.Page = input;
         }
         return request;
     },
                request => client.ListAnalyticsInstances(request, retryConfiguration, cancellationToken)
                ));
 }
Example #2
0
 /// <summary>
 /// Creates a new enumerable which will iterate over the LoadBalancerPolicy objects
 /// contained in responses from the ListPolicies operation. This enumerable will fetch more data from the server as needed.
 /// </summary>
 /// <param name="request">The request object containing the details to send</param>
 /// <param name="retryConfiguration">The configuration for retrying, may be null</param>
 /// <param name="cancellationToken">The cancellation token object</param>
 /// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
 public IEnumerable <LoadBalancerPolicy> ListPoliciesRecordEnumerator(ListPoliciesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
 {
     return(new Common.Utils.ResponseRecordEnumerable <ListPoliciesRequest, ListPoliciesResponse, LoadBalancerPolicy>(
                response => response.OpcNextPage,
                input =>
     {
         if (!string.IsNullOrEmpty(input))
         {
             request.Page = input;
         }
         return request;
     },
                request => client.ListPolicies(request, retryConfiguration, cancellationToken),
                response => response.Items
                ));
 }
Example #3
0
 /// <summary>
 /// Creates a new enumerable which will iterate over the Record objects
 /// contained in responses from the GetDomainRecords operation. This enumerable will fetch more data from the server as needed.
 /// </summary>
 /// <param name="request">The request object containing the details to send</param>
 /// <param name="retryConfiguration">The configuration for retrying, may be null</param>
 /// <param name="cancellationToken">The cancellation token object</param>
 /// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
 public IEnumerable <Record> GetDomainRecordsRecordEnumerator(GetDomainRecordsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
 {
     return(new Common.Utils.ResponseRecordEnumerable <GetDomainRecordsRequest, GetDomainRecordsResponse, Record>(
                response => response.OpcNextPage,
                input =>
     {
         if (!string.IsNullOrEmpty(input))
         {
             request.Page = input;
         }
         return request;
     },
                request => client.GetDomainRecords(request, retryConfiguration, cancellationToken),
                response => response.RecordCollection.Items
                ));
 }
Example #4
0
 /// <summary>
 /// Creates a new enumerable which will iterate over the PublicVantagePointSummary objects
 /// contained in responses from the ListPublicVantagePoints operation. This enumerable will fetch more data from the server as needed.
 /// </summary>
 /// <param name="request">The request object containing the details to send</param>
 /// <param name="retryConfiguration">The configuration for retrying, may be null</param>
 /// <param name="cancellationToken">The cancellation token object</param>
 /// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
 public IEnumerable <PublicVantagePointSummary> ListPublicVantagePointsRecordEnumerator(ListPublicVantagePointsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
 {
     return(new Common.Utils.ResponseRecordEnumerable <ListPublicVantagePointsRequest, ListPublicVantagePointsResponse, PublicVantagePointSummary>(
                response => response.OpcNextPage,
                input =>
     {
         if (!string.IsNullOrEmpty(input))
         {
             request.Page = input;
         }
         return request;
     },
                request => client.ListPublicVantagePoints(request, retryConfiguration, cancellationToken),
                response => response.PublicVantagePointCollection.Items
                ));
 }
 /// <summary>
 /// Creates a new enumerable which will iterate over the VolumeBackupPolicyAssignment objects
 /// contained in responses from the GetVolumeBackupPolicyAssetAssignment operation. This enumerable will fetch more data from the server as needed.
 /// </summary>
 /// <param name="request">The request object containing the details to send</param>
 /// <param name="retryConfiguration">The configuration for retrying, may be null</param>
 /// <param name="cancellationToken">The cancellation token object</param>
 /// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
 public IEnumerable <VolumeBackupPolicyAssignment> GetVolumeBackupPolicyAssetAssignmentRecordEnumerator(GetVolumeBackupPolicyAssetAssignmentRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
 {
     return(new Common.Utils.ResponseRecordEnumerable <GetVolumeBackupPolicyAssetAssignmentRequest, GetVolumeBackupPolicyAssetAssignmentResponse, VolumeBackupPolicyAssignment>(
                response => response.OpcNextPage,
                input =>
     {
         if (!string.IsNullOrEmpty(input))
         {
             request.Page = input;
         }
         return request;
     },
                request => client.GetVolumeBackupPolicyAssetAssignment(request, retryConfiguration, cancellationToken).Result,
                response => response.Items
                ));
 }
 /// <summary>
 /// Creates a new enumerable which will iterate over the VolumeGroupBackup objects
 /// contained in responses from the ListVolumeGroupBackups operation. This enumerable will fetch more data from the server as needed.
 /// </summary>
 /// <param name="request">The request object containing the details to send</param>
 /// <param name="retryConfiguration">The configuration for retrying, may be null</param>
 /// <param name="cancellationToken">The cancellation token object</param>
 /// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
 public IEnumerable <VolumeGroupBackup> ListVolumeGroupBackupsRecordEnumerator(ListVolumeGroupBackupsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
 {
     return(new Common.Utils.ResponseRecordEnumerable <ListVolumeGroupBackupsRequest, ListVolumeGroupBackupsResponse, VolumeGroupBackup>(
                response => response.OpcNextPage,
                input =>
     {
         if (!string.IsNullOrEmpty(input))
         {
             request.Page = input;
         }
         return request;
     },
                request => client.ListVolumeGroupBackups(request, retryConfiguration, cancellationToken).Result,
                response => response.Items
                ));
 }
Example #7
0
 /// <summary>
 /// Creates a new enumerable which will iterate over the AvailablePluginSummary objects
 /// contained in responses from the ListInstanceagentAvailablePlugins operation. This enumerable will fetch more data from the server as needed.
 /// </summary>
 /// <param name="request">The request object containing the details to send</param>
 /// <param name="retryConfiguration">The configuration for retrying, may be null</param>
 /// <param name="cancellationToken">The cancellation token object</param>
 /// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
 public IEnumerable <AvailablePluginSummary> ListInstanceagentAvailablePluginsRecordEnumerator(ListInstanceagentAvailablePluginsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
 {
     return(new Common.Utils.ResponseRecordEnumerable <ListInstanceagentAvailablePluginsRequest, ListInstanceagentAvailablePluginsResponse, AvailablePluginSummary>(
                response => response.OpcNextPage,
                input =>
     {
         if (!string.IsNullOrEmpty(input))
         {
             request.Page = input;
         }
         return request;
     },
                request => client.ListInstanceagentAvailablePlugins(request, retryConfiguration, cancellationToken),
                response => response.Items
                ));
 }
 /// <summary>
 /// Creates a new enumerable which will iterate over the WorkRequestError objects
 /// contained in responses from the ListWorkRequestErrors operation. This enumerable will fetch more data from the server as needed.
 /// </summary>
 /// <param name="request">The request object containing the details to send</param>
 /// <param name="retryConfiguration">The configuration for retrying, may be null</param>
 /// <param name="cancellationToken">The cancellation token object</param>
 /// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
 public IEnumerable <WorkRequestError> ListWorkRequestErrorsRecordEnumerator(ListWorkRequestErrorsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
 {
     return(new Common.Utils.ResponseRecordEnumerable <ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse, WorkRequestError>(
                response => response.OpcNextPage,
                input =>
     {
         if (!string.IsNullOrEmpty(input))
         {
             request.Page = input;
         }
         return request;
     },
                request => client.ListWorkRequestErrors(request, retryConfiguration, cancellationToken),
                response => response.WorkRequestErrorCollection.Items
                ));
 }
Example #9
0
 /// <summary>
 /// Creates a new enumerable which will iterate over the SupportedVmwareSoftwareVersionSummary objects
 /// contained in responses from the ListSupportedVmwareSoftwareVersions operation. This enumerable will fetch more data from the server as needed.
 /// </summary>
 /// <param name="request">The request object containing the details to send</param>
 /// <param name="retryConfiguration">The configuration for retrying, may be null</param>
 /// <param name="cancellationToken">The cancellation token object</param>
 /// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
 public IEnumerable <SupportedVmwareSoftwareVersionSummary> ListSupportedVmwareSoftwareVersionsRecordEnumerator(ListSupportedVmwareSoftwareVersionsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
 {
     return(new Common.Utils.ResponseRecordEnumerable <ListSupportedVmwareSoftwareVersionsRequest, ListSupportedVmwareSoftwareVersionsResponse, SupportedVmwareSoftwareVersionSummary>(
                response => response.OpcNextPage,
                input =>
     {
         if (!string.IsNullOrEmpty(input))
         {
             request.Page = input;
         }
         return request;
     },
                request => client.ListSupportedVmwareSoftwareVersions(request, retryConfiguration, cancellationToken),
                response => response.SupportedVmwareSoftwareVersionCollection.Items
                ));
 }