Skip to content

Commit b7dad04

Browse files
AbyssknightSDK AutomationShixun Guan
authored
release mgmt appconfiguration (Azure#12292)
* Generated from fbb8071c4a5769e8365fe4722a6ab3ef97720346 Update go readme since it was using 2019-11-01-preview API version. * update version * update test recordings Co-authored-by: SDK Automation <[email protected]> Co-authored-by: Shixun Guan <[email protected]>
1 parent 22c5319 commit b7dad04

13 files changed

+215
-42
lines changed

sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release History
22

3+
## 0.5.0 (2020-07-01)
4+
5+
**Features**
6+
7+
- Model ConfigurationStore has a new parameter private_endpoint_connections
8+
- Model ConfigurationStore has a new parameter public_network_access
9+
- Model PrivateLinkResource has a new parameter required_zone_names
10+
311
## 0.4.0 (2020-02-07)
412

513
**Features**

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_app_configuration_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(
5050
super(AppConfigurationManagementClient, self).__init__(self.config.credentials, self.config)
5151

5252
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
53-
self.api_version = '2019-11-01-preview'
53+
self.api_version = '2020-06-01'
5454
self._serialize = Serializer(client_models)
5555
self._deserialize = Deserializer(client_models)
5656

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from ._models_py3 import OperationDefinitionDisplay
2525
from ._models_py3 import PrivateEndpoint
2626
from ._models_py3 import PrivateEndpointConnection
27+
from ._models_py3 import PrivateEndpointConnectionReference
2728
from ._models_py3 import PrivateLinkResource
2829
from ._models_py3 import PrivateLinkServiceConnectionState
2930
from ._models_py3 import RegenerateKeyParameters
@@ -46,6 +47,7 @@
4647
from ._models import OperationDefinitionDisplay
4748
from ._models import PrivateEndpoint
4849
from ._models import PrivateEndpointConnection
50+
from ._models import PrivateEndpointConnectionReference
4951
from ._models import PrivateLinkResource
5052
from ._models import PrivateLinkServiceConnectionState
5153
from ._models import RegenerateKeyParameters
@@ -63,6 +65,7 @@
6365
ProvisioningState,
6466
ConnectionStatus,
6567
ActionsRequired,
68+
PublicNetworkAccess,
6669
)
6770

6871
__all__ = [
@@ -80,6 +83,7 @@
8083
'OperationDefinitionDisplay',
8184
'PrivateEndpoint',
8285
'PrivateEndpointConnection',
86+
'PrivateEndpointConnectionReference',
8387
'PrivateLinkResource',
8488
'PrivateLinkServiceConnectionState',
8589
'RegenerateKeyParameters',
@@ -96,4 +100,5 @@
96100
'ProvisioningState',
97101
'ConnectionStatus',
98102
'ActionsRequired',
103+
'PublicNetworkAccess',
99104
]

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_app_configuration_management_client_enums.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,9 @@ class ActionsRequired(str, Enum):
4242

4343
none = "None"
4444
recreate = "Recreate"
45+
46+
47+
class PublicNetworkAccess(str, Enum):
48+
49+
enabled = "Enabled"
50+
disabled = "Disabled"

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,15 @@ class ConfigurationStore(Resource):
183183
:vartype endpoint: str
184184
:param encryption: The encryption settings of the configuration store.
185185
:type encryption: ~azure.mgmt.appconfiguration.models.EncryptionProperties
186+
:ivar private_endpoint_connections: The list of private endpoint
187+
connections that are set up for this resource.
188+
:vartype private_endpoint_connections:
189+
list[~azure.mgmt.appconfiguration.models.PrivateEndpointConnectionReference]
190+
:param public_network_access: Control permission for data plane traffic
191+
coming from public networks while private endpoint is enabled. Possible
192+
values include: 'Enabled', 'Disabled'
193+
:type public_network_access: str or
194+
~azure.mgmt.appconfiguration.models.PublicNetworkAccess
186195
:param sku: Required. The sku of the configuration store.
187196
:type sku: ~azure.mgmt.appconfiguration.models.Sku
188197
"""
@@ -195,6 +204,7 @@ class ConfigurationStore(Resource):
195204
'provisioning_state': {'readonly': True},
196205
'creation_date': {'readonly': True},
197206
'endpoint': {'readonly': True},
207+
'private_endpoint_connections': {'readonly': True},
198208
'sku': {'required': True},
199209
}
200210

@@ -209,6 +219,8 @@ class ConfigurationStore(Resource):
209219
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
210220
'endpoint': {'key': 'properties.endpoint', 'type': 'str'},
211221
'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'},
222+
'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnectionReference]'},
223+
'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
212224
'sku': {'key': 'sku', 'type': 'Sku'},
213225
}
214226

@@ -219,6 +231,8 @@ def __init__(self, **kwargs):
219231
self.creation_date = None
220232
self.endpoint = None
221233
self.encryption = kwargs.get('encryption', None)
234+
self.private_endpoint_connections = None
235+
self.public_network_access = kwargs.get('public_network_access', None)
222236
self.sku = kwargs.get('sku', None)
223237

224238

@@ -578,6 +592,62 @@ def __init__(self, **kwargs):
578592
self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None)
579593

580594

595+
class PrivateEndpointConnectionReference(Model):
596+
"""A reference to a related private endpoint connection.
597+
598+
Variables are only populated by the server, and will be ignored when
599+
sending a request.
600+
601+
All required parameters must be populated in order to send to Azure.
602+
603+
:ivar id: The resource ID.
604+
:vartype id: str
605+
:ivar name: The name of the resource.
606+
:vartype name: str
607+
:ivar type: The type of the resource.
608+
:vartype type: str
609+
:ivar provisioning_state: The provisioning status of the private endpoint
610+
connection. Possible values include: 'Creating', 'Updating', 'Deleting',
611+
'Succeeded', 'Failed', 'Canceled'
612+
:vartype provisioning_state: str or
613+
~azure.mgmt.appconfiguration.models.ProvisioningState
614+
:param private_endpoint: The resource of private endpoint.
615+
:type private_endpoint:
616+
~azure.mgmt.appconfiguration.models.PrivateEndpoint
617+
:param private_link_service_connection_state: Required. A collection of
618+
information about the state of the connection between service consumer and
619+
provider.
620+
:type private_link_service_connection_state:
621+
~azure.mgmt.appconfiguration.models.PrivateLinkServiceConnectionState
622+
"""
623+
624+
_validation = {
625+
'id': {'readonly': True},
626+
'name': {'readonly': True},
627+
'type': {'readonly': True},
628+
'provisioning_state': {'readonly': True},
629+
'private_link_service_connection_state': {'required': True},
630+
}
631+
632+
_attribute_map = {
633+
'id': {'key': 'id', 'type': 'str'},
634+
'name': {'key': 'name', 'type': 'str'},
635+
'type': {'key': 'type', 'type': 'str'},
636+
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
637+
'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'},
638+
'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'},
639+
}
640+
641+
def __init__(self, **kwargs):
642+
super(PrivateEndpointConnectionReference, self).__init__(**kwargs)
643+
self.id = None
644+
self.name = None
645+
self.type = None
646+
self.provisioning_state = None
647+
self.private_endpoint = kwargs.get('private_endpoint', None)
648+
self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None)
649+
650+
581651
class PrivateLinkResource(Model):
582652
"""A resource that supports private link capabilities.
583653
@@ -594,6 +664,9 @@ class PrivateLinkResource(Model):
594664
:vartype group_id: str
595665
:ivar required_members: The private link resource required member names.
596666
:vartype required_members: list[str]
667+
:ivar required_zone_names: The list of required DNS zone names of the
668+
private link resource.
669+
:vartype required_zone_names: list[str]
597670
"""
598671

599672
_validation = {
@@ -602,6 +675,7 @@ class PrivateLinkResource(Model):
602675
'type': {'readonly': True},
603676
'group_id': {'readonly': True},
604677
'required_members': {'readonly': True},
678+
'required_zone_names': {'readonly': True},
605679
}
606680

607681
_attribute_map = {
@@ -610,6 +684,7 @@ class PrivateLinkResource(Model):
610684
'type': {'key': 'type', 'type': 'str'},
611685
'group_id': {'key': 'properties.groupId', 'type': 'str'},
612686
'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'},
687+
'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'},
613688
}
614689

615690
def __init__(self, **kwargs):
@@ -619,6 +694,7 @@ def __init__(self, **kwargs):
619694
self.type = None
620695
self.group_id = None
621696
self.required_members = None
697+
self.required_zone_names = None
622698

623699

624700
class PrivateLinkServiceConnectionState(Model):

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,15 @@ class ConfigurationStore(Resource):
183183
:vartype endpoint: str
184184
:param encryption: The encryption settings of the configuration store.
185185
:type encryption: ~azure.mgmt.appconfiguration.models.EncryptionProperties
186+
:ivar private_endpoint_connections: The list of private endpoint
187+
connections that are set up for this resource.
188+
:vartype private_endpoint_connections:
189+
list[~azure.mgmt.appconfiguration.models.PrivateEndpointConnectionReference]
190+
:param public_network_access: Control permission for data plane traffic
191+
coming from public networks while private endpoint is enabled. Possible
192+
values include: 'Enabled', 'Disabled'
193+
:type public_network_access: str or
194+
~azure.mgmt.appconfiguration.models.PublicNetworkAccess
186195
:param sku: Required. The sku of the configuration store.
187196
:type sku: ~azure.mgmt.appconfiguration.models.Sku
188197
"""
@@ -195,6 +204,7 @@ class ConfigurationStore(Resource):
195204
'provisioning_state': {'readonly': True},
196205
'creation_date': {'readonly': True},
197206
'endpoint': {'readonly': True},
207+
'private_endpoint_connections': {'readonly': True},
198208
'sku': {'required': True},
199209
}
200210

