Skip to content

Commit

Permalink
CodeGen from PR 14950 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d09144f8a1487bf56b24cc37848288afdc11f55c into 969711a
  • Loading branch information
SDKAuto committed Jul 1, 2021
1 parent a8c9c6c commit c15e454
Show file tree
Hide file tree
Showing 21 changed files with 123 additions and 80 deletions.
8 changes: 4 additions & 4 deletions sdk/eventhub/azure-mgmt-eventhub/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"use": [
"@autorest/python@5.8.0",
"@autorest/modelerfour@4.19.1"
"@autorest/python@5.8.1",
"@autorest/modelerfour@4.19.2"
],
"commit": "243dc16d38ca0f0d251efa2d216468a670cd8beb",
"commit": "252baf2815e50b3cf882aef53ab915c7a62ee229",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/eventhub/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2",
"autorest_command": "autorest specification/eventhub/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"readme": "specification/eventhub/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# --------------------------------------------------------------------------

from ._event_hub_management_client import EventHubManagementClient
from ._version import VERSION

__version__ = VERSION
__all__ = ['EventHubManagementClient']

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential

VERSION = "unknown"

class EventHubManagementClientConfiguration(Configuration):
"""Configuration for EventHubManagementClient.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from .._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential

VERSION = "unknown"

class EventHubManagementClientConfiguration(Configuration):
"""Configuration for EventHubManagementClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# --------------------------------------------------------------------------

from ._event_hub_management_client import EventHubManagementClient
from ._version import VERSION

__version__ = VERSION
__all__ = ['EventHubManagementClient']

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential

VERSION = "unknown"

class EventHubManagementClientConfiguration(Configuration):
"""Configuration for EventHubManagementClient.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from .._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential

VERSION = "unknown"

class EventHubManagementClientConfiguration(Configuration):
"""Configuration for EventHubManagementClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# --------------------------------------------------------------------------

from ._event_hub_management_client import EventHubManagementClient
from ._version import VERSION

__version__ = VERSION
__all__ = ['EventHubManagementClient']

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential

VERSION = "unknown"

class EventHubManagementClientConfiguration(Configuration):
"""Configuration for EventHubManagementClient.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from .._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential

VERSION = "unknown"

class EventHubManagementClientConfiguration(Configuration):
"""Configuration for EventHubManagementClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ class ClusterSku(msrest.serialization.Model):

_validation = {
'name': {'required': True},
'capacity': {'maximum': 32, 'minimum': 1},
'capacity': {'minimum': 1},
}

_attribute_map = {
Expand Down Expand Up @@ -735,6 +735,8 @@ class EHNamespace(TrackedResource):
:type identity: ~azure.mgmt.eventhub.v2018_01_01_preview.models.Identity
:ivar provisioning_state: Provisioning state of the Namespace.
:vartype provisioning_state: str
:ivar status: Status of the Namespace.
:vartype status: str
:ivar created_at: The time the Namespace was created.
:vartype created_at: ~datetime.datetime
:ivar updated_at: The time the Namespace was updated.
Expand Down Expand Up @@ -765,6 +767,7 @@ class EHNamespace(TrackedResource):
'name': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
'created_at': {'readonly': True},
'updated_at': {'readonly': True},
'service_bus_endpoint': {'readonly': True},
Expand All @@ -781,6 +784,7 @@ class EHNamespace(TrackedResource):
'sku': {'key': 'sku', 'type': 'Sku'},
'identity': {'key': 'identity', 'type': 'Identity'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'status': {'key': 'properties.status', 'type': 'str'},
'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'},
'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'},
'service_bus_endpoint': {'key': 'properties.serviceBusEndpoint', 'type': 'str'},
Expand All @@ -801,6 +805,7 @@ def __init__(
self.sku = kwargs.get('sku', None)
self.identity = kwargs.get('identity', None)
self.provisioning_state = None
self.status = None
self.created_at = None
self.updated_at = None
self.service_bus_endpoint = None
Expand Down Expand Up @@ -878,33 +883,27 @@ def __init__(
class Encryption(msrest.serialization.Model):
"""Properties to configure Encryption.
Variables are only populated by the server, and will be ignored when sending a request.
:param key_vault_properties: Properties of KeyVault.
:type key_vault_properties:
list[~azure.mgmt.eventhub.v2018_01_01_preview.models.KeyVaultProperties]
:ivar key_source: Enumerates the possible value of keySource for Encryption. Default value:
:param key_source: Enumerates the possible value of keySource for Encryption. The only
acceptable values to pass in are None and "Microsoft.KeyVault". The default value is
"Microsoft.KeyVault".
:vartype key_source: str
:type key_source: str
"""

_validation = {
'key_source': {'constant': True},
}

_attribute_map = {
'key_vault_properties': {'key': 'keyVaultProperties', 'type': '[KeyVaultProperties]'},
'key_source': {'key': 'keySource', 'type': 'str'},
}

key_source = "Microsoft.KeyVault"

def __init__(
self,
**kwargs
):
super(Encryption, self).__init__(**kwargs)
self.key_vault_properties = kwargs.get('key_vault_properties', None)
self.key_source = kwargs.get('key_source', "Microsoft.KeyVault")


class ErrorResponse(msrest.serialization.Model):
Expand Down Expand Up @@ -1026,36 +1025,30 @@ def __init__(
class Identity(msrest.serialization.Model):
"""Properties to configure Identity for Bring your Own Keys.
Variables are only populated by the server, and will be ignored when sending a request.
:param principal_id: ObjectId from the KeyVault.
:type principal_id: str
:param tenant_id: TenantId from the KeyVault.
:type tenant_id: str
:ivar type: Enumerates the possible value Identity type, which currently supports only
'SystemAssigned'. Default value: "SystemAssigned".
:vartype type: str
:param type: Enumerates the possible value Identity type, which currently supports only
'SystemAssigned'. The only acceptable values to pass in are None and "SystemAssigned". The
default value is "SystemAssigned".
:type type: str
"""

_validation = {
'type': {'constant': True},
}

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

type = "SystemAssigned"

def __init__(
self,
**kwargs
):
super(Identity, self).__init__(**kwargs)
self.principal_id = kwargs.get('principal_id', None)
self.tenant_id = kwargs.get('tenant_id', None)
self.type = kwargs.get('type', "SystemAssigned")


class IpFilterRule(Resource):
Expand Down Expand Up @@ -1646,7 +1639,7 @@ class Sku(msrest.serialization.Model):

_validation = {
'name': {'required': True},
'capacity': {'maximum': 20, 'minimum': 0},
'capacity': {'minimum': 0},
}

_attribute_map = {
Expand Down
Loading

0 comments on commit c15e454

Please sign in to comment.