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 #1640

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f3360b4
Release sdk 698 (#13211)
shawncx Sep 2, 2020
e67b96a
Release azure mgmt datafactory (#13312)
dw511214992 Sep 3, 2020
028ce59
Sdk automation/azure mgmt sql (#13543)
changlong-liu Sep 7, 2020
f481891
Sdk automation/azure mgmt redis (#13541)
changlong-liu Sep 8, 2020
0009740
Release azure mgmt compute (#13610)
dw511214992 Sep 9, 2020
41a8d43
Sdk automation/azure mgmt azurestackhci (#12639)
changlong-liu Sep 9, 2020
decd18c
release-mgmt-network-2020-06 (#13477)
qiaozha Sep 10, 2020
fdf883d
eaRelease mgmt eventhub (#13608)
colawwj Sep 11, 2020
a39bb60
Release mgmt containerservice (#13734)
colawwj Sep 11, 2020
3f96b10
Release azure mgmt netapp (#13416)
dw511214992 Sep 14, 2020
8890600
Release azure mgmt rdbms (#13780)
dw511214992 Sep 15, 2020
ab93d55
release-759 (#13800)
colawwj Sep 16, 2020
136994e
Sdk automation/azure mgmt loganalytics (#13432)
changlong-liu Sep 17, 2020
981105d
Azure mgmt containerregistry yyc@10370 (#13809)
msyyc Sep 18, 2020
a219074
Sdk automation/azure mgmt hybridcompute (#13828)
changlong-liu Sep 21, 2020
5ad658f
Release azure mgmt compute bugfix (#13936)
dw511214992 Sep 23, 2020
bfd19d6
Release synapse (#14047)
colawwj Sep 27, 2020
e62cce7
use track1 package (#14065)
changlong-liu Sep 28, 2020
7ace3f4
Release rdbms (#14032)
colawwj Sep 29, 2020
f570622
Release web (#13938)
colawwj Sep 29, 2020
e4b5296
Release mgmt servicebus (#13802)
colawwj Sep 29, 2020
79bb773
Sdk automation/azure mgmt search (#14125)
colawwj Sep 30, 2020
380ae62
Subscription release (#14426)
dw511214992 Oct 12, 2020
5192df0
Generated from 60de4c8e4df2bd90b44ed70a90d48385e6f6971a (#14381)
msyyc Oct 13, 2020
2057b28
Track1-mgmt-sql (#14385)
msyyc Oct 13, 2020
d430f6d
Sdk automation/azure mgmt cosmosdb@10955 (#14060)
colawwj Oct 14, 2020
d643def
【T1】 azurestackhci (#14495)
msyyc Oct 15, 2020
7000983
[T1]compute (#14551)
msyyc Oct 16, 2020
62d6a81
【T1】 billing (#14491)
msyyc Oct 19, 2020
b8a50e9
[T1] media (#14588)
msyyc Oct 21, 2020
06c7c26
Sdk automation/azure mgmt digitaltwins (#14004)
changlong-liu Oct 22, 2020
bea58ea
Generated from 0e5a9dba02e521c7f89a7364a3560cfee8c4f9ec
Oct 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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