@@ -209,16 +219,20 @@ class ConfigurationStore(Resource):
209219
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
210220
'endpoint': {'key': 'properties.endpoint', 'type': 'str'},
211221
'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'},
222+
'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnectionReference]'},
223+
'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
212224
'sku': {'key': 'sku', 'type': 'Sku'},
213225
}
214226

215-
def __init__(self, *, location: str, sku, tags=None, identity=None, encryption=None, **kwargs) -> None:
227+
def __init__(self, *, location: str, sku, tags=None, identity=None, encryption=None, public_network_access=None, **kwargs) -> None:
216228
super(ConfigurationStore, self).__init__(location=location, tags=tags, **kwargs)
217229
self.identity = identity
218230
self.provisioning_state = None
219231
self.creation_date = None
220232
self.endpoint = None
221233
self.encryption = encryption
234+
self.private_endpoint_connections = None
235+
self.public_network_access = public_network_access
222236
self.sku = sku
223237

224238

@@ -578,6 +592,62 @@ def __init__(self, *, private_link_service_connection_state, private_endpoint=No
578592
self.private_link_service_connection_state = private_link_service_connection_state
579593

580594

595+
class PrivateEndpointConnectionReference(Model):
596+
"""A reference to a related private endpoint connection.
597+
598+
Variables are only populated by the server, and will be ignored when
599+
sending a request.
600+
601+
All required parameters must be populated in order to send to Azure.
602+
603+
:ivar id: The resource ID.
604+
:vartype id: str
605+
:ivar name: The name of the resource.
606+
:vartype name: str
607+
:ivar type: The type of the resource.
608+
:vartype type: str
609+
:ivar provisioning_state: The provisioning status of the private endpoint
610+
connection. Possible values include: 'Creating', 'Updating', 'Deleting',
611+
'Succeeded', 'Failed', 'Canceled'
612+
:vartype provisioning_state: str or
613+
~azure.mgmt.appconfiguration.models.ProvisioningState
614+
:param private_endpoint: The resource of private endpoint.
615+
:type private_endpoint:
616+
~azure.mgmt.appconfiguration.models.PrivateEndpoint
617+
:param private_link_service_connection_state: Required. A collection of
618+
information about the state of the connection between service consumer and
619+
provider.
620+
:type private_link_service_connection_state:
621+
~azure.mgmt.appconfiguration.models.PrivateLinkServiceConnectionState
622+
"""
623+
624+
_validation = {
625+
'id': {'readonly': True},
626+
'name': {'readonly': True},
627+
'type': {'readonly': True},
628+
'provisioning_state': {'readonly': True},
629+
'private_link_service_connection_state': {'required': True},
630+
}
631+
632+
_attribute_map = {
633+
'id': {'key': 'id', 'type': 'str'},
634+
'name': {'key': 'name', 'type': 'str'},
635+
'type': {'key': 'type', 'type': 'str'},
636+
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
637+
'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'},
638+
'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'},
639+
}
640+
641+
def __init__(self, *, private_link_service_connection_state, private_endpoint=None, **kwargs) -> None:
642+
super(PrivateEndpointConnectionReference, self).__init__(**kwargs)
643+
self.id = None
644+
self.name = None
645+
self.type = None
646+
self.provisioning_state = None
647+
self.private_endpoint = private_endpoint
648+
self.private_link_service_connection_state = private_link_service_connection_state
649+
650+
581651
class PrivateLinkResource(Model):
582652
"""A resource that supports private link capabilities.
583653
@@ -594,6 +664,9 @@ class PrivateLinkResource(Model):
594664
:vartype group_id: str
595665
:ivar required_members: The private link resource required member names.
596666
:vartype required_members: list[str]
667+
:ivar required_zone_names: The list of required DNS zone names of the
668+
private link resource.
669+
:vartype required_zone_names: list[str]
597670
"""
598671

