OpenShiftManagedClustersOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ContainerServiceClient's

<xref:open_shift_managed_clusters> attribute.

Inheritance
builtins.object
OpenShiftManagedClustersOperations

Constructor

OpenShiftManagedClustersOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates an OpenShift managed cluster.

Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version.

begin_delete

Deletes an OpenShift managed cluster.

Deletes the OpenShift managed cluster with a specified resource group and name.

begin_update_tags

Updates tags on an OpenShift managed cluster.

Updates an OpenShift managed cluster with the specified tags.

get

Gets a OpenShift managed cluster.

Gets the details of the managed OpenShift cluster with a specified resource group and name.

list

Gets a list of OpenShift managed clusters in the specified subscription.

Gets a list of OpenShift managed clusters in the specified subscription. The operation returns properties of each OpenShift managed cluster.

list_by_resource_group

Lists OpenShift managed clusters in the specified subscription and resource group.

Lists OpenShift managed clusters in the specified subscription and resource group. The operation returns properties of each OpenShift managed cluster.

begin_create_or_update

Creates or updates an OpenShift managed cluster.

Creates or updates a OpenShift managed cluster with the specified configuration for agents and OpenShift version.

async begin_create_or_update(resource_group_name: str, resource_name: str, parameters: _models.OpenShiftManagedCluster, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.OpenShiftManagedCluster]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

resource_name
Required
str

The name of the OpenShift managed cluster resource. Required.

parameters
Required

Parameters supplied to the Create or Update an OpenShift Managed Cluster operation. Is either a OpenShiftManagedCluster type or a IO[bytes] type. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either OpenShiftManagedCluster or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes an OpenShift managed cluster.

Deletes the OpenShift managed cluster with a specified resource group and name.

async begin_delete(resource_group_name: str, resource_name: str, **kwargs: Any) -> AsyncLROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

resource_name
Required
str

The name of the OpenShift managed cluster resource. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_update_tags

Updates tags on an OpenShift managed cluster.

Updates an OpenShift managed cluster with the specified tags.

async begin_update_tags(resource_group_name: str, resource_name: str, parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.OpenShiftManagedCluster]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

resource_name
Required
str

The name of the OpenShift managed cluster resource. Required.

parameters
Required

Parameters supplied to the Update OpenShift Managed Cluster Tags operation. Is either a TagsObject type or a IO[bytes] type. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either OpenShiftManagedCluster or the result of cls(response)

Exceptions

Type Description

get

Gets a OpenShift managed cluster.

Gets the details of the managed OpenShift cluster with a specified resource group and name.

async get(resource_group_name: str, resource_name: str, **kwargs: Any) -> OpenShiftManagedCluster

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

resource_name
Required
str

The name of the OpenShift managed cluster resource. Required.

Returns

Type Description

OpenShiftManagedCluster or the result of cls(response)

Exceptions

Type Description

list

Gets a list of OpenShift managed clusters in the specified subscription.

Gets a list of OpenShift managed clusters in the specified subscription. The operation returns properties of each OpenShift managed cluster.

list(**kwargs: Any) -> AsyncIterable[OpenShiftManagedCluster]

Returns

Type Description

An iterator like instance of either OpenShiftManagedCluster or the result of cls(response)

Exceptions

Type Description

list_by_resource_group

Lists OpenShift managed clusters in the specified subscription and resource group.

Lists OpenShift managed clusters in the specified subscription and resource group. The operation returns properties of each OpenShift managed cluster.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[OpenShiftManagedCluster]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

Returns

Type Description

An iterator like instance of either OpenShiftManagedCluster or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.containerservice.v2019_04_30.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\containerservice\\v2019_04_30\\models\\__init__.py'>