Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/synapse/azure-mgmt-synapse/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/synapse/azure-mgmt-synapse/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "3.0.6369",
"use": "@autorest/[email protected]",
"commit": "e6a01441f54c719b8713490ee37e51d6220073c2",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/synapse/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --version=3.0.6369",
"readme": "specification/synapse/resource-manager/readme.md"
}
169 changes: 169 additions & 0 deletions sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"chosen_version": "2021-03-01",
"total_api_version_list": ["2021-03-01"],
"client": {
"name": "SynapseManagementClient",
"filename": "_synapse_management_client",
"description": "Azure Synapse Analytics Management Client.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SynapseManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SynapseManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
},
"global_parameters": {
"sync": {
"credential": {
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "The ID of the target subscription.",
"docstring_type": "str",
"required": true
}
},
"async": {
"credential": {
"signature": "credential: \"AsyncTokenCredential\",",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id: str,",
"description": "The ID of the target subscription.",
"docstring_type": "str",
"required": true
}
},
"constant": {
},
"call": "credential, subscription_id",
"service_client_specific": {
"sync": {
"api_version": {
"signature": "api_version=None, # type: Optional[str]",
"description": "API version to use if no profile is provided, or if missing in profile.",
"docstring_type": "str",
"required": false
},
"base_url": {
"signature": "base_url=None, # type: Optional[str]",
"description": "Service URL",
"docstring_type": "str",
"required": false
},
"profile": {
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
"description": "A profile definition, from KnownProfiles to dict.",
"docstring_type": "azure.profiles.KnownProfiles",
"required": false
}
},
"async": {
"api_version": {
"signature": "api_version: Optional[str] = None,",
"description": "API version to use if no profile is provided, or if missing in profile.",
"docstring_type": "str",
"required": false
},
"base_url": {
"signature": "base_url: Optional[str] = None,",
"description": "Service URL",
"docstring_type": "str",
"required": false
},
"profile": {
"signature": "profile: KnownProfiles = KnownProfiles.default,",
"description": "A profile definition, from KnownProfiles to dict.",
"docstring_type": "azure.profiles.KnownProfiles",
"required": false
}
}
}
},
"config": {
"credential": true,
"credential_scopes": ["https://management.azure.com/.default"],
"credential_default_policy_type": "BearerTokenCredentialPolicy",
"credential_default_policy_type_has_async_version": true,
"credential_key_header_name": null,
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
},
"operation_groups": {
"big_data_pools": "BigDataPoolsOperations",
"operations": "Operations",
"ip_firewall_rules": "IpFirewallRulesOperations",
"integration_runtimes": "IntegrationRuntimesOperations",
"integration_runtime_node_ip_address": "IntegrationRuntimeNodeIpAddressOperations",
"integration_runtime_object_metadata": "IntegrationRuntimeObjectMetadataOperations",
"integration_runtime_nodes": "IntegrationRuntimeNodesOperations",
"integration_runtime_credentials": "IntegrationRuntimeCredentialsOperations",
"integration_runtime_connection_infos": "IntegrationRuntimeConnectionInfosOperations",
"integration_runtime_auth_keys": "IntegrationRuntimeAuthKeysOperations",
"integration_runtime_monitoring_data": "IntegrationRuntimeMonitoringDataOperations",
"integration_runtime_status": "IntegrationRuntimeStatusOperations",
"keys": "KeysOperations",
"library": "LibraryOperations",
"libraries": "LibrariesOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
"private_link_resources": "PrivateLinkResourcesOperations",
"private_link_hub_private_link_resources": "PrivateLinkHubPrivateLinkResourcesOperations",
"private_link_hubs": "PrivateLinkHubsOperations",
"private_endpoint_connections_private_link_hub": "PrivateEndpointConnectionsPrivateLinkHubOperations",
"sql_pools": "SqlPoolsOperations",
"sql_pool_metadata_sync_configs": "SqlPoolMetadataSyncConfigsOperations",
"sql_pool_operation_results": "SqlPoolOperationResultsOperations",
"sql_pool_geo_backup_policies": "SqlPoolGeoBackupPoliciesOperations",
"sql_pool_data_warehouse_user_activities": "SqlPoolDataWarehouseUserActivitiesOperations",
"sql_pool_restore_points": "SqlPoolRestorePointsOperations",
"sql_pool_replication_links": "SqlPoolReplicationLinksOperations",
"sql_pool_maintenance_windows": "SqlPoolMaintenanceWindowsOperations",
"sql_pool_maintenance_window_options": "SqlPoolMaintenanceWindowOptionsOperations",
"sql_pool_transparent_data_encryptions": "SqlPoolTransparentDataEncryptionsOperations",
"sql_pool_blob_auditing_policies": "SqlPoolBlobAuditingPoliciesOperations",
"sql_pool_operations": "SqlPoolOperationsOperations",
"sql_pool_usages": "SqlPoolUsagesOperations",
"sql_pool_sensitivity_labels": "SqlPoolSensitivityLabelsOperations",
"sql_pool_recommended_sensitivity_labels": "SqlPoolRecommendedSensitivityLabelsOperations",
"sql_pool_schemas": "SqlPoolSchemasOperations",
"sql_pool_tables": "SqlPoolTablesOperations",
"sql_pool_table_columns": "SqlPoolTableColumnsOperations",
"sql_pool_connection_policies": "SqlPoolConnectionPoliciesOperations",
"sql_pool_vulnerability_assessments": "SqlPoolVulnerabilityAssessmentsOperations",
"sql_pool_vulnerability_assessment_scans": "SqlPoolVulnerabilityAssessmentScansOperations",
"sql_pool_security_alert_policies": "SqlPoolSecurityAlertPoliciesOperations",
"sql_pool_vulnerability_assessment_rule_baselines": "SqlPoolVulnerabilityAssessmentRuleBaselinesOperations",
"extended_sql_pool_blob_auditing_policies": "ExtendedSqlPoolBlobAuditingPoliciesOperations",
"data_masking_policies": "DataMaskingPoliciesOperations",
"data_masking_rules": "DataMaskingRulesOperations",
"sql_pool_columns": "SqlPoolColumnsOperations",
"sql_pool_workload_group": "SqlPoolWorkloadGroupOperations",
"sql_pool_workload_classifier": "SqlPoolWorkloadClassifierOperations",
"workspace_managed_sql_server_blob_auditing_policies": "WorkspaceManagedSqlServerBlobAuditingPoliciesOperations",
"workspace_managed_sql_server_extended_blob_auditing_policies": "WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesOperations",
"workspace_managed_sql_server_security_alert_policy": "WorkspaceManagedSqlServerSecurityAlertPolicyOperations",
"workspace_managed_sql_server_vulnerability_assessments": "WorkspaceManagedSqlServerVulnerabilityAssessmentsOperations",
"workspace_managed_sql_server_encryption_protector": "WorkspaceManagedSqlServerEncryptionProtectorOperations",
"workspace_managed_sql_server_usages": "WorkspaceManagedSqlServerUsagesOperations",
"workspace_managed_sql_server_recoverable_sql_pools": "WorkspaceManagedSqlServerRecoverableSqlPoolsOperations",
"workspaces": "WorkspacesOperations",
"workspace_aad_admins": "WorkspaceAadAdminsOperations",
"workspace_sql_aad_admins": "WorkspaceSqlAadAdminsOperations",
"workspace_managed_identity_sql_control_settings": "WorkspaceManagedIdentitySqlControlSettingsOperations",
"restorable_dropped_sql_pools": "RestorableDroppedSqlPoolsOperations"
},
"operation_mixins": {
"sync_imports": "None",
"async_imports": "None",
"operations": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.big_data_pools = BigDataPoolsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.big_data_pools = BigDataPoolsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('BigDataPoolResourceInfo', pipeline_response)
Expand Down Expand Up @@ -170,7 +170,7 @@ async def update(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('BigDataPoolResourceInfo', pipeline_response)
Expand Down Expand Up @@ -229,7 +229,7 @@ async def _create_or_update_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

if response.status_code == 200:
Expand Down Expand Up @@ -269,8 +269,8 @@ async def begin_create_or_update(
:type force: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either BigDataPoolResourceInfo or the result of cls(response)
Expand Down Expand Up @@ -365,7 +365,7 @@ async def _delete_initial(

if response.status_code not in [200, 202, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = None
Expand Down Expand Up @@ -400,8 +400,8 @@ async def begin_delete(
:type big_data_pool_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either object or the result of cls(response)
Expand Down Expand Up @@ -521,7 +521,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response

if response.status_code not in [200]:
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def create_or_update(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('DataMaskingPolicy', pipeline_response)
Expand Down Expand Up @@ -167,7 +167,7 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('DataMaskingPolicy', pipeline_response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def create_or_update(

if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

if response.status_code == 200:
Expand Down Expand Up @@ -180,7 +180,7 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('DataMaskingRule', pipeline_response)
Expand Down Expand Up @@ -261,7 +261,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response

if response.status_code not in [200]:
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

Expand Down
Loading