diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/__init__.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/__init__.py new file mode 100644 index 000000000000..c9573a3f77cb --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/__init__.py @@ -0,0 +1,19 @@ +# 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. +# -------------------------------------------------------------------------- + +from ._configuration import DataPlaneAccountClientConfiguration +from ._data_plane_account_client import DataPlaneAccountClient +__all__ = ['DataPlaneAccountClient', 'DataPlaneAccountClientConfiguration'] + +from .version import VERSION + +__version__ = VERSION + diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/_configuration.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/_configuration.py new file mode 100644 index 000000000000..59bf4e53ea05 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/_configuration.py @@ -0,0 +1,43 @@ +# 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. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class DataPlaneAccountClientConfiguration(AzureConfiguration): + """Configuration for DataPlaneAccountClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param str base_url: Service URL + """ + + def __init__( + self, credentials, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if not base_url: + base_url = 'http://localhost' + + super(DataPlaneAccountClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-ProjectBabylon/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/_data_plane_account_client.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/_data_plane_account_client.py new file mode 100644 index 000000000000..68eae76891b0 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/_data_plane_account_client.py @@ -0,0 +1,67 @@ +# 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. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer + +from ._configuration import DataPlaneAccountClientConfiguration +from .operations import AccountsOperations +from .operations import BusinessRulesOperations +from .operations import CollectionsOperations +from .operations import ExposureControlOperations +from .operations import ResourceSetRuleConfigsOperations +from . import models + + +class DataPlaneAccountClient(SDKClient): + """Creates a Microsoft.Purview data plane account client. + + :ivar config: Configuration for client. + :vartype config: DataPlaneAccountClientConfiguration + + :ivar accounts: Accounts operations + :vartype accounts: azure.mgmt.projectbabylon.operations.AccountsOperations + :ivar business_rules: BusinessRules operations + :vartype business_rules: azure.mgmt.projectbabylon.operations.BusinessRulesOperations + :ivar collections: Collections operations + :vartype collections: azure.mgmt.projectbabylon.operations.CollectionsOperations + :ivar exposure_control: ExposureControl operations + :vartype exposure_control: azure.mgmt.projectbabylon.operations.ExposureControlOperations + :ivar resource_set_rule_configs: ResourceSetRuleConfigs operations + :vartype resource_set_rule_configs: azure.mgmt.projectbabylon.operations.ResourceSetRuleConfigsOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param str base_url: Service URL + """ + + def __init__( + self, credentials, base_url=None): + + self.config = DataPlaneAccountClientConfiguration(credentials, base_url) + super(DataPlaneAccountClient, 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-11-01-preview' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.accounts = AccountsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.business_rules = BusinessRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.collections = CollectionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.exposure_control = ExposureControlOperations( + self._client, self.config, self._serialize, self._deserialize) + self.resource_set_rule_configs = ResourceSetRuleConfigsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/__init__.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/__init__.py new file mode 100644 index 000000000000..36f00a0b3cf5 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/__init__.py @@ -0,0 +1,170 @@ +# 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. +# -------------------------------------------------------------------------- + +try: + from ._models_py3 import AccessKeyOptions + from ._models_py3 import AccessKeys + from ._models_py3 import Account + from ._models_py3 import AccountEndpoints + from ._models_py3 import AccountProperties + from ._models_py3 import AccountPropertiesEndpoints + from ._models_py3 import AccountPropertiesManagedResources + from ._models_py3 import AccountSku + from ._models_py3 import AccountSystemData + from ._models_py3 import AdvancedResourceSet + from ._models_py3 import BatchSettingsRequest + from ._models_py3 import BusinessRule + from ._models_py3 import BusinessRuleMetadata + from ._models_py3 import CloudConnectors + from ._models_py3 import Collection + from ._models_py3 import CollectionNameResponse + from ._models_py3 import CollectionPathResponse + from ._models_py3 import CollectionReference + from ._models_py3 import CollectionSystemData + from ._models_py3 import ComplexReplacerConfig + from ._models_py3 import DataPlaneAccountUpdateParameters + from ._models_py3 import ErrorModel + from ._models_py3 import ErrorResponseModel, ErrorResponseModelException + from ._models_py3 import ErrorResponseModelError + from ._models_py3 import FastRegex + from ._models_py3 import Filter + from ._models_py3 import Identity + from ._models_py3 import ManagedResources + from ._models_py3 import NormalizationRule + from ._models_py3 import PathPatternExtractorConfig + from ._models_py3 import PrivateEndpoint + from ._models_py3 import PrivateEndpointConnection + from ._models_py3 import PrivateEndpointConnectionProperties + from ._models_py3 import PrivateLinkServiceConnectionState + from ._models_py3 import RegexReplacer + from ._models_py3 import ResourceSetRuleConfig + from ._models_py3 import Rule + from ._models_py3 import ScopedRule + from ._models_py3 import Settings + from ._models_py3 import SystemData +except (SyntaxError, ImportError): + from ._models import AccessKeyOptions + from ._models import AccessKeys + from ._models import Account + from ._models import AccountEndpoints + from ._models import AccountProperties + from ._models import AccountPropertiesEndpoints + from ._models import AccountPropertiesManagedResources + from ._models import AccountSku + from ._models import AccountSystemData + from ._models import AdvancedResourceSet + from ._models import BatchSettingsRequest + from ._models import BusinessRule + from ._models import BusinessRuleMetadata + from ._models import CloudConnectors + from ._models import Collection + from ._models import CollectionNameResponse + from ._models import CollectionPathResponse + from ._models import CollectionReference + from ._models import CollectionSystemData + from ._models import ComplexReplacerConfig + from ._models import DataPlaneAccountUpdateParameters + from ._models import ErrorModel + from ._models import ErrorResponseModel, ErrorResponseModelException + from ._models import ErrorResponseModelError + from ._models import FastRegex + from ._models import Filter + from ._models import Identity + from ._models import ManagedResources + from ._models import NormalizationRule + from ._models import PathPatternExtractorConfig + from ._models import PrivateEndpoint + from ._models import PrivateEndpointConnection + from ._models import PrivateEndpointConnectionProperties + from ._models import PrivateLinkServiceConnectionState + from ._models import RegexReplacer + from ._models import ResourceSetRuleConfig + from ._models import Rule + from ._models import ScopedRule + from ._models import Settings + from ._models import SystemData +from ._paged_models import BusinessRulePaged +from ._paged_models import CollectionNameResponsePaged +from ._paged_models import CollectionPaged +from ._paged_models import ResourceSetRuleConfigPaged +from ._data_plane_account_client_enums import ( + Type, + Status, + ProvisioningState, + PublicNetworkAccess, + Name, + CreatedByType, + LastModifiedByType, + KeyType, + RuleStatus, + CollectionProvisioningState, + ResourceSetProcessing, + FilterType, +) + +__all__ = [ + 'AccessKeyOptions', + 'AccessKeys', + 'Account', + 'AccountEndpoints', + 'AccountProperties', + 'AccountPropertiesEndpoints', + 'AccountPropertiesManagedResources', + 'AccountSku', + 'AccountSystemData', + 'AdvancedResourceSet', + 'BatchSettingsRequest', + 'BusinessRule', + 'BusinessRuleMetadata', + 'CloudConnectors', + 'Collection', + 'CollectionNameResponse', + 'CollectionPathResponse', + 'CollectionReference', + 'CollectionSystemData', + 'ComplexReplacerConfig', + 'DataPlaneAccountUpdateParameters', + 'ErrorModel', + 'ErrorResponseModel', 'ErrorResponseModelException', + 'ErrorResponseModelError', + 'FastRegex', + 'Filter', + 'Identity', + 'ManagedResources', + 'NormalizationRule', + 'PathPatternExtractorConfig', + 'PrivateEndpoint', + 'PrivateEndpointConnection', + 'PrivateEndpointConnectionProperties', + 'PrivateLinkServiceConnectionState', + 'RegexReplacer', + 'ResourceSetRuleConfig', + 'Rule', + 'ScopedRule', + 'Settings', + 'SystemData', + 'BusinessRulePaged', + 'CollectionPaged', + 'CollectionNameResponsePaged', + 'ResourceSetRuleConfigPaged', + 'Type', + 'Status', + 'ProvisioningState', + 'PublicNetworkAccess', + 'Name', + 'CreatedByType', + 'LastModifiedByType', + 'KeyType', + 'RuleStatus', + 'CollectionProvisioningState', + 'ResourceSetProcessing', + 'FilterType', +] diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_data_plane_account_client_enums.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_data_plane_account_client_enums.py new file mode 100644 index 000000000000..b0d45a58c436 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_data_plane_account_client_enums.py @@ -0,0 +1,104 @@ +# 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. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class Type(str, Enum): + + system_assigned = "SystemAssigned" + + +class Status(str, Enum): + + unknown = "Unknown" + pending = "Pending" + approved = "Approved" + rejected = "Rejected" + disconnected = "Disconnected" + + +class ProvisioningState(str, Enum): + + unknown = "Unknown" + creating = "Creating" + moving = "Moving" + deleting = "Deleting" + soft_deleting = "SoftDeleting" + soft_deleted = "SoftDeleted" + failed = "Failed" + succeeded = "Succeeded" + canceled = "Canceled" + + +class PublicNetworkAccess(str, Enum): + + not_specified = "NotSpecified" + enabled = "Enabled" + disabled = "Disabled" + + +class Name(str, Enum): + + standard = "Standard" + + +class CreatedByType(str, Enum): + + user = "User" + application = "Application" + managed_identity = "ManagedIdentity" + key = "Key" + + +class LastModifiedByType(str, Enum): + + user = "User" + application = "Application" + managed_identity = "ManagedIdentity" + key = "Key" + + +class KeyType(str, Enum): + + primary_atlas_kafka_key = "PrimaryAtlasKafkaKey" + secondary_atlas_kafka_key = "SecondaryAtlasKafkaKey" + + +class RuleStatus(str, Enum): + + unknown = "Unknown" + draft = "Draft" + enabled = "Enabled" + disabled = "Disabled" + expired = "Expired" + + +class CollectionProvisioningState(str, Enum): + + unknown = "Unknown" + creating = "Creating" + moving = "Moving" + deleting = "Deleting" + failed = "Failed" + succeeded = "Succeeded" + + +class ResourceSetProcessing(str, Enum): + + default = "Default" + advanced = "Advanced" + + +class FilterType(str, Enum): + + pattern = "Pattern" + regex = "Regex" diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_models.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_models.py new file mode 100644 index 000000000000..22cf4d0afb7d --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_models.py @@ -0,0 +1,1521 @@ +# 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. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class AccessKeyOptions(Model): + """A access key options used for regeneration. + + :param key_type: The access key type. Possible values include: + 'PrimaryAtlasKafkaKey', 'SecondaryAtlasKafkaKey' + :type key_type: str or ~azure.mgmt.projectbabylon.models.KeyType + """ + + _attribute_map = { + 'key_type': {'key': 'keyType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AccessKeyOptions, self).__init__(**kwargs) + self.key_type = kwargs.get('key_type', None) + + +class AccessKeys(Model): + """The Account access keys. + + :param atlas_kafka_primary_endpoint: Gets or sets the primary connection + string. + :type atlas_kafka_primary_endpoint: str + :param atlas_kafka_secondary_endpoint: Gets or sets the secondary + connection string. + :type atlas_kafka_secondary_endpoint: str + """ + + _attribute_map = { + 'atlas_kafka_primary_endpoint': {'key': 'atlasKafkaPrimaryEndpoint', 'type': 'str'}, + 'atlas_kafka_secondary_endpoint': {'key': 'atlasKafkaSecondaryEndpoint', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AccessKeys, self).__init__(**kwargs) + self.atlas_kafka_primary_endpoint = kwargs.get('atlas_kafka_primary_endpoint', None) + self.atlas_kafka_secondary_endpoint = kwargs.get('atlas_kafka_secondary_endpoint', None) + + +class Account(Model): + """Account resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Gets or sets the identifier. + :vartype id: str + :param identity: Identity Info on the tracked resource + :type identity: ~azure.mgmt.projectbabylon.models.Identity + :param location: Gets or sets the location. + :type location: str + :ivar name: Gets or sets the name. + :vartype name: str + :param properties: Gets or sets the properties. + :type properties: ~azure.mgmt.projectbabylon.models.AccountProperties + :param sku: Gets or sets the Sku. + :type sku: ~azure.mgmt.projectbabylon.models.AccountSku + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: ~azure.mgmt.projectbabylon.models.AccountSystemData + :param tags: Tags on the azure resource. + :type tags: dict[str, str] + :ivar type: Gets or sets the type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'system_data': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AccountProperties'}, + 'sku': {'key': 'sku', 'type': 'AccountSku'}, + 'system_data': {'key': 'systemData', 'type': 'AccountSystemData'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Account, self).__init__(**kwargs) + self.id = None + self.identity = kwargs.get('identity', None) + self.location = kwargs.get('location', None) + self.name = None + self.properties = kwargs.get('properties', None) + self.sku = kwargs.get('sku', None) + self.system_data = None + self.tags = kwargs.get('tags', None) + self.type = None + + +class AccountEndpoints(Model): + """The account endpoints. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar catalog: Gets the catalog endpoint. + :vartype catalog: str + :ivar guardian: Gets the guardian endpoint. + :vartype guardian: str + :ivar scan: Gets the scan endpoint. + :vartype scan: str + """ + + _validation = { + 'catalog': {'readonly': True}, + 'guardian': {'readonly': True}, + 'scan': {'readonly': True}, + } + + _attribute_map = { + 'catalog': {'key': 'catalog', 'type': 'str'}, + 'guardian': {'key': 'guardian', 'type': 'str'}, + 'scan': {'key': 'scan', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AccountEndpoints, self).__init__(**kwargs) + self.catalog = None + self.guardian = None + self.scan = None + + +class AccountProperties(Model): + """The account properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param cloud_connectors: Cloud connectors. + External cloud identifier used as part of scanning configuration. + :type cloud_connectors: ~azure.mgmt.projectbabylon.models.CloudConnectors + :ivar created_at: Gets the time at which the entity was created. + :vartype created_at: datetime + :ivar created_by: Gets the creator of the entity. + :vartype created_by: str + :ivar created_by_object_id: Gets the creators of the entity's object id. + :vartype created_by_object_id: str + :ivar endpoints: The URIs that are the public endpoints of the account. + :vartype endpoints: + ~azure.mgmt.projectbabylon.models.AccountPropertiesEndpoints + :ivar friendly_name: Gets or sets the friendly name. + :vartype friendly_name: str + :param managed_resource_group_name: Gets or sets the managed resource + group name + :type managed_resource_group_name: str + :ivar managed_resources: Gets the resource identifiers of the managed + resources. + :vartype managed_resources: + ~azure.mgmt.projectbabylon.models.AccountPropertiesManagedResources + :ivar private_endpoint_connections: Gets the private endpoint connections + information. + :vartype private_endpoint_connections: + list[~azure.mgmt.projectbabylon.models.PrivateEndpointConnection] + :ivar provisioning_state: Gets or sets the state of the provisioning. + Possible values include: 'Unknown', 'Creating', 'Moving', 'Deleting', + 'SoftDeleting', 'SoftDeleted', 'Failed', 'Succeeded', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.projectbabylon.models.ProvisioningState + :param public_network_access: Gets or sets the public network access. + Possible values include: 'NotSpecified', 'Enabled', 'Disabled'. Default + value: "Enabled" . + :type public_network_access: str or + ~azure.mgmt.projectbabylon.models.PublicNetworkAccess + """ + + _validation = { + 'created_at': {'readonly': True}, + 'created_by': {'readonly': True}, + 'created_by_object_id': {'readonly': True}, + 'endpoints': {'readonly': True}, + 'friendly_name': {'readonly': True}, + 'managed_resources': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'cloud_connectors': {'key': 'cloudConnectors', 'type': 'CloudConnectors'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_object_id': {'key': 'createdByObjectId', 'type': 'str'}, + 'endpoints': {'key': 'endpoints', 'type': 'AccountPropertiesEndpoints'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'managed_resource_group_name': {'key': 'managedResourceGroupName', 'type': 'str'}, + 'managed_resources': {'key': 'managedResources', 'type': 'AccountPropertiesManagedResources'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AccountProperties, self).__init__(**kwargs) + self.cloud_connectors = kwargs.get('cloud_connectors', None) + self.created_at = None + self.created_by = None + self.created_by_object_id = None + self.endpoints = None + self.friendly_name = None + self.managed_resource_group_name = kwargs.get('managed_resource_group_name', None) + self.managed_resources = None + self.private_endpoint_connections = None + self.provisioning_state = None + self.public_network_access = kwargs.get('public_network_access', "Enabled") + + +class AccountPropertiesEndpoints(AccountEndpoints): + """The URIs that are the public endpoints of the account. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar catalog: Gets the catalog endpoint. + :vartype catalog: str + :ivar guardian: Gets the guardian endpoint. + :vartype guardian: str + :ivar scan: Gets the scan endpoint. + :vartype scan: str + """ + + _validation = { + 'catalog': {'readonly': True}, + 'guardian': {'readonly': True}, + 'scan': {'readonly': True}, + } + + _attribute_map = { + 'catalog': {'key': 'catalog', 'type': 'str'}, + 'guardian': {'key': 'guardian', 'type': 'str'}, + 'scan': {'key': 'scan', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AccountPropertiesEndpoints, self).__init__(**kwargs) + + +class ManagedResources(Model): + """The managed resources in customer subscription. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar event_hub_namespace: Gets the managed event hub namespace resource + identifier. + :vartype event_hub_namespace: str + :ivar resource_group: Gets the managed resource group resource identifier. + This resource group will host resource dependencies for the account. + :vartype resource_group: str + :ivar storage_account: Gets the managed storage account resource + identifier. + :vartype storage_account: str + """ + + _validation = { + 'event_hub_namespace': {'readonly': True}, + 'resource_group': {'readonly': True}, + 'storage_account': {'readonly': True}, + } + + _attribute_map = { + 'event_hub_namespace': {'key': 'eventHubNamespace', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account': {'key': 'storageAccount', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ManagedResources, self).__init__(**kwargs) + self.event_hub_namespace = None + self.resource_group = None + self.storage_account = None + + +class AccountPropertiesManagedResources(ManagedResources): + """Gets the resource identifiers of the managed resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar event_hub_namespace: Gets the managed event hub namespace resource + identifier. + :vartype event_hub_namespace: str + :ivar resource_group: Gets the managed resource group resource identifier. + This resource group will host resource dependencies for the account. + :vartype resource_group: str + :ivar storage_account: Gets the managed storage account resource + identifier. + :vartype storage_account: str + """ + + _validation = { + 'event_hub_namespace': {'readonly': True}, + 'resource_group': {'readonly': True}, + 'storage_account': {'readonly': True}, + } + + _attribute_map = { + 'event_hub_namespace': {'key': 'eventHubNamespace', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account': {'key': 'storageAccount', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AccountPropertiesManagedResources, self).__init__(**kwargs) + + +class AccountSku(Model): + """The Sku. + + :param capacity: Gets or sets the sku capacity. Possible values include: + 4, 16 + :type capacity: int + :param name: Gets or sets the sku name. Possible values include: + 'Standard' + :type name: str or ~azure.mgmt.projectbabylon.models.Name + """ + + _attribute_map = { + 'capacity': {'key': 'capacity', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AccountSku, self).__init__(**kwargs) + self.capacity = kwargs.get('capacity', None) + self.name = kwargs.get('name', None) + + +class SystemData(Model): + """Metadata pertaining to creation and last modification of the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: datetime + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :vartype created_by_type: str or + ~azure.mgmt.projectbabylon.models.CreatedByType + :ivar last_modified_at: The timestamp of the last modification the + resource (UTC). + :vartype last_modified_at: datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :vartype last_modified_by_type: str or + ~azure.mgmt.projectbabylon.models.LastModifiedByType + """ + + _validation = { + 'created_at': {'readonly': True}, + 'created_by': {'readonly': True}, + 'created_by_type': {'readonly': True}, + 'last_modified_at': {'readonly': True}, + 'last_modified_by': {'readonly': True}, + 'last_modified_by_type': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SystemData, self).__init__(**kwargs) + self.created_at = None + self.created_by = None + self.created_by_type = None + self.last_modified_at = None + self.last_modified_by = None + self.last_modified_by_type = None + + +class AccountSystemData(SystemData): + """Metadata pertaining to creation and last modification of the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: datetime + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :vartype created_by_type: str or + ~azure.mgmt.projectbabylon.models.CreatedByType + :ivar last_modified_at: The timestamp of the last modification the + resource (UTC). + :vartype last_modified_at: datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :vartype last_modified_by_type: str or + ~azure.mgmt.projectbabylon.models.LastModifiedByType + """ + + _validation = { + 'created_at': {'readonly': True}, + 'created_by': {'readonly': True}, + 'created_by_type': {'readonly': True}, + 'last_modified_at': {'readonly': True}, + 'last_modified_by': {'readonly': True}, + 'last_modified_by_type': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AccountSystemData, self).__init__(**kwargs) + + +class AdvancedResourceSet(Model): + """The resource set processing property of the account. + + :param modified_at: Date at which ResourceSetProcessing property of the + account is updated. + :type modified_at: datetime + :param resource_set_processing: The advanced resource property of the + account. Possible values include: 'Default', 'Advanced' + :type resource_set_processing: str or + ~azure.mgmt.projectbabylon.models.ResourceSetProcessing + """ + + _attribute_map = { + 'modified_at': {'key': 'modifiedAt', 'type': 'iso-8601'}, + 'resource_set_processing': {'key': 'resourceSetProcessing', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AdvancedResourceSet, self).__init__(**kwargs) + self.modified_at = kwargs.get('modified_at', None) + self.resource_set_processing = kwargs.get('resource_set_processing', None) + + +class BatchSettingsRequest(Model): + """Exposure Control settings request model. + + :param features: Features + :type features: list[str] + """ + + _validation = { + 'features': {'unique': True}, + } + + _attribute_map = { + 'features': {'key': 'features', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(BatchSettingsRequest, self).__init__(**kwargs) + self.features = kwargs.get('features', None) + + +class BusinessRule(Model): + """Filter resource. + + :param business_rule_metadata: Gets or sets the properties. + :type business_rule_metadata: + ~azure.mgmt.projectbabylon.models.BusinessRuleMetadata + :param name: Gets or sets the name. + :type name: str + :param rule_json: Gets or sets the actual rule json as a string. + :type rule_json: str + """ + + _attribute_map = { + 'business_rule_metadata': {'key': 'businessRuleMetadata', 'type': 'BusinessRuleMetadata'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rule_json': {'key': 'ruleJSON', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BusinessRule, self).__init__(**kwargs) + self.business_rule_metadata = kwargs.get('business_rule_metadata', None) + self.name = kwargs.get('name', None) + self.rule_json = kwargs.get('rule_json', None) + + +class BusinessRuleMetadata(Model): + """The business rule properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar catalog_id: Gets or sets the catalog id associated with the business + rule. + :vartype catalog_id: str + :ivar created_by: Gets or sets the creator of the business rule. + :vartype created_by: str + :ivar create_timestamp: Gets or sets the create timestamp of the business + rule. + :vartype create_timestamp: datetime + :param description: Gets or sets the description of the business rule. + :type description: str + :param expiration_timestamp: Gets or sets the expiration time stamp of the + business rule. + :type expiration_timestamp: datetime + :param friendly_name: Gets or sets the friendly name of the business rule. + :type friendly_name: str + :ivar last_modified_timestamp: Gets or sets the last modified timestamp of + the business rule. + :vartype last_modified_timestamp: datetime + :ivar modified_by: Gets or sets the modifier of the business rule. + :vartype modified_by: str + :ivar name: Gets or sets the name of the business rule. + :vartype name: str + :param rank: Gets or sets the rank of the business rule. + :type rank: int + :param rule_status: Gets or sets the status of the business rule. Possible + values include: 'Unknown', 'Draft', 'Enabled', 'Disabled', 'Expired' + :type rule_status: str or ~azure.mgmt.projectbabylon.models.RuleStatus + :ivar version: Gets or sets the version of the business rule. + :vartype version: int + """ + + _validation = { + 'catalog_id': {'readonly': True}, + 'created_by': {'readonly': True}, + 'create_timestamp': {'readonly': True}, + 'last_modified_timestamp': {'readonly': True}, + 'modified_by': {'readonly': True}, + 'name': {'readonly': True}, + 'version': {'readonly': True}, + } + + _attribute_map = { + 'catalog_id': {'key': 'catalogId', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'create_timestamp': {'key': 'createTimestamp', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'expiration_timestamp': {'key': 'expirationTimestamp', 'type': 'iso-8601'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'last_modified_timestamp': {'key': 'lastModifiedTimestamp', 'type': 'iso-8601'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'rule_status': {'key': 'ruleStatus', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(BusinessRuleMetadata, self).__init__(**kwargs) + self.catalog_id = None + self.created_by = None + self.create_timestamp = None + self.description = kwargs.get('description', None) + self.expiration_timestamp = kwargs.get('expiration_timestamp', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.last_modified_timestamp = None + self.modified_by = None + self.name = None + self.rank = kwargs.get('rank', None) + self.rule_status = kwargs.get('rule_status', None) + self.version = None + + +class CloudConnectors(Model): + """CloudConnectors. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar aws_external_id: AWS external identifier. + Configured in AWS to allow use of the role arn used for scanning + :vartype aws_external_id: str + """ + + _validation = { + 'aws_external_id': {'readonly': True}, + } + + _attribute_map = { + 'aws_external_id': {'key': 'awsExternalId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CloudConnectors, self).__init__(**kwargs) + self.aws_external_id = None + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class Collection(Model): + """Collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar collection_provisioning_state: Gets the state of the provisioning. + Possible values include: 'Unknown', 'Creating', 'Moving', 'Deleting', + 'Failed', 'Succeeded' + :vartype collection_provisioning_state: str or + ~azure.mgmt.projectbabylon.models.CollectionProvisioningState + :param description: Gets or sets the description. + :type description: str + :param friendly_name: Gets or sets the friendly name of the collection. + :type friendly_name: str + :ivar name: Gets the name. + :vartype name: str + :param parent_collection: Gets or sets the parent collection reference. + :type parent_collection: + ~azure.mgmt.projectbabylon.models.CollectionReference + :ivar system_data: Gets the system data that contains information about + who and when created and updated the resource. + :vartype system_data: + ~azure.mgmt.projectbabylon.models.CollectionSystemData + """ + + _validation = { + 'collection_provisioning_state': {'readonly': True}, + 'name': {'readonly': True}, + 'system_data': {'readonly': True}, + } + + _attribute_map = { + 'collection_provisioning_state': {'key': 'collectionProvisioningState', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_collection': {'key': 'parentCollection', 'type': 'CollectionReference'}, + 'system_data': {'key': 'systemData', 'type': 'CollectionSystemData'}, + } + + def __init__(self, **kwargs): + super(Collection, self).__init__(**kwargs) + self.collection_provisioning_state = None + self.description = kwargs.get('description', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.name = None + self.parent_collection = kwargs.get('parent_collection', None) + self.system_data = None + + +class CollectionNameResponse(Model): + """Collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar friendly_name: Gets or sets the friendly name of the collection. + :vartype friendly_name: str + :ivar name: Gets the name. + :vartype name: str + """ + + _validation = { + 'friendly_name': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CollectionNameResponse, self).__init__(**kwargs) + self.friendly_name = None + self.name = None + + +class CollectionPathResponse(Model): + """Collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar parent_friendly_name_chain: The friendly names of ancestors starting + from the default (root) collection and ending with the immediate parent. + :vartype parent_friendly_name_chain: list[str] + :ivar parent_name_chain: The names of ancestors starting from the default + (root) collection and ending with the immediate parent. + :vartype parent_name_chain: list[str] + """ + + _validation = { + 'parent_friendly_name_chain': {'readonly': True}, + 'parent_name_chain': {'readonly': True}, + } + + _attribute_map = { + 'parent_friendly_name_chain': {'key': 'parentFriendlyNameChain', 'type': '[str]'}, + 'parent_name_chain': {'key': 'parentNameChain', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(CollectionPathResponse, self).__init__(**kwargs) + self.parent_friendly_name_chain = None + self.parent_name_chain = None + + +class CollectionReference(Model): + """Reference to a Collection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param reference_name: Gets or sets the reference name. + :type reference_name: str + :ivar type: Gets the reference type property. + :vartype type: str + """ + + _validation = { + 'type': {'readonly': True}, + } + + _attribute_map = { + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CollectionReference, self).__init__(**kwargs) + self.reference_name = kwargs.get('reference_name', None) + self.type = None + + +class CollectionSystemData(SystemData): + """Gets the system data that contains information about who and when created + and updated the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: datetime + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :vartype created_by_type: str or + ~azure.mgmt.projectbabylon.models.CreatedByType + :ivar last_modified_at: The timestamp of the last modification the + resource (UTC). + :vartype last_modified_at: datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :vartype last_modified_by_type: str or + ~azure.mgmt.projectbabylon.models.LastModifiedByType + """ + + _validation = { + 'created_at': {'readonly': True}, + 'created_by': {'readonly': True}, + 'created_by_type': {'readonly': True}, + 'last_modified_at': {'readonly': True}, + 'last_modified_by': {'readonly': True}, + 'last_modified_by_type': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CollectionSystemData, self).__init__(**kwargs) + + +class ComplexReplacerConfig(Model): + """ComplexReplacerConfig. + + :param created_by: + :type created_by: str + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param disable_recursive_replacer_application: + :type disable_recursive_replacer_application: bool + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param modified_by: + :type modified_by: str + :param name: + :type name: str + :param type_name: + :type type_name: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disable_recursive_replacer_application': {'key': 'disableRecursiveReplacerApplication', 'type': 'bool'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type_name': {'key': 'typeName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ComplexReplacerConfig, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', None) + self.description = kwargs.get('description', None) + self.disabled = kwargs.get('disabled', None) + self.disable_recursive_replacer_application = kwargs.get('disable_recursive_replacer_application', None) + self.last_updated_timestamp = kwargs.get('last_updated_timestamp', None) + self.modified_by = kwargs.get('modified_by', None) + self.name = kwargs.get('name', None) + self.type_name = kwargs.get('type_name', None) + + +class DataPlaneAccountUpdateParameters(Model): + """The account properties that can be updated through data plane. + + :param friendly_name: The friendly name for the azure resource. + :type friendly_name: str + """ + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DataPlaneAccountUpdateParameters, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + + +class ErrorModel(Model): + """Default error model. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Gets or sets the code. + :vartype code: str + :ivar details: Gets or sets the details. + :vartype details: list[~azure.mgmt.projectbabylon.models.ErrorModel] + :ivar message: Gets or sets the messages. + :vartype message: str + :ivar target: Gets or sets the target. + :vartype target: str + """ + + _validation = { + 'code': {'readonly': True}, + 'details': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorModel]'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorModel, self).__init__(**kwargs) + self.code = None + self.details = None + self.message = None + self.target = None + + +class ErrorResponseModel(Model): + """Default error response model. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error: Gets or sets the error. + :vartype error: ~azure.mgmt.projectbabylon.models.ErrorResponseModelError + """ + + _validation = { + 'error': {'readonly': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorResponseModelError'}, + } + + def __init__(self, **kwargs): + super(ErrorResponseModel, self).__init__(**kwargs) + self.error = None + + +class ErrorResponseModelException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponseModel'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseModelException, self).__init__(deserialize, response, 'ErrorResponseModel', *args) + + +class ErrorResponseModelError(ErrorModel): + """Gets or sets the error. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Gets or sets the code. + :vartype code: str + :ivar details: Gets or sets the details. + :vartype details: list[~azure.mgmt.projectbabylon.models.ErrorModel] + :ivar message: Gets or sets the messages. + :vartype message: str + :ivar target: Gets or sets the target. + :vartype target: str + """ + + _validation = { + 'code': {'readonly': True}, + 'details': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorModel]'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorResponseModelError, self).__init__(**kwargs) + + +class FastRegex(Model): + """FastRegex. + + :param max_digits: + :type max_digits: int + :param max_letters: + :type max_letters: int + :param min_dashes: + :type min_dashes: int + :param min_digits: + :type min_digits: int + :param min_digits_or_letters: + :type min_digits_or_letters: int + :param min_dots: + :type min_dots: int + :param min_hex: + :type min_hex: int + :param min_letters: + :type min_letters: int + :param min_underscores: + :type min_underscores: int + :param options: + :type options: int + :param regex_str: + :type regex_str: str + """ + + _attribute_map = { + 'max_digits': {'key': 'maxDigits', 'type': 'int'}, + 'max_letters': {'key': 'maxLetters', 'type': 'int'}, + 'min_dashes': {'key': 'minDashes', 'type': 'int'}, + 'min_digits': {'key': 'minDigits', 'type': 'int'}, + 'min_digits_or_letters': {'key': 'minDigitsOrLetters', 'type': 'int'}, + 'min_dots': {'key': 'minDots', 'type': 'int'}, + 'min_hex': {'key': 'minHex', 'type': 'int'}, + 'min_letters': {'key': 'minLetters', 'type': 'int'}, + 'min_underscores': {'key': 'minUnderscores', 'type': 'int'}, + 'options': {'key': 'options', 'type': 'int'}, + 'regex_str': {'key': 'regexStr', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FastRegex, self).__init__(**kwargs) + self.max_digits = kwargs.get('max_digits', None) + self.max_letters = kwargs.get('max_letters', None) + self.min_dashes = kwargs.get('min_dashes', None) + self.min_digits = kwargs.get('min_digits', None) + self.min_digits_or_letters = kwargs.get('min_digits_or_letters', None) + self.min_dots = kwargs.get('min_dots', None) + self.min_hex = kwargs.get('min_hex', None) + self.min_letters = kwargs.get('min_letters', None) + self.min_underscores = kwargs.get('min_underscores', None) + self.options = kwargs.get('options', None) + self.regex_str = kwargs.get('regex_str', None) + + +class Filter(Model): + """Filter. + + All required parameters must be populated in order to send to Azure. + + :param created_by: Default value: "AzureDataCatalog" . + :type created_by: str + :param filter_type: Possible values include: 'Pattern', 'Regex'. Default + value: "Pattern" . + :type filter_type: str or ~azure.mgmt.projectbabylon.models.FilterType + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param modified_by: Default value: "AzureDataCatalog" . + :type modified_by: str + :param name: Required. + :type name: str + :param path: Required. + :type path: str + """ + + _validation = { + 'name': {'required': True}, + 'path': {'required': True}, + } + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'filter_type': {'key': 'filterType', 'type': 'str'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Filter, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', "AzureDataCatalog") + self.filter_type = kwargs.get('filter_type', "Pattern") + self.last_updated_timestamp = kwargs.get('last_updated_timestamp', None) + self.modified_by = kwargs.get('modified_by', "AzureDataCatalog") + self.name = kwargs.get('name', None) + self.path = kwargs.get('path', None) + + +class Identity(Model): + """The Managed Identity of the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: Service principal object Id + :vartype principal_id: str + :ivar tenant_id: Tenant Id + :vartype tenant_id: str + :param type: Identity Type. Possible values include: 'SystemAssigned' + :type type: str or ~azure.mgmt.projectbabylon.models.Type + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + + +class NormalizationRule(Model): + """NormalizationRule. + + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param dynamic_replacement: + :type dynamic_replacement: bool + :param entity_types: + :type entity_types: list[str] + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param name: + :type name: str + :param regex: + :type regex: ~azure.mgmt.projectbabylon.models.FastRegex + :param replace_with: + :type replace_with: str + :param version: + :type version: float + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'dynamic_replacement': {'key': 'dynamicReplacement', 'type': 'bool'}, + 'entity_types': {'key': 'entityTypes', 'type': '[str]'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'str'}, + 'regex': {'key': 'regex', 'type': 'FastRegex'}, + 'replace_with': {'key': 'replaceWith', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(NormalizationRule, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.disabled = kwargs.get('disabled', None) + self.dynamic_replacement = kwargs.get('dynamic_replacement', None) + self.entity_types = kwargs.get('entity_types', None) + self.last_updated_timestamp = kwargs.get('last_updated_timestamp', None) + self.name = kwargs.get('name', None) + self.regex = kwargs.get('regex', None) + self.replace_with = kwargs.get('replace_with', None) + self.version = kwargs.get('version', None) + + +class PathPatternExtractorConfig(Model): + """PathPatternExtractorConfig. + + All required parameters must be populated in order to send to Azure. + + :param accepted_patterns: + :type accepted_patterns: list[~azure.mgmt.projectbabylon.models.Filter] + :param complex_replacers: + :type complex_replacers: + list[~azure.mgmt.projectbabylon.models.ComplexReplacerConfig] + :param created_by: Required. + :type created_by: str + :param enable_default_patterns: Required. + :type enable_default_patterns: bool + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param modified_by: Default value: "AzureDataCatalog" . + :type modified_by: str + :param normalization_rules: + :type normalization_rules: + list[~azure.mgmt.projectbabylon.models.NormalizationRule] + :param regex_replacers: + :type regex_replacers: + list[~azure.mgmt.projectbabylon.models.RegexReplacer] + :param rejected_patterns: + :type rejected_patterns: list[~azure.mgmt.projectbabylon.models.Filter] + :param scoped_rules: + :type scoped_rules: list[~azure.mgmt.projectbabylon.models.ScopedRule] + :param version: Default value: 0 . + :type version: int + """ + + _validation = { + 'created_by': {'required': True}, + 'enable_default_patterns': {'required': True}, + } + + _attribute_map = { + 'accepted_patterns': {'key': 'acceptedPatterns', 'type': '[Filter]'}, + 'complex_replacers': {'key': 'complexReplacers', 'type': '[ComplexReplacerConfig]'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'enable_default_patterns': {'key': 'enableDefaultPatterns', 'type': 'bool'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'str'}, + 'normalization_rules': {'key': 'normalizationRules', 'type': '[NormalizationRule]'}, + 'regex_replacers': {'key': 'regexReplacers', 'type': '[RegexReplacer]'}, + 'rejected_patterns': {'key': 'rejectedPatterns', 'type': '[Filter]'}, + 'scoped_rules': {'key': 'scopedRules', 'type': '[ScopedRule]'}, + 'version': {'key': 'version', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(PathPatternExtractorConfig, self).__init__(**kwargs) + self.accepted_patterns = kwargs.get('accepted_patterns', None) + self.complex_replacers = kwargs.get('complex_replacers', None) + self.created_by = kwargs.get('created_by', None) + self.enable_default_patterns = kwargs.get('enable_default_patterns', None) + self.last_updated_timestamp = kwargs.get('last_updated_timestamp', None) + self.modified_by = kwargs.get('modified_by', "AzureDataCatalog") + self.normalization_rules = kwargs.get('normalization_rules', None) + self.regex_replacers = kwargs.get('regex_replacers', None) + self.rejected_patterns = kwargs.get('rejected_patterns', None) + self.scoped_rules = kwargs.get('scoped_rules', None) + self.version = kwargs.get('version', 0) + + +class PrivateEndpoint(Model): + """A private endpoint class. + + :param id: The private endpoint identifier. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class PrivateEndpointConnection(Model): + """A private endpoint connection class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Gets or sets the identifier. + :vartype id: str + :ivar name: Gets or sets the name. + :vartype name: str + :param properties: The connection identifier. + :type properties: + ~azure.mgmt.projectbabylon.models.PrivateEndpointConnectionProperties + :ivar type: Gets or sets the type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnectionProperties'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.id = None + self.name = None + self.properties = kwargs.get('properties', None) + self.type = None + + +class PrivateEndpointConnectionProperties(Model): + """A private endpoint connection properties class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param private_endpoint: The private endpoint information. + :type private_endpoint: ~azure.mgmt.projectbabylon.models.PrivateEndpoint + :param private_link_service_connection_state: The private link service + connection state. + :type private_link_service_connection_state: + ~azure.mgmt.projectbabylon.models.PrivateLinkServiceConnectionState + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnectionProperties, self).__init__(**kwargs) + self.private_endpoint = kwargs.get('private_endpoint', None) + self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) + self.provisioning_state = None + + +class PrivateLinkServiceConnectionState(Model): + """The private link service connection state. + + :param actions_required: The required actions. + :type actions_required: str + :param description: The description. + :type description: str + :param status: The status. Possible values include: 'Unknown', 'Pending', + 'Approved', 'Rejected', 'Disconnected' + :type status: str or ~azure.mgmt.projectbabylon.models.Status + """ + + _attribute_map = { + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.actions_required = kwargs.get('actions_required', None) + self.description = kwargs.get('description', None) + self.status = kwargs.get('status', None) + + +class RegexReplacer(Model): + """RegexReplacer. + + All required parameters must be populated in order to send to Azure. + + :param condition: + :type condition: str + :param created_by: Default value: "AzureDataCatalog" . + :type created_by: str + :param description: + :type description: str + :param disabled: Required. + :type disabled: bool + :param disable_recursive_replacer_application: + :type disable_recursive_replacer_application: bool + :param do_not_replace_regex: + :type do_not_replace_regex: ~azure.mgmt.projectbabylon.models.FastRegex + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param modified_by: Default value: "AzureDataCatalog" . + :type modified_by: str + :param name: Required. + :type name: str + :param regex: + :type regex: ~azure.mgmt.projectbabylon.models.FastRegex + :param replace_with: + :type replace_with: str + """ + + _validation = { + 'disabled': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'condition': {'key': 'condition', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disable_recursive_replacer_application': {'key': 'disableRecursiveReplacerApplication', 'type': 'bool'}, + 'do_not_replace_regex': {'key': 'doNotReplaceRegex', 'type': 'FastRegex'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'regex': {'key': 'regex', 'type': 'FastRegex'}, + 'replace_with': {'key': 'replaceWith', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RegexReplacer, self).__init__(**kwargs) + self.condition = kwargs.get('condition', None) + self.created_by = kwargs.get('created_by', "AzureDataCatalog") + self.description = kwargs.get('description', None) + self.disabled = kwargs.get('disabled', None) + self.disable_recursive_replacer_application = kwargs.get('disable_recursive_replacer_application', None) + self.do_not_replace_regex = kwargs.get('do_not_replace_regex', None) + self.last_updated_timestamp = kwargs.get('last_updated_timestamp', None) + self.modified_by = kwargs.get('modified_by', "AzureDataCatalog") + self.name = kwargs.get('name', None) + self.regex = kwargs.get('regex', None) + self.replace_with = kwargs.get('replace_with', None) + + +class ResourceSetRuleConfig(Model): + """ResourceSetRuleConfig implementation class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param advanced_resource_set: Gets or sets the advanced resource set + property of the account. + :type advanced_resource_set: + ~azure.mgmt.projectbabylon.models.AdvancedResourceSet + :ivar name: The name of the rule + :vartype name: str + :param path_pattern_config: The configuration rules for path pattern + extraction. + :type path_pattern_config: + ~azure.mgmt.projectbabylon.models.PathPatternExtractorConfig + """ + + _validation = { + 'name': {'readonly': True}, + } + + _attribute_map = { + 'advanced_resource_set': {'key': 'advancedResourceSet', 'type': 'AdvancedResourceSet'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path_pattern_config': {'key': 'pathPatternConfig', 'type': 'PathPatternExtractorConfig'}, + } + + def __init__(self, **kwargs): + super(ResourceSetRuleConfig, self).__init__(**kwargs) + self.advanced_resource_set = kwargs.get('advanced_resource_set', None) + self.name = None + self.path_pattern_config = kwargs.get('path_pattern_config', None) + + +class Rule(Model): + """Rule. + + All required parameters must be populated in order to send to Azure. + + :param display_name: + :type display_name: str + :param is_resource_set: Default value: True . + :type is_resource_set: bool + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param name: + :type name: str + :param qualified_name: Required. + :type qualified_name: str + """ + + _validation = { + 'qualified_name': {'required': True}, + } + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'is_resource_set': {'key': 'isResourceSet', 'type': 'bool'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Rule, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.is_resource_set = kwargs.get('is_resource_set', True) + self.last_updated_timestamp = kwargs.get('last_updated_timestamp', None) + self.name = kwargs.get('name', None) + self.qualified_name = kwargs.get('qualified_name', None) + + +class ScopedRule(Model): + """ScopedRule. + + All required parameters must be populated in order to send to Azure. + + :param binding_url: Required. + :type binding_url: str + :param rules: + :type rules: list[~azure.mgmt.projectbabylon.models.Rule] + :param store_type: Required. + :type store_type: str + """ + + _validation = { + 'binding_url': {'required': True}, + 'store_type': {'required': True}, + } + + _attribute_map = { + 'binding_url': {'key': 'bindingUrl', 'type': 'str'}, + 'rules': {'key': 'rules', 'type': '[Rule]'}, + 'store_type': {'key': 'storeType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ScopedRule, self).__init__(**kwargs) + self.binding_url = kwargs.get('binding_url', None) + self.rules = kwargs.get('rules', None) + self.store_type = kwargs.get('store_type', None) + + +class Settings(Model): + """Container for Exposure Control settings. + + :param features: Features with enabled status + :type features: dict[str, bool] + """ + + _attribute_map = { + 'features': {'key': 'features', 'type': '{bool}'}, + } + + def __init__(self, **kwargs): + super(Settings, self).__init__(**kwargs) + self.features = kwargs.get('features', None) diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_models_py3.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_models_py3.py new file mode 100644 index 000000000000..f2c7cb0e4457 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_models_py3.py @@ -0,0 +1,1521 @@ +# 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. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class AccessKeyOptions(Model): + """A access key options used for regeneration. + + :param key_type: The access key type. Possible values include: + 'PrimaryAtlasKafkaKey', 'SecondaryAtlasKafkaKey' + :type key_type: str or ~azure.mgmt.projectbabylon.models.KeyType + """ + + _attribute_map = { + 'key_type': {'key': 'keyType', 'type': 'str'}, + } + + def __init__(self, *, key_type=None, **kwargs) -> None: + super(AccessKeyOptions, self).__init__(**kwargs) + self.key_type = key_type + + +class AccessKeys(Model): + """The Account access keys. + + :param atlas_kafka_primary_endpoint: Gets or sets the primary connection + string. + :type atlas_kafka_primary_endpoint: str + :param atlas_kafka_secondary_endpoint: Gets or sets the secondary + connection string. + :type atlas_kafka_secondary_endpoint: str + """ + + _attribute_map = { + 'atlas_kafka_primary_endpoint': {'key': 'atlasKafkaPrimaryEndpoint', 'type': 'str'}, + 'atlas_kafka_secondary_endpoint': {'key': 'atlasKafkaSecondaryEndpoint', 'type': 'str'}, + } + + def __init__(self, *, atlas_kafka_primary_endpoint: str=None, atlas_kafka_secondary_endpoint: str=None, **kwargs) -> None: + super(AccessKeys, self).__init__(**kwargs) + self.atlas_kafka_primary_endpoint = atlas_kafka_primary_endpoint + self.atlas_kafka_secondary_endpoint = atlas_kafka_secondary_endpoint + + +class Account(Model): + """Account resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Gets or sets the identifier. + :vartype id: str + :param identity: Identity Info on the tracked resource + :type identity: ~azure.mgmt.projectbabylon.models.Identity + :param location: Gets or sets the location. + :type location: str + :ivar name: Gets or sets the name. + :vartype name: str + :param properties: Gets or sets the properties. + :type properties: ~azure.mgmt.projectbabylon.models.AccountProperties + :param sku: Gets or sets the Sku. + :type sku: ~azure.mgmt.projectbabylon.models.AccountSku + :ivar system_data: Metadata pertaining to creation and last modification + of the resource. + :vartype system_data: ~azure.mgmt.projectbabylon.models.AccountSystemData + :param tags: Tags on the azure resource. + :type tags: dict[str, str] + :ivar type: Gets or sets the type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'system_data': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AccountProperties'}, + 'sku': {'key': 'sku', 'type': 'AccountSku'}, + 'system_data': {'key': 'systemData', 'type': 'AccountSystemData'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, identity=None, location: str=None, properties=None, sku=None, tags=None, **kwargs) -> None: + super(Account, self).__init__(**kwargs) + self.id = None + self.identity = identity + self.location = location + self.name = None + self.properties = properties + self.sku = sku + self.system_data = None + self.tags = tags + self.type = None + + +class AccountEndpoints(Model): + """The account endpoints. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar catalog: Gets the catalog endpoint. + :vartype catalog: str + :ivar guardian: Gets the guardian endpoint. + :vartype guardian: str + :ivar scan: Gets the scan endpoint. + :vartype scan: str + """ + + _validation = { + 'catalog': {'readonly': True}, + 'guardian': {'readonly': True}, + 'scan': {'readonly': True}, + } + + _attribute_map = { + 'catalog': {'key': 'catalog', 'type': 'str'}, + 'guardian': {'key': 'guardian', 'type': 'str'}, + 'scan': {'key': 'scan', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AccountEndpoints, self).__init__(**kwargs) + self.catalog = None + self.guardian = None + self.scan = None + + +class AccountProperties(Model): + """The account properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param cloud_connectors: Cloud connectors. + External cloud identifier used as part of scanning configuration. + :type cloud_connectors: ~azure.mgmt.projectbabylon.models.CloudConnectors + :ivar created_at: Gets the time at which the entity was created. + :vartype created_at: datetime + :ivar created_by: Gets the creator of the entity. + :vartype created_by: str + :ivar created_by_object_id: Gets the creators of the entity's object id. + :vartype created_by_object_id: str + :ivar endpoints: The URIs that are the public endpoints of the account. + :vartype endpoints: + ~azure.mgmt.projectbabylon.models.AccountPropertiesEndpoints + :ivar friendly_name: Gets or sets the friendly name. + :vartype friendly_name: str + :param managed_resource_group_name: Gets or sets the managed resource + group name + :type managed_resource_group_name: str + :ivar managed_resources: Gets the resource identifiers of the managed + resources. + :vartype managed_resources: + ~azure.mgmt.projectbabylon.models.AccountPropertiesManagedResources + :ivar private_endpoint_connections: Gets the private endpoint connections + information. + :vartype private_endpoint_connections: + list[~azure.mgmt.projectbabylon.models.PrivateEndpointConnection] + :ivar provisioning_state: Gets or sets the state of the provisioning. + Possible values include: 'Unknown', 'Creating', 'Moving', 'Deleting', + 'SoftDeleting', 'SoftDeleted', 'Failed', 'Succeeded', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.projectbabylon.models.ProvisioningState + :param public_network_access: Gets or sets the public network access. + Possible values include: 'NotSpecified', 'Enabled', 'Disabled'. Default + value: "Enabled" . + :type public_network_access: str or + ~azure.mgmt.projectbabylon.models.PublicNetworkAccess + """ + + _validation = { + 'created_at': {'readonly': True}, + 'created_by': {'readonly': True}, + 'created_by_object_id': {'readonly': True}, + 'endpoints': {'readonly': True}, + 'friendly_name': {'readonly': True}, + 'managed_resources': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'cloud_connectors': {'key': 'cloudConnectors', 'type': 'CloudConnectors'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_object_id': {'key': 'createdByObjectId', 'type': 'str'}, + 'endpoints': {'key': 'endpoints', 'type': 'AccountPropertiesEndpoints'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'managed_resource_group_name': {'key': 'managedResourceGroupName', 'type': 'str'}, + 'managed_resources': {'key': 'managedResources', 'type': 'AccountPropertiesManagedResources'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + } + + def __init__(self, *, cloud_connectors=None, managed_resource_group_name: str=None, public_network_access="Enabled", **kwargs) -> None: + super(AccountProperties, self).__init__(**kwargs) + self.cloud_connectors = cloud_connectors + self.created_at = None + self.created_by = None + self.created_by_object_id = None + self.endpoints = None + self.friendly_name = None + self.managed_resource_group_name = managed_resource_group_name + self.managed_resources = None + self.private_endpoint_connections = None + self.provisioning_state = None + self.public_network_access = public_network_access + + +class AccountPropertiesEndpoints(AccountEndpoints): + """The URIs that are the public endpoints of the account. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar catalog: Gets the catalog endpoint. + :vartype catalog: str + :ivar guardian: Gets the guardian endpoint. + :vartype guardian: str + :ivar scan: Gets the scan endpoint. + :vartype scan: str + """ + + _validation = { + 'catalog': {'readonly': True}, + 'guardian': {'readonly': True}, + 'scan': {'readonly': True}, + } + + _attribute_map = { + 'catalog': {'key': 'catalog', 'type': 'str'}, + 'guardian': {'key': 'guardian', 'type': 'str'}, + 'scan': {'key': 'scan', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AccountPropertiesEndpoints, self).__init__(**kwargs) + + +class ManagedResources(Model): + """The managed resources in customer subscription. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar event_hub_namespace: Gets the managed event hub namespace resource + identifier. + :vartype event_hub_namespace: str + :ivar resource_group: Gets the managed resource group resource identifier. + This resource group will host resource dependencies for the account. + :vartype resource_group: str + :ivar storage_account: Gets the managed storage account resource + identifier. + :vartype storage_account: str + """ + + _validation = { + 'event_hub_namespace': {'readonly': True}, + 'resource_group': {'readonly': True}, + 'storage_account': {'readonly': True}, + } + + _attribute_map = { + 'event_hub_namespace': {'key': 'eventHubNamespace', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account': {'key': 'storageAccount', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ManagedResources, self).__init__(**kwargs) + self.event_hub_namespace = None + self.resource_group = None + self.storage_account = None + + +class AccountPropertiesManagedResources(ManagedResources): + """Gets the resource identifiers of the managed resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar event_hub_namespace: Gets the managed event hub namespace resource + identifier. + :vartype event_hub_namespace: str + :ivar resource_group: Gets the managed resource group resource identifier. + This resource group will host resource dependencies for the account. + :vartype resource_group: str + :ivar storage_account: Gets the managed storage account resource + identifier. + :vartype storage_account: str + """ + + _validation = { + 'event_hub_namespace': {'readonly': True}, + 'resource_group': {'readonly': True}, + 'storage_account': {'readonly': True}, + } + + _attribute_map = { + 'event_hub_namespace': {'key': 'eventHubNamespace', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account': {'key': 'storageAccount', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AccountPropertiesManagedResources, self).__init__(**kwargs) + + +class AccountSku(Model): + """The Sku. + + :param capacity: Gets or sets the sku capacity. Possible values include: + 4, 16 + :type capacity: int + :param name: Gets or sets the sku name. Possible values include: + 'Standard' + :type name: str or ~azure.mgmt.projectbabylon.models.Name + """ + + _attribute_map = { + 'capacity': {'key': 'capacity', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, capacity: int=None, name=None, **kwargs) -> None: + super(AccountSku, self).__init__(**kwargs) + self.capacity = capacity + self.name = name + + +class SystemData(Model): + """Metadata pertaining to creation and last modification of the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: datetime + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :vartype created_by_type: str or + ~azure.mgmt.projectbabylon.models.CreatedByType + :ivar last_modified_at: The timestamp of the last modification the + resource (UTC). + :vartype last_modified_at: datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :vartype last_modified_by_type: str or + ~azure.mgmt.projectbabylon.models.LastModifiedByType + """ + + _validation = { + 'created_at': {'readonly': True}, + 'created_by': {'readonly': True}, + 'created_by_type': {'readonly': True}, + 'last_modified_at': {'readonly': True}, + 'last_modified_by': {'readonly': True}, + 'last_modified_by_type': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(SystemData, self).__init__(**kwargs) + self.created_at = None + self.created_by = None + self.created_by_type = None + self.last_modified_at = None + self.last_modified_by = None + self.last_modified_by_type = None + + +class AccountSystemData(SystemData): + """Metadata pertaining to creation and last modification of the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: datetime + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :vartype created_by_type: str or + ~azure.mgmt.projectbabylon.models.CreatedByType + :ivar last_modified_at: The timestamp of the last modification the + resource (UTC). + :vartype last_modified_at: datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :vartype last_modified_by_type: str or + ~azure.mgmt.projectbabylon.models.LastModifiedByType + """ + + _validation = { + 'created_at': {'readonly': True}, + 'created_by': {'readonly': True}, + 'created_by_type': {'readonly': True}, + 'last_modified_at': {'readonly': True}, + 'last_modified_by': {'readonly': True}, + 'last_modified_by_type': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AccountSystemData, self).__init__(**kwargs) + + +class AdvancedResourceSet(Model): + """The resource set processing property of the account. + + :param modified_at: Date at which ResourceSetProcessing property of the + account is updated. + :type modified_at: datetime + :param resource_set_processing: The advanced resource property of the + account. Possible values include: 'Default', 'Advanced' + :type resource_set_processing: str or + ~azure.mgmt.projectbabylon.models.ResourceSetProcessing + """ + + _attribute_map = { + 'modified_at': {'key': 'modifiedAt', 'type': 'iso-8601'}, + 'resource_set_processing': {'key': 'resourceSetProcessing', 'type': 'str'}, + } + + def __init__(self, *, modified_at=None, resource_set_processing=None, **kwargs) -> None: + super(AdvancedResourceSet, self).__init__(**kwargs) + self.modified_at = modified_at + self.resource_set_processing = resource_set_processing + + +class BatchSettingsRequest(Model): + """Exposure Control settings request model. + + :param features: Features + :type features: list[str] + """ + + _validation = { + 'features': {'unique': True}, + } + + _attribute_map = { + 'features': {'key': 'features', 'type': '[str]'}, + } + + def __init__(self, *, features=None, **kwargs) -> None: + super(BatchSettingsRequest, self).__init__(**kwargs) + self.features = features + + +class BusinessRule(Model): + """Filter resource. + + :param business_rule_metadata: Gets or sets the properties. + :type business_rule_metadata: + ~azure.mgmt.projectbabylon.models.BusinessRuleMetadata + :param name: Gets or sets the name. + :type name: str + :param rule_json: Gets or sets the actual rule json as a string. + :type rule_json: str + """ + + _attribute_map = { + 'business_rule_metadata': {'key': 'businessRuleMetadata', 'type': 'BusinessRuleMetadata'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rule_json': {'key': 'ruleJSON', 'type': 'str'}, + } + + def __init__(self, *, business_rule_metadata=None, name: str=None, rule_json: str=None, **kwargs) -> None: + super(BusinessRule, self).__init__(**kwargs) + self.business_rule_metadata = business_rule_metadata + self.name = name + self.rule_json = rule_json + + +class BusinessRuleMetadata(Model): + """The business rule properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar catalog_id: Gets or sets the catalog id associated with the business + rule. + :vartype catalog_id: str + :ivar created_by: Gets or sets the creator of the business rule. + :vartype created_by: str + :ivar create_timestamp: Gets or sets the create timestamp of the business + rule. + :vartype create_timestamp: datetime + :param description: Gets or sets the description of the business rule. + :type description: str + :param expiration_timestamp: Gets or sets the expiration time stamp of the + business rule. + :type expiration_timestamp: datetime + :param friendly_name: Gets or sets the friendly name of the business rule. + :type friendly_name: str + :ivar last_modified_timestamp: Gets or sets the last modified timestamp of + the business rule. + :vartype last_modified_timestamp: datetime + :ivar modified_by: Gets or sets the modifier of the business rule. + :vartype modified_by: str + :ivar name: Gets or sets the name of the business rule. + :vartype name: str + :param rank: Gets or sets the rank of the business rule. + :type rank: int + :param rule_status: Gets or sets the status of the business rule. Possible + values include: 'Unknown', 'Draft', 'Enabled', 'Disabled', 'Expired' + :type rule_status: str or ~azure.mgmt.projectbabylon.models.RuleStatus + :ivar version: Gets or sets the version of the business rule. + :vartype version: int + """ + + _validation = { + 'catalog_id': {'readonly': True}, + 'created_by': {'readonly': True}, + 'create_timestamp': {'readonly': True}, + 'last_modified_timestamp': {'readonly': True}, + 'modified_by': {'readonly': True}, + 'name': {'readonly': True}, + 'version': {'readonly': True}, + } + + _attribute_map = { + 'catalog_id': {'key': 'catalogId', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'create_timestamp': {'key': 'createTimestamp', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'expiration_timestamp': {'key': 'expirationTimestamp', 'type': 'iso-8601'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'last_modified_timestamp': {'key': 'lastModifiedTimestamp', 'type': 'iso-8601'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rank': {'key': 'rank', 'type': 'int'}, + 'rule_status': {'key': 'ruleStatus', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + } + + def __init__(self, *, description: str=None, expiration_timestamp=None, friendly_name: str=None, rank: int=None, rule_status=None, **kwargs) -> None: + super(BusinessRuleMetadata, self).__init__(**kwargs) + self.catalog_id = None + self.created_by = None + self.create_timestamp = None + self.description = description + self.expiration_timestamp = expiration_timestamp + self.friendly_name = friendly_name + self.last_modified_timestamp = None + self.modified_by = None + self.name = None + self.rank = rank + self.rule_status = rule_status + self.version = None + + +class CloudConnectors(Model): + """CloudConnectors. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar aws_external_id: AWS external identifier. + Configured in AWS to allow use of the role arn used for scanning + :vartype aws_external_id: str + """ + + _validation = { + 'aws_external_id': {'readonly': True}, + } + + _attribute_map = { + 'aws_external_id': {'key': 'awsExternalId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(CloudConnectors, self).__init__(**kwargs) + self.aws_external_id = None + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class Collection(Model): + """Collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar collection_provisioning_state: Gets the state of the provisioning. + Possible values include: 'Unknown', 'Creating', 'Moving', 'Deleting', + 'Failed', 'Succeeded' + :vartype collection_provisioning_state: str or + ~azure.mgmt.projectbabylon.models.CollectionProvisioningState + :param description: Gets or sets the description. + :type description: str + :param friendly_name: Gets or sets the friendly name of the collection. + :type friendly_name: str + :ivar name: Gets the name. + :vartype name: str + :param parent_collection: Gets or sets the parent collection reference. + :type parent_collection: + ~azure.mgmt.projectbabylon.models.CollectionReference + :ivar system_data: Gets the system data that contains information about + who and when created and updated the resource. + :vartype system_data: + ~azure.mgmt.projectbabylon.models.CollectionSystemData + """ + + _validation = { + 'collection_provisioning_state': {'readonly': True}, + 'name': {'readonly': True}, + 'system_data': {'readonly': True}, + } + + _attribute_map = { + 'collection_provisioning_state': {'key': 'collectionProvisioningState', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'parent_collection': {'key': 'parentCollection', 'type': 'CollectionReference'}, + 'system_data': {'key': 'systemData', 'type': 'CollectionSystemData'}, + } + + def __init__(self, *, description: str=None, friendly_name: str=None, parent_collection=None, **kwargs) -> None: + super(Collection, self).__init__(**kwargs) + self.collection_provisioning_state = None + self.description = description + self.friendly_name = friendly_name + self.name = None + self.parent_collection = parent_collection + self.system_data = None + + +class CollectionNameResponse(Model): + """Collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar friendly_name: Gets or sets the friendly name of the collection. + :vartype friendly_name: str + :ivar name: Gets the name. + :vartype name: str + """ + + _validation = { + 'friendly_name': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(CollectionNameResponse, self).__init__(**kwargs) + self.friendly_name = None + self.name = None + + +class CollectionPathResponse(Model): + """Collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar parent_friendly_name_chain: The friendly names of ancestors starting + from the default (root) collection and ending with the immediate parent. + :vartype parent_friendly_name_chain: list[str] + :ivar parent_name_chain: The names of ancestors starting from the default + (root) collection and ending with the immediate parent. + :vartype parent_name_chain: list[str] + """ + + _validation = { + 'parent_friendly_name_chain': {'readonly': True}, + 'parent_name_chain': {'readonly': True}, + } + + _attribute_map = { + 'parent_friendly_name_chain': {'key': 'parentFriendlyNameChain', 'type': '[str]'}, + 'parent_name_chain': {'key': 'parentNameChain', 'type': '[str]'}, + } + + def __init__(self, **kwargs) -> None: + super(CollectionPathResponse, self).__init__(**kwargs) + self.parent_friendly_name_chain = None + self.parent_name_chain = None + + +class CollectionReference(Model): + """Reference to a Collection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param reference_name: Gets or sets the reference name. + :type reference_name: str + :ivar type: Gets the reference type property. + :vartype type: str + """ + + _validation = { + 'type': {'readonly': True}, + } + + _attribute_map = { + 'reference_name': {'key': 'referenceName', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, reference_name: str=None, **kwargs) -> None: + super(CollectionReference, self).__init__(**kwargs) + self.reference_name = reference_name + self.type = None + + +class CollectionSystemData(SystemData): + """Gets the system data that contains information about who and when created + and updated the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: datetime + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. + Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + :vartype created_by_type: str or + ~azure.mgmt.projectbabylon.models.CreatedByType + :ivar last_modified_at: The timestamp of the last modification the + resource (UTC). + :vartype last_modified_at: datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the + resource. Possible values include: 'User', 'Application', + 'ManagedIdentity', 'Key' + :vartype last_modified_by_type: str or + ~azure.mgmt.projectbabylon.models.LastModifiedByType + """ + + _validation = { + 'created_at': {'readonly': True}, + 'created_by': {'readonly': True}, + 'created_by_type': {'readonly': True}, + 'last_modified_at': {'readonly': True}, + 'last_modified_by': {'readonly': True}, + 'last_modified_by_type': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(CollectionSystemData, self).__init__(**kwargs) + + +class ComplexReplacerConfig(Model): + """ComplexReplacerConfig. + + :param created_by: + :type created_by: str + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param disable_recursive_replacer_application: + :type disable_recursive_replacer_application: bool + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param modified_by: + :type modified_by: str + :param name: + :type name: str + :param type_name: + :type type_name: str + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disable_recursive_replacer_application': {'key': 'disableRecursiveReplacerApplication', 'type': 'bool'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type_name': {'key': 'typeName', 'type': 'str'}, + } + + def __init__(self, *, created_by: str=None, description: str=None, disabled: bool=None, disable_recursive_replacer_application: bool=None, last_updated_timestamp: int=None, modified_by: str=None, name: str=None, type_name: str=None, **kwargs) -> None: + super(ComplexReplacerConfig, self).__init__(**kwargs) + self.created_by = created_by + self.description = description + self.disabled = disabled + self.disable_recursive_replacer_application = disable_recursive_replacer_application + self.last_updated_timestamp = last_updated_timestamp + self.modified_by = modified_by + self.name = name + self.type_name = type_name + + +class DataPlaneAccountUpdateParameters(Model): + """The account properties that can be updated through data plane. + + :param friendly_name: The friendly name for the azure resource. + :type friendly_name: str + """ + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, **kwargs) -> None: + super(DataPlaneAccountUpdateParameters, self).__init__(**kwargs) + self.friendly_name = friendly_name + + +class ErrorModel(Model): + """Default error model. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Gets or sets the code. + :vartype code: str + :ivar details: Gets or sets the details. + :vartype details: list[~azure.mgmt.projectbabylon.models.ErrorModel] + :ivar message: Gets or sets the messages. + :vartype message: str + :ivar target: Gets or sets the target. + :vartype target: str + """ + + _validation = { + 'code': {'readonly': True}, + 'details': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorModel]'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ErrorModel, self).__init__(**kwargs) + self.code = None + self.details = None + self.message = None + self.target = None + + +class ErrorResponseModel(Model): + """Default error response model. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error: Gets or sets the error. + :vartype error: ~azure.mgmt.projectbabylon.models.ErrorResponseModelError + """ + + _validation = { + 'error': {'readonly': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorResponseModelError'}, + } + + def __init__(self, **kwargs) -> None: + super(ErrorResponseModel, self).__init__(**kwargs) + self.error = None + + +class ErrorResponseModelException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponseModel'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseModelException, self).__init__(deserialize, response, 'ErrorResponseModel', *args) + + +class ErrorResponseModelError(ErrorModel): + """Gets or sets the error. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Gets or sets the code. + :vartype code: str + :ivar details: Gets or sets the details. + :vartype details: list[~azure.mgmt.projectbabylon.models.ErrorModel] + :ivar message: Gets or sets the messages. + :vartype message: str + :ivar target: Gets or sets the target. + :vartype target: str + """ + + _validation = { + 'code': {'readonly': True}, + 'details': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorModel]'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ErrorResponseModelError, self).__init__(**kwargs) + + +class FastRegex(Model): + """FastRegex. + + :param max_digits: + :type max_digits: int + :param max_letters: + :type max_letters: int + :param min_dashes: + :type min_dashes: int + :param min_digits: + :type min_digits: int + :param min_digits_or_letters: + :type min_digits_or_letters: int + :param min_dots: + :type min_dots: int + :param min_hex: + :type min_hex: int + :param min_letters: + :type min_letters: int + :param min_underscores: + :type min_underscores: int + :param options: + :type options: int + :param regex_str: + :type regex_str: str + """ + + _attribute_map = { + 'max_digits': {'key': 'maxDigits', 'type': 'int'}, + 'max_letters': {'key': 'maxLetters', 'type': 'int'}, + 'min_dashes': {'key': 'minDashes', 'type': 'int'}, + 'min_digits': {'key': 'minDigits', 'type': 'int'}, + 'min_digits_or_letters': {'key': 'minDigitsOrLetters', 'type': 'int'}, + 'min_dots': {'key': 'minDots', 'type': 'int'}, + 'min_hex': {'key': 'minHex', 'type': 'int'}, + 'min_letters': {'key': 'minLetters', 'type': 'int'}, + 'min_underscores': {'key': 'minUnderscores', 'type': 'int'}, + 'options': {'key': 'options', 'type': 'int'}, + 'regex_str': {'key': 'regexStr', 'type': 'str'}, + } + + def __init__(self, *, max_digits: int=None, max_letters: int=None, min_dashes: int=None, min_digits: int=None, min_digits_or_letters: int=None, min_dots: int=None, min_hex: int=None, min_letters: int=None, min_underscores: int=None, options: int=None, regex_str: str=None, **kwargs) -> None: + super(FastRegex, self).__init__(**kwargs) + self.max_digits = max_digits + self.max_letters = max_letters + self.min_dashes = min_dashes + self.min_digits = min_digits + self.min_digits_or_letters = min_digits_or_letters + self.min_dots = min_dots + self.min_hex = min_hex + self.min_letters = min_letters + self.min_underscores = min_underscores + self.options = options + self.regex_str = regex_str + + +class Filter(Model): + """Filter. + + All required parameters must be populated in order to send to Azure. + + :param created_by: Default value: "AzureDataCatalog" . + :type created_by: str + :param filter_type: Possible values include: 'Pattern', 'Regex'. Default + value: "Pattern" . + :type filter_type: str or ~azure.mgmt.projectbabylon.models.FilterType + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param modified_by: Default value: "AzureDataCatalog" . + :type modified_by: str + :param name: Required. + :type name: str + :param path: Required. + :type path: str + """ + + _validation = { + 'name': {'required': True}, + 'path': {'required': True}, + } + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'filter_type': {'key': 'filterType', 'type': 'str'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + } + + def __init__(self, *, name: str, path: str, created_by: str="AzureDataCatalog", filter_type="Pattern", last_updated_timestamp: int=None, modified_by: str="AzureDataCatalog", **kwargs) -> None: + super(Filter, self).__init__(**kwargs) + self.created_by = created_by + self.filter_type = filter_type + self.last_updated_timestamp = last_updated_timestamp + self.modified_by = modified_by + self.name = name + self.path = path + + +class Identity(Model): + """The Managed Identity of the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: Service principal object Id + :vartype principal_id: str + :ivar tenant_id: Tenant Id + :vartype tenant_id: str + :param type: Identity Type. Possible values include: 'SystemAssigned' + :type type: str or ~azure.mgmt.projectbabylon.models.Type + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + + +class NormalizationRule(Model): + """NormalizationRule. + + :param description: + :type description: str + :param disabled: + :type disabled: bool + :param dynamic_replacement: + :type dynamic_replacement: bool + :param entity_types: + :type entity_types: list[str] + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param name: + :type name: str + :param regex: + :type regex: ~azure.mgmt.projectbabylon.models.FastRegex + :param replace_with: + :type replace_with: str + :param version: + :type version: float + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'dynamic_replacement': {'key': 'dynamicReplacement', 'type': 'bool'}, + 'entity_types': {'key': 'entityTypes', 'type': '[str]'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'str'}, + 'regex': {'key': 'regex', 'type': 'FastRegex'}, + 'replace_with': {'key': 'replaceWith', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'float'}, + } + + def __init__(self, *, description: str=None, disabled: bool=None, dynamic_replacement: bool=None, entity_types=None, last_updated_timestamp: int=None, name: str=None, regex=None, replace_with: str=None, version: float=None, **kwargs) -> None: + super(NormalizationRule, self).__init__(**kwargs) + self.description = description + self.disabled = disabled + self.dynamic_replacement = dynamic_replacement + self.entity_types = entity_types + self.last_updated_timestamp = last_updated_timestamp + self.name = name + self.regex = regex + self.replace_with = replace_with + self.version = version + + +class PathPatternExtractorConfig(Model): + """PathPatternExtractorConfig. + + All required parameters must be populated in order to send to Azure. + + :param accepted_patterns: + :type accepted_patterns: list[~azure.mgmt.projectbabylon.models.Filter] + :param complex_replacers: + :type complex_replacers: + list[~azure.mgmt.projectbabylon.models.ComplexReplacerConfig] + :param created_by: Required. + :type created_by: str + :param enable_default_patterns: Required. + :type enable_default_patterns: bool + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param modified_by: Default value: "AzureDataCatalog" . + :type modified_by: str + :param normalization_rules: + :type normalization_rules: + list[~azure.mgmt.projectbabylon.models.NormalizationRule] + :param regex_replacers: + :type regex_replacers: + list[~azure.mgmt.projectbabylon.models.RegexReplacer] + :param rejected_patterns: + :type rejected_patterns: list[~azure.mgmt.projectbabylon.models.Filter] + :param scoped_rules: + :type scoped_rules: list[~azure.mgmt.projectbabylon.models.ScopedRule] + :param version: Default value: 0 . + :type version: int + """ + + _validation = { + 'created_by': {'required': True}, + 'enable_default_patterns': {'required': True}, + } + + _attribute_map = { + 'accepted_patterns': {'key': 'acceptedPatterns', 'type': '[Filter]'}, + 'complex_replacers': {'key': 'complexReplacers', 'type': '[ComplexReplacerConfig]'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'enable_default_patterns': {'key': 'enableDefaultPatterns', 'type': 'bool'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'str'}, + 'normalization_rules': {'key': 'normalizationRules', 'type': '[NormalizationRule]'}, + 'regex_replacers': {'key': 'regexReplacers', 'type': '[RegexReplacer]'}, + 'rejected_patterns': {'key': 'rejectedPatterns', 'type': '[Filter]'}, + 'scoped_rules': {'key': 'scopedRules', 'type': '[ScopedRule]'}, + 'version': {'key': 'version', 'type': 'int'}, + } + + def __init__(self, *, created_by: str, enable_default_patterns: bool, accepted_patterns=None, complex_replacers=None, last_updated_timestamp: int=None, modified_by: str="AzureDataCatalog", normalization_rules=None, regex_replacers=None, rejected_patterns=None, scoped_rules=None, version: int=0, **kwargs) -> None: + super(PathPatternExtractorConfig, self).__init__(**kwargs) + self.accepted_patterns = accepted_patterns + self.complex_replacers = complex_replacers + self.created_by = created_by + self.enable_default_patterns = enable_default_patterns + self.last_updated_timestamp = last_updated_timestamp + self.modified_by = modified_by + self.normalization_rules = normalization_rules + self.regex_replacers = regex_replacers + self.rejected_patterns = rejected_patterns + self.scoped_rules = scoped_rules + self.version = version + + +class PrivateEndpoint(Model): + """A private endpoint class. + + :param id: The private endpoint identifier. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = id + + +class PrivateEndpointConnection(Model): + """A private endpoint connection class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Gets or sets the identifier. + :vartype id: str + :ivar name: Gets or sets the name. + :vartype name: str + :param properties: The connection identifier. + :type properties: + ~azure.mgmt.projectbabylon.models.PrivateEndpointConnectionProperties + :ivar type: Gets or sets the type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnectionProperties'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.id = None + self.name = None + self.properties = properties + self.type = None + + +class PrivateEndpointConnectionProperties(Model): + """A private endpoint connection properties class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param private_endpoint: The private endpoint information. + :type private_endpoint: ~azure.mgmt.projectbabylon.models.PrivateEndpoint + :param private_link_service_connection_state: The private link service + connection state. + :type private_link_service_connection_state: + ~azure.mgmt.projectbabylon.models.PrivateLinkServiceConnectionState + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, *, private_endpoint=None, private_link_service_connection_state=None, **kwargs) -> None: + super(PrivateEndpointConnectionProperties, self).__init__(**kwargs) + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + self.provisioning_state = None + + +class PrivateLinkServiceConnectionState(Model): + """The private link service connection state. + + :param actions_required: The required actions. + :type actions_required: str + :param description: The description. + :type description: str + :param status: The status. Possible values include: 'Unknown', 'Pending', + 'Approved', 'Rejected', 'Disconnected' + :type status: str or ~azure.mgmt.projectbabylon.models.Status + """ + + _attribute_map = { + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, *, actions_required: str=None, description: str=None, status=None, **kwargs) -> None: + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.actions_required = actions_required + self.description = description + self.status = status + + +class RegexReplacer(Model): + """RegexReplacer. + + All required parameters must be populated in order to send to Azure. + + :param condition: + :type condition: str + :param created_by: Default value: "AzureDataCatalog" . + :type created_by: str + :param description: + :type description: str + :param disabled: Required. + :type disabled: bool + :param disable_recursive_replacer_application: + :type disable_recursive_replacer_application: bool + :param do_not_replace_regex: + :type do_not_replace_regex: ~azure.mgmt.projectbabylon.models.FastRegex + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param modified_by: Default value: "AzureDataCatalog" . + :type modified_by: str + :param name: Required. + :type name: str + :param regex: + :type regex: ~azure.mgmt.projectbabylon.models.FastRegex + :param replace_with: + :type replace_with: str + """ + + _validation = { + 'disabled': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'condition': {'key': 'condition', 'type': 'str'}, + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'disabled': {'key': 'disabled', 'type': 'bool'}, + 'disable_recursive_replacer_application': {'key': 'disableRecursiveReplacerApplication', 'type': 'bool'}, + 'do_not_replace_regex': {'key': 'doNotReplaceRegex', 'type': 'FastRegex'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'modified_by': {'key': 'modifiedBy', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'regex': {'key': 'regex', 'type': 'FastRegex'}, + 'replace_with': {'key': 'replaceWith', 'type': 'str'}, + } + + def __init__(self, *, disabled: bool, name: str, condition: str=None, created_by: str="AzureDataCatalog", description: str=None, disable_recursive_replacer_application: bool=None, do_not_replace_regex=None, last_updated_timestamp: int=None, modified_by: str="AzureDataCatalog", regex=None, replace_with: str=None, **kwargs) -> None: + super(RegexReplacer, self).__init__(**kwargs) + self.condition = condition + self.created_by = created_by + self.description = description + self.disabled = disabled + self.disable_recursive_replacer_application = disable_recursive_replacer_application + self.do_not_replace_regex = do_not_replace_regex + self.last_updated_timestamp = last_updated_timestamp + self.modified_by = modified_by + self.name = name + self.regex = regex + self.replace_with = replace_with + + +class ResourceSetRuleConfig(Model): + """ResourceSetRuleConfig implementation class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param advanced_resource_set: Gets or sets the advanced resource set + property of the account. + :type advanced_resource_set: + ~azure.mgmt.projectbabylon.models.AdvancedResourceSet + :ivar name: The name of the rule + :vartype name: str + :param path_pattern_config: The configuration rules for path pattern + extraction. + :type path_pattern_config: + ~azure.mgmt.projectbabylon.models.PathPatternExtractorConfig + """ + + _validation = { + 'name': {'readonly': True}, + } + + _attribute_map = { + 'advanced_resource_set': {'key': 'advancedResourceSet', 'type': 'AdvancedResourceSet'}, + 'name': {'key': 'name', 'type': 'str'}, + 'path_pattern_config': {'key': 'pathPatternConfig', 'type': 'PathPatternExtractorConfig'}, + } + + def __init__(self, *, advanced_resource_set=None, path_pattern_config=None, **kwargs) -> None: + super(ResourceSetRuleConfig, self).__init__(**kwargs) + self.advanced_resource_set = advanced_resource_set + self.name = None + self.path_pattern_config = path_pattern_config + + +class Rule(Model): + """Rule. + + All required parameters must be populated in order to send to Azure. + + :param display_name: + :type display_name: str + :param is_resource_set: Default value: True . + :type is_resource_set: bool + :param last_updated_timestamp: + :type last_updated_timestamp: long + :param name: + :type name: str + :param qualified_name: Required. + :type qualified_name: str + """ + + _validation = { + 'qualified_name': {'required': True}, + } + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'is_resource_set': {'key': 'isResourceSet', 'type': 'bool'}, + 'last_updated_timestamp': {'key': 'lastUpdatedTimestamp', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + } + + def __init__(self, *, qualified_name: str, display_name: str=None, is_resource_set: bool=True, last_updated_timestamp: int=None, name: str=None, **kwargs) -> None: + super(Rule, self).__init__(**kwargs) + self.display_name = display_name + self.is_resource_set = is_resource_set + self.last_updated_timestamp = last_updated_timestamp + self.name = name + self.qualified_name = qualified_name + + +class ScopedRule(Model): + """ScopedRule. + + All required parameters must be populated in order to send to Azure. + + :param binding_url: Required. + :type binding_url: str + :param rules: + :type rules: list[~azure.mgmt.projectbabylon.models.Rule] + :param store_type: Required. + :type store_type: str + """ + + _validation = { + 'binding_url': {'required': True}, + 'store_type': {'required': True}, + } + + _attribute_map = { + 'binding_url': {'key': 'bindingUrl', 'type': 'str'}, + 'rules': {'key': 'rules', 'type': '[Rule]'}, + 'store_type': {'key': 'storeType', 'type': 'str'}, + } + + def __init__(self, *, binding_url: str, store_type: str, rules=None, **kwargs) -> None: + super(ScopedRule, self).__init__(**kwargs) + self.binding_url = binding_url + self.rules = rules + self.store_type = store_type + + +class Settings(Model): + """Container for Exposure Control settings. + + :param features: Features with enabled status + :type features: dict[str, bool] + """ + + _attribute_map = { + 'features': {'key': 'features', 'type': '{bool}'}, + } + + def __init__(self, *, features=None, **kwargs) -> None: + super(Settings, self).__init__(**kwargs) + self.features = features diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_paged_models.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_paged_models.py new file mode 100644 index 000000000000..10c5c33dfa83 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/models/_paged_models.py @@ -0,0 +1,66 @@ +# 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. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class BusinessRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`BusinessRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[BusinessRule]'} + } + + def __init__(self, *args, **kwargs): + + super(BusinessRulePaged, self).__init__(*args, **kwargs) +class CollectionPaged(Paged): + """ + A paging container for iterating over a list of :class:`Collection ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Collection]'} + } + + def __init__(self, *args, **kwargs): + + super(CollectionPaged, self).__init__(*args, **kwargs) +class CollectionNameResponsePaged(Paged): + """ + A paging container for iterating over a list of :class:`CollectionNameResponse ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[CollectionNameResponse]'} + } + + def __init__(self, *args, **kwargs): + + super(CollectionNameResponsePaged, self).__init__(*args, **kwargs) +class ResourceSetRuleConfigPaged(Paged): + """ + A paging container for iterating over a list of :class:`ResourceSetRuleConfig ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ResourceSetRuleConfig]'} + } + + def __init__(self, *args, **kwargs): + + super(ResourceSetRuleConfigPaged, self).__init__(*args, **kwargs) diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/__init__.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/__init__.py new file mode 100644 index 000000000000..d3b61e5af858 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/__init__.py @@ -0,0 +1,24 @@ +# 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. +# -------------------------------------------------------------------------- + +from ._accounts_operations import AccountsOperations +from ._business_rules_operations import BusinessRulesOperations +from ._collections_operations import CollectionsOperations +from ._exposure_control_operations import ExposureControlOperations +from ._resource_set_rule_configs_operations import ResourceSetRuleConfigsOperations + +__all__ = [ + 'AccountsOperations', + 'BusinessRulesOperations', + 'CollectionsOperations', + 'ExposureControlOperations', + 'ResourceSetRuleConfigsOperations', +] diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_accounts_operations.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_accounts_operations.py new file mode 100644 index 000000000000..a3eae9b5f447 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_accounts_operations.py @@ -0,0 +1,256 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class AccountsOperations(object): + """AccountsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :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. Constant value: "2019-11-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-11-01-preview" + + self.config = config + + def get( + self, custom_headers=None, raw=False, **operation_config): + """Get an account. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Account or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.Account or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.get.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Account', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/'} + + def update( + self, friendly_name=None, custom_headers=None, raw=False, **operation_config): + """Updates an account. + + :param friendly_name: The friendly name for the azure resource. + :type friendly_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Account or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.Account or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + account_update_parameters = models.DataPlaneAccountUpdateParameters(friendly_name=friendly_name) + + # Construct URL + url = self.update.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(account_update_parameters, 'DataPlaneAccountUpdateParameters') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Account', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/'} + + def list_keys( + self, custom_headers=None, raw=False, **operation_config): + """List the authorization keys associated with this account. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: AccessKeys or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.AccessKeys or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.list_keys.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('AccessKeys', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_keys.metadata = {'url': '/listkeys'} + + def regenerate_keys( + self, key_type=None, custom_headers=None, raw=False, **operation_config): + """Regenerate the authorization keys associated with this data catalog. + + :param key_type: The access key type. Possible values include: + 'PrimaryAtlasKafkaKey', 'SecondaryAtlasKafkaKey' + :type key_type: str or ~azure.mgmt.projectbabylon.models.KeyType + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: AccessKeys or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.AccessKeys or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + key_options = models.AccessKeyOptions(key_type=key_type) + + # Construct URL + url = self.regenerate_keys.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(key_options, 'AccessKeyOptions') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('AccessKeys', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + regenerate_keys.metadata = {'url': '/regeneratekeys'} diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_business_rules_operations.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_business_rules_operations.py new file mode 100644 index 000000000000..94d4879d75ce --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_business_rules_operations.py @@ -0,0 +1,386 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class BusinessRulesOperations(object): + """BusinessRulesOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :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. Constant value: "2019-11-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-11-01-preview" + + self.config = config + + def get( + self, business_rule_name, custom_headers=None, raw=False, **operation_config): + """Get a business rule model. + + :param business_rule_name: + :type business_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: BusinessRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.BusinessRule or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'businessRuleName': self._serialize.url("business_rule_name", business_rule_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BusinessRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/businessRules/{businessRuleName}'} + + def create_or_update( + self, business_rule_name, business_rule, custom_headers=None, raw=False, **operation_config): + """Creates or updates a businessRule. + + :param business_rule_name: + :type business_rule_name: str + :param business_rule: + :type business_rule: ~azure.mgmt.projectbabylon.models.BusinessRule + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: BusinessRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.BusinessRule or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'businessRuleName': self._serialize.url("business_rule_name", business_rule_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(business_rule, 'BusinessRule') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BusinessRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/businessRules/{businessRuleName}'} + + def delete( + self, business_rule_name, custom_headers=None, raw=False, **operation_config): + """Deletes a BusinessRule resource. + + :param business_rule_name: + :type business_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'businessRuleName': self._serialize.url("business_rule_name", business_rule_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 204]: + raise models.ErrorResponseModelException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/businessRules/{businessRuleName}'} + + def list_by_account( + self, metadata_only=False, skip_token=None, custom_headers=None, raw=False, **operation_config): + """List the businessRules in the account. + + :param metadata_only: + :type metadata_only: bool + :param skip_token: + :type skip_token: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of BusinessRule + :rtype: + ~azure.mgmt.projectbabylon.models.BusinessRulePaged[~azure.mgmt.projectbabylon.models.BusinessRule] + :raises: + :class:`ErrorResponseModelException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_account.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if metadata_only is not None: + query_parameters['metadataOnly'] = self._serialize.query("metadata_only", metadata_only, 'bool') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.BusinessRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_account.metadata = {'url': '/businessRules'} + + def enable( + self, business_rule_name, custom_headers=None, raw=False, **operation_config): + """Enables a BusinessRule. + + :param business_rule_name: + :type business_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: BusinessRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.BusinessRule or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.enable.metadata['url'] + path_format_arguments = { + 'businessRuleName': self._serialize.url("business_rule_name", business_rule_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BusinessRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + enable.metadata = {'url': '/businessRules/{businessRuleName}/enable'} + + def disable( + self, business_rule_name, custom_headers=None, raw=False, **operation_config): + """Disables a BusinessRule. + + :param business_rule_name: + :type business_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: BusinessRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.BusinessRule or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.disable.metadata['url'] + path_format_arguments = { + 'businessRuleName': self._serialize.url("business_rule_name", business_rule_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BusinessRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + disable.metadata = {'url': '/businessRules/{businessRuleName}/disable'} diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_collections_operations.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_collections_operations.py new file mode 100644 index 000000000000..2fdc9ef979b2 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_collections_operations.py @@ -0,0 +1,402 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class CollectionsOperations(object): + """CollectionsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :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. Constant value: "2019-11-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-11-01-preview" + + self.config = config + + def get( + self, collection_name, custom_headers=None, raw=False, **operation_config): + """Get a collection. + + :param collection_name: + :type collection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Collection or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.Collection or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'collectionName': self._serialize.url("collection_name", collection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Collection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/collections/{collectionName}'} + + def create_or_update( + self, collection_name, collection, custom_headers=None, raw=False, **operation_config): + """Creates or updates a collection entity. + + :param collection_name: + :type collection_name: str + :param collection: + :type collection: ~azure.mgmt.projectbabylon.models.Collection + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Collection or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.Collection or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'collectionName': self._serialize.url("collection_name", collection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(collection, 'Collection') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Collection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/collections/{collectionName}'} + + def delete( + self, collection_name, custom_headers=None, raw=False, **operation_config): + """Deletes a Collection entity. + + :param collection_name: + :type collection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'collectionName': self._serialize.url("collection_name", collection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204]: + raise models.ErrorResponseModelException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/collections/{collectionName}'} + + def list_by_account( + self, skip_token=None, custom_headers=None, raw=False, **operation_config): + """List the collections in the account. + + :param skip_token: + :type skip_token: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Collection + :rtype: + ~azure.mgmt.projectbabylon.models.CollectionPaged[~azure.mgmt.projectbabylon.models.Collection] + :raises: + :class:`ErrorResponseModelException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_account.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.CollectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_account.metadata = {'url': '/collections'} + + def get_child_collection_names( + self, collection_name, skip_token=None, custom_headers=None, raw=False, **operation_config): + """Lists the child collections names in the collection. + + :param collection_name: + :type collection_name: str + :param skip_token: + :type skip_token: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of CollectionNameResponse + :rtype: + ~azure.mgmt.projectbabylon.models.CollectionNameResponsePaged[~azure.mgmt.projectbabylon.models.CollectionNameResponse] + :raises: + :class:`ErrorResponseModelException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.get_child_collection_names.metadata['url'] + path_format_arguments = { + 'collectionName': self._serialize.url("collection_name", collection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.CollectionNameResponsePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + get_child_collection_names.metadata = {'url': '/collections/{collectionName}/getChildCollectionNames'} + + def get_collection_path( + self, collection_name, skip_token=None, custom_headers=None, raw=False, **operation_config): + """Gets the parent name and parent friendly name chains that represent the + collection path. + + :param collection_name: + :type collection_name: str + :param skip_token: + :type skip_token: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: CollectionPathResponse or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.CollectionPathResponse or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.get_collection_path.metadata['url'] + path_format_arguments = { + 'collectionName': self._serialize.url("collection_name", collection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('CollectionPathResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_collection_path.metadata = {'url': '/collections/{collectionName}/getCollectionPath'} diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_exposure_control_operations.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_exposure_control_operations.py new file mode 100644 index 000000000000..3807f8728068 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_exposure_control_operations.py @@ -0,0 +1,97 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ExposureControlOperations(object): + """ExposureControlOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :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. Constant value: "2019-11-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-11-01-preview" + + self.config = config + + def post( + self, features=None, custom_headers=None, raw=False, **operation_config): + """Gets details from a list of features. + + :param features: Features + :type features: list[str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Settings or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.Settings or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + payload = models.BatchSettingsRequest(features=features) + + # Construct URL + url = self.post.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(payload, 'BatchSettingsRequest') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Settings', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + post.metadata = {'url': '/features'} diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_resource_set_rule_configs_operations.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_resource_set_rule_configs_operations.py new file mode 100644 index 000000000000..0d1d6cc9afad --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/operations/_resource_set_rule_configs_operations.py @@ -0,0 +1,260 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ResourceSetRuleConfigsOperations(object): + """ResourceSetRuleConfigsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :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. Constant value: "2019-11-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-11-01-preview" + + self.config = config + + def get( + self, custom_headers=None, raw=False, **operation_config): + """Get a resource set config service model. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ResourceSetRuleConfig or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.ResourceSetRuleConfig or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.get.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ResourceSetRuleConfig', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/resourceSetRuleConfigs/defaultResourceSetRuleConfig'} + + def create_or_update( + self, advanced_resource_set=None, path_pattern_config=None, custom_headers=None, raw=False, **operation_config): + """Creates or updates an resource set config. + + :param advanced_resource_set: Gets or sets the advanced resource set + property of the account. + :type advanced_resource_set: + ~azure.mgmt.projectbabylon.models.AdvancedResourceSet + :param path_pattern_config: The configuration rules for path pattern + extraction. + :type path_pattern_config: + ~azure.mgmt.projectbabylon.models.PathPatternExtractorConfig + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ResourceSetRuleConfig or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.projectbabylon.models.ResourceSetRuleConfig or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + resource_set_rule_config = models.ResourceSetRuleConfig(advanced_resource_set=advanced_resource_set, path_pattern_config=path_pattern_config) + + # Construct URL + url = self.create_or_update.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(resource_set_rule_config, 'ResourceSetRuleConfig') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ResourceSetRuleConfig', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/resourceSetRuleConfigs/defaultResourceSetRuleConfig'} + + def delete( + self, custom_headers=None, raw=False, **operation_config): + """Deletes a ResourceSetRuleConfig resource. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseModelException` + """ + # Construct URL + url = self.delete.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 204]: + raise models.ErrorResponseModelException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/resourceSetRuleConfigs/defaultResourceSetRuleConfig'} + + def list_by_account( + self, skip_token=None, custom_headers=None, raw=False, **operation_config): + """Get a resource set config service model. + + :param skip_token: + :type skip_token: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ResourceSetRuleConfig + :rtype: + ~azure.mgmt.projectbabylon.models.ResourceSetRuleConfigPaged[~azure.mgmt.projectbabylon.models.ResourceSetRuleConfig] + :raises: + :class:`ErrorResponseModelException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_account.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseModelException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.ResourceSetRuleConfigPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_account.metadata = {'url': '/resourceSetRuleConfigs'} diff --git a/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/version.py b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/version.py new file mode 100644 index 000000000000..acc1a73a8bb8 --- /dev/null +++ b/sdk/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon/version.py @@ -0,0 +1,13 @@ +# 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 = "2019-11-01-preview" +