Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,10 @@ def operations(self):
def private_endpoint_connections(self):
"""Instance depends on the API version:

* 2018-02-14: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.keyvault.v2018_02_14.operations.PrivateEndpointConnectionsOperations>`
* 2019-09-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.keyvault.v2019_09_01.operations.PrivateEndpointConnectionsOperations>`
"""
api_version = self._get_api_version('private_endpoint_connections')
if api_version == '2018-02-14':
from .v2018_02_14.operations import PrivateEndpointConnectionsOperations as OperationClass
elif api_version == '2019-09-01':
if api_version == '2019-09-01':
from .v2019_09_01.operations import PrivateEndpointConnectionsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
Expand All @@ -126,13 +123,10 @@ def private_endpoint_connections(self):
def private_link_resources(self):
"""Instance depends on the API version:

* 2018-02-14: :class:`PrivateLinkResourcesOperations<azure.mgmt.keyvault.v2018_02_14.operations.PrivateLinkResourcesOperations>`
* 2019-09-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.keyvault.v2019_09_01.operations.PrivateLinkResourcesOperations>`
"""
api_version = self._get_api_version('private_link_resources')
if api_version == '2018-02-14':
from .v2018_02_14.operations import PrivateLinkResourcesOperations as OperationClass
elif api_version == '2019-09-01':
if api_version == '2019-09-01':
from .v2019_09_01.operations import PrivateLinkResourcesOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

from ._configuration import KeyVaultManagementClientConfiguration
from .operations import VaultsOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import Operations
from . import models

Expand All @@ -28,10 +26,6 @@ class KeyVaultManagementClient(SDKClient):

:ivar vaults: Vaults operations
:vartype vaults: azure.mgmt.keyvault.v2018_02_14.operations.VaultsOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
:vartype private_endpoint_connections: azure.mgmt.keyvault.v2018_02_14.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.keyvault.v2018_02_14.operations.PrivateLinkResourcesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.keyvault.v2018_02_14.operations.Operations

Expand All @@ -58,9 +52,5 @@ def __init__(

self.vaults = VaultsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import Permissions
from ._models_py3 import PrivateEndpoint
from ._models_py3 import PrivateEndpointConnection
from ._models_py3 import PrivateEndpointConnectionItem
from ._models_py3 import PrivateLinkResource
from ._models_py3 import PrivateLinkResourceListResult
from ._models_py3 import PrivateLinkServiceConnectionState
from ._models_py3 import Resource
from ._models_py3 import ServiceSpecification
from ._models_py3 import Sku
Expand All @@ -49,12 +43,6 @@
from ._models import Operation
from ._models import OperationDisplay
from ._models import Permissions
from ._models import PrivateEndpoint
from ._models import PrivateEndpointConnection
from ._models import PrivateEndpointConnectionItem
from ._models import PrivateLinkResource
from ._models import PrivateLinkResourceListResult
from ._models import PrivateLinkServiceConnectionState
from ._models import Resource
from ._models import ServiceSpecification
from ._models import Sku
Expand All @@ -80,8 +68,6 @@
CreateMode,
NetworkRuleBypassOptions,
NetworkRuleAction,
PrivateEndpointServiceConnectionStatus,
PrivateEndpointConnectionProvisioningState,
Reason,
AccessPolicyUpdateKind,
)
Expand All @@ -97,12 +83,6 @@
'Operation',
'OperationDisplay',
'Permissions',
'PrivateEndpoint',
'PrivateEndpointConnection',
'PrivateEndpointConnectionItem',
'PrivateLinkResource',
'PrivateLinkResourceListResult',
'PrivateLinkServiceConnectionState',
'Resource',
'ServiceSpecification',
'Sku',
Expand All @@ -127,8 +107,6 @@
'CreateMode',
'NetworkRuleBypassOptions',
'NetworkRuleAction',
'PrivateEndpointServiceConnectionStatus',
'PrivateEndpointConnectionProvisioningState',
'Reason',
'AccessPolicyUpdateKind',
]
Original file line number Diff line number Diff line change
Expand Up @@ -106,24 +106,6 @@ class NetworkRuleAction(str, Enum):
deny = "Deny"


class PrivateEndpointServiceConnectionStatus(str, Enum):

pending = "Pending"
approved = "Approved"
rejected = "Rejected"
disconnected = "Disconnected"


class PrivateEndpointConnectionProvisioningState(str, Enum):

succeeded = "Succeeded"
creating = "Creating"
updating = "Updating"
deleting = "Deleting"
failed = "Failed"
disconnected = "Disconnected"


class Reason(str, Enum):

account_name_invalid = "AccountNameInvalid"
Expand Down
Loading