Skip to content

Commit 547cf04

Browse files
author
SDKAuto
committed
CodeGen from PR 16973 in Azure/azure-rest-api-specs
Merge 1ce8948d9a38b427668a1a82031d35b5ae2aca8c into d90729b
1 parent 3a14782 commit 547cf04

File tree

16 files changed

+2509
-0
lines changed

16 files changed

+2509
-0
lines changed

sdk/redhatopenshift/azure-mgmt-redhatopenshift/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "9a28455162679e793f3dd15e50b0d3eab3058183",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"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",
7+
"readme": "specification/redhatopenshift/resource-manager/readme.md"
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Code generated by Microsoft (R) AutoRest Code Generator.
4+
# Changes may cause incorrect behavior and will be lost if the code is
5+
# regenerated.
6+
# --------------------------------------------------------------------------
7+
8+
from ._configuration import AzureRedHatOpenShiftClientConfiguration
9+
from ._azure_red_hat_open_shift_client import AzureRedHatOpenShiftClient
10+
__all__ = ['AzureRedHatOpenShiftClient', 'AzureRedHatOpenShiftClientConfiguration']
11+
12+
from .version import VERSION
13+
14+
__version__ = VERSION
15+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Code generated by Microsoft (R) AutoRest Code Generator.
4+
# Changes may cause incorrect behavior and will be lost if the code is
5+
# regenerated.
6+
# --------------------------------------------------------------------------
7+
8+
from msrest.service_client import SDKClient
9+
from msrest import Serializer, Deserializer
10+
11+
from ._configuration import AzureRedHatOpenShiftClientConfiguration
12+
from .operations import Operations
13+
from .operations import OpenShiftClustersOperations
14+
from . import models
15+
16+
17+
class AzureRedHatOpenShiftClient(SDKClient):
18+
"""Rest API for Azure Red Hat OpenShift 4
19+
20+
:ivar config: Configuration for client.
21+
:vartype config: AzureRedHatOpenShiftClientConfiguration
22+
23+
:ivar operations: Operations operations
24+
:vartype operations: azure.mgmt.redhatopenshift.v2021_09_01_preview.operations.Operations
25+
:ivar open_shift_clusters: OpenShiftClusters operations
26+
:vartype open_shift_clusters: azure.mgmt.redhatopenshift.v2021_09_01_preview.operations.OpenShiftClustersOperations
27+
28+
:param subscription_id: The ID of the target subscription.
29+
:type subscription_id: str
30+
:param str base_url: Service URL
31+
"""
32+
33+
def __init__(
34+
self, subscription_id, base_url=None):
35+
36+
self.config = AzureRedHatOpenShiftClientConfiguration(subscription_id, base_url)
37+
super(AzureRedHatOpenShiftClient, self).__init__(None, self.config)
38+
39+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
40+
self.api_version = '2021-09-01-preview'
41+
self._serialize = Serializer(client_models)
42+
self._deserialize = Deserializer(client_models)
43+
44+
self.operations = Operations(
45+
self._client, self.config, self._serialize, self._deserialize)
46+
self.open_shift_clusters = OpenShiftClustersOperations(
47+
self._client, self.config, self._serialize, self._deserialize)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Code generated by Microsoft (R) AutoRest Code Generator.
4+
# Changes may cause incorrect behavior and will be lost if the code is
5+
# regenerated.
6+
# --------------------------------------------------------------------------
7+
8+
from msrest import Configuration
9+
10+
from .version import VERSION
11+
12+
13+
class AzureRedHatOpenShiftClientConfiguration(Configuration):
14+
"""Configuration for AzureRedHatOpenShiftClient
15+
Note that all parameters used to create this instance are saved as instance
16+
attributes.
17+
18+
:param subscription_id: The ID of the target subscription.
19+
:type subscription_id: str
20+
:param str base_url: Service URL
21+
"""
22+
23+
def __init__(
24+
self, subscription_id, base_url=None):
25+
26+
if subscription_id is None:
27+
raise ValueError("Parameter 'subscription_id' must not be None.")
28+
if not base_url:
29+
base_url = 'https://management.azure.com'
30+
31+
super(AzureRedHatOpenShiftClientConfiguration, self).__init__(base_url)
32+
33+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
34+
self.keep_alive = True
35+
36+
self.add_user_agent('azureredhatopenshiftclient/{}'.format(VERSION))
37+
38+
self.subscription_id = subscription_id
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Code generated by Microsoft (R) AutoRest Code Generator.
4+
# Changes may cause incorrect behavior and will be lost if the code is
5+
# regenerated.
6+
# --------------------------------------------------------------------------
7+
8+
try:
9+
from ._models_py3 import APIServerProfile
10+
from ._models_py3 import AzureEntityResource
11+
from ._models_py3 import CloudError, CloudErrorException
12+
from ._models_py3 import CloudErrorBody
13+
from ._models_py3 import ClusterProfile
14+
from ._models_py3 import ConsoleProfile
15+
from ._models_py3 import Display
16+
from ._models_py3 import IngressProfile
17+
from ._models_py3 import MasterProfile
18+
from ._models_py3 import NetworkProfile
19+
from ._models_py3 import OpenShiftCluster
20+
from ._models_py3 import OpenShiftClusterAdminKubeconfig
21+
from ._models_py3 import OpenShiftClusterCredentials
22+
from ._models_py3 import OpenShiftClusterList
23+
from ._models_py3 import OpenShiftClusterUpdate
24+
from ._models_py3 import Operation
25+
from ._models_py3 import OperationList
26+
from ._models_py3 import ProxyResource
27+
from ._models_py3 import Resource
28+
from ._models_py3 import ServicePrincipalProfile
29+
from ._models_py3 import SystemData
30+
from ._models_py3 import TrackedResource
31+
from ._models_py3 import WorkerProfile
32+
except (SyntaxError, ImportError):
33+
from ._models import APIServerProfile
34+
from ._models import AzureEntityResource
35+
from ._models import CloudError, CloudErrorException
36+
from ._models import CloudErrorBody
37+
from ._models import ClusterProfile
38+
from ._models import ConsoleProfile
39+
from ._models import Display
40+
from ._models import IngressProfile
41+
from ._models import MasterProfile
42+
from ._models import NetworkProfile
43+
from ._models import OpenShiftCluster
44+
from ._models import OpenShiftClusterAdminKubeconfig
45+
from ._models import OpenShiftClusterCredentials
46+
from ._models import OpenShiftClusterList
47+
from ._models import OpenShiftClusterUpdate
48+
from ._models import Operation
49+
from ._models import OperationList
50+
from ._models import ProxyResource
51+
from ._models import Resource
52+
from ._models import ServicePrincipalProfile
53+
from ._models import SystemData
54+
from ._models import TrackedResource
55+
from ._models import WorkerProfile
56+
from ._azure_red_hat_open_shift_client_enums import (
57+
CreatedByType,
58+
EncryptionAtHost,
59+
SoftwareDefinedNetwork,
60+
Visibility,
61+
VMSize,
62+
)
63+
64+
__all__ = [
65+
'APIServerProfile',
66+
'AzureEntityResource',
67+
'CloudError', 'CloudErrorException',
68+
'CloudErrorBody',
69+
'ClusterProfile',
70+
'ConsoleProfile',
71+
'Display',
72+
'IngressProfile',
73+
'MasterProfile',
74+
'NetworkProfile',
75+
'OpenShiftCluster',
76+
'OpenShiftClusterAdminKubeconfig',
77+
'OpenShiftClusterCredentials',
78+
'OpenShiftClusterList',
79+
'OpenShiftClusterUpdate',
80+
'Operation',
81+
'OperationList',
82+
'ProxyResource',
83+
'Resource',
84+
'ServicePrincipalProfile',
85+
'SystemData',
86+
'TrackedResource',
87+
'WorkerProfile',
88+
'Visibility',
89+
'EncryptionAtHost',
90+
'VMSize',
91+
'SoftwareDefinedNetwork',
92+
'CreatedByType',
93+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Code generated by Microsoft (R) AutoRest Code Generator.
4+
# Changes may cause incorrect behavior and will be lost if the code is
5+
# regenerated.
6+
# --------------------------------------------------------------------------
7+
8+
from enum import Enum
9+
10+
11+
class Visibility(str, Enum):
12+
13+
private = "Private"
14+
public = "Public"
15+
16+
17+
class EncryptionAtHost(str, Enum):
18+
19+
disabled = "Disabled"
20+
enabled = "Enabled"
21+
22+
23+
class VMSize(str, Enum):
24+
25+
standard_d16as_v4 = "Standard_D16as_v4"
26+
standard_d16s_v3 = "Standard_D16s_v3"
27+
standard_d2s_v3 = "Standard_D2s_v3"
28+
standard_d32as_v4 = "Standard_D32as_v4"
29+
standard_d32s_v3 = "Standard_D32s_v3"
30+
standard_d4as_v4 = "Standard_D4as_v4"
31+
standard_d4s_v3 = "Standard_D4s_v3"
32+
standard_d8as_v4 = "Standard_D8as_v4"
33+
standard_d8s_v3 = "Standard_D8s_v3"
34+
standard_e16s_v3 = "Standard_E16s_v3"
35+
standard_e32s_v3 = "Standard_E32s_v3"
36+
standard_e4s_v3 = "Standard_E4s_v3"
37+
standard_e64i_v3 = "Standard_E64i_v3"
38+
standard_e64is_v3 = "Standard_E64is_v3"
39+
standard_e8s_v3 = "Standard_E8s_v3"
40+
standard_f16s_v2 = "Standard_F16s_v2"
41+
standard_f32s_v2 = "Standard_F32s_v2"
42+
standard_f4s_v2 = "Standard_F4s_v2"
43+
standard_f72s_v2 = "Standard_F72s_v2"
44+
standard_f8s_v2 = "Standard_F8s_v2"
45+
standard_g5 = "Standard_G5"
46+
standard_gs5 = "Standard_GS5"
47+
standard_m128ms = "Standard_M128ms"
48+
49+
50+
class SoftwareDefinedNetwork(str, Enum):
51+
52+
ovn_kubernetes = "OVNKubernetes"
53+
open_shift_sdn = "OpenShiftSDN"
54+
55+
56+
class CreatedByType(str, Enum):
57+
58+
user = "User"
59+
application = "Application"
60+
managed_identity = "ManagedIdentity"
61+
key = "Key"

0 commit comments

Comments
 (0)