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

Release rdbms #14032

Merged
merged 2 commits into from
Sep 29, 2020
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
7 changes: 7 additions & 0 deletions sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release History

## 3.1.0rc1 (2020-09-25)

**Features**

- Model Operation has a new parameter is_data_action
- Model OperationListResult has a new parameter next_link

## 3.0.0rc1 (2020-09-15)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from .operations import ServersOperations
from .operations import FirewallRulesOperations
from .operations import ConfigurationsOperations
from .operations import ServerKeysOperations
from .operations import CheckNameAvailabilityOperations
from .operations import LocationBasedCapabilitiesOperations
from .operations import VirtualNetworkSubnetUsageOperations
Expand All @@ -36,8 +35,6 @@ class PostgreSQLManagementClient(SDKClient):
:vartype firewall_rules: azure.mgmt.rdbms.postgresql_flexibleservers.operations.FirewallRulesOperations
:ivar configurations: Configurations operations
:vartype configurations: azure.mgmt.rdbms.postgresql_flexibleservers.operations.ConfigurationsOperations
:ivar server_keys: ServerKeys operations
:vartype server_keys: azure.mgmt.rdbms.postgresql_flexibleservers.operations.ServerKeysOperations
:ivar check_name_availability: CheckNameAvailability operations
:vartype check_name_availability: azure.mgmt.rdbms.postgresql_flexibleservers.operations.CheckNameAvailabilityOperations
:ivar location_based_capabilities: LocationBasedCapabilities operations
Expand All @@ -62,7 +59,7 @@ def __init__(
super(PostgreSQLManagementClient, 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-02-14-privatepreview'
self.api_version = '2020-02-14-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -72,8 +69,6 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.configurations = ConfigurationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.server_keys = ServerKeysOperations(
self._client, self.config, self._serialize, self._deserialize)
self.check_name_availability = CheckNameAvailabilityOperations(
self._client, self.config, self._serialize, self._deserialize)
self.location_based_capabilities = LocationBasedCapabilitiesOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from ._models_py3 import Server
from ._models_py3 import ServerEditionCapability
from ._models_py3 import ServerForUpdate
from ._models_py3 import ServerKey
from ._models_py3 import ServerPropertiesDelegatedSubnetArguments
from ._models_py3 import ServerVersionCapability
from ._models_py3 import Sku
Expand Down Expand Up @@ -70,7 +69,6 @@
from ._models import Server
from ._models import ServerEditionCapability
from ._models import ServerForUpdate
from ._models import ServerKey
from ._models import ServerPropertiesDelegatedSubnetArguments
from ._models import ServerVersionCapability
from ._models import Sku
Expand All @@ -84,7 +82,6 @@
from ._paged_models import CapabilityPropertiesPaged
from ._paged_models import ConfigurationPaged
from ._paged_models import FirewallRulePaged
from ._paged_models import ServerKeyPaged
from ._paged_models import ServerPaged
from ._postgre_sql_management_client_enums import (
ServerVersion,
Expand Down Expand Up @@ -124,7 +121,6 @@
'Server',
'ServerEditionCapability',
'ServerForUpdate',
'ServerKey',
'ServerPropertiesDelegatedSubnetArguments',
'ServerVersionCapability',
'Sku',
Expand All @@ -138,7 +134,6 @@
'ServerPaged',
'FirewallRulePaged',
'ConfigurationPaged',
'ServerKeyPaged',
'CapabilityPropertiesPaged',
'ServerVersion',
'ServerState',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ class Operation(Model):
operation or action.
:vartype display:
~azure.mgmt.rdbms.postgresql_flexibleservers.models.OperationDisplay
:param is_data_action: Indicates whether the operation is a data action
:type is_data_action: bool
:ivar origin: The intended executor of the operation. Possible values
include: 'NotSpecified', 'user', 'system'
:vartype origin: str or
Expand All @@ -533,6 +535,7 @@ class Operation(Model):
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplay'},
'is_data_action': {'key': 'isDataAction', 'type': 'bool'},
'origin': {'key': 'origin', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{object}'},
}
Expand All @@ -541,6 +544,7 @@ def __init__(self, **kwargs):
super(Operation, self).__init__(**kwargs)
self.name = None
self.display = None
self.is_data_action = kwargs.get('is_data_action', None)
self.origin = None
self.properties = None

Expand Down Expand Up @@ -586,18 +590,24 @@ def __init__(self, **kwargs):
class OperationListResult(Model):
"""A list of resource provider operations.

:param value: The list of resource provider operations.
:param value: Collection of available operation details
:type value:
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Operation]
:param next_link: URL client should use to fetch the next page (per server
side paging).
It's null for now, added for future use.
:type next_link: str
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[Operation]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, **kwargs):
super(OperationListResult, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
self.next_link = kwargs.get('next_link', None)


class Plan(Model):
Expand Down Expand Up @@ -1140,61 +1150,6 @@ def __init__(self, **kwargs):
self.tags = kwargs.get('tags', None)


class ServerKey(ProxyResource):
"""A PostgreSQL Server key.

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

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

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:ivar kind: Kind of encryption protector used to protect the key.
:vartype kind: str
:ivar server_key_type: Required. The key type like 'AzureKeyVault'.
Default value: "AzureKeyVault" .
:vartype server_key_type: str
:param uri: The URI of the key.
:type uri: str
:ivar creation_date: The key creation date.
:vartype creation_date: datetime
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'kind': {'readonly': True},
'server_key_type': {'required': True, 'constant': True},
'creation_date': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'server_key_type': {'key': 'properties.serverKeyType', 'type': 'str'},
'uri': {'key': 'properties.uri', 'type': 'str'},
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
}

server_key_type = "AzureKeyVault"

def __init__(self, **kwargs):
super(ServerKey, self).__init__(**kwargs)
self.kind = None
self.uri = kwargs.get('uri', None)
self.creation_date = None


class ServerPropertiesDelegatedSubnetArguments(Model):
"""ServerPropertiesDelegatedSubnetArguments.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ class Operation(Model):
operation or action.
:vartype display:
~azure.mgmt.rdbms.postgresql_flexibleservers.models.OperationDisplay
:param is_data_action: Indicates whether the operation is a data action
:type is_data_action: bool
:ivar origin: The intended executor of the operation. Possible values
include: 'NotSpecified', 'user', 'system'
:vartype origin: str or
Expand All @@ -533,14 +535,16 @@ class Operation(Model):
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplay'},
'is_data_action': {'key': 'isDataAction', 'type': 'bool'},
'origin': {'key': 'origin', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{object}'},
}

def __init__(self, **kwargs) -> None:
def __init__(self, *, is_data_action: bool=None, **kwargs) -> None:
super(Operation, self).__init__(**kwargs)
self.name = None
self.display = None
self.is_data_action = is_data_action
self.origin = None
self.properties = None

Expand Down Expand Up @@ -586,18 +590,24 @@ def __init__(self, **kwargs) -> None:
class OperationListResult(Model):
"""A list of resource provider operations.

:param value: The list of resource provider operations.
:param value: Collection of available operation details
:type value:
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Operation]
:param next_link: URL client should use to fetch the next page (per server
side paging).
It's null for now, added for future use.
:type next_link: str
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[Operation]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, *, value=None, **kwargs) -> None:
def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None:
super(OperationListResult, self).__init__(**kwargs)
self.value = value
self.next_link = next_link


