From 61901e1f2a3e3793a553a4f1fb2416d881ab9c01 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 18 Aug 2020 04:09:00 +0000 Subject: [PATCH 1/3] Generated from 5107876b1a1a064e036101a08ae2dbc5b8507b37 Add publicNetworkAccess property to ConfigurationStorePropertiesUpdateParameters --- .../azure/mgmt/appconfiguration/models/_models.py | 7 +++++++ .../azure/mgmt/appconfiguration/models/_models_py3.py | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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 7ce7a269eda9..4c892b7a7a3c 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 @@ -241,6 +241,11 @@ class ConfigurationStoreUpdateParameters(Model): :param encryption: The encryption settings of the configuration store. :type encryption: ~azure.mgmt.appconfiguration.models.EncryptionProperties + :param public_network_access: Control permission for data plane traffic + coming from public networks while private endpoint is enabled. Possible + values include: 'Enabled', 'Disabled' + :type public_network_access: str or + ~azure.mgmt.appconfiguration.models.PublicNetworkAccess :param identity: The managed identity information for the configuration store. :type identity: ~azure.mgmt.appconfiguration.models.ResourceIdentity @@ -252,6 +257,7 @@ class ConfigurationStoreUpdateParameters(Model): _attribute_map = { 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'tags': {'key': 'tags', 'type': '{str}'}, @@ -260,6 +266,7 @@ class ConfigurationStoreUpdateParameters(Model): def __init__(self, **kwargs): super(ConfigurationStoreUpdateParameters, self).__init__(**kwargs) self.encryption = kwargs.get('encryption', None) + self.public_network_access = kwargs.get('public_network_access', None) self.identity = kwargs.get('identity', None) self.sku = kwargs.get('sku', None) self.tags = kwargs.get('tags', 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 5dc9335e0d43..15213ffa3a2d 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 @@ -241,6 +241,11 @@ class ConfigurationStoreUpdateParameters(Model): :param encryption: The encryption settings of the configuration store. :type encryption: ~azure.mgmt.appconfiguration.models.EncryptionProperties + :param public_network_access: Control permission for data plane traffic + coming from public networks while private endpoint is enabled. Possible + values include: 'Enabled', 'Disabled' + :type public_network_access: str or + ~azure.mgmt.appconfiguration.models.PublicNetworkAccess :param identity: The managed identity information for the configuration store. :type identity: ~azure.mgmt.appconfiguration.models.ResourceIdentity @@ -252,14 +257,16 @@ class ConfigurationStoreUpdateParameters(Model): _attribute_map = { 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, 'sku': {'key': 'sku', 'type': 'Sku'}, 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, *, encryption=None, identity=None, sku=None, tags=None, **kwargs) -> None: + def __init__(self, *, encryption=None, public_network_access=None, identity=None, sku=None, tags=None, **kwargs) -> None: super(ConfigurationStoreUpdateParameters, self).__init__(**kwargs) self.encryption = encryption + self.public_network_access = public_network_access self.identity = identity self.sku = sku self.tags = tags From 697cb143ae1f06994270f154180839dc12823ff3 Mon Sep 17 00:00:00 2001 From: xichen Date: Wed, 19 Aug 2020 14:15:54 +0800 Subject: [PATCH 2/3] update changelog and version --- .../azure-mgmt-appconfiguration/CHANGELOG.md | 6 ++++++ .../azure/mgmt/appconfiguration/version.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md index 8f2cc9a0e0cb..b9702bd3b374 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 0.6.0 (2020-08-19) + +**Features** + + - Model ConfigurationStoreUpdateParameters has a new parameter public_network_access + ## 0.5.0 (2020-07-01) **Features** diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/version.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/version.py index 266f5a486d79..5a7feab42d26 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/version.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.5.0" +VERSION = "0.6.0" From 1a094bc3ed2c2a15538bf6a92e1e90c07aa5a9c0 Mon Sep 17 00:00:00 2001 From: xichen Date: Wed, 19 Aug 2020 15:58:18 +0800 Subject: [PATCH 3/3] update test recording --- ...ppconfiguration.test_appconfiguration.yaml | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml index 464094d86d67..1ce8886106c8 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml @@ -14,18 +14,18 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-appconfiguration/0.5.0 Azure-SDK-For-Python + - python/3.8.2 (Windows-10-10.0.19041-SP0) msrest/0.6.17 msrest_azure/0.6.3 + azure-mgmt-appconfiguration/0.6.0 Azure-SDK-For-Python accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appconfiguration_test_appconfiguration39c8158a/providers/Microsoft.AppConfiguration/configurationStores/myConfigStore?api-version=2020-06-01 response: body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","properties":{"provisioningState":"Creating","creationDate":"2020-07-01T05:08:12.3956086+00:00","endpoint":null,"encryption":null,"privateEndpointConnections":null},"sku":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appconfiguration_test_appconfiguration39c8158a/providers/Microsoft.AppConfiguration/configurationStores/myConfigStore","name":"myConfigStore","location":"westus","tags":{}}' + string: '{"type":"Microsoft.AppConfiguration/configurationStores","properties":{"provisioningState":"Creating","creationDate":"2020-08-19T07:40:33.4890704+00:00","endpoint":null,"encryption":null,"privateEndpointConnections":null},"sku":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appconfiguration_test_appconfiguration39c8158a/providers/Microsoft.AppConfiguration/configurationStores/myConfigStore","name":"myConfigStore","location":"westus","tags":{}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/844d38f7-53db-ae21-de5e-79d46ca440d3?api-version=2020-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/be96149a-d233-62e9-084f-23a497db5b5c?api-version=2020-06-01 cache-control: - no-cache content-length: @@ -33,19 +33,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jul 2020 05:08:14 GMT + - Wed, 19 Aug 2020 07:40:34 GMT expires: - '-1' pragma: - no-cache server: - - openresty/1.15.8.1 + - nginx/1.17.10 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1172' status: code: 201 message: Created @@ -59,16 +59,16 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-appconfiguration/0.5.0 Azure-SDK-For-Python + - python/3.8.2 (Windows-10-10.0.19041-SP0) msrest/0.6.17 msrest_azure/0.6.3 + azure-mgmt-appconfiguration/0.6.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/844d38f7-53db-ae21-de5e-79d46ca440d3?api-version=2020-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/be96149a-d233-62e9-084f-23a497db5b5c?api-version=2020-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/844d38f7-53db-ae21-de5e-79d46ca440d3","name":"844d38f7-53db-ae21-de5e-79d46ca440d3","status":"Succeeded","error":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/be96149a-d233-62e9-084f-23a497db5b5c","name":"be96149a-d233-62e9-084f-23a497db5b5c","status":"Succeeded","error":null}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/844d38f7-53db-ae21-de5e-79d46ca440d3?api-version=2020-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/be96149a-d233-62e9-084f-23a497db5b5c?api-version=2020-06-01 cache-control: - no-cache content-length: @@ -76,13 +76,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jul 2020 05:08:24 GMT + - Wed, 19 Aug 2020 07:40:45 GMT expires: - '-1' pragma: - no-cache server: - - openresty/1.15.8.1 + - nginx/1.17.10 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -104,13 +104,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-appconfiguration/0.5.0 Azure-SDK-For-Python + - python/3.8.2 (Windows-10-10.0.19041-SP0) msrest/0.6.17 msrest_azure/0.6.3 + azure-mgmt-appconfiguration/0.6.0 Azure-SDK-For-Python method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appconfiguration_test_appconfiguration39c8158a/providers/Microsoft.AppConfiguration/configurationStores/myConfigStore?api-version=2020-06-01 response: body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","properties":{"provisioningState":"Succeeded","creationDate":"2020-07-01T05:08:18+00:00","endpoint":"https://myconfigstore.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appconfiguration_test_appconfiguration39c8158a/providers/Microsoft.AppConfiguration/configurationStores/myconfigstore","name":"myConfigStore","location":"westus","tags":{"my_tag":"myTagValue"}}' + string: '{"type":"Microsoft.AppConfiguration/configurationStores","properties":{"provisioningState":"Succeeded","creationDate":"2020-08-19T07:40:35+00:00","endpoint":"https://myconfigstore.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appconfiguration_test_appconfiguration39c8158a/providers/Microsoft.AppConfiguration/configurationStores/myconfigstore","name":"myConfigStore","location":"westus","tags":{"my_tag":"myTagValue"}}' headers: cache-control: - no-cache @@ -119,15 +119,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jul 2020 05:08:25 GMT + - Wed, 19 Aug 2020 07:40:45 GMT etag: - - W/"0800d473-0000-0700-0000-5efc1a420000" + - W/"0a00b17c-0000-0700-0000-5f3cd7720000" expires: - '-1' pragma: - no-cache server: - - openresty/1.15.8.1 + - nginx/1.17.10 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -149,15 +149,15 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-appconfiguration/0.5.0 Azure-SDK-For-Python + - python/3.8.2 (Windows-10-10.0.19041-SP0) msrest/0.6.17 msrest_azure/0.6.3 + azure-mgmt-appconfiguration/0.6.0 Azure-SDK-For-Python accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appconfiguration_test_appconfiguration39c8158a/providers/Microsoft.AppConfiguration/configurationStores/myConfigStore?api-version=2020-06-01 response: body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","properties":{"provisioningState":"Succeeded","creationDate":"2020-07-01T05:08:18+00:00","endpoint":"https://myconfigstore.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appconfiguration_test_appconfiguration39c8158a/providers/Microsoft.AppConfiguration/configurationStores/myconfigstore","name":"myConfigStore","location":"westus","tags":{"my_tag":"myTagValue"}}' + string: '{"type":"Microsoft.AppConfiguration/configurationStores","properties":{"provisioningState":"Succeeded","creationDate":"2020-08-19T07:40:35+00:00","endpoint":"https://myconfigstore.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appconfiguration_test_appconfiguration39c8158a/providers/Microsoft.AppConfiguration/configurationStores/myconfigstore","name":"myConfigStore","location":"westus","tags":{"my_tag":"myTagValue"}}' headers: cache-control: - no-cache @@ -166,15 +166,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jul 2020 05:08:25 GMT + - Wed, 19 Aug 2020 07:40:45 GMT etag: - - W/"0800d473-0000-0700-0000-5efc1a420000" + - W/"0a00b17c-0000-0700-0000-5f3cd7720000" expires: - '-1' pragma: - no-cache server: - - openresty/1.15.8.1 + - nginx/1.17.10 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -198,8 +198,8 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 - msrest_azure/0.6.3 azure-mgmt-appconfiguration/0.5.0 Azure-SDK-For-Python + - python/3.8.2 (Windows-10-10.0.19041-SP0) msrest/0.6.17 msrest_azure/0.6.3 + azure-mgmt-appconfiguration/0.6.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE @@ -213,19 +213,19 @@ interactions: content-length: - '0' date: - - Wed, 01 Jul 2020 05:08:30 GMT + - Wed, 19 Aug 2020 07:40:50 GMT expires: - '-1' pragma: - no-cache server: - - openresty/1.15.8.1 + - nginx/1.17.10 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14993' status: code: 200 message: OK