Show / Hide Table of Contents

Class ManagedInstancePaginators

Collection of helper methods that can be used to provide an enumerator interface to any list operations of ManagedInstance where multiple pages of data may be fetched. Two styles of enumerators are supported:

  • Enumerating over the Response objects returned by the list operation. These are referred to as ResponseEnumerators, and the methods are suffixed with ResponseEnumerator. For example: listUsersResponseEnumerator.
  • Enumerating over the resources/records being listed. These are referred to as RecordEnumerators, and the methods are suffixed with RecordEnumerator. For example: listUsersRecordEnumerator.
These enumerators abstract away the need to write code to manually handle pagination via looping and using the page tokens. They will automatically fetch more data from the service when required.

As an example, if we were using the ListUsers operation in IdentityService, then the iterator returned by calling a ResponseEnumerator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the enumerables returned by calling a RecordEnumerator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available.
Inheritance
object
ManagedInstancePaginators
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.OsmanagementhubService
Assembly: OCI.DotNetSDK.Osmanagementhub.dll
Syntax
public class ManagedInstancePaginators

Constructors

ManagedInstancePaginators(ManagedInstanceClient)

Declaration
public ManagedInstancePaginators(ManagedInstanceClient client)
Parameters
Type Name Description
ManagedInstanceClient client

Methods

