Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions sdk/redhatopenshift/azure-mgmt-redhatopenshift/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
# Release History

## 3.0.0 (2026-02-06)

### Features Added

- Model `AzureRedHatOpenShiftClient` added parameter `cloud_setting` in method `__init__`
- Client `AzureRedHatOpenShiftClient` added operation group `platform_workload_identity_role_sets`
- Client `AzureRedHatOpenShiftClient` added operation group `platform_workload_identity_role_set`
- Model `ClusterProfile` added property `oidc_issuer`
- Model `OpenShiftCluster` added property `identity`
- Model `OpenShiftCluster` added property `platform_workload_identity_profile`
- Model `OpenShiftClusterUpdate` added property `identity`
- Model `OpenShiftClusterUpdate` added property `platform_workload_identity_profile`
- Added model `ManagedServiceIdentity`
- Added enum `ManagedServiceIdentityType`
- Added model `PlatformWorkloadIdentity`
- Added model `PlatformWorkloadIdentityProfile`
- Added model `PlatformWorkloadIdentityRole`
- Added model `PlatformWorkloadIdentityRoleSet`
- Added model `PlatformWorkloadIdentityRoleSetList`
- Added model `UserAssignedIdentity`
- Added operation group `PlatformWorkloadIdentityRoleSetOperations`
- Added operation group `PlatformWorkloadIdentityRoleSetsOperations`

### Breaking Changes

- Deleted or renamed client operation group `AzureRedHatOpenShiftClient.machine_pools`
- Deleted or renamed client operation group `AzureRedHatOpenShiftClient.secrets`
- Deleted or renamed client operation group `AzureRedHatOpenShiftClient.sync_identity_providers`
- Deleted or renamed client operation group `AzureRedHatOpenShiftClient.sync_sets`
- Model `OpenShiftClusterUpdate` deleted or renamed its instance variable `system_data`
- Deleted or renamed model `MachinePool`
- Deleted or renamed model `MachinePoolList`
- Deleted or renamed model `MachinePoolUpdate`
- Deleted or renamed model `Secret`
- Deleted or renamed model `SecretList`
- Deleted or renamed model `SecretUpdate`
- Deleted or renamed model `SyncIdentityProvider`
- Deleted or renamed model `SyncIdentityProviderList`
- Deleted or renamed model `SyncIdentityProviderUpdate`
- Deleted or renamed model `SyncSet`
- Deleted or renamed model `SyncSetList`
- Deleted or renamed model `SyncSetUpdate`
- Deleted or renamed operation group `MachinePoolsOperations`
- Deleted or renamed operation group `SecretsOperations`
- Deleted or renamed operation group `SyncIdentityProvidersOperations`
- Deleted or renamed operation group `SyncSetsOperations`

## 2.0.0 (2024-10-30)

### Breaking Changes
Expand Down
9 changes: 4 additions & 5 deletions sdk/redhatopenshift/azure-mgmt-redhatopenshift/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
include _meta.json
recursive-include tests *.py *.json
recursive-include samples *.py *.md
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
include LICENSE
include azure/mgmt/redhatopenshift/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/mgmt/__init__.py
6 changes: 3 additions & 3 deletions sdk/redhatopenshift/azure-mgmt-redhatopenshift/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Red Hat Openshift Management Client Library.
This package has been tested with Python 3.8+.
This package has been tested with Python 3.9+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_
Expand All @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For

### Prerequisites

- Python 3.8+ is required to use this package.
- Python 3.9+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package
Expand All @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
11 changes: 0 additions & 11 deletions sdk/redhatopenshift/azure-mgmt-redhatopenshift/_meta.json

This file was deleted.

