forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 16973 in Azure/azure-rest-api-specs
Track2 modify readme.go.md 8 (Azure#16973) * Track2 modify readme.go.md 8 * backup,siterecovery into recoveryservices
- Loading branch information
SDKAuto
committed
Jan 5, 2022
1 parent
3a14782
commit e8bedda
Showing
16 changed files
with
2,509 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "5a1b7262be0a4f6a9004d35403b854429475cdf4", | ||
"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" | ||
} |
1 change: 1 addition & 0 deletions
1
...ure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/azure/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
1 change: 1 addition & 0 deletions
1
...gmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/azure/mgmt/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
1 change: 1 addition & 0 deletions
1
...ift/azure/mgmt/redhatopenshift/v2021_09_01_preview/azure/mgmt/redhatopenshift/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
15 changes: 15 additions & 0 deletions
15
...topenshift/v2021_09_01_preview/azure/mgmt/redhatopenshift/v2021_09_01_preview/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
47 changes: 47 additions & 0 deletions
47
...review/azure/mgmt/redhatopenshift/v2021_09_01_preview/_azure_red_hat_open_shift_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
38 changes: 38 additions & 0 deletions
38
...hift/v2021_09_01_preview/azure/mgmt/redhatopenshift/v2021_09_01_preview/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
93 changes: 93 additions & 0 deletions
93
...ift/v2021_09_01_preview/azure/mgmt/redhatopenshift/v2021_09_01_preview/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
] |
61 changes: 61 additions & 0 deletions
61
...mgmt/redhatopenshift/v2021_09_01_preview/models/_azure_red_hat_open_shift_client_enums.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.