Skip to content
Merged
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
16 changes: 16 additions & 0 deletions sdk/appconfiguration/azure-mgmt-appconfiguration/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
Release History
===============

0.3.0 (2019-11-08)

++++++++++++++++++

**Features**

- Model ConfigurationStore has a new parameter identity
- Model ConfigurationStoreUpdateParameters has a new parameter identity
- Model ConfigurationStoreUpdateParameters has a new parameter sku

**Breaking changes**

- Operation ConfigurationStoresOperations.create has a new signature
- Operation ConfigurationStoresOperations.update has a new signature
- Model ConfigurationStore has a new required parameter sku

0.2.0 (2019-11-04)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,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 = '2019-02-01-preview'
self.api_version = '2019-10-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
from ._models_py3 import OperationDefinitionDisplay
from ._models_py3 import RegenerateKeyParameters
from ._models_py3 import Resource
from ._models_py3 import ResourceIdentity
from ._models_py3 import Sku
from ._models_py3 import UserIdentity
except (SyntaxError, ImportError):
from ._models import ApiKey
from ._models import CheckNameAvailabilityParameters
Expand All @@ -35,10 +38,14 @@
from ._models import OperationDefinitionDisplay
from ._models import RegenerateKeyParameters
from ._models import Resource
from ._models import ResourceIdentity
from ._models import Sku
from ._models import UserIdentity
from ._paged_models import ApiKeyPaged
from ._paged_models import ConfigurationStorePaged
from ._paged_models import OperationDefinitionPaged
from ._app_configuration_management_client_enums import (
IdentityType,
ProvisioningState,
)

Expand All @@ -55,8 +62,12 @@
'OperationDefinitionDisplay',
'RegenerateKeyParameters',
'Resource',
'ResourceIdentity',
'Sku',
'UserIdentity',
'ConfigurationStorePaged',
'ApiKeyPaged',
'OperationDefinitionPaged',
'IdentityType',
'ProvisioningState',
]
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
from enum import Enum


class IdentityType(str, Enum):

none = "None"
system_assigned = "SystemAssigned"
user_assigned = "UserAssigned"
system_assigned_user_assigned = "SystemAssigned, UserAssigned"


class ProvisioningState(str, Enum):

creating = "Creating"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ class ConfigurationStore(Resource):
:type location: str
:param tags: The tags of the resource.
:type tags: dict[str, str]
:param identity: The managed identity information, if configured.
:type identity: ~azure.mgmt.appconfiguration.models.ResourceIdentity
:ivar provisioning_state: The provisioning state of the configuration
store. Possible values include: 'Creating', 'Updating', 'Deleting',
'Succeeded', 'Failed', 'Canceled'
Expand All @@ -179,6 +181,8 @@ class ConfigurationStore(Resource):
:ivar endpoint: The DNS endpoint where the configuration store API will be
available.
:vartype endpoint: str
:param sku: Required. The sku of the configuration store.
:type sku: ~azure.mgmt.appconfiguration.models.Sku
"""

_validation = {
Expand All @@ -189,6 +193,7 @@ class ConfigurationStore(Resource):
'provisioning_state': {'readonly': True},
'creation_date': {'readonly': True},
'endpoint': {'readonly': True},
'sku': {'required': True},
}

_attribute_map = {
Expand All @@ -197,35 +202,48 @@ class ConfigurationStore(Resource):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'identity': {'key': 'identity', 'type': 'ResourceIdentity'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
'endpoint': {'key': 'properties.endpoint', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'Sku'},
}

def __init__(self, **kwargs):
super(ConfigurationStore, self).__init__(**kwargs)
self.identity = kwargs.get('identity', None)
self.provisioning_state = None
self.creation_date = None
self.endpoint = None
self.sku = kwargs.get('sku', None)


class ConfigurationStoreUpdateParameters(Model):
"""The parameters for updating a configuration store.

:param properties: The properties for updating a configuration store.
:type properties: object
:param identity: The managed identity information for the configuration
store.
:type identity: ~azure.mgmt.appconfiguration.models.ResourceIdentity
:param sku: The SKU of the configuration store.
:type sku: ~azure.mgmt.appconfiguration.models.Sku
:param tags: The ARM resource tags.
:type tags: dict[str, str]
"""

_attribute_map = {
'properties': {'key': 'properties', 'type': 'object'},
'identity': {'key': 'identity', 'type': 'ResourceIdentity'},
'sku': {'key': 'sku', 'type': 'Sku'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, **kwargs):
super(ConfigurationStoreUpdateParameters, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)
self.identity = kwargs.get('identity', None)
self.sku = kwargs.get('sku', None)
self.tags = kwargs.get('tags', None)


Expand Down Expand Up @@ -460,3 +478,99 @@ class RegenerateKeyParameters(Model):
def __init__(self, **kwargs):
super(RegenerateKeyParameters, self).__init__(**kwargs)
self.id = kwargs.get('id', None)


class ResourceIdentity(Model):
"""ResourceIdentity.

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

:param type: The type of managed identity used. The type 'SystemAssigned,
UserAssigned' includes both an implicitly created identity and a set of
user-assigned identities. The type 'None' will remove any identities.
Possible values include: 'None', 'SystemAssigned', 'UserAssigned',
'SystemAssigned, UserAssigned'
:type type: str or ~azure.mgmt.appconfiguration.models.IdentityType
:param user_assigned_identities: The list of user-assigned identities
associated with the resource. The user-assigned identity dictionary keys
will be ARM resource ids in the form:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
:type user_assigned_identities: dict[str,
~azure.mgmt.appconfiguration.models.UserIdentity]
:ivar principal_id: The principal id of the identity. This property will
only be provided for a system-assigned identity.
:vartype principal_id: str
:ivar tenant_id: The tenant id associated with the resource's identity.
This property will only be provided for a system-assigned identity.
:vartype tenant_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserIdentity}'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ResourceIdentity, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.user_assigned_identities = kwargs.get('user_assigned_identities', None)
self.principal_id = None
self.tenant_id = None


class Sku(Model):
"""Describes a configuration store SKU.

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

:param name: Required. The SKU name of the configuration store.
:type name: str
"""

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

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

def __init__(self, **kwargs):
super(Sku, self).__init__(**kwargs)
self.name = kwargs.get('name', None)


class UserIdentity(Model):
"""UserIdentity.

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

:ivar principal_id: The principal ID of the user-assigned identity.
:vartype principal_id: str
:ivar client_id: The client ID of the user-assigned identity.
:vartype client_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'client_id': {'readonly': True},
}

_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'client_id': {'key': 'clientId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(UserIdentity, self).__init__(**kwargs)
self.principal_id = None
self.client_id = None
Loading