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 @@ -183,6 +183,10 @@ class ConfigurationStore(Resource):
:vartype endpoint: str
:param encryption: The encryption settings of the configuration store.
:type encryption: ~azure.mgmt.appconfiguration.models.EncryptionProperties
:ivar private_endpoint_connections: private endpoint connections of
configuration store
:vartype private_endpoint_connections:
list[~azure.mgmt.appconfiguration.models.PrivateEndpointConnection]
:param sku: Required. The sku of the configuration store.
:type sku: ~azure.mgmt.appconfiguration.models.Sku
"""
Expand All @@ -195,6 +199,7 @@ class ConfigurationStore(Resource):
'provisioning_state': {'readonly': True},
'creation_date': {'readonly': True},
'endpoint': {'readonly': True},
'private_endpoint_connections': {'readonly': True},
'sku': {'required': True},
}

Expand All @@ -209,6 +214,7 @@ class ConfigurationStore(Resource):
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
'endpoint': {'key': 'properties.endpoint', 'type': 'str'},
'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'},
'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'},
'sku': {'key': 'sku', 'type': 'Sku'},
}

Expand All @@ -219,6 +225,7 @@ def __init__(self, **kwargs):
self.creation_date = None
self.endpoint = None
self.encryption = kwargs.get('encryption', None)
self.private_endpoint_connections = None
self.sku = kwargs.get('sku', None)


Expand Down Expand Up @@ -530,8 +537,8 @@ class PrivateEndpointConnection(Model):

All required parameters must be populated in order to send to Azure.

:ivar id: The resource ID.
:vartype id: str
:param id: The resource ID.
:type id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource.
Expand All @@ -552,7 +559,6 @@ class PrivateEndpointConnection(Model):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
Expand All @@ -570,7 +576,7 @@ class PrivateEndpointConnection(Model):

def __init__(self, **kwargs):
super(PrivateEndpointConnection, self).__init__(**kwargs)
self.id = None
self.id = kwargs.get('id', None)
self.name = None
self.type = None
self.provisioning_state = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ class ConfigurationStore(Resource):
:vartype endpoint: str
:param encryption: The encryption settings of the configuration store.
:type encryption: ~azure.mgmt.appconfiguration.models.EncryptionProperties
:ivar private_endpoint_connections: private endpoint connections of
configuration store
:vartype private_endpoint_connections:
list[~azure.mgmt.appconfiguration.models.PrivateEndpointConnection]
:param sku: Required. The sku of the configuration store.
:type sku: ~azure.mgmt.appconfiguration.models.Sku
"""
Expand All @@ -195,6 +199,7 @@ class ConfigurationStore(Resource):
'provisioning_state': {'readonly': True},
'creation_date': {'readonly': True},
'endpoint': {'readonly': True},
'private_endpoint_connections': {'readonly': True},
'sku': {'required': True},
}

Expand All @@ -209,6 +214,7 @@ class ConfigurationStore(Resource):
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
'endpoint': {'key': 'properties.endpoint', 'type': 'str'},
'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'},
'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'},
'sku': {'key': 'sku', 'type': 'Sku'},
}

Expand All @@ -219,6 +225,7 @@ def __init__(self, *, location: str, sku, tags=None, identity=None, encryption=N
self.creation_date = None
self.endpoint = None
self.encryption = encryption
self.private_endpoint_connections = None
self.sku = sku


Expand Down Expand Up @@ -530,8 +537,8 @@ class PrivateEndpointConnection(Model):

All required parameters must be populated in order to send to Azure.

:ivar id: The resource ID.
:vartype id: str
:param id: The resource ID.
:type id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource.
Expand All @@ -552,7 +559,6 @@ class PrivateEndpointConnection(Model):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
Expand All @@ -568,9 +574,9 @@ class PrivateEndpointConnection(Model):
'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'},
}

def __init__(self, *, private_link_service_connection_state, private_endpoint=None, **kwargs) -> None:
def __init__(self, *, private_link_service_connection_state, id: str=None, private_endpoint=None, **kwargs) -> None:
super(PrivateEndpointConnection, self).__init__(**kwargs)
self.id = None
self.id = id
self.name = None
self.type = None
self.provisioning_state = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ def get(


def _create_or_update_initial(
self, resource_group_name, config_store_name, private_endpoint_connection_name, private_link_service_connection_state, private_endpoint=None, custom_headers=None, raw=False, **operation_config):
private_endpoint_connection = models.PrivateEndpointConnection(private_endpoint=private_endpoint, private_link_service_connection_state=private_link_service_connection_state)

self, resource_group_name, config_store_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.create_or_update.metadata['url']
path_format_arguments = {
Expand Down Expand Up @@ -232,7 +230,7 @@ def _create_or_update_initial(
return deserialized

def create_or_update(
self, resource_group_name, config_store_name, private_endpoint_connection_name, private_link_service_connection_state, private_endpoint=None, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, config_store_name, private_endpoint_connection_name, private_endpoint_connection, custom_headers=None, raw=False, polling=True, **operation_config):
"""Update the state of the specified private endpoint connection
associated with the configuration store.

Expand All @@ -244,14 +242,10 @@ def create_or_update(
:param private_endpoint_connection_name: Private endpoint connection
name
:type private_endpoint_connection_name: str
:param private_link_service_connection_state: A collection of
information about the state of the connection between service consumer
and provider.
:type private_link_service_connection_state:
~azure.mgmt.appconfiguration.models.PrivateLinkServiceConnectionState
:param private_endpoint: The resource of private endpoint.
:type private_endpoint:
~azure.mgmt.appconfiguration.models.PrivateEndpoint
:param private_endpoint_connection: The private endpoint connection
properties.
:type private_endpoint_connection:
~azure.mgmt.appconfiguration.models.PrivateEndpointConnection
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand All @@ -271,8 +265,7 @@ def create_or_update(
resource_group_name=resource_group_name,
config_store_name=config_store_name,
private_endpoint_connection_name=private_endpoint_connection_name,
private_link_service_connection_state=private_link_service_connection_state,
private_endpoint=private_endpoint,
private_endpoint_connection=private_endpoint_connection,
custom_headers=custom_headers,
raw=True,
**operation_config
Expand Down