ManagedInstanceGroupClientCompositeOperations

class oci.os_management_hub.ManagedInstanceGroupClientCompositeOperations(client, **kwargs)

This class provides a wrapper around ManagedInstanceGroupClient and offers convenience methods for operations that would otherwise need to be chained together. For example, instead of performing an action on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource to enter a given state, you can call a single method in this class to accomplish the same functionality

Methods

__init__(client, **kwargs) Creates a new ManagedInstanceGroupClientCompositeOperations object
attach_managed_instances_to_managed_instance_group_and_wait_for_state(…) Calls attach_managed_instances_to_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
attach_software_sources_to_managed_instance_group_and_wait_for_state(…) Calls attach_software_sources_to_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
create_managed_instance_group_and_wait_for_state(…) Calls create_managed_instance_group() and waits for the ManagedInstanceGroup acted upon to enter the given state(s).
delete_managed_instance_group_and_wait_for_state(…) Calls delete_managed_instance_group() and waits for the ManagedInstanceGroup acted upon to enter the given state(s).
disable_module_stream_on_managed_instance_group_and_wait_for_state(…) Calls disable_module_stream_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
enable_module_stream_on_managed_instance_group_and_wait_for_state(…) Calls enable_module_stream_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
install_module_stream_profile_on_managed_instance_group_and_wait_for_state(…) Calls install_module_stream_profile_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
install_packages_on_managed_instance_group_and_wait_for_state(…) Calls install_packages_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
install_windows_updates_on_managed_instance_group_and_wait_for_state(…) Calls install_windows_updates_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
list_managed_instance_group_modules_and_wait_for_state(…) Calls list_managed_instance_group_modules() and waits for the WorkRequest to enter the given state(s).
manage_module_streams_on_managed_instance_group_and_wait_for_state(…) Calls manage_module_streams_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
remove_module_stream_profile_from_managed_instance_group_and_wait_for_state(…) Calls remove_module_stream_profile_from_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
remove_packages_from_managed_instance_group_and_wait_for_state(…) Calls remove_packages_from_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
switch_module_stream_on_managed_instance_group_and_wait_for_state(…) Calls switch_module_stream_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
update_all_packages_on_managed_instance_group_and_wait_for_state(…) Calls update_all_packages_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).
update_managed_instance_group_and_wait_for_state(…) Calls update_managed_instance_group() and waits for the ManagedInstanceGroup acted upon to enter the given state(s).
__init__(client, **kwargs)

Creates a new ManagedInstanceGroupClientCompositeOperations object