599672
_validation = {
@@ -602,6 +675,7 @@ class PrivateLinkResource(Model):
602675
'type': {'readonly': True},
603676
'group_id': {'readonly': True},
604677
'required_members': {'readonly': True},
678+
'required_zone_names': {'readonly': True},
605679
}
606680

607681
_attribute_map = {
@@ -610,6 +684,7 @@ class PrivateLinkResource(Model):
610684
'type': {'key': 'type', 'type': 'str'},
611685
'group_id': {'key': 'properties.groupId', 'type': 'str'},
612686
'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'},
687+
'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'},
613688
}
614689

615690
def __init__(self, **kwargs) -> None:
@@ -619,6 +694,7 @@ def __init__(self, **kwargs) -> None:
619694
self.type = None
620695
self.group_id = None
621696
self.required_members = None
697+
self.required_zone_names = None
622698

623699

624700
class PrivateLinkServiceConnectionState(Model):

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_configuration_stores_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ConfigurationStoresOperations(object):
2626
:param config: Configuration of service client.
2727
:param serializer: An object model serializer.
2828
:param deserializer: An object model deserializer.
29-
:ivar api_version: The client API version. Constant value: "2019-11-01-preview".
29+
:ivar api_version: The client API version. Constant value: "2020-06-01".
3030
"""
3131

3232
models = models
@@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer):
3636
self._client = client
3737
self._serialize = serializer
3838
self._deserialize = deserializer
39-
self.api_version = "2019-11-01-preview"
39+
self.api_version = "2020-06-01"
4040

4141
self.config = config
4242

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Operations(object):
2424
:param config: Configuration of service client.
2525
:param serializer: An object model serializer.
2626
:param deserializer: An object model deserializer.
27-
:ivar api_version: The client API version. Constant value: "2019-11-01-preview".
27+
:ivar api_version: The client API version. Constant value: "2020-06-01".
2828
"""
2929

3030
models = models
@@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
3434
self._client = client
3535
self._serialize = serializer
3636
self._deserialize = deserializer
37-
self.api_version = "2019-11-01-preview"
37+
self.api_version = "2020-06-01"
3838

3939
self.config = config
4040

0 commit comments

Comments
 (0)