Skip to content
Closed
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
1 change: 1 addition & 0 deletions sdk/redhatopenshift/azure-mgmt-redhatopenshift/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/redhatopenshift/azure-mgmt-redhatopenshift/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "9a28455162679e793f3dd15e50b0d3eab3058183",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/redhatopenshift/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
"readme": "specification/redhatopenshift/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from ._configuration import AzureRedHatOpenShiftClientConfiguration
from ._azure_red_hat_open_shift_client import AzureRedHatOpenShiftClient
__all__ = ['AzureRedHatOpenShiftClient', 'AzureRedHatOpenShiftClientConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import AzureRedHatOpenShiftClientConfiguration
from .operations import Operations
from .operations import OpenShiftClustersOperations
from . import models


class AzureRedHatOpenShiftClient(SDKClient):
"""Rest API for Azure Red Hat OpenShift 4

:ivar config: Configuration for client.
:vartype config: AzureRedHatOpenShiftClientConfiguration

:ivar operations: Operations operations
:vartype operations: azure.mgmt.redhatopenshift.v2021_09_01_preview.operations.Operations
:ivar open_shift_clusters: OpenShiftClusters operations
:vartype open_shift_clusters: azure.mgmt.redhatopenshift.v2021_09_01_preview.operations.OpenShiftClustersOperations

:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, subscription_id, base_url=None):

self.config = AzureRedHatOpenShiftClientConfiguration(subscription_id, base_url)
super(AzureRedHatOpenShiftClient, self).__init__(None, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2021-09-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.open_shift_clusters = OpenShiftClustersOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest import Configuration

from .version import VERSION


class AzureRedHatOpenShiftClientConfiguration(Configuration):
"""Configuration for AzureRedHatOpenShiftClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, subscription_id, base_url=None):

if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(AzureRedHatOpenShiftClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azureredhatopenshiftclient/{}'.format(VERSION))

self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

try:
from ._models_py3 import APIServerProfile
from ._models_py3 import AzureEntityResource
from ._models_py3 import CloudError, CloudErrorException
from ._models_py3 import CloudErrorBody
from ._models_py3 import ClusterProfile
from ._models_py3 import ConsoleProfile
from ._models_py3 import Display
from ._models_py3 import IngressProfile
from ._models_py3 import MasterProfile
from ._models_py3 import NetworkProfile
from ._models_py3 import OpenShiftCluster
from ._models_py3 import OpenShiftClusterAdminKubeconfig
from ._models_py3 import OpenShiftClusterCredentials
from ._models_py3 import OpenShiftClusterList
from ._models_py3 import OpenShiftClusterUpdate
from ._models_py3 import Operation
from ._models_py3 import OperationList
from ._models_py3 import ProxyResource
from ._models_py3 import Resource
from ._models_py3 import ServicePrincipalProfile
from ._models_py3 import SystemData
from ._models_py3 import TrackedResource
from ._models_py3 import WorkerProfile
except (SyntaxError, ImportError):
from ._models import APIServerProfile
from ._models import AzureEntityResource
from ._models import CloudError, CloudErrorException
from ._models import CloudErrorBody
from ._models import ClusterProfile
from ._models import ConsoleProfile
from ._models import Display
from ._models import IngressProfile
from ._models import MasterProfile
from ._models import NetworkProfile
from ._models import OpenShiftCluster
from ._models import OpenShiftClusterAdminKubeconfig
from ._models import OpenShiftClusterCredentials
from ._models import OpenShiftClusterList
from ._models import OpenShiftClusterUpdate
from ._models import Operation
from ._models import OperationList
from ._models import ProxyResource
from ._models import Resource
from ._models import ServicePrincipalProfile
from ._models import SystemData
from ._models import TrackedResource
from ._models import WorkerProfile
from ._azure_red_hat_open_shift_client_enums import (
CreatedByType,
EncryptionAtHost,
SoftwareDefinedNetwork,
Visibility,
VMSize,
)

__all__ = [
'APIServerProfile',
'AzureEntityResource',
'CloudError', 'CloudErrorException',
'CloudErrorBody',
'ClusterProfile',
'ConsoleProfile',
'Display',
'IngressProfile',
'MasterProfile',
'NetworkProfile',
'OpenShiftCluster',
'OpenShiftClusterAdminKubeconfig',
'OpenShiftClusterCredentials',
'OpenShiftClusterList',
'OpenShiftClusterUpdate',
'Operation',
'OperationList',
'ProxyResource',
'Resource',
'ServicePrincipalProfile',
'SystemData',
'TrackedResource',
'WorkerProfile',
'Visibility',
'EncryptionAtHost',
'VMSize',
'SoftwareDefinedNetwork',
'CreatedByType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from enum import Enum


class Visibility(str, Enum):

private = "Private"
public = "Public"


class EncryptionAtHost(str, Enum):

disabled = "Disabled"
enabled = "Enabled"


class VMSize(str, Enum):

standard_d16as_v4 = "Standard_D16as_v4"
standard_d16s_v3 = "Standard_D16s_v3"
standard_d2s_v3 = "Standard_D2s_v3"
standard_d32as_v4 = "Standard_D32as_v4"
standard_d32s_v3 = "Standard_D32s_v3"
standard_d4as_v4 = "Standard_D4as_v4"
standard_d4s_v3 = "Standard_D4s_v3"
standard_d8as_v4 = "Standard_D8as_v4"
standard_d8s_v3 = "Standard_D8s_v3"
standard_e16s_v3 = "Standard_E16s_v3"
standard_e32s_v3 = "Standard_E32s_v3"
standard_e4s_v3 = "Standard_E4s_v3"
standard_e64i_v3 = "Standard_E64i_v3"
standard_e64is_v3 = "Standard_E64is_v3"
standard_e8s_v3 = "Standard_E8s_v3"
standard_f16s_v2 = "Standard_F16s_v2"
standard_f32s_v2 = "Standard_F32s_v2"
standard_f4s_v2 = "Standard_F4s_v2"
standard_f72s_v2 = "Standard_F72s_v2"
standard_f8s_v2 = "Standard_F8s_v2"
standard_g5 = "Standard_G5"
standard_gs5 = "Standard_GS5"
standard_m128ms = "Standard_M128ms"


class SoftwareDefinedNetwork(str, Enum):

ovn_kubernetes = "OVNKubernetes"
open_shift_sdn = "OpenShiftSDN"


class CreatedByType(str, Enum):

user = "User"
application = "Application"
managed_identity = "ManagedIdentity"
key = "Key"
Loading