diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py index e87535d78720..1c2a1bfd24d3 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py @@ -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 """ @@ -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}, } @@ -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'}, } @@ -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) @@ -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. @@ -552,7 +559,6 @@ class PrivateEndpointConnection(Model): """ _validation = { - 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -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 diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py index 78728848a16a..ac65f8c95091 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py @@ -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 """ @@ -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}, } @@ -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'}, } @@ -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 @@ -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. @@ -552,7 +559,6 @@ class PrivateEndpointConnection(Model): """ _validation = { - 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -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 diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py index c7a2614a0c32..19f2a4b6f2c4 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py @@ -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 = { @@ -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. @@ -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 @@ -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