Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-appconfiguration] Microsoft.AppConfiguration: Add 2020-07-01-preview API version #2530

Closed
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 @@ -17,6 +17,7 @@
from .operations import Operations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import KeyValuesOperations
from . import models


Expand All @@ -34,6 +35,8 @@ class AppConfigurationManagementClient(SDKClient):
:vartype private_endpoint_connections: azure.mgmt.appconfiguration.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.appconfiguration.operations.PrivateLinkResourcesOperations
:ivar key_values: KeyValues operations
:vartype key_values: azure.mgmt.appconfiguration.operations.KeyValuesOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -50,7 +53,7 @@ def __init__(
super(AppConfigurationManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-06-01'
self.api_version = '2020-07-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -62,3 +65,5 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.key_values = KeyValuesOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
from ._models_py3 import ConfigurationStore
from ._models_py3 import ConfigurationStoreUpdateParameters
from ._models_py3 import EncryptionProperties
from ._models_py3 import Error, ErrorException
from ._models_py3 import ErrorDetails
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import KeyValue
from ._models_py3 import KeyVaultProperties
from ._models_py3 import ListKeyValueParameters
from ._models_py3 import NameAvailabilityStatus
from ._models_py3 import OperationDefinition
from ._models_py3 import OperationDefinitionDisplay
Expand All @@ -38,10 +38,10 @@
from ._models import ConfigurationStore
from ._models import ConfigurationStoreUpdateParameters
from ._models import EncryptionProperties
from ._models import Error, ErrorException
from ._models import ErrorDetails
from ._models import ErrorResponse, ErrorResponseException
from ._models import KeyValue
from ._models import KeyVaultProperties
from ._models import ListKeyValueParameters
from ._models import NameAvailabilityStatus
from ._models import OperationDefinition
from ._models import OperationDefinitionDisplay
Expand All @@ -57,6 +57,7 @@
from ._models import UserIdentity
from ._paged_models import ApiKeyPaged
from ._paged_models import ConfigurationStorePaged
from ._paged_models import KeyValuePaged
from ._paged_models import OperationDefinitionPaged
from ._paged_models import PrivateEndpointConnectionPaged
from ._paged_models import PrivateLinkResourcePaged
Expand All @@ -74,10 +75,10 @@
'ConfigurationStore',
'ConfigurationStoreUpdateParameters',
'EncryptionProperties',
'Error', 'ErrorException',
'ErrorDetails',
'ErrorResponse', 'ErrorResponseException',
'KeyValue',
'KeyVaultProperties',
'ListKeyValueParameters',
'NameAvailabilityStatus',
'OperationDefinition',
'OperationDefinitionDisplay',
Expand All @@ -96,6 +97,7 @@
'OperationDefinitionPaged',
'PrivateEndpointConnectionPaged',
'PrivateLinkResourcePaged',
'KeyValuePaged',
'IdentityType',
'ProvisioningState',
'ConnectionStatus',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,6 @@ 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
Expand All @@ -257,7 +252,6 @@ 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}'},
Expand All @@ -266,7 +260,6 @@ 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)
Expand All @@ -289,57 +282,87 @@ def __init__(self, **kwargs):
self.key_vault_properties = kwargs.get('key_vault_properties', None)


class Error(Model):
"""AppConfiguration error object.
class ErrorDetails(Model):
"""The details of the error.

Variables are only populated by the server, and will be ignored when
sending a request.

:param code: Error code.
:type code: str
:param message: Error message.
:type message: str
:ivar code: Error code.
:vartype code: str
:ivar message: Error message indicating why the operation failed.
:vartype message: str
"""

_validation = {
'code': {'readonly': True},
'message': {'readonly': True},
}

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Error, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
super(ErrorDetails, self).__init__(**kwargs)
self.code = None
self.message = None


class ErrorException(HttpOperationError):
"""Server responsed with exception of type: 'Error'.
class ErrorResponse(Model):
"""Error response indicates that the service is not able to process the
incoming request. The reason is provided in the error message.

:param error: The details of the error.
:type error: ~azure.mgmt.appconfiguration.models.ErrorDetails
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorDetails'},
}

def __init__(self, **kwargs):
super(ErrorResponse, self).__init__(**kwargs)
self.error = kwargs.get('error', None)


class ErrorResponseException(HttpOperationError):
"""Server responsed with exception of type: 'ErrorResponse'.

:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

def __init__(self, deserialize, response, *args):

super(ErrorException, self).__init__(deserialize, response, 'Error', *args)
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)


class KeyValue(Model):
"""The result of a request to retrieve a key-value from the specified
configuration store.
"""The key-value resource along with all resource properties.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The resource ID.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:ivar key: The primary identifier of a key-value.
The key is used in unison with the label to uniquely identify a key-value.
:vartype key: str
:ivar label: A value used to group key-values.
The label is used in unison with the key to uniquely identify a key-value.
:vartype label: str
:ivar value: The value of the key-value.
:vartype value: str
:ivar content_type: The content type of the key-value's value.
:param value: The value of the key-value.
:type value: str
:param content_type: The content type of the key-value's value.
Providing a proper content-type can enable transformations of values when
they are retrieved by applications.
:vartype content_type: str
:type content_type: str
:ivar e_tag: An ETag indicating the state of a key-value within a
configuration store.
:vartype e_tag: str
Expand All @@ -349,43 +372,49 @@ class KeyValue(Model):
:ivar locked: A value indicating whether the key-value is locked.
A locked key-value may not be modified until it is unlocked.
:vartype locked: bool
:ivar tags: A dictionary of tags that can help identify what a key-value
:param tags: A dictionary of tags that can help identify what a key-value
may be applicable for.
:vartype tags: dict[str, str]
:type tags: dict[str, str]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'key': {'readonly': True},
'label': {'readonly': True},
'value': {'readonly': True},
'content_type': {'readonly': True},
'e_tag': {'readonly': True},
'last_modified': {'readonly': True},
'locked': {'readonly': True},
'tags': {'readonly': True},
}

_attribute_map = {
'key': {'key': 'key', 'type': 'str'},
'label': {'key': 'label', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'},
'content_type': {'key': 'contentType', 'type': 'str'},
'e_tag': {'key': 'eTag', 'type': 'str'},
'last_modified': {'key': 'lastModified', 'type': 'iso-8601'},
'locked': {'key': 'locked', 'type': 'bool'},
'tags': {'key': 'tags', 'type': '{str}'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'key': {'key': 'properties.key', 'type': 'str'},
'label': {'key': 'properties.label', 'type': 'str'},
'value': {'key': 'properties.value', 'type': 'str'},
'content_type': {'key': 'properties.contentType', 'type': 'str'},
'e_tag': {'key': 'properties.eTag', 'type': 'str'},
'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'},
'locked': {'key': 'properties.locked', 'type': 'bool'},
'tags': {'key': 'properties.tags', 'type': '{str}'},
}

def __init__(self, **kwargs):
super(KeyValue, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.key = None
self.label = None
self.value = None
self.content_type = None
self.value = kwargs.get('value', None)
self.content_type = kwargs.get('content_type', None)
self.e_tag = None
self.last_modified = None
self.locked = None
self.tags = None
self.tags = kwargs.get('tags', None)


class KeyVaultProperties(Model):
Expand All @@ -409,32 +438,6 @@ def __init__(self, **kwargs):
self.identity_client_id = kwargs.get('identity_client_id', None)


class ListKeyValueParameters(Model):
"""The parameters used to list a configuration store key-value.

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

:param key: Required. The key to retrieve.
:type key: str
:param label: The label of the key.
:type label: str
"""

_validation = {
'key': {'required': True},
}

_attribute_map = {
'key': {'key': 'key', 'type': 'str'},
'label': {'key': 'label', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ListKeyValueParameters, self).__init__(**kwargs)
self.key = kwargs.get('key', None)
self.label = kwargs.get('label', None)


class NameAvailabilityStatus(Model):
"""The result of a request to check the availability of a resource name.

Expand Down
Loading