ListManagedInstanceAvailablePackagesRecordEnumerator(ListManagedInstanceAvailablePackagesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the AvailablePackageSummary objects contained in responses from the ListManagedInstanceAvailablePackages operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<AvailablePackageSummary> ListManagedInstanceAvailablePackagesRecordEnumerator(ListManagedInstanceAvailablePackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceAvailablePackagesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<AvailablePackageSummary>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceAvailablePackagesResponseEnumerator(ListManagedInstanceAvailablePackagesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceAvailablePackages operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ListManagedInstanceAvailablePackagesResponse> ListManagedInstanceAvailablePackagesResponseEnumerator(ListManagedInstanceAvailablePackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceAvailablePackagesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ListManagedInstanceAvailablePackagesResponse>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceAvailableSoftwareSourcesRecordEnumerator(ListManagedInstanceAvailableSoftwareSourcesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the AvailableSoftwareSourceSummary objects contained in responses from the ListManagedInstanceAvailableSoftwareSources operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<AvailableSoftwareSourceSummary> ListManagedInstanceAvailableSoftwareSourcesRecordEnumerator(ListManagedInstanceAvailableSoftwareSourcesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceAvailableSoftwareSourcesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<AvailableSoftwareSourceSummary>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceAvailableSoftwareSourcesResponseEnumerator(ListManagedInstanceAvailableSoftwareSourcesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceAvailableSoftwareSources operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ListManagedInstanceAvailableSoftwareSourcesResponse> ListManagedInstanceAvailableSoftwareSourcesResponseEnumerator(ListManagedInstanceAvailableSoftwareSourcesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceAvailableSoftwareSourcesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ListManagedInstanceAvailableSoftwareSourcesResponse>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceAvailableWindowsUpdatesRecordEnumerator(ListManagedInstanceAvailableWindowsUpdatesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the AvailableWindowsUpdateSummary objects contained in responses from the ListManagedInstanceAvailableWindowsUpdates operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<AvailableWindowsUpdateSummary> ListManagedInstanceAvailableWindowsUpdatesRecordEnumerator(ListManagedInstanceAvailableWindowsUpdatesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceAvailableWindowsUpdatesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<AvailableWindowsUpdateSummary>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceAvailableWindowsUpdatesResponseEnumerator(ListManagedInstanceAvailableWindowsUpdatesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceAvailableWindowsUpdates operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ListManagedInstanceAvailableWindowsUpdatesResponse> ListManagedInstanceAvailableWindowsUpdatesResponseEnumerator(ListManagedInstanceAvailableWindowsUpdatesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceAvailableWindowsUpdatesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ListManagedInstanceAvailableWindowsUpdatesResponse>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceErrataRecordEnumerator(ListManagedInstanceErrataRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the ManagedInstanceErratumSummary objects contained in responses from the ListManagedInstanceErrata operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ManagedInstanceErratumSummary> ListManagedInstanceErrataRecordEnumerator(ListManagedInstanceErrataRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceErrataRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ManagedInstanceErratumSummary>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceErrataResponseEnumerator(ListManagedInstanceErrataRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceErrata operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ListManagedInstanceErrataResponse> ListManagedInstanceErrataResponseEnumerator(ListManagedInstanceErrataRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceErrataRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ListManagedInstanceErrataResponse>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceInstalledPackagesRecordEnumerator(ListManagedInstanceInstalledPackagesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the InstalledPackageSummary objects contained in responses from the ListManagedInstanceInstalledPackages operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<InstalledPackageSummary> ListManagedInstanceInstalledPackagesRecordEnumerator(ListManagedInstanceInstalledPackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceInstalledPackagesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<InstalledPackageSummary>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceInstalledPackagesResponseEnumerator(ListManagedInstanceInstalledPackagesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceInstalledPackages operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ListManagedInstanceInstalledPackagesResponse> ListManagedInstanceInstalledPackagesResponseEnumerator(ListManagedInstanceInstalledPackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceInstalledPackagesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ListManagedInstanceInstalledPackagesResponse>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceInstalledWindowsUpdatesRecordEnumerator(ListManagedInstanceInstalledWindowsUpdatesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the InstalledWindowsUpdateSummary objects contained in responses from the ListManagedInstanceInstalledWindowsUpdates operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<InstalledWindowsUpdateSummary> ListManagedInstanceInstalledWindowsUpdatesRecordEnumerator(ListManagedInstanceInstalledWindowsUpdatesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceInstalledWindowsUpdatesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<InstalledWindowsUpdateSummary>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceInstalledWindowsUpdatesResponseEnumerator(ListManagedInstanceInstalledWindowsUpdatesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceInstalledWindowsUpdates operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ListManagedInstanceInstalledWindowsUpdatesResponse> ListManagedInstanceInstalledWindowsUpdatesResponseEnumerator(ListManagedInstanceInstalledWindowsUpdatesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceInstalledWindowsUpdatesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ListManagedInstanceInstalledWindowsUpdatesResponse>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceModulesRecordEnumerator(ListManagedInstanceModulesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the ManagedInstanceModuleSummary objects contained in responses from the ListManagedInstanceModules operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ManagedInstanceModuleSummary> ListManagedInstanceModulesRecordEnumerator(ListManagedInstanceModulesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceModulesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ManagedInstanceModuleSummary>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceModulesResponseEnumerator(ListManagedInstanceModulesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceModules operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ListManagedInstanceModulesResponse> ListManagedInstanceModulesResponseEnumerator(ListManagedInstanceModulesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceModulesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ListManagedInstanceModulesResponse>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceUpdatablePackagesRecordEnumerator(ListManagedInstanceUpdatablePackagesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the UpdatablePackageSummary objects contained in responses from the ListManagedInstanceUpdatablePackages operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<UpdatablePackageSummary> ListManagedInstanceUpdatablePackagesRecordEnumerator(ListManagedInstanceUpdatablePackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceUpdatablePackagesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<UpdatablePackageSummary>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstanceUpdatablePackagesResponseEnumerator(ListManagedInstanceUpdatablePackagesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceUpdatablePackages operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ListManagedInstanceUpdatablePackagesResponse> ListManagedInstanceUpdatablePackagesResponseEnumerator(ListManagedInstanceUpdatablePackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstanceUpdatablePackagesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ListManagedInstanceUpdatablePackagesResponse>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstancesRecordEnumerator(ListManagedInstancesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the ManagedInstanceSummary objects contained in responses from the ListManagedInstances operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ManagedInstanceSummary> ListManagedInstancesRecordEnumerator(ListManagedInstancesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstancesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ManagedInstanceSummary>

The enumerator, which supports a simple iteration over a collection of a specified type

ListManagedInstancesResponseEnumerator(ListManagedInstancesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the responses received from the ListManagedInstances operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ListManagedInstancesResponse> ListManagedInstancesResponseEnumerator(ListManagedInstancesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListManagedInstancesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ListManagedInstancesResponse>

The enumerator, which supports a simple iteration over a collection of a specified type

ListWindowsUpdatesRecordEnumerator(ListWindowsUpdatesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the WindowsUpdateSummary objects contained in responses from the ListWindowsUpdates operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<WindowsUpdateSummary> ListWindowsUpdatesRecordEnumerator(ListWindowsUpdatesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListWindowsUpdatesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<WindowsUpdateSummary>

The enumerator, which supports a simple iteration over a collection of a specified type

ListWindowsUpdatesResponseEnumerator(ListWindowsUpdatesRequest, RetryConfiguration, CancellationToken)

Creates a new enumerable which will iterate over the responses received from the ListWindowsUpdates operation. This enumerable will fetch more data from the server as needed.

Declaration
public IEnumerable<ListWindowsUpdatesResponse> ListWindowsUpdatesResponseEnumerator(ListWindowsUpdatesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListWindowsUpdatesRequest request

The request object containing the details to send

RetryConfiguration retryConfiguration

The configuration for retrying, may be null

CancellationToken cancellationToken

The cancellation token object

Returns
Type Description
IEnumerable<ListWindowsUpdatesResponse>

The enumerator, which supports a simple iteration over a collection of a specified type

In this article
Back to top