class Plan(Model):
Expand Down Expand Up @@ -1140,61 +1150,6 @@ def __init__(self, *, location: str=None, sku=None, administrator_login_password
self.tags = tags


class ServerKey(ProxyResource):
"""A PostgreSQL Server key.

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

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

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:ivar kind: Kind of encryption protector used to protect the key.
:vartype kind: str
:ivar server_key_type: Required. The key type like 'AzureKeyVault'.
Default value: "AzureKeyVault" .
:vartype server_key_type: str
:param uri: The URI of the key.
:type uri: str
:ivar creation_date: The key creation date.
:vartype creation_date: datetime
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'kind': {'readonly': True},
'server_key_type': {'required': True, 'constant': True},
'creation_date': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'server_key_type': {'key': 'properties.serverKeyType', 'type': 'str'},
'uri': {'key': 'properties.uri', 'type': 'str'},
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
}

server_key_type = "AzureKeyVault"

def __init__(self, *, uri: str=None, **kwargs) -> None:
super(ServerKey, self).__init__(**kwargs)
self.kind = None
self.uri = uri
self.creation_date = None


class ServerPropertiesDelegatedSubnetArguments(Model):
"""ServerPropertiesDelegatedSubnetArguments.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,6 @@ class ConfigurationPaged(Paged):
def __init__(self, *args, **kwargs):

super(ConfigurationPaged, self).__init__(*args, **kwargs)
class ServerKeyPaged(Paged):
"""
A paging container for iterating over a list of :class:`ServerKey <azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerKey>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[ServerKey]'}
}

def __init__(self, *args, **kwargs):

super(ServerKeyPaged, self).__init__(*args, **kwargs)
class CapabilityPropertiesPaged(Paged):
"""
A paging container for iterating over a list of :class:`CapabilityProperties <azure.mgmt.rdbms.postgresql_flexibleservers.models.CapabilityProperties>` object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from ._servers_operations import ServersOperations
from ._firewall_rules_operations import FirewallRulesOperations
from ._configurations_operations import ConfigurationsOperations
from ._server_keys_operations import ServerKeysOperations
from ._check_name_availability_operations import CheckNameAvailabilityOperations
from ._location_based_capabilities_operations import LocationBasedCapabilitiesOperations
from ._virtual_network_subnet_usage_operations import VirtualNetworkSubnetUsageOperations
Expand All @@ -22,7 +21,6 @@
'ServersOperations',
'FirewallRulesOperations',
'ConfigurationsOperations',
'ServerKeysOperations',
'CheckNameAvailabilityOperations',
'LocationBasedCapabilitiesOperations',
'VirtualNetworkSubnetUsageOperations',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CheckNameAvailabilityOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-02-14-privatepreview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-02-14-preview".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-02-14-privatepreview"
self.api_version = "2020-02-14-preview"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ConfigurationsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-02-14-privatepreview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-02-14-preview".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-02-14-privatepreview"
self.api_version = "2020-02-14-preview"

self.config = config

Expand Down
Loading