11 changes: 11 additions & 0 deletions sdk/redhatopenshift/azure-mgmt-redhatopenshift/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commit": "f52764d11d53276b79bbbba37f977ef0b03bbd2c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.45.1",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/OpenShiftClusters/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.45.1 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/OpenShiftClusters/readme.md"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"CrossLanguagePackageId": null,
"CrossLanguageDefinitionId": {
"azure.mgmt.redhatopenshift.models.APIServerProfile": null,
"azure.mgmt.redhatopenshift.models.CloudErrorBody": null,
"azure.mgmt.redhatopenshift.models.ClusterProfile": null,
"azure.mgmt.redhatopenshift.models.ConsoleProfile": null,
"azure.mgmt.redhatopenshift.models.Display": null,
"azure.mgmt.redhatopenshift.models.EffectiveOutboundIP": null,
"azure.mgmt.redhatopenshift.models.IngressProfile": null,
"azure.mgmt.redhatopenshift.models.LoadBalancerProfile": null,
"azure.mgmt.redhatopenshift.models.ManagedOutboundIPs": null,
"azure.mgmt.redhatopenshift.models.ManagedServiceIdentity": null,
"azure.mgmt.redhatopenshift.models.MasterProfile": null,
"azure.mgmt.redhatopenshift.models.NetworkProfile": null,
"azure.mgmt.redhatopenshift.models.Resource": null,
"azure.mgmt.redhatopenshift.models.TrackedResource": null,
"azure.mgmt.redhatopenshift.models.OpenShiftCluster": null,
"azure.mgmt.redhatopenshift.models.OpenShiftClusterAdminKubeconfig": null,
"azure.mgmt.redhatopenshift.models.OpenShiftClusterCredentials": null,
"azure.mgmt.redhatopenshift.models.OpenShiftClusterList": null,
"azure.mgmt.redhatopenshift.models.OpenShiftClusterUpdate": null,
"azure.mgmt.redhatopenshift.models.ProxyResource": null,
"azure.mgmt.redhatopenshift.models.OpenShiftVersion": null,
"azure.mgmt.redhatopenshift.models.OpenShiftVersionList": null,
"azure.mgmt.redhatopenshift.models.Operation": null,
"azure.mgmt.redhatopenshift.models.OperationList": null,
"azure.mgmt.redhatopenshift.models.PlatformWorkloadIdentity": null,
"azure.mgmt.redhatopenshift.models.PlatformWorkloadIdentityProfile": null,
"azure.mgmt.redhatopenshift.models.PlatformWorkloadIdentityRole": null,
"azure.mgmt.redhatopenshift.models.PlatformWorkloadIdentityRoleSet": null,
"azure.mgmt.redhatopenshift.models.PlatformWorkloadIdentityRoleSetList": null,
"azure.mgmt.redhatopenshift.models.ServicePrincipalProfile": null,
"azure.mgmt.redhatopenshift.models.SystemData": null,
"azure.mgmt.redhatopenshift.models.UserAssignedIdentity": null,
"azure.mgmt.redhatopenshift.models.WorkerProfile": null,
"azure.mgmt.redhatopenshift.models.CreatedByType": null,
"azure.mgmt.redhatopenshift.models.EncryptionAtHost": null,
"azure.mgmt.redhatopenshift.models.Visibility": null,
"azure.mgmt.redhatopenshift.models.ManagedServiceIdentityType": null,
"azure.mgmt.redhatopenshift.models.ProvisioningState": null,
"azure.mgmt.redhatopenshift.models.FipsValidatedModules": null,
"azure.mgmt.redhatopenshift.models.OutboundType": null,
"azure.mgmt.redhatopenshift.models.PreconfiguredNSG": null,
"azure.mgmt.redhatopenshift.operations.Operations.list": null,
"azure.mgmt.redhatopenshift.aio.operations.Operations.list": null,
"azure.mgmt.redhatopenshift.operations.OpenShiftVersionsOperations.list": null,
"azure.mgmt.redhatopenshift.aio.operations.OpenShiftVersionsOperations.list": null,
"azure.mgmt.redhatopenshift.operations.OpenShiftVersionsOperations.get": null,
"azure.mgmt.redhatopenshift.aio.operations.OpenShiftVersionsOperations.get": null,
"azure.mgmt.redhatopenshift.operations.PlatformWorkloadIdentityRoleSetsOperations.list": null,
"azure.mgmt.redhatopenshift.aio.operations.PlatformWorkloadIdentityRoleSetsOperations.list": null,
"azure.mgmt.redhatopenshift.operations.PlatformWorkloadIdentityRoleSetOperations.get": null,
"azure.mgmt.redhatopenshift.aio.operations.PlatformWorkloadIdentityRoleSetOperations.get": null,
"azure.mgmt.redhatopenshift.operations.OpenShiftClustersOperations.list": null,
"azure.mgmt.redhatopenshift.aio.operations.OpenShiftClustersOperations.list": null,
"azure.mgmt.redhatopenshift.operations.OpenShiftClustersOperations.list_by_resource_group": null,
"azure.mgmt.redhatopenshift.aio.operations.OpenShiftClustersOperations.list_by_resource_group": null,
"azure.mgmt.redhatopenshift.operations.OpenShiftClustersOperations.get": null,
"azure.mgmt.redhatopenshift.aio.operations.OpenShiftClustersOperations.get": null,
"azure.mgmt.redhatopenshift.operations.OpenShiftClustersOperations.begin_create_or_update": null,
"azure.mgmt.redhatopenshift.aio.operations.OpenShiftClustersOperations.begin_create_or_update": null,
"azure.mgmt.redhatopenshift.operations.OpenShiftClustersOperations.begin_delete": null,
"azure.mgmt.redhatopenshift.aio.operations.OpenShiftClustersOperations.begin_delete": null,
"azure.mgmt.redhatopenshift.operations.OpenShiftClustersOperations.begin_update": null,
"azure.mgmt.redhatopenshift.aio.operations.OpenShiftClustersOperations.begin_update": null,
"azure.mgmt.redhatopenshift.operations.OpenShiftClustersOperations.list_admin_credentials": null,
"azure.mgmt.redhatopenshift.aio.operations.OpenShiftClustersOperations.list_admin_credentials": null,
"azure.mgmt.redhatopenshift.operations.OpenShiftClustersOperations.list_credentials": null,
"azure.mgmt.redhatopenshift.aio.operations.OpenShiftClustersOperations.list_credentials": null
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._azure_red_hat_open_shift_client import AzureRedHatOpenShiftClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._azure_red_hat_open_shift_client import AzureRedHatOpenShiftClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AzureRedHatOpenShiftClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,58 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import Any, TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING, cast
from typing_extensions import Self

from azure.core.pipeline import policies
from azure.core.rest import HttpRequest, HttpResponse
from azure.core.settings import settings
from azure.mgmt.core import ARMPipelineClient
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
from azure.mgmt.core.tools import get_arm_endpoints

from . import models as _models
from ._configuration import AzureRedHatOpenShiftClientConfiguration
from ._serialization import Deserializer, Serializer
from ._utils.serialization import Deserializer, Serializer
from .operations import (
MachinePoolsOperations,
OpenShiftClustersOperations,
OpenShiftVersionsOperations,
Operations,
SecretsOperations,
SyncIdentityProvidersOperations,
SyncSetsOperations,
PlatformWorkloadIdentityRoleSetOperations,
PlatformWorkloadIdentityRoleSetsOperations,
)

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core import AzureClouds
from azure.core.credentials import TokenCredential


class AzureRedHatOpenShiftClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class AzureRedHatOpenShiftClient:
"""Rest API for Azure Red Hat OpenShift 4.

:ivar operations: Operations operations
:vartype operations: azure.mgmt.redhatopenshift.operations.Operations
:ivar open_shift_versions: OpenShiftVersionsOperations operations
:vartype open_shift_versions: azure.mgmt.redhatopenshift.operations.OpenShiftVersionsOperations
:ivar platform_workload_identity_role_sets: PlatformWorkloadIdentityRoleSetsOperations
operations
:vartype platform_workload_identity_role_sets:
azure.mgmt.redhatopenshift.operations.PlatformWorkloadIdentityRoleSetsOperations
:ivar platform_workload_identity_role_set: PlatformWorkloadIdentityRoleSetOperations operations
:vartype platform_workload_identity_role_set:
azure.mgmt.redhatopenshift.operations.PlatformWorkloadIdentityRoleSetOperations
:ivar open_shift_clusters: OpenShiftClustersOperations operations
:vartype open_shift_clusters: azure.mgmt.redhatopenshift.operations.OpenShiftClustersOperations
:ivar machine_pools: MachinePoolsOperations operations
:vartype machine_pools: azure.mgmt.redhatopenshift.operations.MachinePoolsOperations
:ivar secrets: SecretsOperations operations
:vartype secrets: azure.mgmt.redhatopenshift.operations.SecretsOperations
:ivar sync_identity_providers: SyncIdentityProvidersOperations operations
:vartype sync_identity_providers:
azure.mgmt.redhatopenshift.operations.SyncIdentityProvidersOperations
:ivar sync_sets: SyncSetsOperations operations
:vartype sync_sets: azure.mgmt.redhatopenshift.operations.SyncSetsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:param base_url: Service URL. Default value is None.
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-11-22". Note that overriding this
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:paramtype cloud_setting: ~azure.core.AzureClouds
:keyword api_version: Api Version. Default value is "2025-07-25". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand All @@ -68,12 +69,24 @@ def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
base_url: Optional[str] = None,
*,
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
_endpoints = get_arm_endpoints(_cloud)
if not base_url:
base_url = _endpoints["resource_manager"]
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
self._config = AzureRedHatOpenShiftClientConfiguration(
credential=credential, subscription_id=subscription_id, **kwargs
credential=credential,
subscription_id=subscription_id,
cloud_setting=cloud_setting,
credential_scopes=credential_scopes,
**kwargs
)

_policies = kwargs.pop("policies", None)
if _policies is None:
_policies = [
Expand All @@ -92,7 +105,7 @@ def __init__(
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
self._config.http_logging_policy,
]
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)

client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand All @@ -102,15 +115,15 @@ def __init__(
self.open_shift_versions = OpenShiftVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.open_shift_clusters = OpenShiftClustersOperations(
self.platform_workload_identity_role_sets = PlatformWorkloadIdentityRoleSetsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.machine_pools = MachinePoolsOperations(self._client, self._config, self._serialize, self._deserialize)
self.secrets = SecretsOperations(self._client, self._config, self._serialize, self._deserialize)
self.sync_identity_providers = SyncIdentityProvidersOperations(
self.platform_workload_identity_role_set = PlatformWorkloadIdentityRoleSetOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.open_shift_clusters = OpenShiftClustersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.sync_sets = SyncSetsOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Loading