Parameters:client (ManagedInstanceGroupClient) – The service client which will be wrapped by this object
attach_managed_instances_to_managed_instance_group_and_wait_for_state(managed_instance_group_id, attach_managed_instances_to_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls attach_managed_instances_to_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • attach_managed_instances_to_managed_instance_group_details (oci.os_management_hub.models.AttachManagedInstancesToManagedInstanceGroupDetails) –

    (required) The managed instances OCIDs to attach to the managed instance group.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to attach_managed_instances_to_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
attach_software_sources_to_managed_instance_group_and_wait_for_state(managed_instance_group_id, attach_software_sources_to_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls attach_software_sources_to_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • attach_software_sources_to_managed_instance_group_details (oci.os_management_hub.models.AttachSoftwareSourcesToManagedInstanceGroupDetails) –

    (required) The software source OCIDs to attach to the managed instance group.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to attach_software_sources_to_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
create_managed_instance_group_and_wait_for_state(create_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls create_managed_instance_group() and waits for the ManagedInstanceGroup acted upon to enter the given state(s).

Parameters:
  • create_managed_instance_group_details (oci.os_management_hub.models.CreateManagedInstanceGroupDetails) – (required) Provides the information used to create the managed instance group.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to create_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
delete_managed_instance_group_and_wait_for_state(managed_instance_group_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls delete_managed_instance_group() and waits for the ManagedInstanceGroup acted upon to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to delete_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
disable_module_stream_on_managed_instance_group_and_wait_for_state(managed_instance_group_id, disable_module_stream_on_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls disable_module_stream_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • disable_module_stream_on_managed_instance_group_details (oci.os_management_hub.models.DisableModuleStreamOnManagedInstanceGroupDetails) – (required) The details used to disable modules on the managed instance group.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to disable_module_stream_on_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
enable_module_stream_on_managed_instance_group_and_wait_for_state(managed_instance_group_id, enable_module_stream_on_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls enable_module_stream_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • enable_module_stream_on_managed_instance_group_details (oci.os_management_hub.models.EnableModuleStreamOnManagedInstanceGroupDetails) – (required) The details used to enable the module stream on the managed instance group.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to enable_module_stream_on_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
install_module_stream_profile_on_managed_instance_group_and_wait_for_state(managed_instance_group_id, install_module_stream_profile_on_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls install_module_stream_profile_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • install_module_stream_profile_on_managed_instance_group_details (oci.os_management_hub.models.InstallModuleStreamProfileOnManagedInstanceGroupDetails) – (required) The details used to install module stream profiles on a managed instance gorup.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to install_module_stream_profile_on_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
install_packages_on_managed_instance_group_and_wait_for_state(managed_instance_group_id, install_packages_on_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls install_packages_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • install_packages_on_managed_instance_group_details (oci.os_management_hub.models.InstallPackagesOnManagedInstanceGroupDetails) – (required) The names of packages to install on the specified managed instance group.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to install_packages_on_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
install_windows_updates_on_managed_instance_group_and_wait_for_state(managed_instance_group_id, install_windows_updates_on_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls install_windows_updates_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • install_windows_updates_on_managed_instance_group_details (oci.os_management_hub.models.InstallWindowsUpdatesOnManagedInstanceGroupDetails) – (required) Provides the details used to install Windows updates on a managed instance group.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to install_windows_updates_on_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
list_managed_instance_group_modules_and_wait_for_state(managed_instance_group_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls list_managed_instance_group_modules() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to list_managed_instance_group_modules()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
manage_module_streams_on_managed_instance_group_and_wait_for_state(managed_instance_group_id, manage_module_streams_on_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls manage_module_streams_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • manage_module_streams_on_managed_instance_group_details (oci.os_management_hub.models.ManageModuleStreamsOnManagedInstanceGroupDetails) – (required) The set of changes to make to the modules, streams, and profiles on a managed instance group.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to manage_module_streams_on_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
remove_module_stream_profile_from_managed_instance_group_and_wait_for_state(managed_instance_group_id, remove_module_stream_profile_from_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls remove_module_stream_profile_from_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • remove_module_stream_profile_from_managed_instance_group_details (oci.os_management_hub.models.RemoveModuleStreamProfileFromManagedInstanceGroupDetails) – (required) The details used to remove profiles from the managed instance group. Providing the module stream name (without specifying a profile name) removes all profiles that have been installed for the module stream.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to remove_module_stream_profile_from_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
remove_packages_from_managed_instance_group_and_wait_for_state(managed_instance_group_id, remove_packages_from_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls remove_packages_from_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • remove_packages_from_managed_instance_group_details (oci.os_management_hub.models.RemovePackagesFromManagedInstanceGroupDetails) – (required) The names of packages to remove from the specified managed instance group.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to remove_packages_from_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
switch_module_stream_on_managed_instance_group_and_wait_for_state(managed_instance_group_id, switch_module_stream_on_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls switch_module_stream_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • switch_module_stream_on_managed_instance_group_details (oci.os_management_hub.models.SwitchModuleStreamOnManagedInstanceGroupDetails) – (required) Provides the details used to switch module streams on a managed instance group.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to switch_module_stream_on_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
update_all_packages_on_managed_instance_group_and_wait_for_state(managed_instance_group_id, update_all_packages_on_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_all_packages_on_managed_instance_group() and waits for the WorkRequest to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • update_all_packages_on_managed_instance_group_details (oci.os_management_hub.models.UpdateAllPackagesOnManagedInstanceGroupDetails) – (required) Details for update operation on the managed instance group.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for status
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_all_packages_on_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
update_managed_instance_group_and_wait_for_state(managed_instance_group_id, update_managed_instance_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={})

Calls update_managed_instance_group() and waits for the ManagedInstanceGroup acted upon to enter the given state(s).

Parameters:
  • managed_instance_group_id (str) –

    (required) The OCID of the managed instance group.

  • update_managed_instance_group_details (oci.os_management_hub.models.UpdateManagedInstanceGroupDetails) – (required) Provides the details used to update the managed instance group.
  • wait_for_states (list[str]) – An array of states to wait on. These should be valid values for lifecycle_state
  • operation_kwargs (dict) – A dictionary of keyword arguments to pass to update_managed_instance_group()
  • waiter_kwargs (dict) – A dictionary of keyword arguments to pass to the oci.wait_until() function. For example, you could pass max_interval_seconds or max_interval_seconds as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait